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
stubPostMessage
(element)
extensions/amp-google-read-aloud-player/0.1/test/test-amp-google-read-aloud-player.js:84
↓ 1 callers
Function
stubXhr
()
extensions/amp-analytics/0.1/test/test-config.js:987
↓ 1 callers
Method
submittingWithTrust_
* Triggers the analytics and renders any template for submitting state. * @param {ActionTrust_Enum} trust
extensions/amp-form/0.1/amp-form.js:851
↓ 1 callers
Function
succeed
()
extensions/amp-access/0.1/test/test-amp-login-done-dialog.js:65
↓ 1 callers
Function
summarizeResults
* Summarize the results of linting all files. * @param {object} results * @param {object} fixedFiles
build-system/tasks/lint.js:70
↓ 1 callers
Function
summaryCommitMessage
* @param {{ * removed: string[], * cleanupIssues: Array<Object>, * cutoffDateFormatted: string, * modifiedSourceFiles: Array<string>, *
build-system/tasks/sweep-experiments/index.js:299
↓ 1 callers
Function
supportsDocumentRoot
(win)
src/polyfills/stubs/intersection-observer-stub.js:96
↓ 1 callers
Function
supportsFullscreenViaApi
* @param {!AmpElement} video * @return {boolean} * @restricted
src/service/video-manager-impl.js:1034
↓ 1 callers
Function
supportsNativeCrypto
(win)
ads/google/a4a/utils.js:142
↓ 1 callers
Method
supportsPageHide_
* Detect support for the pagehide event. * IE<=10 and Opera Mini do not support the pagehide event and * possibly others, so we feature-detect s
extensions/amp-analytics/0.1/events.js:1741
↓ 1 callers
Method
supportsPlatform
* Whether the component supports video playback in the current platform. * If false, component will be not treated as a video component. * @retu
src/video-interface.js:45
↓ 1 callers
Method
supportsPlatform
@override
extensions/amp-jwplayer/0.1/amp-jwplayer.js:125
↓ 1 callers
Method
supportsPlatform
@override
extensions/amp-3q-player/0.1/amp-3q-player.js:241
↓ 1 callers
Method
supportsPlatform
@override
extensions/amp-slikeplayer/0.1/amp-slikeplayer.js:225
↓ 1 callers
Method
supportsPositionFixed
@override
src/service/viewport/viewport-impl.js:438
↓ 1 callers
Function
supportsPrefetch
* Returns whether or not link rel=prefetch is supported. * @param {!Document} doc * @return {boolean}
extensions/amp-install-serviceworker/0.1/amp-install-serviceworker.js:440
↓ 1 callers
Function
supportsUnderProto
* Tests whether setting '__proto__' will change the prototype chain of an * object. Only needed for old IE. * @return {boolean}
src/polyfills/custom-elements.js:815
↓ 1 callers
Method
swapPoolMediaElementIntoDom_
* Replaces a media element that was originally in the DOM with a media * element from the pool. * @param {!PlaceholderElementDef} placeholderEl
extensions/amp-story/1.0/media-pool.js:505
↓ 1 callers
Method
swipeGesture_
* Handles a swipe gesture, updating the current swipe to dismiss state. * @param {!SwipeDef} data
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:633
↓ 1 callers
Method
swipeMove
* @param {!SwipeDef} data The data for the swipe.
extensions/amp-lightbox-gallery/0.1/swipe-to-dismiss.js:332
↓ 1 callers
Method
swipeMove
* Handles a swipe move. * @param {!SwipeDef} data
extensions/amp-sidebar/0.2/swipe-to-dismiss.js:151
↓ 1 callers
Method
swipeMove
* Handles a swipe move. * @param {!SwipeDef} data
extensions/amp-sidebar/0.1/swipe-to-dismiss.js:151
↓ 1 callers
Method
switchDelta_
* Switches to a page in the story given a delta. If new index is out of * bounds, it will go to the last or first page (depending on direction).
extensions/amp-story/1.0/amp-story.js:2504
↓ 1 callers
Method
switchToShadow
* Switch controller to shadowRoot body hosted by given element. * @param {!ElementHandle<!WebElement>} handle * @return {!Promise<void>}
build-system/tasks/e2e/selenium-webdriver-controller.js:648
↓ 1 callers
Function
sxgTransform
( node: posthtml.Node, options: OptionSet = {} )
build-system/server/new-server/transforms/sxg/sxg-transform.ts:7
↓ 1 callers
Function
syncIncident
* Syncs incident with cherry-pick progress * @return {Promise<void>}
build-system/status-page/incident.js:121
↓ 1 callers
Function
syncPromise
(response)
extensions/amp-date-countdown/1.0/test/test-component.js:33
↓ 1 callers
Function
syncPromise
(response)
extensions/amp-date-display/1.0/test/test-component.js:35
↓ 1 callers
Method
syncRemoteConsentState_
* Clear cache for server side decision and then sync.
extensions/amp-consent/0.1/amp-consent.js:668
↓ 1 callers
Function
tagCannotBeCalled
* @param {CompilerNode} node
build-system/eslint-rules/html-template.js:20
↓ 1 callers
Method
tagNeedsBackground_
* @return {boolean} True if the loaderBackground should be used for the * element. * @private
extensions/amp-loader/0.1/amp-loader.js:214
↓ 1 callers
Method
takeFormDataSnapshot_
* @return {!FormData} * @private
extensions/amp-form/0.1/form-dirtiness.js:87
↓ 1 callers
Method
takeScreenshot
* @param {string} path * @return {!Promise<void>} An encoded string representing the image data
build-system/tasks/e2e/selenium-webdriver-controller.js:585
↓ 1 callers
Method
templatesForSsr_
* If present, finds and returns the success and error response templates. * Note that we do not render the submitting state template and only *
extensions/amp-form/0.1/amp-form.js:809
↓ 1 callers
Function
test
(string)
build-system/babel-plugins/babel-plugin-transform-html-template/test/fixtures/transform-assertions/other-template-literals/output.js:7
↓ 1 callers
Function
test
(string)
build-system/babel-plugins/babel-plugin-transform-html-template/test/fixtures/transform-assertions/other-template-literals/input.js:6
↓ 1 callers
Function
testIframeCaptioned
(iframe)
extensions/amp-instagram/0.1/test/test-amp-instagram.js:81
↓ 1 callers
Function
testPassiveEventListeners
()
third_party/react-dates/bundle.js:1
↓ 1 callers
Function
testRegExp
(re, string)
src/bento/third_party/mustache/mustache.js:60
↓ 1 callers
Function
testRegExp
(re, string)
third_party/mustache/mustache.js:43
↓ 1 callers
Function
testScopeSelector
* Test that the :scope selector is supported and behaves correctly. * @param {Element|ShadowRoot} el * @return {boolean}
src/core/dom/css-selectors.js:37
↓ 1 callers
Function
throttle
* Creates a wrapper function which ensures that provided callback will be * invoked only once during the specified delay period. * * @p
third_party/resize-observer-polyfill/ResizeObserver.js:749
↓ 1 callers
Function
throttle
* Creates a wrapper function which ensures that provided callback will be * invoked only once during the specified delay period. * * @p
third_party/resize-observer-polyfill/ResizeObserver.install.js:748
↓ 1 callers
Method
throttledScroll_
* This method is called about every 3 frames (assuming 60hz) and it * is called in a vsync measure task. * @param {number} referenceTime Time wh
src/service/viewport/viewport-impl.js:1030
↓ 1 callers
Method
tickCumulativeLayoutShiftScore_
* Tick the layout shift score metric. * * A value of the metric is recorded in under two names, `cls-1` and `cls-2`, * for the first two time
src/service/performance-impl.js:683
↓ 1 callers
Method
tickCumulativeMetrics_
* Tick the metrics whose values change over time. * @private
src/service/performance-impl.js:578
↓ 1 callers
Method
tickLargestContentfulPaint_
* Tick the largest contentful paint metrics. * Uses entry.startTime, which equates to: `renderTime ?? loadTime`. We can't * always use one or th
src/service/performance-impl.js:710
↓ 1 callers
Method
tickLayoutShiftScore_
* Tick the layout shift metric, following the latest CWV standard. This uses * a 5s maximum window with a 1s gap between events to define a "sessio
src/service/performance-impl.js:592
↓ 1 callers
Method
tieCloseButton_
* Add close button event listener to button we created * @private
extensions/amp-lightbox/0.1/amp-lightbox.js:456
↓ 1 callers
Method
timeSinceStart
* Returns time since start in milliseconds. * @return {number}
src/service/timer-impl.js:39
↓ 1 callers
Method
timeUpdateActionEvent_
* Triggers a LOW-TRUST timeupdate event consumable by AMP actions. * Frequency of this event is controlled by SECONDS_PLAYED_MIN_DELAY and is *
src/service/video-manager-impl.js:157
↓ 1 callers
Function
timeout
* @param {number} ms * @return {!Promise}
test/e2e/test-amp-story-player-prerender.js:10
↓ 1 callers
Function
timeout
* @param {number} ms * @return {!Promise}
extensions/amp-accordion/0.1/test/integration/test-amp-accordion.js:49
↓ 1 callers
Function
timer
(callback, timeMs)
ads/inabox/util.js:38
↓ 1 callers
Method
title
@return {string}
extensions/amp-next-page/1.0/page.js:83
↓ 1 callers
Method
toArray_
(value)
third_party/subscriptions-project/config.js:766
↓ 1 callers
Function
toEsmName
* @param {string} name * @return {string}
build-system/tasks/helpers.js:193
↓ 1 callers
Function
toExtension
(url: URL, extension: string)
build-system/server/new-server/transforms/utilities/cdn-tag.ts:68
↓ 1 callers
Function
toHex
(buffer)
third_party/subscriptions-project/swg.js:3328
↓ 1 callers
Function
toPosix
* To support Windows, use posix separators for all filepath hashes. * @param {string} filepath * @return {string}
build-system/babel-plugins/babel-plugin-transform-jss/create-hash.js:18
↓ 1 callers
Function
toPosix
* Even though we are using the path module, JS Modules should never have * their paths specified in Windows format. * @param {string} path * @retur
build-system/babel-plugins/babel-plugin-transform-promise-resolve/index.js:56
↓ 1 callers
Function
toPosix
(str)
build-system/common/utils.js:82
↓ 1 callers
Function
toString
(val)
third_party/subscriptions-project/swg.js:3014
↓ 1 callers
Function
toString
(val)
third_party/subscriptions-project/swg-gaa.js:309
↓ 1 callers
Function
toUpperCase
(str)
validator/js/engine/htmlparser-interface.js:26
↓ 1 callers
Method
toggleCaptions
* Shows or hides the captions. * @param {boolean} captionsState * @public
extensions/amp-video/0.1/amp-video.js:1053
↓ 1 callers
Method
toggleExpandMutations_
* Callback function to execute when mutations are observed on "data-expand". * @param {!Array<!MutationRecord>} mutations * @param {!ActionTrust
extensions/amp-accordion/0.1/amp-accordion.js:615
↓ 1 callers
Method
toggleExperiment
* Toggles an experiment in an AMP document. Uses the current domain. * @param {string} name * @param {boolean} toggle * @return {!Promise}
build-system/tasks/e2e/amp-driver.js:162
↓ 1 callers
Function
toggleExperiments
* Toggle the given experiments for the given test URL domain. * @param {!AmpDriver} ampDriver * @param {string} testUrl * @param {!Array<string>} e
build-system/tasks/e2e/describes-e2e.js:693
↓ 1 callers
Method
toggleLoadingSpinner_
* Has to be called through the `debounceToggleLoadingSpinner_` method, to * avoid the spinner flashing on the screen when the video loops, or durin
extensions/amp-story/1.0/amp-story-page.js:1813
↓ 1 callers
Method
togglePlaceholder
* Hides or shows the placeholder, if available. * @param {boolean} show * @package @final
src/custom-element.js:1937
↓ 1 callers
Method
toggleState_
* @param {string} type * @param {boolean} state * @private
extensions/amp-subscriptions/0.1/renderer.js:86
↓ 1 callers
Method
toggleTabbableElements_
* Toggles the tabbable elements (buttons, links, etc) to only reach them when page is active. * @param {boolean} toggle
extensions/amp-story/1.0/amp-story-page.js:2004
↓ 1 callers
Method
toggleTabbableElements_
* Toggles the tabbable elements (buttons, links, etc) to only reach them when page is active. * @param {boolean} toggle
extensions/amp-story-interactive/0.1/amp-story-interactive-abstract.js:830
↓ 1 callers
Method
toggle_
* Handles toggle action. * @param {number} index * @param {boolean|undefined} value * @param {!ActionTrust_Enum} trust * @return {!Promise
extensions/amp-selector/0.1/amp-selector.js:407
↓ 1 callers
Function
tokenPrefixMatch
(item: string, input: string)
src/bento/components/bento-autocomplete/1.0/component/token-prefix-match.ts:43
↓ 1 callers
Function
tokenizeMethodArguments
* Tokenizes and returns method arguments, e.g. target.method(arguments). * @param {!ParserTokenizer} toks * @param {!Function} assertToken * @param
src/service/action-impl.js:1047
↓ 1 callers
Method
tombstone_
* Empties out the current child's subtree. If no counterpart * element is found in the live DOM, do nothing. * Returns the number of actual tomb
extensions/amp-live-list/0.1/amp-live-list.js:525
↓ 1 callers
Function
topCornerRect
( original, container, horizontalEdge, widthRatio, widthMin, marginRatio, marginMax )
extensions/amp-video-docking/0.1/math.js:120
↓ 1 callers
Method
topSentinelPositionChanged_
* Called when a position change is detected on the injected * top sentinel element * @param {?PositionInViewportEntryDef} position
extensions/amp-next-page/1.0/visibility-observer.js:93
↓ 1 callers
Function
topWindowUrlOrDomain
* @param {!Window} win * @return {?string}
ads/google/a4a/utils.js:434
↓ 1 callers
Function
topWindowUrlOrDomain
* @param {!Window} win * @param {string} referrer * @return {?string}
extensions/amp-ad-network-valueimpression-impl/0.1/amp-ad-network-valueimpression-impl.js:612
↓ 1 callers
Method
top_
* @return {!Window} * @private
third_party/subscriptions-project/swg.js:18136
↓ 1 callers
Method
trackAmpElementToBless_
* @param {!AmpElement} element * @private
extensions/amp-story/1.0/media-pool.js:752
↓ 1 callers
Method
transferTo
* Transfer the element from the body into the transfer layer. * @param {!ElementDef} unusedFe * @param {number} unusedIndex * @param {!Elemen
src/service/fixed-layer.js:962
↓ 1 callers
Function
transform
(fileLocation: string)
build-system/server/new-server/transforms/transform.ts:28
↓ 1 callers
Function
transformAjvCode
* Transforms ajv's generated code to make it usable in a bundle: * - Creates strings for error messages instead of an object. * - Removes exports
build-system/compile/json-schema/index.js:172
↓ 1 callers
Function
transformContents
* @param {string} filename * @param {string} contents * @param {string} hash * @param {object} babelOptions * @return {!Promise<!CacheMess
build-system/common/esbuild-babel.js:53
↓ 1 callers
Function
transformCssString
* Transform a css string using postcss. * @param {string} contents the css text to transform * @param {!Object=} opt_filename the filename of the f
build-system/tasks/css/jsify-css.js:87
↓ 1 callers
Function
transformProp
* @param {babel.NodePath<babel.types.ObjectProperty>} path * @return {?babel.Node}
build-system/babel-plugins/babel-plugin-jsx-style-object/index.js:79
↓ 1 callers
Function
transformShadowCss
(shadowRoot, css)
src/shadow-embed.js:200
↓ 1 callers
Method
transitionFromAdShowing_
* Called when switching away from an ad.
extensions/amp-story-auto-ads/0.1/amp-story-auto-ads.js:435
↓ 1 callers
Method
transitionImgIn_
* Animates an image from its current location to its target location in the * lightbox. * @param {!Element} sourceElement * @return {!Promise
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:971
↓ 1 callers
Method
transitionImgOut_
* Animate the lightbox image back to its original position in the page.. * @param {!Element} sourceElement * @return {!Promise} * @private
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:981
↓ 1 callers
Method
transitionToAdShowing_
* We are switching to an ad. * @param {number} adPageIndex * @param {string} adPageId
extensions/amp-story-auto-ads/0.1/amp-story-auto-ads.js:452
↓ 1 callers
Method
triggerActiveEventForPage_
@private
extensions/amp-story/1.0/amp-story.js:1614
↓ 1 callers
Method
triggerAnalyticsEvent_
* @param {number?} prevIndex * @param {number} newIndex * @private
extensions/amp-carousel/0.2/amp-carousel.js:610
↓ 1 callers
Method
triggerAnalyticsEvent_
* @param {number} newSlideIndex * @private
extensions/amp-carousel/0.1/slidescroll.js:997
↓ 1 callers
Method
triggerEnter_
* Dispatches the `enter` event. * @private
extensions/amp-position-observer/0.1/amp-position-observer.js:131
↓ 1 callers
Method
triggerEntitlementsResponse
* @param {!Promise<!../api/entitlements.Entitlements>} promise
third_party/subscriptions-project/swg.js:9061
← previous
next →
11,701–11,800 of 18,703, ranked by callers