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
verifyBinding_
* If current state of `element` matches `expectedValue`, returns null. * Otherwise, returns a tuple containing the expected and actual values. *
extensions/amp-bind/0.1/bind-impl.js:1481
↓ 1 callers
Function
verifyContainer
(controller, container)
extensions/amp-list/0.1/test-e2e/test-function-src.js:63
↓ 1 callers
Function
verifyGroupMarker
(maskToken)
third_party/inputmask/inputmask.js:352
↓ 1 callers
Function
verifyPath
* @param {*} node * @return {Object}
build-system/eslint-rules/json-configuration.js:17
↓ 1 callers
Method
verify_
* Wraps SubtleCrypto.verify(). * @param {!Uint8Array} signature * @param {!Uint8Array} data * @param {!webCrypto.CryptoKey} publicKey * @r
src/service/origin-experiments-impl.js:270
↓ 1 callers
Method
verify_
* Verifies expression results vs. current DOM state and returns an * array of bindings with mismatches (if any). * @param {{[key: string]: BindE
extensions/amp-bind/0.1/bind-impl.js:1085
↓ 1 callers
Method
verify_
* Sends the verify request if any group is ready to verify. * @return {!Promise<!UpdatedErrorsDef>} The list of elements whose state * must c
extensions/amp-form/0.1/form-verifiers.js:85
↓ 1 callers
Function
vi
(n)
third_party/d3/d3.js:2
↓ 1 callers
Method
videoPaused_
* Callback for when the video has been paused * @private
src/service/video-manager-impl.js:685
↓ 1 callers
Method
videoPlayed_
* Callback for when the video starts playing * @private
src/service/video-manager-impl.js:643
↓ 1 callers
Method
viewerInterceptsNavigation
* Requests navigation through a Viewer to the given destination. * * This function only proceeds if: * 1. The viewer supports the 'interceptN
src/service/navigation.js:715
↓ 1 callers
Method
viewportCallback
* See BaseElement method. * @param {boolean} inViewport
extensions/amp-ad/0.1/amp-ad-xorigin-iframe-handler.js:601
↓ 1 callers
Method
viewportCallback
* Handles when carousel comes into and out of viewport. * @param {boolean} inViewport
extensions/amp-carousel/0.1/scrollable-carousel.js:134
↓ 1 callers
Method
viewportCallback_
* @param {boolean} inViewport * @private
extensions/amp-ad/0.1/amp-ad-3p-impl.js:433
↓ 1 callers
Method
viewportCallback_
* @param {boolean} inViewport * @private
extensions/amp-apester-media/0.1/amp-apester-media.js:135
↓ 1 callers
Method
viewportCallback_
* @param {boolean} inViewport * @private
extensions/amp-image-slider/0.1/amp-image-slider.js:770
↓ 1 callers
Function
viqeoPlayerInitLoaded
* @param {Window} global * @param {object} VIQEO * @private
3p/viqeoplayer.js:13
↓ 1 callers
Function
visChangeEventName
()
test/integration/test-visibility-states.js:37
↓ 1 callers
Method
visibileChildren_
* Determines the child nodes that are "visible". We purposefully ignore Text * nodes that only contain whitespace since they do not contribute anyt
extensions/amp-fx-flying-carpet/0.1/amp-fx-flying-carpet.js:240
↓ 1 callers
Method
visibleOnUserAction_
* Defense in-depth against viewer communication issues: Will make the * document visible if it receives a user action without having been * made
src/service/viewer-impl.js:899
↓ 1 callers
Function
vn
(e)
examples/amp-script/vue-todomvc.js:7
↓ 1 callers
Function
vn
(t,n)
third_party/d3-geo-projection/d3-geo-projection.js:1
↓ 1 callers
Function
w
(t)
third_party/d3-geo-projection/d3-geo-projection.js:1
↓ 1 callers
Function
w
()
third_party/react-dates/bundle.js:1
↓ 1 callers
Function
waitFor
* Make the test runner wait until the value returned by the valueFn matches * the given condition. * @param {!WebDriver} driver * @param {function(
build-system/tasks/e2e/selenium-webdriver-controller.js:61
↓ 1 callers
Function
waitForAnimationPlay
(iconElement)
test/integration/test-video-players-helper.js:469
↓ 1 callers
Function
waitForClassName
(element, className)
extensions/amp-date-picker/0.1/test/integration/test-integration-maximum-nights.js:100
↓ 1 callers
Function
waitForDiscover
(...nodesOrContextNodes)
test/unit/core/context/test-node-subscribers.js:94
↓ 1 callers
Function
waitForEvent
* @param {!Object} env * @param {string} name * @return {!Promise}
extensions/amp-bind/0.1/test/integration/test-bind-impl.js:188
↓ 1 callers
Function
waitForFalsyAttribute
(element, attribute)
extensions/amp-date-picker/0.1/test/integration/test-integration-amp-date-picker-actions.js:289
↓ 1 callers
Method
waitForHandshakeRequest
* I'm waiting for the ampdoc to request for us to shake hands. * @return {!Promise}
extensions/amp-viewer-integration/0.1/viewer-for-testing.js:53
↓ 1 callers
Function
waitForImageToLoad
(ampImage)
extensions/amp-image-lightbox/0.1/test/integration/test-amp-image-lightbox.js:76
↓ 1 callers
Function
waitForImageToLoad
(ampImage)
extensions/amp-lightbox-gallery/0.1/test/integration/test-amp-lightbox-gallery.js:264
↓ 1 callers
Function
waitForImgLoad
(controller, el)
extensions/amp-base-carousel/0.1/test-e2e/helpers.js:10
↓ 1 callers
Function
waitForLightboxClose
(lightbox, carousel)
extensions/amp-lightbox-gallery/0.1/test/integration/test-amp-lightbox-gallery.js:257
↓ 1 callers
Function
waitForLightboxOpen
(document)
extensions/amp-image-lightbox/0.1/test/integration/test-amp-image-lightbox.js:69
↓ 1 callers
Function
waitForLightboxOpen
(lightbox)
extensions/amp-lightbox-gallery/0.1/test/integration/test-amp-lightbox-gallery.js:250
↓ 1 callers
Method
waitForMediaLayout_
* @return {!Promise} * @private
extensions/amp-story/1.0/amp-story-page.js:821
↓ 1 callers
Method
waitForPlaybackMediaLayoutStart_
* @return {!Promise} A promise that blocks until all playback media on the * page have begun their layouts. * @private
extensions/amp-story/1.0/amp-story-page.js:875
↓ 1 callers
Function
waitForRender
(el)
extensions/amp-jwplayer/1.0/test/test-amp-jwplayer.js:27
↓ 1 callers
Function
waitForRender
(element)
extensions/amp-brightcove/1.0/test/test-amp-brightcove.js:24
↓ 1 callers
Method
waitForScroll_
* @param {number} startingScrollLeft * @private
extensions/amp-carousel/0.1/scrollable-carousel.js:262
↓ 1 callers
Method
waitForScroll_
* Throttle scrolling events and update the lightbox * when scrolling slowly or when the scrolling ends. * @param {number} startingScrollTop *
extensions/amp-lightbox/0.1/amp-lightbox.js:743
↓ 1 callers
Function
waitForSelectorExistence
* Wait until the CSS selector exists in the page or until timed out. * * Timeout is set to CSS_SELECTOR_RETRY_MS * CSS_SELECTOR_RETRY_ATTEMPTS ms.
build-system/tasks/visual-diff/verifiers.js:211
↓ 1 callers
Method
waitForShadowRoot
* @param {string} hostSelector * @param {number=} timeout * @return {!Promise}
testing/helpers/service.js:275
↓ 1 callers
Method
waitForTemplateClass_
* Returns the promise that will eventually yield the template class. This * will wait until the actual template script has been downloaded and pars
src/service/template-impl.js:287
↓ 1 callers
Function
waitReadyForUpgrade
* Ensures that the element is ready for upgrade. Either returns immediately * with `undefined` indicating that no waiting is necessary, or returns a
src/service/custom-element-registry.js:112
↓ 1 callers
Function
waitRendered
()
extensions/amp-iframe/1.0/test/test-amp-iframe.js:20
↓ 1 callers
Method
wait_
* @return {!Promise} * @private
src/service/history-impl.js:682
↓ 1 callers
Function
walk
* @param {string} dest * @return {Promise<string[]>}
build-system/tasks/firebase.js:12
↓ 1 callers
Function
walkDir
* Generate a sequence of all files in a directory recursively. * @param {string} dir * @return {AsyncIterable<string>} * @yields {string}
build-system/tasks/make-extension/index.js:73
↓ 1 callers
Method
warnAboutInlineStylesIfNecessary_
* If the given element has a `style` attribute with a top/bottom CSS rule, * display a user error. FixedLayer's implementation currently overrides
src/service/fixed-layer.js:622
↓ 1 callers
Function
warnForConsoleError
()
testing/console-logging-setup.js:100
↓ 1 callers
Method
warnForTesting_
* @param {...*} args * @private
src/service/video-manager-impl.js:1526
↓ 1 callers
Method
warnOnError
* @param {string} message * @param {*} error * @visibleForTesting
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:1850
↓ 1 callers
Function
watchExtension
* Watches for non-JS changes within an extensions directory to trigger * recompilation. * * @param {string} extDir * @param {string} name * @para
build-system/tasks/extension-helpers.js:378
↓ 1 callers
Method
webviewPreHandshakePromise_
* @param {?Window} source * @param {string} origin * @return {!Promise} * @private
extensions/amp-viewer-integration/0.1/amp-viewer-integration.js:126
↓ 1 callers
Method
whenComplete
* @return {!Promise<*>} A promise that is resolved when the task has * completed execution.
extensions/amp-story/1.0/media-tasks.js:149
↓ 1 callers
Method
whenConnected_
* Returns a promise that resolves when the story is connected to the DOM. * @param {!StoryDef} story * @return {!Promise} * @private
src/amp-story-player/amp-story-player-impl.js:1547
↓ 1 callers
Method
whenDefined
* Returns a promise that waits until the custom element is defined. * If the custom element is already defined, returns a resolved promise. *
src/polyfills/custom-elements.js:147
↓ 1 callers
Method
whenDependenciesReady_
* Returns a promise that will be resolved when all dependencies used inside * the form tag are loaded and built (e.g. amp-selector) or 2 seconds ti
extensions/amp-form/0.1/amp-form.js:378
↓ 1 callers
Function
whenDocumentReady
* Returns a promise that is resolved when document is ready. * @param {!Document} doc * @return {!Promise<!Document>}
third_party/subscriptions-project/swg.js:10638
↓ 1 callers
Function
whenDocumentReady
* Returns a promise that is resolved when document is ready. * @param {!Document} doc * @return {!Promise<!Document>}
third_party/subscriptions-project/swg-gaa.js:1314
↓ 1 callers
Function
whenDocumentReady
* Returns a promise that is resolved when document is ready. * @param {!Document} doc * @return {!Promise<!Document>}
third_party/subscriptions-project/config.js:90
↓ 1 callers
Method
whenFirstPass
* @return {!Promise} when first pass executed.
src/service/resources-impl.js:1631
↓ 1 callers
Method
whenFirstPreviewed
* Returns a Promise that only ever resolved when the current * AMP document first reaches the `PREVIEW` visibility state. * @return {!Promise}
src/service/ampdoc-impl.js:673
↓ 1 callers
Method
whenFirstPreviewedOrVisible
* Returns a Promise that only ever resolved when the current * AMP document first reaches the `PREVIEW` visibility state. * @return {!Promise}
src/service/ampdoc-impl.js:664
↓ 1 callers
Method
whenFirstScroll_
* Resolve when the document scrolls for the first time or loads in * scrolled position. * @return {!Promise} * @private
extensions/amp-next-page/1.0/service.js:248
↓ 1 callers
Method
whenHasAllPurposeConsents
* Wait for our purpose consents to be collected, * either locally or from update. Let amp-consent handle * when to resolve the promis (via updat
extensions/amp-consent/0.1/consent-state-manager.js:242
↓ 1 callers
Method
whenInitialContentLoaded_
* @param {number} timeoutMs The maximum amount of time to wait, in * milliseconds. * @return {!Promise} A promise that is resolved when the
extensions/amp-story/1.0/amp-story.js:1216
↓ 1 callers
Function
whenLoaded
* @param {!Element} element * @return {!Promise}
extensions/amp-auto-lightbox/0.1/amp-auto-lightbox.js:286
↓ 1 callers
Method
whenReady
* Function to return a promise for when * it is finished delaying render, and is ready. * NOTE: This should simply return Promise.resolve, *
src/render-delaying-services.js:46
↓ 1 callers
Method
whenRenderStarted
* Returns a promise that will resolve when the embed document is ready. * Notice that this signal coincides with the embed's `render-start`. * @
src/friendly-iframe-embed.js:438
↓ 1 callers
Method
whenUpgraded
@return {!Promise}
src/custom-element.js:352
↓ 1 callers
Method
whenViewed_
* The promise will be resolved when a view of this document has occurred. It * will be rejected if the current impression should not be counted as
extensions/amp-access/0.1/amp-access.js:627
↓ 1 callers
Function
whenVisiblePromise
* @param {!Element} el * @param {!Element} root * @return {!Promise<undefined>} A Promise that resolves once the element has * become visibile w
extensions/amp-base-carousel/0.1/test/test-child-layout-manager.js:28
↓ 1 callers
Function
whenWithinViewport
(element, viewportNum)
extensions/amp-a4a/0.1/within-viewport.js:16
↓ 1 callers
Function
widgetURL
(pinID)
extensions/amp-pinterest/0.1/test/test-amp-pinterest.js:30
↓ 1 callers
Function
withFocusedTrueHack
* Fixes bug where overlay single date pickers do not open to * the month containing the selected date. * https://github.com/airbnb/react-dates/issue
extensions/amp-date-picker/0.1/single-date-picker.js:86
↓ 1 callers
Function
wn
(n,t,e)
third_party/d3/d3.js:1
↓ 1 callers
Function
work
()
extensions/amp-live-list/0.1/test/test-poller.js:14
↓ 1 callers
Method
workaroundWebkitDragAndScrollIssue_
* Works around https://bugs.webkit.org/show_bug.cgi?id=184250 * @return {!UnlistenDef} * @private
extensions/amp-video-docking/0.1/amp-video-docking.js:1338
↓ 1 callers
Function
wr
(n)
third_party/d3/d3.js:2
↓ 1 callers
Function
wrap
* Wraps a buildDom function with functionality that every component needs.
src/compiler/builders.ts:24
↓ 1 callers
Function
wrap
(el, wrapper)
extensions/amp-auto-lightbox/0.1/test/test-amp-auto-lightbox.js:50
↓ 1 callers
Function
wrapHTMLElement
* Wraps HTMLElement in a Reflect.construct constructor, so that transpiled * classes can `_this = superClass.call(this)` during their construction.
src/polyfills/custom-elements.js:770
↓ 1 callers
Function
wrapWait
* Wrap the given wait function with the given mutation function, * while still allowing it to be mutated again in the future by * the inner opt_muta
build-system/tasks/e2e/controller-promise.js:79
↓ 1 callers
Function
wrapper
* @param {Object} obj * @param {string} name
test/unit/core/context/test-node-values.js:90
↓ 1 callers
Function
wrapper
* @param {Object} obj * @param {string} name
test/unit/core/context/test-node-subscribers.js:70
↓ 1 callers
Function
wrapper
* @param {Object} obj * @param {string} name
test/unit/core/context/test-node-discover.js:60
↓ 1 callers
Function
writeChunk
()
build-system/server/app.js:1093
↓ 1 callers
Function
writeCss
* Writes CSS to build folder * * @param {string} css * @param {string} jsFilename * @param {string} cssFilename * @param {boolean} append append
build-system/tasks/css/index.js:98
↓ 1 callers
Function
writeCssBinaries
* @param {string} name * @param {string[]} versions * @param {string} css * @return {!Promise}
build-system/tasks/extension-helpers.js:486
↓ 1 callers
Function
writeCssEntryPoint
* @param {string} path * @param {string} outJs * @param {string} outCss * @param {boolean} append * @return {Promise<void>}
build-system/tasks/css/index.js:116
↓ 1 callers
Function
writeOutput
* @param {object} output * @param {string} filename * @return {Promise<void>}
build-system/tasks/e2e/mocha-custom-json-reporter.js:21
↓ 1 callers
Function
writeOutput
(vendor, output)
extensions/amp-analytics/0.1/test/test-vendors.js:215
↓ 1 callers
Function
writeStoryLocalizationFiles
* Write the localization files to dist/v0/ * @return {Promise<void>}
build-system/tasks/build-story-localization.js:74
↓ 1 callers
Function
writeVersionFiles
* Writes the verion.txt file. * @return {!Promise}
build-system/tasks/dist.js:152
↓ 1 callers
Function
x
(a, b)
third_party/closure-library/sha384-generated.js:95
↓ 1 callers
Function
xhrRequest
* * * @param {string} input * @param {!FetchInitDef} init * @return {!Promise<!{response: !Response, xhr: !XMLHttpRequest}>} * @private
src/document-fetcher.js:54
← previous
next →
12,101–12,200 of 18,703, ranked by callers