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
↓ 2 callers
Function
tt
(n,t,e)
third_party/d3/d3.js:1
↓ 2 callers
Function
ue
(n,t)
third_party/d3/d3.js:2
↓ 2 callers
Method
unassignSlot
* Unassigns the direct slot previously done by the `assignSlot` call. * Automatically starts the discovery phase for the affected nodes. * *
src/core/context/node.js:154
↓ 2 callers
Function
unitTestsToRun
* Extracts the list of unit tests to run based on the changes in the local * branch. Return value is cached to optimize for multiple calls. * * @re
build-system/tasks/runtime-test/helpers-unit.js:186
↓ 2 callers
Method
unlayoutCallback
@override
extensions/amp-ad/0.1/amp-ad-3p-impl.js:445
↓ 2 callers
Method
unlayoutCallback
@override
extensions/amp-apester-media/0.1/amp-apester-media.js:400
↓ 2 callers
Method
unlayoutCallback
@override
extensions/amp-mega-menu/0.1/amp-mega-menu.js:104
↓ 2 callers
Method
unlayoutCallback
* @override * @return {boolean}
extensions/amp-addthis/0.1/amp-addthis.js:324
↓ 2 callers
Method
unlayoutCallback
@override
extensions/amp-twitter/0.1/amp-twitter.js:173
↓ 2 callers
Method
unlayoutCallback
@override
extensions/amp-anim/0.1/amp-anim.js:98
↓ 2 callers
Method
unlayoutOnPause
@override
extensions/amp-ad/0.1/amp-ad-3p-impl.js:440
↓ 2 callers
Method
unlayout_
@private
src/custom-element.js:1742
↓ 2 callers
Method
unlistenForStart_
@private
extensions/amp-analytics/0.1/events.js:1061
↓ 2 callers
Method
unlistenForStop_
@private
extensions/amp-analytics/0.1/events.js:1081
↓ 2 callers
Method
unlistenOnOutViewport_
* Check if we need to unlisten when moving out of viewport, * unlisten and reset unlistenViewportChanges_. * @private
extensions/amp-ad/0.1/legacy-ad-intersection-observer-host.js:96
↓ 2 callers
Method
unlisten_
@private
extensions/amp-video-docking/0.1/controls.js:366
↓ 2 callers
Function
unmaskedvalue
(input)
third_party/inputmask/inputmask.js:2179
↓ 2 callers
Method
unmute
* @override
test/integration/test-video-manager.js:554
↓ 2 callers
Method
unmute
* Unmutes the specified media element in the DOM. * @param {!DomElementDef} domMediaEl The media element to be unmuted. * @return {!Promise} A p
extensions/amp-story/1.0/media-pool.js:895
↓ 2 callers
Function
unmuteVideo
()
ads/google/ima/ima-video.js:1181
↓ 2 callers
Method
unobserve
(element)
test/unit/test-ini-load.js:113
↓ 2 callers
Function
unobserveDisplay
(target, callback)
src/utils/display-observer.js:57
↓ 2 callers
Method
unobserveHiddenMutations_
* Stop observing changes to the hidden attribute.
src/service/fixed-layer.js:233
↓ 2 callers
Function
unobserveSize
* @param {Element} element * @param {Type_Enum} type * @param {SizeCallback<TargetSize>} callback
src/core/dom/layout/size-observer.js:143
↓ 2 callers
Method
unregisterEvents_
* Unregister events * @private
extensions/amp-image-slider/0.1/amp-image-slider.js:542
↓ 2 callers
Function
unscaledClientRect
(el)
extensions/amp-story/1.0/utils.js:56
↓ 2 callers
Method
unsubscribeFromPushRemotely
* Requests the service worker to unsubscribe the user from push. * @return {Promise<ServiceWorkerState>}
extensions/amp-web-push/0.1/web-push-service.js:387
↓ 2 callers
Method
unsupportedFeatureWarn_
* @param {string} feature unsupported feature * @private
extensions/amp-next-page/0.1/amp-next-page.js:270
↓ 2 callers
Method
untrack
* @param {!AmpElement} element
src/service/loading-indicator.js:70
↓ 2 callers
Function
update
* Updates states of all experiments in the table.
tools/experiments/experiments.js:232
↓ 2 callers
Method
update
* @param {!JsonObject} action
extensions/amp-access-scroll/0.1/scroll-bar.js:76
↓ 2 callers
Method
update
* Peaks the current char and update internal matches.
extensions/amp-viewer-integration/0.1/findtext.js:161
↓ 2 callers
Method
updateAdvanceCount
* @param {number} advanceCount How many slides to advance by. This is the * number of slides moved forwards/backwards when calling prev/next.
extensions/amp-base-carousel/0.1/carousel.js:500
↓ 2 callers
Method
updateAriaHidden_
* Updates `aria-hidden` for the slides. When in list mode, this will be * `false` for all the slides. When not in list mode, the current slide will
extensions/amp-base-carousel/0.1/carousel-accessibility.js:143
↓ 2 callers
Function
updateAttributes
( element: HTMLElement, props: HTMLAttributes, unset: boolean )
src/bento/components/bento-mega-menu/1.0/component/Shim.tsx:47
↓ 2 callers
Method
updateAutoAdvance
* @param {boolean} autoAdvance Whether or not to autoadvance. Changing this * will start or stop autoadvance.
extensions/amp-base-carousel/0.1/carousel.js:519
↓ 2 callers
Method
updateAutoAdvanceInterval
* @param {number} autoAdvanceInterval How much time between auto advances. * This time starts counting from when scrolling has stopped.
extensions/amp-base-carousel/0.1/carousel.js:535
↓ 2 callers
Method
updateAutoAdvanceLoops
* @param {number} autoAdvanceLoops The number of loops through the carousel * that should be autoadvanced before stopping. This defaults to infi
extensions/amp-base-carousel/0.1/carousel.js:544
↓ 2 callers
Method
updateButtonTitles
* Updates the titles for the next/previous buttons. * Uses given params if provided, otherwise uses sensible defaults. * * @param {string} pr
extensions/amp-carousel/0.1/carousel-controls.js:128
↓ 2 callers
Method
updateCurrentElementOffset_
* Updates the current offset within the current Element as well as firing an * event. * @param {number} index The index of the Element. * @pa
extensions/amp-base-carousel/0.1/carousel.js:732
↓ 2 callers
Method
updateDevicesInHash_
* If the devices are not the default ones, add them to the hashString * @private
extensions/amp-story-dev-tools/0.1/amp-story-dev-tools-tab-preview.js:664
↓ 2 callers
Function
updateHash
(updates, win)
extensions/amp-story-dev-tools/0.1/utils.js:9
↓ 2 callers
Method
updateHorizontalLayout
* @param {object} updates * @return {boolean} true if changed * @protected
extensions/amp-access-scroll/0.1/scroll-component.js:114
↓ 2 callers
Method
updateInViewport_
* @param {number} newPos * @param {number} oldPos * @private
extensions/amp-carousel/0.1/scrollable-carousel.js:372
↓ 2 callers
Method
updateLayoutRects_
* @private * @param {!../layout-rect.LayoutRectDef} viewportRect * @param {!../layout-rect.LayoutRectDef} targetRect
src/inabox/inabox-viewport.js:544
↓ 2 callers
Method
updateLightboxMode
* Updates the viewport whether it's currently in the lightbox or a normal * mode. * @param {boolean} unusedLightboxMode * @return {!Promise}
src/service/viewport/viewport-binding-def.js:101
↓ 2 callers
Method
updateMeasurerContent_
* Copies text from the displayed content to the measurer element.
extensions/amp-fit-text/0.1/amp-fit-text.js:128
↓ 2 callers
Method
updateMetadata_
@private
extensions/amp-audio/0.1/amp-audio.js:189
↓ 2 callers
Method
updateMixedLength
* @param {boolean} mixedLength Whether the slides used mixed lengths or they * should be have a length assigned in accordance to the visible cou
extensions/amp-base-carousel/0.1/carousel.js:589
↓ 2 callers
Method
updateModels_
@private
extensions/amp-analytics/0.1/visibility-manager.js:255
↓ 2 callers
Method
updateMutedState_
* Update the muted state of the story inside the iframe. * @param {!StoryDef} story * @param {boolean} mutedValue * @private
src/amp-story-player/amp-story-player-impl.js:1472
↓ 2 callers
Method
updateOtherManagedAndPausedVideos_
* Update other managed videos when we learn that the current selected * bandwidth wasn't good. Only operates on videos that are currently paused
extensions/amp-video/0.1/flexible-bitrate.js:264
↓ 2 callers
Method
updateOwner
* Update owner element * @param {AmpElement|undefined} owner
src/service/resource.js:235
↓ 2 callers
Method
updatePaddingTop
@override
src/service/viewport/viewport-binding-natural.js:108
↓ 2 callers
Method
updatePaddingTop
@override
src/service/viewport/viewport-binding-ios-embed-wrapper.js:166
↓ 2 callers
Method
updatePageCountVariables_
@private
extensions/amp-story/1.0/variable-service.js:94
↓ 2 callers
Method
updateProgress_
* @param {number} total * @param {number} index * @param {number} offset * @param {!Array<!Element>} slides * @private
extensions/amp-inline-gallery/0.1/amp-inline-gallery.js:93
↓ 2 callers
Method
updateRelease
* Update a GitHub release * @param {string} id * @param {object} changes * @return {Promise<Object>}
build-system/release-tagger/utils.js:162
↓ 2 callers
Method
updateRoot
* @param {?ContextNode<?>} root * @protected Used cross-binary.
src/core/context/node.js:332
↓ 2 callers
Function
updateScrollPosition
(axis, el, delta)
extensions/amp-base-carousel/0.1/dimensions.js:214
↓ 2 callers
Method
updateSession_
* Check if session has expired and reset/update values (id, count) if so. * Also update `accessTimestamp`. * Sets the initial engaged singals if
extensions/amp-analytics/0.1/session-manager.js:231
↓ 2 callers
Method
updateSnapBy
* @param {number} snapBy Snaps on every nth slide, including the zeroth * slide.
extensions/amp-base-carousel/0.1/carousel.js:628
↓ 2 callers
Method
updateSrc_
* @return {!Promise} * @private
extensions/amp-image-lightbox/0.1/amp-image-lightbox.js:324
↓ 2 callers
Method
updateSrc_
* @return {!Promise} * @private
extensions/amp-image-viewer/0.1/amp-image-viewer.js:421
↓ 2 callers
Method
updateState_
* @param {*} json * @param {boolean} isInit * @return {!Promise} * @private
extensions/amp-bind/0.1/amp-state.js:239
↓ 2 callers
Function
updateTab
* Handles events for a specific tab and asks the tab's content_script to * determine AMP details about the page's content. * * @param {Tab} tab The
validator/js/chromeextension/worker.js:210
↓ 2 callers
Function
updateTime
(currentTime, duration)
ads/google/ima/ima-video.js:963
↓ 2 callers
Method
updateTime_
* Update cue style based on the current video time (for ASR-style captions). * @private
extensions/amp-story-captions/0.1/track-renderer.js:108
↓ 2 callers
Method
updateTracks_
* Creates new track renderers for current textTracks. * @private
extensions/amp-story-captions/0.1/amp-story-captions.js:84
↓ 2 callers
Method
updateTree_
* @param {?ContextNode<?>} parent * @param {boolean} parentOverridden * @private
src/core/context/node.js:457
↓ 2 callers
Method
updateUi
* Updates the UI in response to configuration changes.
extensions/amp-base-carousel/0.1/carousel-accessibility.js:76
↓ 2 callers
Method
updateViewportHeight_
@private
extensions/amp-fx-collection/0.1/providers/fx-provider.js:235
↓ 2 callers
Method
updateVisibilityState_
@private
src/service/ampdoc-impl.js:567
↓ 2 callers
Method
updateVisibleCount
* @param {number} visibleCount How many slides to show at a time within the * scrollable. This option is ignored if mixed lengths is set.
extensions/amp-base-carousel/0.1/carousel.js:689
↓ 2 callers
Method
update_
* Updates viewport rect.
ads/inabox/position-observer.js:72
↓ 2 callers
Function
upgradeBackgroundAudio
(element, loop = true)
extensions/amp-story/1.0/audio.js:15
↓ 2 callers
Method
upgradeCallback
* @override * @return {AMP.BaseElement|Promise<AMP.BaseElement>}
extensions/amp-story/1.0/utils.js:342
↓ 2 callers
Function
upgradeOrRegisterElementReady
* Registers an element. Upgrades it if has previously been stubbed. * @param {!Window} win * @param {string} name * @param {typeof ../base-element.
src/service/custom-element-registry.js:50
↓ 2 callers
Function
upgradeResizeObserverPolyfill
(win)
extensions/amp-resize-observer-polyfill/0.1/amp-resize-observer-polyfill.js:23
↓ 2 callers
Method
upgradeSelf_
* Upgrades the (already created via DOM parsing) custom element. * * @param {!Element} node * @param {!CustomElementDef} def
src/polyfills/custom-elements.js:363
↓ 2 callers
Method
upgrade_
* @param {!typeof ResizeObserver} Ctor * @private
src/polyfills/stubs/resize-observer-stub.js:130
↓ 2 callers
Function
ur
(e,t)
examples/amp-script/vue-todomvc.js:7
↓ 2 callers
Function
urlEncodeKeyValue
* @param {string} key * @param {string} value * @return {string}
src/url.js:211
↓ 2 callers
Function
useDatePickerState
(mode: DatePickerMode)
extensions/amp-date-picker/1.0/component/use-date-picker-state.ts:8
↓ 2 callers
Function
usePanZoomState
(config: PanZoomConfig)
extensions/amp-pan-zoom/1.0/hooks/usePanZoomState.ts:138
↓ 2 callers
Function
useResizeObserver
( elementRef: RefObject<HTMLElement>, callback: (entry: ResizeObserverEntry) => void )
src/preact/hooks/useResizeObserver.ts:10
↓ 2 callers
Function
useStateSafe
( initialState: S | (() => S) )
src/preact/hooks/useStateSafe.ts:10
↓ 2 callers
Function
usesFilesOrLocalChanges
* Ensures that a target is only called with `--files` or `--local_changes` * * @param {string} taskName name of the amp task. * @return {boolean} i
build-system/common/utils.js:144
↓ 2 callers
Method
usesSentinel
* @return {boolean}
extensions/amp-next-page/1.0/visibility-observer.js:111
↓ 2 callers
Function
utf8DecodeSync
* Interpret a byte array as a UTF-8 string. * @param {!Uint8Array} bytes * @return {string}
third_party/subscriptions-project/swg.js:3191
↓ 2 callers
Function
utf8DecodeSync
* Interpret a byte array as a UTF-8 string. * @param {!Uint8Array} bytes * @return {string}
third_party/subscriptions-project/swg-gaa.js:376
↓ 2 callers
Function
v
(t,n)
third_party/inputmask/bundle.js:11
↓ 2 callers
Function
va
(e)
examples/amp-script/vue-todomvc.js:7
↓ 2 callers
Function
validate
(data, schemaName = "name-collision")
build-system/babel-plugins/babel-plugin-transform-json-import/test/fixtures/transform-assertions/schema-name-collision/output.mjs:38
↓ 2 callers
Function
validate1
(data, instancePath = "")
build-system/babel-plugins/babel-plugin-transform-json-import/test/fixtures/transform-assertions/schema-refs/output.mjs:5
↓ 2 callers
Function
validate2
(data, instancePath = "")
build-system/babel-plugins/babel-plugin-transform-json-import/test/fixtures/transform-assertions/schema-complex/output.mjs:22
↓ 2 callers
Function
validateAdAttribution
(controller, iconUrl)
extensions/amp-story-auto-ads/0.1/test-e2e/test-amp-story-auto-ads.js:147
↓ 2 callers
Function
validateAdOverlay
(controller)
extensions/amp-story-auto-ads/0.1/test-e2e/test-amp-story-auto-ads.js:96
↓ 2 callers
Method
validateAndResolveMargin_
* Parses and validates margins. * @private * @param {string} val * @return {number} resolved margin
extensions/amp-position-observer/0.1/amp-position-observer.js:360
↓ 2 callers
Method
validateAndResolveRatio_
* Parses and validates ratios. * @param {string} val * @return {number} resolved ratio * @private
extensions/amp-position-observer/0.1/amp-position-observer.js:384
← previous
next →
7,101–7,200 of 18,703, ranked by callers