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
propertiesFromRule
(rule)
third_party/webcomponentsjs/ShadowCSS.js:252
↓ 1 callers
Function
proxy
* Schedules invocation of the original function. * * @returns {void}
third_party/resize-observer-polyfill/ResizeObserver.js:781
↓ 1 callers
Function
proxy
* Schedules invocation of the original function. * * @returns {void}
third_party/resize-observer-polyfill/ResizeObserver.install.js:780
↓ 1 callers
Function
proxyToAmpProxy
* Fetches an AMP document from the AMP proxy and replaces JS * URLs, so that they point to localhost. * * @param {express.Request} req * @param {e
build-system/server/app.js:508
↓ 1 callers
Function
pt
(e,t,n)
examples/amp-script/vue-todomvc.js:7
↓ 1 callers
Function
purifier
()
test/unit/test-purifier.js:788
↓ 1 callers
Function
push
(cb)
3p/3p.js:191
↓ 1 callers
Function
pushBuildWorkflow
* Steps to run during push builds.
build-system/pr-check/experiment-e2e-tests.js:43
↓ 1 callers
Function
pushBuildWorkflow
* Steps to run during push builds.
build-system/pr-check/experiment-build.js:22
↓ 1 callers
Function
pushBuildWorkflow
* Steps to run during push builds.
build-system/pr-check/experiment-integration-tests.js:36
↓ 1 callers
Function
pushBuildWorkflow
* Steps to run during push builds.
build-system/pr-check/browser-tests.js:32
↓ 1 callers
Function
pushLimit
* Pushes element into array, keeping at most the most recent limit elements * * @param {!Array<T>} array * @param {T} element * @param {number} li
src/error-reporting.js:93
↓ 1 callers
Method
queryA2AFeatures_
* @return {!Array<string>} * @private
src/service/navigation.js:302
↓ 1 callers
Function
queryCarouselControls
(element)
extensions/amp-carousel/0.1/build-dom.js:130
↓ 1 callers
Method
queryDiffablePlaceholder_
* A "diffable placeholder" is the child container <div> (which is usually created by the amp-list * to hold the rendered children). It serves the s
extensions/amp-list/0.1/amp-list.js:324
↓ 1 callers
Function
queryDom
(element)
extensions/amp-fit-text/0.1/build-dom.js:46
↓ 1 callers
Method
queryElements
* @param {string} selector * @return {!Array<!Element>}
extensions/amp-animation/0.1/web-animations.js:932
↓ 1 callers
Method
queryMedia_
* @return {!Promise<!JsonObject>}
extensions/amp-apester-media/0.1/amp-apester-media.js:212
↓ 1 callers
Function
queryParametersToObject
* @param {string=} input * @return {JsonObject|undefined}
ads/vendors/fusion.js:7
↓ 1 callers
Function
queryScrollableCarousel
* Queries for ivars for scrollable carousel. * @param {Element} element * @return {{ * container: HTMLDivElement * cells: HTMLElement[] * }}
extensions/amp-carousel/0.1/build-dom.js:178
↓ 1 callers
Function
querySelectorAllInSlot
(slot, selector)
src/core/dom/query.js:424
↓ 1 callers
Method
queryServiceWorkerState_
* @return {Promise<ServiceWorkerState>} * @private
extensions/amp-web-push/0.1/web-push-service.js:341
↓ 1 callers
Function
querySlideScrollCarousel
* Queries for ivars for slidescroll. * @param {Element} element * @return {{ * slides: Element[] * slidesContainer: HTMLDivElement * slideW
extensions/amp-carousel/0.1/build-dom.js:249
↓ 1 callers
Function
queryStringHasFreshGaaParams
* Returns true if the query string contains fresh Google Article Access (GAA) params. * @param {string} queryString * @param {boolean} allowAllAcces
third_party/subscriptions-project/swg-gaa.js:1850
↓ 1 callers
Method
querySubscriptionStateRemotely
* Queries the service worker for the current subscription state. * @return {Promise<ServiceWorkerState>}
extensions/amp-web-push/0.1/web-push-service.js:371
↓ 1 callers
Method
queueTick_
* Queues the events to be flushed when tick function is set. * * @param {TickEventDef} data Tick data to be queued. * @private
src/service/performance-impl.js:910
↓ 1 callers
Function
quote
(t)
third_party/react-dates/bundle.js:1
↓ 1 callers
Function
r
(e,t)
examples/amp-script/todomvc.ssr.js:2
↓ 1 callers
Function
r
(e,n,t)
third_party/inputmask/bundle.js:1
↓ 1 callers
Function
radixPointHandler
(input, inputValue, caretPos)
third_party/inputmask/inputmask.js:1836
↓ 1 callers
Function
randomFalsy
()
build-system/server/routes/list.js:37
↓ 1 callers
Function
randomWhitespace
(min = 0)
extensions/amp-fx-collection/0.1/test/test-fx-type.js:136
↓ 1 callers
Method
randomlySelectUnsetExperiments_
* For easier unit testing. * @param {!Array<!../../../src/experiments.ExperimentInfo>} experimentInfoList * @return {!{[key: string]: string}}
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:525
↓ 1 callers
Function
re
(e)
examples/amp-script/todomvc.ssr.js:2
↓ 1 callers
Function
re
(n)
third_party/d3/d3.js:2
↓ 1 callers
Function
read
* Gets the persisted CID data as a promise. It tries to read from * localStorage first then from viewer if it is in embedded mode. * Returns null if
src/service/cid-impl.js:630
↓ 1 callers
Method
readAmpAdExit_
* TODO(#24080) Remove this when story ads have full ad network support. * This in intended to be a temporary hack so we can can support * ad ser
extensions/amp-story-auto-ads/0.1/story-ad-page.js:482
↓ 1 callers
Function
readFileContent
* @param {string} filename * @return {string}
build-system/eslint-rules/forbidden-terms-config.js:22
↓ 1 callers
Function
readFromReadable
* Creates a promise which reads from a stream. * @param {string} name * @param {!stream.Readable} readable * @return {Promise<string>}
validator/js/nodejs/index.js:58
↓ 1 callers
Function
readFromStdin
* Creates a promise which reads from standard input. Even though it would * be easy to make a function that just returns the data, we return a promis
validator/js/nodejs/index.js:80
↓ 1 callers
Function
readJsconfigPaths
* Reads import paths from tsconfig.json. This file is used by VSCode for * Intellisense/auto-import. Rather than duplicate and require updating both
build-system/babel-config/import-resolver.js:26
↓ 1 callers
Function
readLocalStorage
* @param {!Window} win * @return {?JsonObject}
extensions/amp-story/1.0/history.js:136
↓ 1 callers
Method
readPlayerConfig_
* Gets publisher configuration for the player * @private * @return {?ConfigDef}
src/amp-story-player/amp-story-player-impl.js:517
↓ 1 callers
Method
readyState
@return {!ReadyState_Enum}
src/custom-element.js:301
↓ 1 callers
Method
readyToPlaceAd_
* Determine if user has seen enough pages to show an ad. We want a certain * number of pages before the first ad, and then a separate interval *
extensions/amp-story-auto-ads/0.1/algorithm-count-pages.js:95
↓ 1 callers
Method
rebuildDomWhenReady_
@private
src/service/resources-impl.js:229
↓ 1 callers
Method
recalculateMargins_
* Margins can be of `vh` unit which means they may need to be recalculated * when viewport height changes. * @private
extensions/amp-position-observer/0.1/amp-position-observer.js:398
↓ 1 callers
Function
recaptchaServiceForDoc
(element)
extensions/amp-recaptcha-input/0.1/amp-recaptcha-service.js:395
↓ 1 callers
Method
reconstructWhenReparented
* Whether the element needs to be reconstructed after it has been * re-parented. Many elements cannot survive fully the reparenting and * ar
src/custom-element.js:1768
↓ 1 callers
Method
reconstructWhenReparented
@override
src/builtins/amp-img/amp-img.js:303
↓ 1 callers
Method
record
* @param {*} widget * @return {void}
extensions/amp-addthis/0.1/addthis-utils/monitors/active-tools-monitor.js:17
↓ 1 callers
Method
recordLatestRead_
* If the latest read paragraph has changed, record it and update server. * @param {number} paragraphIdx * @private
extensions/amp-access-scroll/0.1/read-depth-tracker.js:76
↓ 1 callers
Function
recursive
(countdown)
test/unit/core/types/function/test-function.js:48
↓ 1 callers
Method
redirectToGooglePlay_
* Redirect user to Google Pay app in Google Play store * * @private * @returns {!Promise<!Object>} Rejected promise with error message
third_party/subscriptions-project/swg.js:17099
↓ 1 callers
Method
redirectToUrl
* Redirects the top-level frame to another URL. * * This is wrapped as a method for testing purposes, because window.location * cannot be moc
extensions/amp-web-push/0.1/amp-web-push-permission-dialog.js:264
↓ 1 callers
Method
redirectTopLocation_
* @param {string} link * @private
extensions/amp-app-banner/0.1/amp-app-banner.js:466
↓ 1 callers
Function
rediscoverChildren
(node)
src/core/context/index.js:70
↓ 1 callers
Method
rediscoverChildren
* Reruns discovery on the children of the specified node, if any. * * @param {Node} node
src/core/context/node.js:167
↓ 1 callers
Function
reduceSearch
* @todo determine if we can reduce the request to nothing & return false * @todo usage of RTC may be applicable here for macros * @todo check if cli
ads/vendors/adventive.js:135
↓ 1 callers
Function
referencesPureFnImport
* @param {import('@babel/core').NodePath} path * @return {boolean}
build-system/babel-plugins/babel-plugin-deep-pure/index.js:19
↓ 1 callers
Function
referrerDomain
* Strips everything but the domain from referrer string. * @param {!../../../src/service/ampdoc-impl.AmpDoc} ampdoc * @return {string}
extensions/amp-dynamic-css-classes/0.1/amp-dynamic-css-classes.js:8
↓ 1 callers
Function
reflow
* Utility function which triggers layout on the element. This is necessary * to invoke when reapplying the same label animation class so the animatio
extensions/amp-gwd-animation/0.1/amp-gwd-animation-impl.js:540
↓ 1 callers
Method
refresh
@override
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:1285
↓ 1 callers
Method
refresh
()
extensions/amp-render/1.0/component.type.js:22
↓ 1 callers
Method
refreshAccess_
@private
extensions/amp-onetap-google/0.1/amp-onetap-google.js:180
↓ 1 callers
Method
refreshAmpAccess_
* @return {boolean} * @private
extensions/amp-onetap-google/0.1/amp-onetap-google.js:198
↓ 1 callers
Method
refreshAmpSubscriptions_
* @return {!Promise<boolean>} * @private
extensions/amp-onetap-google/0.1/amp-onetap-google.js:219
↓ 1 callers
Method
refreshBatchInterval_
* Schedule sending request regarding to batchInterval
extensions/amp-analytics/0.1/requests.js:344
↓ 1 callers
Method
refreshDefaultRecBox_
* Rehydrates the default recommendation box element * * @return {!Promise}
extensions/amp-next-page/1.0/service.js:1086
↓ 1 callers
Function
regexEscape
* Escape any regex flags other than `*` * @param {string} str * @return {*} TODO(#23582): Specify return type
extensions/amp-analytics/0.1/linker-manager.js:494
↓ 1 callers
Function
register
()
src/runtime.js:211
↓ 1 callers
Method
registerAction
* @param {string} action * @param {function()} fn
src/service/video-manager-impl.js:267
↓ 1 callers
Method
registerAll_
@private
extensions/amp-video-docking/0.1/amp-video-docking.js:342
↓ 1 callers
Method
registerAndPreloadBackgroundAudio_
* Handles a background-audio attribute set on an <amp-story> tag. * @private
extensions/amp-story/1.0/amp-story.js:2206
↓ 1 callers
Method
registerCommonActions_
* Register common actions such as play, pause, etc... on the video element * so they can be called using AMP Actions. * For example: <button on=
src/service/video-manager-impl.js:245
↓ 1 callers
Method
registerContainer
* @param {!Element} container * @param {?Element=} opt_root
src/utils/display-observer.js:178
↓ 1 callers
Method
registerEventFilterer
* @overrides
third_party/subscriptions-project/swg.js:7262
↓ 1 callers
Method
registerEventHandlers_
* Register event handlers to pass events to iframe * @private
extensions/amp-delight-player/0.1/amp-delight-player.js:418
↓ 1 callers
Method
registerForAutoFullscreen
@param {!VideoEntry} entry
src/service/video-manager-impl.js:317
↓ 1 callers
Function
registerGlobalListenerIfNeeded
* Registers the global listenFor event listener if it has yet to be. * @param {?Window} parentWin
src/iframe-helper.js:178
↓ 1 callers
Method
registerIframeMessaging_
* Registers 'postMessage' action and 'message' event. * @private
extensions/amp-iframe/0.1/amp-iframe.js:700
↓ 1 callers
Method
registerLink_
* Classifies all links * @param {Element} element *
extensions/amp-ad-network-fake-impl/0.1/external-reorder-head-transformer.js:214
↓ 1 callers
Method
registerMedia_
* Registers the given media. * @param {!./media-pool.MediaPool} mediaPool * @param {!Element} mediaEl * @return {!Promise} Promise that resol
extensions/amp-story/1.0/amp-story-page.js:1317
↓ 1 callers
Method
registerMenuItems_
* Find all menu items under this mega menu and register them if they are not * already registered. * @private
extensions/amp-mega-menu/0.1/amp-mega-menu.js:137
↓ 1 callers
Method
registerMeta_
* Classifies all elements with meta tags * @param {Element} element *
extensions/amp-ad-network-fake-impl/0.1/external-reorder-head-transformer.js:114
↓ 1 callers
Method
registerNavigateToMutator
* @param {function(string)} callback * @param {number} priority
src/service/navigation.js:645
↓ 1 callers
Method
registerPanningGesture_
* Registers a Swipe gesture to handle panning when the content is zoomed. * @private
extensions/amp-pan-zoom/0.1/amp-pan-zoom.js:631
↓ 1 callers
Method
registerPosition_
@private
extensions/amp-ad/0.1/amp-ad-xorigin-iframe-handler.js:567
↓ 1 callers
Method
registerSafeframeHost
* Registers this instance as the host API for the current sentinel. * If the global safeframe listener has not yet been created, it creates * th
extensions/amp-ad-network-doubleclick-impl/0.1/safeframe-host.js:292
↓ 1 callers
Method
registerScript_
* Classifies all elements with script tags * @param {Element} element *
extensions/amp-ad-network-fake-impl/0.1/external-reorder-head-transformer.js:130
↓ 1 callers
Method
registerServiceWorker_
()
examples/pwa/pwa.js:56
↓ 1 callers
Function
registerSlot
(slot)
ads/vendors/springAds.js:13
↓ 1 callers
Method
registerStyle_
* Classifies all elements with style tags * @param {Element} element *
extensions/amp-ad-network-fake-impl/0.1/external-reorder-head-transformer.js:188
↓ 1 callers
Method
registerSubmenuElements_
Give submenu open/close buttons appropriate roles and * add them to tab order for accessibility. * @private
extensions/amp-nested-menu/0.1/amp-nested-menu.js:85
↓ 1 callers
Method
registerTemplate_
* Registers an extended template. This function should typically be called * through the registerTemplate method on the AMP runtime. * @param {s
src/service/template-impl.js:308
↓ 1 callers
Method
registerToApesterEvents_
* Registers to apester events. * @private
extensions/amp-apester-media/0.1/amp-apester-media.js:421
↓ 1 callers
Method
registerTouchGestures_
* Install gestures for touch * @private
extensions/amp-image-slider/0.1/amp-image-slider.js:352
↓ 1 callers
Method
register_
* Registers an fx-enabled element with its requested fx providers. * @param {!Element} element
extensions/amp-fx-collection/0.1/amp-fx-collection.js:65
↓ 1 callers
Method
register_
* Verifies the specified config as a valid {@code NextPageConfig} and * registers the {@link NextPageService} for this document. * @param {!Next
extensions/amp-next-page/0.1/amp-next-page.js:239
↓ 1 callers
Function
rejectServicePromiseInternal
* @param {!Object} holder * @param {string} id of the service. * @param {*} error
src/service-helpers.js:434
← previous
next →
10,901–11,000 of 18,703, ranked by callers