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
Method
advance_
* Advances, as long as we should still auto advance.
extensions/amp-base-carousel/0.1/auto-advance.js:235
↓ 1 callers
Function
adventive_
* Future data: * - async * - click * - height * - isDev * - width * - pid * * Considerations: * - Recipe reuse for multi-placed Ads. * - Red
ads/vendors/adventive.js:59
↓ 1 callers
Function
afterAttributeMutation
* @param {!Element} el * @param {string} attributeName * @return {!Promise<undefined>}
extensions/amp-stream-gallery/0.1/test/test-amp-stream-gallery.js:38
↓ 1 callers
Method
afterClose
@protected
src/bento/components/bento-lightbox/1.0/base-element.js:40
↓ 1 callers
Method
afterClose
@protected
src/bento/components/bento-lightbox-gallery/1.0/base-element.js:99
↓ 1 callers
Method
afterClose
@protected
extensions/amp-sidebar/1.0/base-element.js:67
↓ 1 callers
Function
afterIndexUpdate
* @param {!Element} el * @param {number=} index An indtex to wait for. * @return {!Promise<undefined>}
extensions/amp-stream-gallery/0.1/test/test-amp-stream-gallery.js:22
↓ 1 callers
Method
afterLogging_
* This function is called by the iframe after it sends the log to the server. * @param {../proto/api_messages.Message=} message
third_party/subscriptions-project/swg.js:8094
↓ 1 callers
Method
afterOpen
@protected
src/bento/components/bento-lightbox/1.0/base-element.js:37
↓ 1 callers
Method
afterOpen
@protected
src/bento/components/bento-lightbox-gallery/1.0/base-element.js:96
↓ 1 callers
Method
afterOpen
@protected
extensions/amp-sidebar/1.0/base-element.js:64
↓ 1 callers
Function
ajvCompile
* @param {any} schema * @return {string}
build-system/compile/json-schema/index.js:128
↓ 1 callers
Function
allSettled
(promises)
extensions/amp-connatix-player/0.1/amp-connatix-player.js:52
↓ 1 callers
Method
allocateMediaElement_
* Allocates the specified media element of the specified type. * @param {!MediaType_Enum} mediaType The type of media element to allocate. * @pa
extensions/amp-story/1.0/media-pool.js:386
↓ 1 callers
Method
allowContextMenuOnMobile_
* Should enable the context menu (long press) on the element passed. * @private * @param {!Element} element * @return {boolean}
extensions/amp-story/1.0/amp-story.js:2735
↓ 1 callers
Function
allowLongTasksInChunking
()
src/chunk.js:112
↓ 1 callers
Method
allowSameOrigin_
* Determines if allow-same-origin should be enabled for the prompt iframe * @param {string} src * @return {boolean}
extensions/amp-consent/0.1/consent-ui.js:507
↓ 1 callers
Method
allowedFeatures
* @return {!Array<string>}
build-system/externs/amp.extern.js:1052
↓ 1 callers
Method
alreadyPlacedAt_
* @param {number} x * @param {number} y * @param {number} scale * @return {boolean}
extensions/amp-video-docking/0.1/amp-video-docking.js:880
↓ 1 callers
Method
ampInitComplete
@override
src/inabox/inabox-resources.js:171
↓ 1 callers
Function
ampWorkerForTesting
(win)
src/web-worker/amp-worker.js:47
↓ 1 callers
Function
analyticsConfig
(baseUrl)
extensions/amp-access-scroll/0.1/scroll-impl.js:54
↓ 1 callers
Method
analyticsEventForTesting_
* @param {number} normalizedPercentage * @private
src/service/video-manager-impl.js:1592
↓ 1 callers
Function
analyticsEventToEntitlementResult
(event)
third_party/subscriptions-project/swg.js:12290
↓ 1 callers
Function
analyticsEventToGoogleAnalyticsEvent
* Converts an analytics event enum into a Google Analytics event object. * @param {?AnalyticsEvent} event * @param {string} subscriptionFlow * @ret
third_party/subscriptions-project/swg.js:12300
↓ 1 callers
Function
analyticsEventToPublisherEvent
* Converts an analytics event enum into a propensity event enum. * @param {?AnalyticsEvent} analyticsEvent * @returns {?Event}
third_party/subscriptions-project/swg.js:12277
↓ 1 callers
Method
analyticsEvent_
* @param {string} eventType * @param {!JsonObject=} opt_vars A map of vars and their values. * @private
extensions/amp-form/0.1/amp-form.js:1212
↓ 1 callers
Function
ancestorElements
(child, predicate)
src/core/dom/query.js:162
↓ 1 callers
Method
androidSoftKeyboardIsProbablyOpen_
* Returns whether the Android soft keyboard is most likely open, as * calculated using multiple factors. Note that this calculation will * incor
extensions/amp-story/1.0/amp-story.js:1981
↓ 1 callers
Function
animateCollapse
(content)
src/bento/components/bento-accordion/1.0/animations.js:63
↓ 1 callers
Function
animateExpand
(content)
src/bento/components/bento-accordion/1.0/animations.js:12
↓ 1 callers
Method
animateExpand_
* @param {!Element} section * @param {!ActionTrust_Enum} trust * @return {!Promise} * @private
extensions/amp-accordion/0.1/amp-accordion.js:366
↓ 1 callers
Method
animateIn
Starts all entrance animations for the page.
extensions/amp-story/1.0/animation.js:607
↓ 1 callers
Method
animateScrollLeft_
* Animate scrollLeft of the container. * @param {number} fromScrollLeft * @param {number} toScrollLeft * @return {Promise} * @private
extensions/amp-carousel/0.1/slidescroll.js:961
↓ 1 callers
Method
animateScrollWithinParent
@override
src/service/viewport/viewport-impl.js:507
↓ 1 callers
Method
animateShowHint_
* Show hint with animation * @private
extensions/amp-image-slider/0.1/amp-image-slider.js:390
↓ 1 callers
Function
append
(el)
extensions/amp-story/1.0/semantic-render.js:18
↓ 1 callers
Function
appendAmpImg
(parent, path)
extensions/amp-story-360/0.1/test/test-amp-story-360.js:32
↓ 1 callers
Function
appendAmpImg
(parent, path)
extensions/amp-story-panning-media/0.1/test/test-amp-story-panning-media.js:26
↓ 1 callers
Function
appendChild
(parent: Element, child: Child)
src/core/dom/jsx/index.ts:47
↓ 1 callers
Function
appendChildren
* Appends children to element * * @param {!Element} element * @param {!Array<!Element>} children
extensions/amp-playbuzz/0.1/utils.js:60
↓ 1 callers
Function
appendClientScript
(doc)
build-system/server/app-video-testbench.js:342
↓ 1 callers
Function
appendModuleScript
( head: posthtml.Node, nomoduleScript: ScriptNode, options: OptionSet )
build-system/server/new-server/transforms/modules/modules-transform.ts:12
↓ 1 callers
Method
appendNextArticle_
* Append a new article if still possible.
extensions/amp-next-page/0.1/next-page-service.js:253
↓ 1 callers
Function
appendOpenTag
* Constructs an open-tag with the provided attributes. * @param {Element} node * @param {Array<string>} attrs * @param {Array<string>} result
src/core/dom/get-html.js:106
↓ 1 callers
Method
appendPage_
* Appends the element too page * @param {!Element} element * @return {!Promise}
extensions/amp-next-page/0.1/amp-next-page.js:251
↓ 1 callers
Function
appendPlacement
* @param {string} mode * @param {!Window} global * @param {!Object} data
ads/vendors/adocean.js:120
↓ 1 callers
Method
appendToDom_
* @param {!StoryDef} story * @private
src/amp-story-player/amp-story-player-impl.js:1313
↓ 1 callers
Function
appendToResult
* @param {Element} rootNode - node to take content from * @param {Array<string>} attrs - tag attributes to be left in the stringified HTML * @param
src/core/dom/get-html.js:62
↓ 1 callers
Method
append_
* Returns base64(data + signature). * @param {!Uint8Array} data * @param {!Uint8Array} signature * @return {string} * @private
src/service/origin-experiments-impl.js:246
↓ 1 callers
Method
applyAspectRatioAttributes_
* Grab the aspect-ratio attribute and apply to CSS variable as a fraction. * @private
extensions/amp-story/1.0/amp-story-grid-layer.js:89
↓ 1 callers
Function
applyAudioInfoToVideo
* @param {!Element} videoEl * @param {boolean|undefined} hasAudio
extensions/amp-video/0.1/video-cache.js:160
↓ 1 callers
Method
applyBinding_
* Mutates the bound property of `element` with `newValue`. * @param {!BoundPropertyDef} boundProperty * @param {!Element} element * @param {B
extensions/amp-bind/0.1/bind-impl.js:1306
↓ 1 callers
Function
applyCaptionsTrackToVideo
* Appends captions track and amp-story-captions to video if captions * url is defined and video element doesn't have a track child * specified in th
extensions/amp-video/0.1/video-cache.js:173
↓ 1 callers
Function
applyConfig
* @param {string} type Prod or canary * @param {string} target File containing the AMP runtime (amp.js or v0.js) * @param {string} filename File con
build-system/tasks/prepend-global/index.js:106
↓ 1 callers
Function
applyContainerStyle
* Centers the ad container within the AMP container. * Applies the optional background color for the unfilled space. * * @param {HTMLElement} conta
ads/vendors/feedad.js:95
↓ 1 callers
Method
applyErrors_
* Set errors on elements that failed verification, and clear any * verification state for elements that passed verification. * @param {!Array<!V
extensions/amp-form/0.1/form-verifiers.js:197
↓ 1 callers
Function
applyExperimentToVariant
(ampdoc, config, experimentToVariant)
extensions/amp-experiment/1.0/apply-experiment.js:36
↓ 1 callers
Method
applyFirstFrame
* Seeks the bodymovin animation to the first frame.
extensions/amp-story/1.0/animation.js:925
↓ 1 callers
Method
applyInitialStyles_
* Apply styles for ready event
extensions/amp-consent/0.1/consent-ui.js:764
↓ 1 callers
Method
applyMargins_
* Readjusts the given rect using the configured exclusion margins. * @param {!../../../src/layout-rect.LayoutRectDef} rect viewport rect adjusted f
extensions/amp-position-observer/0.1/amp-position-observer.js:418
↓ 1 callers
Method
applyNavigateToMutators_
* Apply URL transformations for AMP.navigateTo. * @param {string} url * @return {string}
src/service/navigation.js:405
↓ 1 callers
Function
applyResponse
* parse the response back from ad server * Set for analytics purposes * @param {!Window} win * @param {?JsonObject} response
src/impression.js:242
↓ 1 callers
Function
applySelectorScope
(selector, selectorScope)
third_party/webcomponentsjs/ShadowCSS.js:206
↓ 1 callers
Function
applySelectorScopeList
(selector, scopeSelectorList)
third_party/webcomponentsjs/ShadowCSS.js:213
↓ 1 callers
Function
applySourcesToVideo
* * @param {!Element} videoEl * @param {!Array<!Object>} sources * @param {number} maxBitrate
extensions/amp-video/0.1/video-cache.js:86
↓ 1 callers
Function
applyStrictSelectorScope
(selector, scopeSelector)
third_party/webcomponentsjs/ShadowCSS.js:233
↓ 1 callers
Method
applyToElement
* Applies the src attribute and source tags to a specified element. * @param {!Window} win * @param {!HTMLMediaElement} element The element to a
extensions/amp-story/1.0/sources.js:59
↓ 1 callers
Method
applyUpdatesToElement_
* Applies expression results to a single BoundElementDef. * @param {!Element} element * @param {!Array<{boundProperty: !BoundPropertyDef, newVal
extensions/amp-bind/0.1/bind-impl.js:1219
↓ 1 callers
Function
appnexusAst
* @param {!Window} global * @param {!Object} data
ads/vendors/appnexus.js:50
↓ 1 callers
Function
areMarginsChanged
(margins, change)
src/core/dom/layout/rect.js:233
↓ 1 callers
Function
arePropertyDescriptorsSupported
()
third_party/react-dates/bundle.js:1
↓ 1 callers
Method
arePushRelatedApisSupported_
* Returns true if the Notifications, Service Worker, and Push API are * supported. * * This check causes Safari to return false (i.e. W3C-sta
extensions/amp-web-push/0.1/web-push-service.js:995
↓ 1 callers
Function
areSignalsInstalled
()
extensions/amp-image-slider/0.1/test/integration/test-amp-image-slider.js:862
↓ 1 callers
Function
areSlidersReady
()
extensions/amp-image-slider/0.1/test/integration/test-amp-image-slider.js:855
↓ 1 callers
Function
argValueForTokens
* @param {Array<!TokenDef>} tokens * @return {?ActionInfoArgValueDef} * @private
src/service/action-impl.js:1112
↓ 1 callers
Method
argumentsForInvocation_
* Given an INVOCATION node, returns an array containing its arguments. * Also unwraps its ARGS child, if it has one. * @param {!./bind-expr-defi
extensions/amp-bind/0.1/bind-expression.js:296
↓ 1 callers
Method
arrayBuffer
* Drains the response and returns a promise that resolves with the response * ArrayBuffer. * @return {!Promise<!ArrayBuffer>}
third_party/subscriptions-project/swg.js:13676
↓ 1 callers
Method
articleLinksPositionUpdate_
* Handles updates from the {@code PositionObserver} indicating a change in * the position of the recommendation unit in the viewport. Used to indic
extensions/amp-next-page/0.1/next-page-service.js:506
↓ 1 callers
Method
askPlayerForActiveExperiments_
* Sends message to player asking for active experiments and enables * the branch for any relevant experiments.
extensions/amp-story-auto-ads/0.1/amp-story-auto-ads.js:175
↓ 1 callers
Function
assert
* @private * @description * Confirm that a value is truthy, throws an error message otherwise. * * @param {*} val - the val to test. * @param {st
third_party/set-dom/original.js:318
↓ 1 callers
Method
assertAndParseConfig_
* Validates the story-consent config. `story-consent` is a new parameter * specific to stories, added on the `amp-consent` JSON config. * @priva
extensions/amp-story/1.0/amp-story-consent.js:253
↓ 1 callers
Function
assertFilters
* Asserts an array of filters. * @param {!JsonObject} filters
extensions/amp-ad-exit/0.1/config.js:137
↓ 1 callers
Function
assertHttpsUrl
* Asserts that a given url is HTTPS or protocol relative. * * @param {string|URL} url * @param {string=} sourceName Used for error messages.
src/preact/utils/url.js:53
↓ 1 callers
Method
assertLayout_
@private
src/custom-element.js:425
↓ 1 callers
Function
assertMetadataValues
(metadata)
extensions/amp-consent/0.1/consent-info.js:461
↓ 1 callers
Function
assertNotDisplay
(style)
src/core/dom/style.js:351
↓ 1 callers
Method
assertPosition_
* Asserts that the flying carpet does not appear in the first or last * viewport. * @private
extensions/amp-fx-flying-carpet/0.1/amp-fx-flying-carpet.js:97
↓ 1 callers
Method
assertPosition_
@private
extensions/amp-iframe/0.1/amp-iframe.js:170
↓ 1 callers
Function
assertReco
* @param {!Element} context * @param {*} reco * @param {string} documentUrl
extensions/amp-next-page/0.1/config.js:93
↓ 1 callers
Function
assertRecos
* @param {!Element} context * @param {!Array<*>} recos * @param {string} documentUrl
extensions/amp-next-page/0.1/config.js:61
↓ 1 callers
Function
assertSelectors
* Asserts for valid selectors. * * @param {!Array<string>} selectors
extensions/amp-next-page/0.1/config.js:72
↓ 1 callers
Function
assertService
* Throws user error if `service` is null. * @param {object} service * @param {string} id * @param {string} extension * @return {!Object} * @priva
src/element-service.js:149
↓ 1 callers
Method
assertSource_
* @param {?string} src * @return {string} * @private
src/builtins/amp-pixel/amp-pixel.js:102
↓ 1 callers
Function
assertSuccess
* Returns the response if successful or otherwise throws an error. * @param {!FetchResponse} response * @return {!Promise<!FetchResponse>} * @priva
third_party/subscriptions-project/swg.js:13587
↓ 1 callers
Function
assertTarget
* Asserts target * * @param {string} name * @param {!JsonObject} target * @param {!JsonObject} config
extensions/amp-ad-exit/0.1/config.js:176
↓ 1 callers
Function
assertTargets
* Asserts targets and its config * * @param {!JsonObject} targets * @param {!JsonObject} config
extensions/amp-ad-exit/0.1/config.js:162
↓ 1 callers
Function
assertTransport
* Asserts a transport. * @param {!JsonObject} transport
extensions/amp-ad-exit/0.1/config.js:123
↓ 1 callers
Method
assertValidResponseMessage_
* * @param {JsonObject} responseMessage The response object to * validate. * @param {string} eventOrigin The origin of the message, which
extensions/amp-ad-exit/0.1/amp-ad-exit.js:543
↓ 1 callers
Function
assertValidScrollToggleElement
(element, computedStyle)
extensions/amp-fx-collection/0.1/scroll-toggle.js:152
← previous
next →
7,501–7,600 of 18,703, ranked by callers