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
↓ 3 callers
Function
passthroughServeModeCdn
* Respond with content received from a URL when SERVE_MODE is "cdn". * @param {express.Response} res * @param {string} cdnUrl * @return {Promise<bo
build-system/server/app.js:49
↓ 3 callers
Function
pause
(element)
src/core/dom/resource-container-helper.js:11
↓ 3 callers
Method
pause
* @override
extensions/amp-animation/0.1/runners/native-web-animation-runner.js:105
↓ 3 callers
Method
pause
()
extensions/amp-consent/0.1/consent-ui.js:359
↓ 3 callers
Function
pauseAll
(containerOrContainers, includeSelf = true)
src/core/dom/resource-container-helper.js:32
↓ 3 callers
Method
pauseBackgroundAudio_
* Pauses the background audio. * @private
extensions/amp-story/1.0/amp-story.js:2391
↓ 3 callers
Method
pauseLayout
* Pauses the layout temporarily. This can be resumed by calling * `resumseLayout`.
extensions/amp-base-carousel/0.1/carousel.js:426
↓ 3 callers
Method
pauseOnRemove
* Calls element's pauseCallback callback.
src/service/resource.js:1029
↓ 3 callers
Function
pb
(a)
third_party/wgxpath/wgxpath.js:57
↓ 3 callers
Method
pingbackReturnsAllEntitlements
* True if pingback returns all entitlments * @return {boolean}
extensions/amp-subscriptions/0.1/subscription-platform.js:60
↓ 3 callers
Function
pixelDrop
(url, ampDoc)
extensions/amp-addthis/0.1/addthis-utils/pixel.js:59
↓ 3 callers
Method
play
@override
extensions/amp-jwplayer/0.1/amp-jwplayer.js:152
↓ 3 callers
Method
play
* @override
extensions/amp-video/0.1/amp-video.js:839
↓ 3 callers
Method
playAllMedia_
* Plays all media on this page. * @return {!Promise} Promise that resolves after the callbacks are called. * @private
extensions/amp-story/1.0/amp-story-page.js:1118
↓ 3 callers
Method
playBackgroundAudio_
* Unmutes and plays the background audio. * @private
extensions/amp-story/1.0/amp-story.js:2417
↓ 3 callers
Method
playLabelAnimation_
* Switches an element's current animation to a label animation. * This is a core gotoAndPlay routine used in all goto* actions. * @param {!Eleme
extensions/amp-gwd-animation/0.1/amp-gwd-animation-impl.js:449
↓ 3 callers
Function
pointerCoords
(e)
extensions/amp-video-docking/0.1/events.js:14
↓ 3 callers
Function
pollForLayout
(win, count, opt_timeout)
testing/iframe.js:495
↓ 3 callers
Method
poll_
* Queues a timeout that executes the work and recursively calls * itself on success. * @param {boolean=} opt_immediate execute current work inst
extensions/amp-live-list/0.1/poller.js:107
↓ 3 callers
Method
postMessage_
* @param {!JsonObject} message * @private
extensions/amp-video-iframe/0.1/amp-video-iframe.js:433
↓ 3 callers
Method
postToParent_
* @param {!JsonObject} data * @param {function()=} opt_callback * @return {number} * @private
src/video-iframe-integration.js:365
↓ 3 callers
Method
postTroubleshootMessage
* Emits a postMessage containing information about this slot to the DFP * Troubleshoot UI. A promise is returned if a message is posted, otherwise
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:1944
↓ 3 callers
Method
postbackSuccess_
* Tries to close window and if window is not closed within 3 seconds the * document is switched to error mode where the close button is shown. *
extensions/amp-access/0.1/amp-login-done-dialog.js:182
↓ 3 callers
Function
posthtmlGetTextContent
(document, matcher)
build-system/server/app-index/test/helpers.js:7
↓ 3 callers
Method
preconnect
* @param {string} url
third_party/subscriptions-project/swg.js:17828
↓ 3 callers
Method
preconnectCallback
* @param {boolean=} opt_onLayout * @override
extensions/amp-app-banner/0.1/amp-app-banner.js:211
↓ 3 callers
Function
prefersReducedMotion
(win)
src/core/dom/media-query-props.js:272
↓ 3 callers
Method
preloadShell_
* @param {string} shellUrl * @private
extensions/amp-install-serviceworker/0.1/amp-install-serviceworker.js:205
↓ 3 callers
Method
prerenderAllowed
* Whether this element can be pre-rendered. * @return {boolean}
src/service/resource.js:666
↓ 3 callers
Method
prerenderAllowed
@override
extensions/amp-story/1.0/amp-story.js:224
↓ 3 callers
Method
previewAllowed
* Whether this element can be previewed. * @return {boolean}
src/service/resource.js:674
↓ 3 callers
Method
previous
* Navigates to the previous page in the story.
extensions/amp-story/1.0/amp-story-page.js:1575
↓ 3 callers
Method
previous_
* Navigates to the previous story in the player. * @private
src/amp-story-player/amp-story-player-impl.js:1075
↓ 3 callers
Function
printConfigHelp
* Prints a helpful message that lets the developer know how to switch configs. * @param {string} command Command being run.
build-system/tasks/helpers.js:591
↓ 3 callers
Function
processMaps
* @param {Map[]} maps
build-system/eslint-rules/prefer-destructuring.js:87
↓ 3 callers
Function
prop
(el, name)
extensions/amp-base-carousel/0.1/test-e2e/test-mixed-lengths.js:17
↓ 3 callers
Function
prop
(el, name)
extensions/amp-base-carousel/0.1/test-e2e/test-mixed-lengths-no-snap.js:19
↓ 3 callers
Function
propagateObjectFitStyles
(fromEl, toEl)
src/core/dom/style.js:323
↓ 3 callers
Method
propensityUrl_
* @private * @param {string} url * @return {string}
third_party/subscriptions-project/swg.js:18406
↓ 3 callers
Function
pseudoArray
* @param {!Array<!CssNode>} array * @param {?Array<string>} dims * @param {string=} delim * @return {string}
extensions/amp-animation/0.1/test/test-css-expr-parser.js:96
↓ 3 callers
Function
pt
(n,t,e)
third_party/d3/d3.js:1
↓ 3 callers
Function
publisherEventToAnalyticsEvent
* Converts a propensity event enum into an analytics event enum. * @param {!Event|string} propensityEvent * @returns {!AnalyticsEvent}
third_party/subscriptions-project/swg.js:12268
↓ 3 callers
Function
pure
build-system/babel-plugins/babel-plugin-deep-pure/test/fixtures/transform/ignored-not-import/output.mjs:1
↓ 3 callers
Method
purifyHtml
* Returns a <body> element containing the sanitized `dirty` markup. * Uses the standard DOMPurify config. * @param {string} dirty * @return {
src/purifier/index.js:89
↓ 3 callers
Method
pushFocus_
* @param {!Element} element * @private
src/focus-history.js:78
↓ 3 callers
Method
pushNextEntitlements
* @param {string} raw * @param {boolean=} isReadyToPay * @return {boolean}
third_party/subscriptions-project/swg.js:12550
↓ 3 callers
Function
qi
(n)
third_party/d3/d3.js:2
↓ 3 callers
Method
queryAll_
* @param {!Node} root * @param {string} query * @return {!Array|!NodeList}
src/polyfills/custom-elements.js:348
↓ 3 callers
Method
queryNotificationPermission
* Queries the helper iframe for the notification permission on the canonical * origin. * * @return {Promise<NotificationPermission>}
extensions/amp-web-push/0.1/web-push-service.js:330
↓ 3 callers
Function
querySelectorAllAnimateIn
(element)
extensions/amp-story/1.0/test/test-animation.js:20
↓ 3 callers
Method
queryServiceWorker_
* Passes messages to the service worker through the helper iframe. Messages * are forwarded directly as-is and service worker replies and received
extensions/amp-web-push/0.1/web-push-service.js:317
↓ 3 callers
Function
randomInRange
* Returns a random number between the min and max values. * * @param {number} min * @param {number} max * @return {number}
extensions/amp-story-interactive/0.1/interactive-confetti.js:107
↓ 3 callers
Function
readJson
* @param {string} filename * @return {*}
build-system/json-locales/index.js:19
↓ 3 callers
Method
ready
@override
src/utils/dom-writer.js:292
↓ 3 callers
Method
reconcileAnimationLoop_
@private
3p/3d-gltf/viewer.js:276
↓ 3 callers
Method
reconcileUndocked_
@private
extensions/amp-video-docking/0.1/amp-video-docking.js:1604
↓ 3 callers
Function
rect
(el)
extensions/amp-base-carousel/0.1/test-e2e/test-autoadvance.js:17
↓ 3 callers
Function
rectIntersection
(var_args)
src/core/dom/layout/rect.js:130
↓ 3 callers
Function
rectsOverlap
(r1, r2)
src/core/dom/layout/rect.js:116
↓ 3 callers
Method
register
* @param {Window | Promise<Window>} frame * @param {function(JsonObject)=} messageListener
extensions/amp-access-scroll/0.1/scroll-relay.js:52
↓ 3 callers
Function
registerEvent
(eventName, callback, win, iframe, unlisteners)
extensions/amp-apester-media/0.1/utils.js:176
↓ 3 callers
Method
registerHandler
()
extensions/amp-viewer-integration/0.1/test/integration/test-amp-viewer-integration.js:56
↓ 3 callers
Method
registerLoadCallback
* Register functions to be executed when ad has loaded. * @param {Function} cb
extensions/amp-story-auto-ads/0.1/story-ad-page.js:173
↓ 3 callers
Method
registerPerformanceObserver_
* Reports performance metrics first paint, first contentful paint, * and first input delay. * See https://github.com/WICG/paint-timing
src/service/performance-impl.js:394
↓ 3 callers
Function
registerServiceBuilderInEmbedWin
(embedWin, id, constructor)
src/service-helpers.js:70
↓ 3 callers
Method
release_
* Sets or animates pan/zoom parameters after release of the gesture. * @return {!Promise} * @private
extensions/amp-pan-zoom/0.1/amp-pan-zoom.js:975
↓ 3 callers
Method
reload
* @param {boolean} forceReload
testing/fake-dom.js:512
↓ 3 callers
Method
rememberMeteringEntitlementsWereFetched
* Remembers metering entitlements were fetched * with the current metering state. * * This helps avoid redundant fetches.
extensions/amp-subscriptions/0.1/service-adapter.js:149
↓ 3 callers
Function
removeAttributeInMutate
(elementImpl, name)
extensions/amp-story/1.0/utils.js:182
↓ 3 callers
Method
removeBindingsForNodes_
* For each node in an array, removes all bindings for it and its descendants. * * Returns a promise that resolves with the number of removed bin
extensions/amp-bind/0.1/bind-impl.js:819
↓ 3 callers
Method
removeBindingsWithExpressionStrings
* Removes all parsed bindings for the provided expressions. * @param {!Array<string>} expressionStrings
extensions/amp-bind/0.1/bind-evaluator.js:56
↓ 3 callers
Method
removeContainer
* Removes the container and its observer that were set by the `setContainer`. * * @param {!Element} container
src/service/scheduler.js:159
↓ 3 callers
Method
removeIframeAndContainer_
* Close iframe with animation. * * @param {!Element} container * @param {!HTMLIFrameElement} iframe * @private
third_party/subscriptions-project/swg.js:16715
↓ 3 callers
Method
removeIframe_
@private
extensions/amp-onetap-google/0.1/amp-onetap-google.js:282
↓ 3 callers
Function
removeNoScriptElements
(parent)
src/utils/dom-writer.js:332
↓ 3 callers
Method
removePermissionPopupUrlFragmentFromUrl
* Given a URL string, returns the URL without the permission dialog URL query * parameter fragment indicating a redirect. * @param {string} url
extensions/amp-web-push/0.1/web-push-service.js:262
↓ 3 callers
Function
removeProp
(node, prop, setter)
src/core/context/index.js:107
↓ 3 callers
Function
removeSafeframeListener
()
extensions/amp-ad-network-doubleclick-impl/0.1/safeframe-host.js:785
↓ 3 callers
Method
removeScrollHandler
* @param {function(!Object)} handler
extensions/amp-analytics/0.1/scroll-manager.js:64
↓ 3 callers
Method
removeSelectionHighlighting
* Resets any highlighting done by the SelectionAPI * @param {HTMLInputElement} unusedInputEl
extensions/amp-autocomplete/0.1/autocomplete-binding-def.js:67
↓ 3 callers
Method
render
* * @param {Function} callback
ads/vendors/adocean.js:224
↓ 3 callers
Method
renderActionsInNode_
* Renders actions inside a given node according to an authResponse * @param {!JsonObject} renderState * @param {!Node} rootNode * @param {fun
extensions/amp-subscriptions/0.1/local-subscription-platform-renderer.js:120
↓ 3 callers
Function
renderAndCheck
()
extensions/amp-access/0.1/test/test-amp-access.js:643
↓ 3 callers
Function
renderCreativeIntoFriendlyFrame
( adUrl, size, element, creativeMetadata )
extensions/amp-a4a/0.1/friendly-frame-util.js:23
↓ 3 callers
Method
renderDialog_
* @param {!JsonObject} authResponse * @return {!Promise<boolean>}
extensions/amp-subscriptions/0.1/local-subscription-platform-renderer.js:66
↓ 3 callers
Function
renderLoadingSpinner
()
extensions/amp-story/1.0/loading-spinner.js:4
↓ 3 callers
Method
renderPurchaseOverlay_
* @private
extensions/amp-access-laterpay/0.2/laterpay-impl.js:373
↓ 3 callers
Method
renderPurchaseOverlay_
* @private
extensions/amp-access-laterpay/0.1/laterpay-impl.js:314
↓ 3 callers
Method
renderPurchaseOverlay_
* Creates the paywall component and append it to dialog container * @private
extensions/amp-access-fewcents/0.1/fewcents-impl.js:276
↓ 3 callers
Method
renderTextBlock_
* @private * @param {string} area
extensions/amp-access-laterpay/0.2/laterpay-impl.js:434
↓ 3 callers
Method
renderTextBlock_
* @private * @param {string} area
extensions/amp-access-laterpay/0.1/laterpay-impl.js:377
↓ 3 callers
Method
render_
* Renders the Regwall. * @private * @nocollapse * @param {{ iframeUrl: string, caslUrl: string, useNativeMode: (boolean|undefined)}} params
third_party/subscriptions-project/swg-gaa.js:2030
↓ 3 callers
Method
reorderHead
* Reorders head like so: * (0) <meta charset> tag * (1) <style amp-runtime> * (2) remaining <meta> tags (those other than <meta charset>)
extensions/amp-ad-network-fake-impl/0.1/external-reorder-head-transformer.js:74
↓ 3 callers
Function
replaceLeadingSlash
(subject, replacement)
build-system/server/app-index/url.js:9
↓ 3 callers
Method
replaceSections_
* @param {!Document} doc * @return {!Promise}
extensions/amp-access/0.1/amp-access-server.js:184
↓ 3 callers
Method
replay_
@private
extensions/amp-story/1.0/amp-story.js:2549
↓ 3 callers
Function
reportErrorToAnalytics
(error, win)
src/error-reporting.js:686
↓ 3 callers
Method
reportInput
* @param {!Element} input
extensions/amp-form/0.1/form-validators.js:278
↓ 3 callers
Function
reportNonNullablePrimitive
* Report the existence of a non-nullable primitive. If --fix is specified, * remove the offending exclamation point. * @param {!EslintContextDef} co
build-system/eslint-rules/closure-type-primitives.js:181
↓ 3 callers
Method
reportViewToServer_
* @return {!Promise} * @private
extensions/amp-access/0.1/amp-access.js:670
← previous
next →
4,601–4,700 of 18,703, ranked by callers