Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ampproject/amphtml
/ functions
Functions
18,703 in github.com/ampproject/amphtml
⨍
Functions
18,703
◇
Types & classes
2,331
↓ 1 callers
Function
assertVariant
* Validates the variant schema of a config. * @param {!JsonObject} variant * @param {string} experimentName * @param {string} variantName * @throw
extensions/amp-experiment/1.0/variant.js:208
↓ 1 callers
Function
assignHasPendingExceptions
()
third_party/react-dates/bundle.js:1
↓ 1 callers
Method
assignMacros
* Assigns constant macros that should exist for all RTC to object of custom * per-network macros. * @param {!{[key: string]: !../../../src/servi
src/service/real-time-config/real-time-config-impl.js:290
↓ 1 callers
Function
atou
(str)
validator/js/webui/webui.js:36
↓ 1 callers
Method
attach
* Setup canvas and attach it to the document.
extensions/amp-story/1.0/background-blur.js:55
↓ 1 callers
Method
attachButton
@override
third_party/subscriptions-project/swg.js:19470
↓ 1 callers
Method
attachCallbacksToElement_
* Attaches callbacks to the DOM element for them to be used by publishers. * @private
src/amp-story-player/amp-story-player-impl.js:268
↓ 1 callers
Method
attachClickEvent_
* @private * @return {*} TODO(#23582): Specify return type
extensions/amp-link-rewriter/0.1/amp-link-rewriter.js:52
↓ 1 callers
Method
attachContent_
* Finds the prompt and options content * and adds it to the quiz element. * * @private * @param {Element} root
extensions/amp-story-interactive/0.1/amp-story-interactive-img-quiz.js:86
↓ 1 callers
Method
attachContent_
* Finds the prompt and options content * and adds it to the poll element. * * @private * @param {Element} root
extensions/amp-story-interactive/0.1/amp-story-interactive-img-poll.js:62
↓ 1 callers
Method
attachContent_
* Gets the options and adds them to the element * * @private * @param {!Element} root
extensions/amp-story-interactive/0.1/amp-story-interactive-binary-poll.js:117
↓ 1 callers
Method
attachContent_
* Finds the prompt and options content * and adds it to the quiz element. * * @private * @param {Element} root
extensions/amp-story-interactive/0.1/amp-story-interactive-poll.js:85
↓ 1 callers
Method
attachContent_
* Finds the prompt and options content * and adds it to the quiz element. * * @private * @param {Element} root
extensions/amp-story-interactive/0.1/amp-story-interactive-quiz.js:83
↓ 1 callers
Method
attachContributeButton
* Attaches the new contribute button, for contribution product types. * @param {!Element} button * @param {../api/subscriptions.ButtonOptions|fu
third_party/subscriptions-project/swg.js:8852
↓ 1 callers
Method
attachDocumentToPage
* Appends the given document to the host page and installs * a visibility observer to monitor it * @param {!Page} page * @param {!Document} c
extensions/amp-next-page/1.0/service.js:561
↓ 1 callers
Method
attachShadowDoc_
* Attach a ShadowDoc using the given document. * @param {!Element} shadowRoot Root element to attach the shadow document to. * @param {!Document
extensions/amp-next-page/0.1/next-page-service.js:201
↓ 1 callers
Method
attachSubscribeButton
* Attaches the new subscribe button, for subscription product types. * @param {!Element} button * @param {../api/subscriptions.ButtonOptions|fun
third_party/subscriptions-project/swg.js:8816
↓ 1 callers
Method
attachedCallback
* Override in subclass to adjust the element when it is being added to * the DOM. Could e.g. be used to add a listener. Notice, that this * call
src/base-element.js:450
↓ 1 callers
Method
attemptFullWidthSizeChange_
* Calculates and attempts to set the appropriate height & width for a * responsive full width ad unit. * @return {!Promise} * @private
extensions/amp-ad/0.1/amp-ad-3p-impl.js:479
↓ 1 callers
Method
attemptShow_
* Function to attempt to show the toolbar, * and hide toolbar-only element in the sidebar. * @return {Promise} * @private
extensions/amp-sidebar/0.2/toolbar.js:101
↓ 1 callers
Method
attemptShow_
* Function to attempt to show the toolbar, * and hide toolbar-only element in the sidebar. * @return {Promise} * @private
extensions/amp-sidebar/0.1/toolbar.js:102
↓ 1 callers
Method
attemptToRenderCreative
* Attemps to render the returned creative following the resolution of the * adPromise. * * @return {!Promise<boolean>|!Promise<undefined>} A
extensions/amp-a4a/0.1/amp-a4a.js:1369
↓ 1 callers
Function
attrMatches
(name)
src/preact/parse-props.js:365
↓ 1 callers
Method
attrsByKey
* Returns an object mapping attribute name to attribute value. This is * populated lazily, as it's not used for most tags. * @return {Object<str
validator/js/engine/htmlparser-interface.js:277
↓ 1 callers
Method
attrsToString
* Converts a list of attributes to a comma separated string. * @param {!Array<!Object>} attrs * @return {string}
validator/js/engine/htmlparser_test.js:524
↓ 1 callers
Function
au
(n,t)
third_party/d3/d3.js:2
↓ 1 callers
Method
audioPlaying_
@private
extensions/amp-audio/0.1/amp-audio.js:278
↓ 1 callers
Method
authorize
* @return {!Promise<!JsonObject>}
extensions/amp-access/0.1/amp-access-source.js:571
↓ 1 callers
Method
authorizeLocal_
* @return {!Promise<!JsonObject>} * @private
extensions/amp-access/0.1/amp-access-iframe.js:174
↓ 1 callers
Method
authorizeRemote_
* @return {!Promise<!JsonObject>} * @private
extensions/amp-access/0.1/amp-access-iframe.js:185
↓ 1 callers
Method
autoplayVideoBuilt_
* Called when an autoplay video is built. * @private
src/service/video-manager-impl.js:795
↓ 1 callers
Function
ava
* Runs ava tests. * @return {Promise<void>}
build-system/tasks/ava.js:44
↓ 1 callers
Function
awaitPromiseTimeout
()
extensions/amp-apester-media/0.1/monetization/consent-util.js:14
↓ 1 callers
Function
awaitSlotChange
()
test/unit/core/context/test-node-discover.js:934
↓ 1 callers
Function
b
()
third_party/d3/d3.js:1
↓ 1 callers
Function
backwardWrappingDistance
(a, b, arr)
extensions/amp-base-carousel/0.1/array-util.js:26
↓ 1 callers
Function
baseClass
(e)
third_party/react-dates/bundle.js:1
↓ 1 callers
Method
baseElementIsSupported_
* Checks to see if a root element is supported. * @param {Element} element * @return {boolean} * @private
extensions/amp-lightbox-gallery/0.1/service/lightbox-manager-impl.js:165
↓ 1 callers
Function
baseGetTag
(e)
third_party/react-dates/bundle.js:1
↓ 1 callers
Function
be
(n,t,e,r)
third_party/d3/d3.js:2
↓ 1 callers
Method
beforeOpen
@protected
src/bento/components/bento-lightbox/1.0/base-element.js:29
↓ 1 callers
Method
beforeOpen
@protected
src/bento/components/bento-lightbox-gallery/1.0/base-element.js:89
↓ 1 callers
Method
beforeOpen
@protected
extensions/amp-sidebar/1.0/base-element.js:57
↓ 1 callers
Function
beopinion
(global, data)
3p/beopinion.js:119
↓ 1 callers
Method
binarySearch_
* Returns index at which item with `target` priority should be inserted. * @param {number} target * @return {number} * @private
src/core/data-structures/priority-queue.js:48
↓ 1 callers
Method
bindToAmpConsent_
* Binds to amp-consent * @private
extensions/amp-connatix-player/0.1/amp-connatix-player.js:218
↓ 1 callers
Method
bindToPlayerCommands_
* Binds to player events from iframe. In this case * it is used for binding to the close event which * triggers when a user clicks on the close
extensions/amp-connatix-player/0.1/amp-connatix-player.js:150
↓ 1 callers
Method
bindingsForTesting
* Return parsed bindings for testing. * @return {!Array<!BindBindingDef>} * @visibleForTesting
extensions/amp-bind/0.1/bind-evaluator.js:232
↓ 1 callers
Method
bless_
* "Blesses" the specified media element for future playback without a user * gesture. In order for this to bless the media element, this function
extensions/amp-story/1.0/media-pool.js:664
↓ 1 callers
Function
blockSyncPopups
* Blackhole the legacy popups since they should never be used for anything. * @param {!Window} win
3p/environment.js:216
↓ 1 callers
Method
blockedByScrollApp_
* Whether the given error message indicates the Scroll App blocked the * request. * * @param {string} message * @return {boolean} * @pr
extensions/amp-access-scroll/0.1/scroll-impl.js:252
↓ 1 callers
Method
bool_
* @param {*} value * @param {boolean} defaultValue * @return {boolean}
third_party/subscriptions-project/config.js:918
↓ 1 callers
Method
bootstrapLoaded
* Sends bootstrap loaded message.
3p/ampcontext-integration.js:92
↓ 1 callers
Method
bottomSentinelPositionChanged_
* Called when a position change is detected on the injected * bottom sentinel element * @param {?PositionInViewportEntryDef} position
extensions/amp-next-page/1.0/visibility-observer.js:103
↓ 1 callers
Method
bounceToDismiss_
* @param {!VideoOrBaseElementDef} video * @param {number} offsetX * @param {number} direction -1 or 1 * @private
extensions/amp-video-docking/0.1/amp-video-docking.js:1431
↓ 1 callers
Method
boundPropertiesInElement_
* Returns bound properties for an element. * @param {!Element} element * @return {!Array<{property: string, expressionString: string}>} * @pr
extensions/amp-bind/0.1/bind-impl.js:966
↓ 1 callers
Method
boundPropertyInAttribute_
* Returns the bound property and expression string within a given attribute, * if it exists. Otherwise, returns null. * @param {!Attr} attribute
extensions/amp-bind/0.1/bind-impl.js:987
↓ 1 callers
Method
boxNeedsSizing_
* @param {number} width * @param {number} height * @return {boolean} * @private
extensions/amp-video-docking/0.1/amp-video-docking.js:1130
↓ 1 callers
Function
br
(n)
third_party/d3/d3.js:2
↓ 1 callers
Function
breakCanInspectWindowForWindow
(win)
test/unit/inabox/test-inabox-messaging-host.js:413
↓ 1 callers
Method
broadcastReauthorize_
@private
extensions/amp-access/0.1/amp-access.js:372
↓ 1 callers
Method
broadcast_
* @param {*} data * @param {!ShadowRoot} sender * @private
src/multidoc-manager.js:463
↓ 1 callers
Function
brotliCompressAll_
* Compresses all files with Brotli. * @return {Promise<void>}
build-system/release-workflows/upload-release.js:133
↓ 1 callers
Function
brotliCompressFile_
* Compresses a single file with Brotli and writes it to ${path}.br. * @param {string} path * @param {number} sizeHint * @return {Promise<void>}
build-system/release-workflows/upload-release.js:110
↓ 1 callers
Function
bu
(n)
third_party/d3/d3.js:2
↓ 1 callers
Function
build
* Builds the expriments table.
tools/experiments/experiments.js:90
↓ 1 callers
Method
build
* Builds the loader's DOM.
extensions/amp-loader/0.1/amp-loader.js:128
↓ 1 callers
Method
build
* Builds the next-page service by fetching the required elements * and the initial list of pages and installing scoll listeners * @param {!AmpEl
extensions/amp-next-page/1.0/service.js:162
↓ 1 callers
Method
buildAddDeviceButton_
* Builds the add device button * @private * @return {!Element}
extensions/amp-story-dev-tools/0.1/amp-story-dev-tools-tab-preview.js:451
↓ 1 callers
Function
buildAddDeviceDialogTemplate
(element)
extensions/amp-story-dev-tools/0.1/amp-story-dev-tools-tab-preview.js:188
↓ 1 callers
Function
buildAmplifiedQuery
* Sets the value of global.queryString. * @param {!Window} global
ads/vendors/amplified.js:95
↓ 1 callers
Method
buildAndAppendErrorMessage_
* Builds and appends a message and icon to indicate a video error state. * @private
extensions/amp-story/1.0/amp-story-page.js:1866
↓ 1 callers
Method
buildAndAppendPlayMessage_
* Builds and appends a message and icon to play the story on tap. * This message is built when the playback failed (data saver, low battery * mo
extensions/amp-story/1.0/amp-story-page.js:1825
↓ 1 callers
Method
buildAndAppendVideoLoadingSpinner_
* @return {!Element} * @private
extensions/amp-story/1.0/amp-story-page.js:1799
↓ 1 callers
Function
buildAutoAnalyticsTemplate
(element)
extensions/amp-story-auto-analytics/0.1/amp-story-auto-analytics.js:9
↓ 1 callers
Method
buildBar_
* Build bar * @private
extensions/amp-image-slider/0.1/amp-image-slider.js:237
↓ 1 callers
Function
buildBinaries
* @param {string} extDir * @param {!Array<ExtensionBinaryDef>} binaries * @param {!Object} options * @return {!Promise}
build-system/tasks/extension-helpers.js:512
↓ 1 callers
Function
buildBinaryOptionDividerTemplate
(element)
extensions/amp-story-interactive/0.1/amp-story-interactive-binary-poll.js:77
↓ 1 callers
Function
buildBinaryPollTemplate
(element)
extensions/amp-story-interactive/0.1/amp-story-interactive-binary-poll.js:34
↓ 1 callers
Method
buildCallback
@override
test/integration/test-video-manager.js:487
↓ 1 callers
Method
buildCallback
* Override in subclass if the element needs to rebuilt its DOM content. * Until the element has been rebuilt its content are not shown with an only
src/base-element.js:429
↓ 1 callers
Method
buildCallback
@public
src/amp-story-player/amp-story-entry-point/amp-story-entry-point-impl.js:38
↓ 1 callers
Method
buildCallback
()
src/preact/bento-ce.js:66
↓ 1 callers
Method
buildCallback
@override
extensions/amp-autocomplete/0.1/amp-autocomplete.js:222
↓ 1 callers
Method
buildCallback
@override
extensions/amp-ad-network-fake-impl/0.1/amp-ad-network-fake-impl.js:34
↓ 1 callers
Method
buildCallback
@override
extensions/amp-sidebar/0.2/amp-sidebar.js:145
↓ 1 callers
Method
buildCallback
@override
extensions/amp-sidebar/0.1/amp-sidebar.js:144
↓ 1 callers
Method
buildCallback_
* Private function to build the DOM element for the toolbar * @private
extensions/amp-sidebar/0.2/toolbar.js:65
↓ 1 callers
Method
buildCallback_
* Private function to build the DOM element for the toolbar * @private
extensions/amp-sidebar/0.1/toolbar.js:65
↓ 1 callers
Function
buildCarouselControls
(element, slideCount)
extensions/amp-carousel/0.1/build-dom.js:90
↓ 1 callers
Method
buildCarouselDom_
* Creates the DOM for the carousel, placing the children into their correct * spot.
extensions/amp-stream-gallery/0.1/amp-stream-gallery.js:311
↓ 1 callers
Method
buildCarouselDom_
* Creates the DOM for the carousel, placing the children into their correct * spot.
extensions/amp-base-carousel/0.1/amp-base-carousel.js:257
↓ 1 callers
Method
buildCarouselSlides_
* Given a list of lightboxable elements, build the internal carousel slides * @param {!Array<!Element>} lightboxableElements * @private
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:285
↓ 1 callers
Method
buildCarousel_
* Builds the carousel and appends it to the container. * @param {string} lightboxGroupId * @return {!Promise} * @private
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:366
↓ 1 callers
Function
buildCompiler
* Builds the compiler.js binary. * * @return {Promise<void>}
build-system/compile/build-compiler.js:9
↓ 1 callers
Method
buildComponent
* Generates the template from the config_ Map. * * @return {!Element} rootEl_ * @protected @abstract
extensions/amp-story-interactive/0.1/amp-story-interactive-abstract.js:389
↓ 1 callers
Function
buildConfettiWrapperTemplate
(element)
extensions/amp-story-interactive/0.1/interactive-confetti.js:12
↓ 1 callers
Method
buildConfigAuthorizationTimeout_
* @param {!JsonObject} configJson * @return {number}
extensions/amp-access/0.1/amp-access-client.js:60
↓ 1 callers
Method
buildConfigLoginMap_
* @param {!JsonObject} configJson * @return {!JsonObject} * @private
extensions/amp-access/0.1/amp-access-source.js:229
↓ 1 callers
Method
buildConfigType_
* @param {!JsonObject} configJson * @return {!AccessType}
extensions/amp-access/0.1/amp-access-source.js:200
← previous
next →
7,601–7,700 of 18,703, ranked by callers