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
Method
unobserve
* @param {!Element} element
src/service/position-observer/position-observer-impl.js:97
↓ 3 callers
Function
unobserveIntersections
* Unsubscribes a callback from receiving IntersectionObserver updates for an element. * * @param {Element} element * @param {function(IntersectionO
src/core/dom/layout/viewport-observer.js:88
↓ 3 callers
Method
unregister
* Relinquish as many element references as possible. * @param {{pubId:string, iframe:Element}} param
extensions/amp-addthis/0.1/config-manager.js:249
↓ 3 callers
Method
unregister
* Function to unregister as a dependant of the AmpRecaptcha serivce. * Used to create/destroy recaptcha boostrap iframe.
extensions/amp-recaptcha-input/0.1/amp-recaptcha-service.js:121
↓ 3 callers
Function
unruly
(global, data, scriptLoader = loadScript)
ads/vendors/unruly.js:8
↓ 3 callers
Method
unsubscribe
* Unsubscribes a user from web push notifications. * * This action is exposed from this service and is called from the config * element. *
extensions/amp-web-push/0.1/web-push-service.js:816
↓ 3 callers
Method
update
* To update the position of entry element when it is ready. * Called when updateAllEntries, or when first observe an element. * @param {boolean=
src/service/position-observer/position-observer-worker.js:112
↓ 3 callers
Method
updateAlignment
* @param {string} alignment How to align slides when snapping or scrolling * to the propgramatticaly (auto advance or next/prev). This should be
extensions/amp-base-carousel/0.1/carousel.js:509
↓ 3 callers
Method
updateAndGetElementSelections_
* Updates the input value field with the textual representation of the selected element * and returns an object containing both the textual represe
extensions/amp-autocomplete/0.1/amp-autocomplete.js:1058
↓ 3 callers
Method
updateBaseUrl_
* @private
extensions/amp-megaphone/0.1/amp-megaphone.js:159
↓ 3 callers
Method
updateChildrenInViewport_
* Update the inViewport status of children when scroll position changed. * @param {number} newPos * @private
extensions/amp-lightbox/0.1/amp-lightbox.js:784
↓ 3 callers
Method
updateDetails
* Updates event details. * @param {!StoryAnalyticsEvent} eventType * @param {Element=} element * @visibleForTesting * @return {!JsonObject
extensions/amp-story/1.0/story-analytics.js:152
↓ 3 callers
Method
updateFocus_
* Update focus such that only one option in the selector can receive focus. * When keyboard-select-mode is not none, this function handles focus as
extensions/amp-selector/0.1/amp-selector.js:237
↓ 3 callers
Method
updateFontSize_
@private
extensions/amp-fit-text/0.1/amp-fit-text.js:133
↓ 3 callers
Function
updateLengthStyle
(axis, el, length)
extensions/amp-base-carousel/0.1/dimensions.js:83
↓ 3 callers
Function
updateOverflow_
(content, measurer, maxHeight, fontSize)
extensions/amp-fit-text/0.1/amp-fit-text.js:188
↓ 3 callers
Function
updatePackages
* This function updates repo root packages. * * 1. Update root-level packages if necessary. * 2. Apply various custom patches if not already applie
build-system/common/update-packages.js:210
↓ 3 callers
Method
updatePanZoomBounds_
* Updates X/Y bounds based on the provided scale value. The min/max bounds * are calculated to allow full pan of the image regardless of the scale
extensions/amp-image-viewer/0.1/amp-image-viewer.js:614
↓ 3 callers
Method
updateParentContextNode_
* Update the node from which the parent value is used. * * @param {IContextPropUsed<?, ?>} used * @param {?ContextNode} newParentContextNode
src/core/context/values.js:626
↓ 3 callers
Method
updateProgress
* @param {string} pageId The id of the page whose progress should be * changed. * @param {number} progress A number from 0.0 to 1.0, represe
extensions/amp-story/1.0/amp-story-system-layer.js:976
↓ 3 callers
Method
updateRelativePos
* Calculates the position of the element relative to the viewport * based on the positions of the injected bottom and top sentinel elements *
extensions/amp-next-page/1.0/visibility-observer.js:287
↓ 3 callers
Method
updateState
@param {!PaginationButtonStateDef} state
extensions/amp-story/1.0/pagination-buttons.js:103
↓ 3 callers
Method
updateStoryStoreState_
* @public * @param {?number} option
extensions/amp-story-interactive/0.1/amp-story-interactive-abstract.js:817
↓ 3 callers
Function
updateSubpackages
* This function updates the packages in a given task directory. * * 1. During CI, do a clean install. * 2. During local development, do an incremen
build-system/common/update-packages.js:232
↓ 3 callers
Function
updateTabPopup
* Updates the tabId's extension popup. * * @param {number} tabId ID of a tab.
validator/js/chromeextension/worker.js:231
↓ 3 callers
Method
updateTimeDelay
* Updates the delay (and derived values) from the given auto-advance string. * @param {string} autoAdvanceStr The value of the updated auto-advance
extensions/amp-story/1.0/page-advancement.js:929
↓ 3 callers
Method
updateVisibilityState_
* Updates the visibility state of the story inside the iframe. * @param {!StoryDef} story * @param {!VisibilityState_Enum} visibilityState *
src/amp-story-player/amp-story-player-impl.js:1447
↓ 3 callers
Method
updateWidgetVisibilitiesUnsubscribed_
@private
extensions/amp-web-push/0.1/web-push-service.js:666
↓ 3 callers
Method
update_
@private
src/core/context/subscriber.js:185
↓ 3 callers
Method
upgradeSelf
* Upgrades the custom element node, if a custom element has been registered * by this name. * * @param {!Node} node
src/polyfills/custom-elements.js:334
↓ 3 callers
Method
useControlSet_
* Sets displayed controls set. * @param {ControlSet} setName * @private
extensions/amp-video-docking/0.1/controls.js:246
↓ 3 callers
Function
useDatePickerInput
({ inputSelector, type, }: DatePickerInputProps)
extensions/amp-date-picker/1.0/component/use-date-picker-input.tsx:26
↓ 3 callers
Function
useMegaMenuItem
()
src/bento/components/bento-mega-menu/1.0/component/Item.tsx:60
↓ 3 callers
Function
useSlotContext
(ref, opt_props)
src/preact/slot.js:81
↓ 3 callers
Function
userInteractedWith
(video)
src/video-interface.js:583
↓ 3 callers
Function
ut
(e,t)
examples/amp-script/vue-todomvc.js:7
↓ 3 callers
Function
utf8EncodeSync
* Turn a string into UTF-8 bytes. * @param {string} string * @return {!Uint8Array}
third_party/subscriptions-project/swg.js:3204
↓ 3 callers
Function
v
(e)
examples/amp-script/todomvc.ssr.js:2
↓ 3 callers
Function
va
(e)
third_party/react-dates/bundle.js:1
↓ 3 callers
Function
validate
(data, schemaName = "object-enum")
build-system/babel-plugins/babel-plugin-transform-json-import/test/fixtures/transform-assertions/schema-object-enum/output.mjs:251
↓ 3 callers
Method
validateAttributeChange
* Returns whether an attribute addition/modification/removal is valid. * * This function's behavior should match that of addPurifyHooks(), excep
src/purifier/index.js:152
↓ 3 callers
Function
validateDimensions
* A helper function for determining whether a given width or height violates * some condition. * * Checks the width and height against their corres
ads/google/utils.js:163
↓ 3 callers
Method
validatePurposeConsents_
* Ensure purpose consents to be set are valid. * * @param {!Object} purposeObj
extensions/amp-consent/0.1/amp-consent.js:958
↓ 3 callers
Function
validateSecureContext
* Validate if is secure context. Returns null if context is secure, otherwise * return error message. * * See https://developer.mozilla.org/en-US/d
third_party/subscriptions-project/swg.js:16038
↓ 3 callers
Method
validateStickyAd
* Verify that the limits for sticky ads are not exceeded
extensions/amp-ad/0.1/amp-ad-ui.js:207
↓ 3 callers
Method
validateTCFPolicyVersion_
* Check if the opt_tcfPolicyVersion provided is a valid number to use. * @param {number=} opt_tcfPolicyVersion * @return {number|undefined}
extensions/amp-consent/0.1/amp-consent.js:973
↓ 3 callers
Method
validateTime_
* @param {number|undefined} value * @param {*} newValue * @param {string} field * @param {boolean=} opt_allowNegative * @private
extensions/amp-animation/0.1/web-animations.js:813
↓ 3 callers
Function
ve
(n,t)
third_party/d3/d3.js:2
↓ 3 callers
Function
verifyBundle_
* @param {boolean} condition * @param {string} field * @param {string} message * @param {string} name * @param {string} found
build-system/compile/bundles.config.js:226
↓ 3 callers
Function
verifyPositionAfterTimeout
* Wait for a certain period of time * and then check if the target position is reached.
extensions/amp-image-slider/0.1/test/integration/test-amp-image-slider.js:1102
↓ 3 callers
Function
verifySandbox
* Checks that element has expected sandbox attribute. * @param {!Element} element * @param {boolean} shouldSandbox
extensions/amp-a4a/0.1/test/test-amp-a4a.js:437
↓ 3 callers
Method
viewerCanRenderTemplates
* @protected @final * @return {boolean}
src/base-template.js:127
↓ 3 callers
Method
viewportCallback
* @param {boolean} inViewport * @protected
extensions/amp-a4a/0.1/amp-a4a.js:1546
↓ 3 callers
Method
viewportCallback
* Handles when carousel comes into and out of viewport. * @param {boolean} inViewport
extensions/amp-carousel/0.1/slidescroll.js:333
↓ 3 callers
Function
vn
(n)
third_party/d3/d3.js:1
↓ 3 callers
Function
vsyncForTesting
(window)
src/service/vsync-impl.js:475
↓ 3 callers
Function
waitFor3pThrottle
()
extensions/amp-ad/0.1/concurrent-load.js:43
↓ 3 callers
Function
waitForDisplayChange
(description, elementId, displayValue)
test/integration/test-actions.js:29
↓ 3 callers
Method
waitForDocumentLoaded
* This is used in test-amp-viewer-integration to test the handshake and make * sure the test waits for everything to get executed. * @return {*}
extensions/amp-viewer-integration/0.1/viewer-for-testing.js:137
↓ 3 callers
Function
waitForElementVisibility
* Wait until the element is either hidden or visible or until timed out. * * Timeout is set to CSS_SELECTOR_RETRY_MS * CSS_SELECTOR_RETRY_ATTEMPTS m
build-system/tasks/visual-diff/verifiers.js:139
↓ 3 callers
Method
waitForHandshakeResponse
* I'm waiting for the ampdoc to respond to my offer to shake hands. * @return {!Promise}
extensions/amp-viewer-integration/0.1/webview-viewer-for-testing.js:67
↓ 3 callers
Function
waitForNextMicrotask
()
extensions/amp-animation/0.1/test/test-web-animations.js:1647
↓ 3 callers
Function
waitForOpen
(el, open)
extensions/amp-lightbox/1.0/test/test-amp-lightbox.js:30
↓ 3 callers
Function
waitForRender
(element)
extensions/amp-vimeo/1.0/test/test-amp-vimeo.js:18
↓ 3 callers
Function
waitForRender
()
extensions/amp-youtube/1.0/test/test-amp-youtube.js:20
↓ 3 callers
Function
waitForRender
* * @param {HTMLElement} element
extensions/amp-mathml/1.0/test/test-amp-mathml.js:90
↓ 3 callers
Function
waitForRender
()
extensions/amp-video-iframe/1.0/test/test-amp-video-iframe.js:21
↓ 3 callers
Function
waitForRender
()
extensions/amp-video/1.0/test/test-amp-video.js:21
↓ 3 callers
Function
waitForRender
()
extensions/amp-instagram/1.0/test/test-amp-instagram.js:20
↓ 3 callers
Function
waitForService
(env, getService, serviceId, service)
test/unit/test-render-delaying-services.js:116
↓ 3 callers
Method
waitFor_
* Creates or returns an existing promise that will yield as soon as the * extension has been loaded. * @param {!ExtensionHolderDef} holder *
src/service/extensions-impl.js:576
↓ 3 callers
Method
waitOnPromisesOrTimeout_
* Returns a race promise between resolving all promises or timing out. * @param {!Array<!Promise>} promises * @param {number} timeout * @retu
extensions/amp-form/0.1/amp-form.js:1203
↓ 3 callers
Function
waitRendered
()
extensions/amp-render/1.0/test/test-amp-render.js:34
↓ 3 callers
Function
warmupDynamic
(e)
ads/alp/handler.js:182
↓ 3 callers
Function
webPushServiceForDoc
(element)
extensions/amp-web-push/0.1/web-push-service.js:69
↓ 3 callers
Method
whenBuilt
* Returns the promise that's resolved when the element has been built. If * the build fails, the resulting promise is rejected. * @return {!
src/custom-element.js:495
↓ 3 callers
Function
whenContentIniLoad
( elementOrAmpDoc, hostWin, rect, opt_prerenderableOnly )
src/ini-load.js:23
↓ 3 callers
Function
whenContentIniLoadMeasure
( elementOrAmpDoc, hostWin, rect, opt_prerenderableOnly )
src/ini-load.js:50
↓ 3 callers
Method
whenLoadedAndVisiblePromise_
* A promise that resolves when both loadPromise and whenFirstVisible resolve. * @return {!Promise} * @private
extensions/amp-install-serviceworker/0.1/amp-install-serviceworker.js:107
↓ 3 callers
Method
whenPurposesUnblock
* Wait for initial consent information to be transmitted, * then get consent state for this purpose. * * Note: Even if we have some intiial c
extensions/amp-consent/0.1/consent-policy-manager.js:348
↓ 3 callers
Method
whenWindowLoaded
* Returns a promise that will resolve when the child window's `onload` event * has been emitted. In friendly iframes this typically only includes f
src/friendly-iframe-embed.js:448
↓ 3 callers
Function
wi
(n,t)
third_party/d3/d3.js:2
↓ 3 callers
Function
writeFromTemplateDir
* @param {string} templateDir * @param {{[key: string]: string}} replacements * @param {string=} destinationDir * @return {Promise<Array<string>>}
build-system/tasks/make-extension/index.js:94
↓ 3 callers
Function
x
(e,i,o,a,c,l)
examples/amp-script/vue-todomvc.js:7
↓ 3 callers
Function
y
(e,t,n,o,r)
examples/amp-script/todomvc.ssr.js:2
↓ 3 callers
Function
yn
(n)
third_party/d3/d3.js:1
↓ 3 callers
Function
z
(n,t)
third_party/d3/d3.js:1
↓ 3 callers
Function
za
(a)
third_party/wgxpath/wgxpath.js:34
↓ 3 callers
Function
zn
(e,t)
examples/amp-script/vue-todomvc.js:7
↓ 3 callers
Function
zr
()
examples/amp-script/vue-todomvc.js:7
↓ 2 callers
Function
$a
(e,a,s,n)
third_party/react-dates/bundle.js:1
↓ 2 callers
Function
$n
(e)
examples/amp-script/vue-todomvc.js:7
↓ 2 callers
Function
Aa
(e)
third_party/react-dates/bundle.js:1
↓ 2 callers
Function
Ae
(e,a)
third_party/react-dates/bundle.js:1
↓ 2 callers
Function
An
(e,t)
examples/amp-script/vue-todomvc.js:7
↓ 2 callers
Function
B
(t,n,a,r,e,o)
third_party/d3-geo-projection/d3-geo-projection.js:1
↓ 2 callers
Function
Ba
(e,t)
examples/amp-script/vue-todomvc.js:7
↓ 2 callers
Function
Be
(e,t,n)
examples/amp-script/vue-todomvc.js:7
↓ 2 callers
Function
Bi
(e)
examples/amp-script/vue-todomvc.js:7
↓ 2 callers
Function
Bu
(n)
third_party/d3/d3.js:3
← previous
next →
4,901–5,000 of 18,703, ranked by callers