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
deduplicateInteractiveIds
(doc)
extensions/amp-story-interactive/0.1/utils.js:13
↓ 1 callers
Function
defaultConfig
* @return {!Config}
third_party/subscriptions-project/swg.js:5258
↓ 1 callers
Function
defaultDurationValues
(ampdoc, fxType)
extensions/amp-fx-collection/0.1/providers/amp-fx-presets-utils.js:99
↓ 1 callers
Function
defaultEasingValues
(fxType)
extensions/amp-fx-collection/0.1/providers/amp-fx-presets-utils.js:183
↓ 1 callers
Function
defaultFlyInDistanceValues
(ampdoc, fxType)
extensions/amp-fx-collection/0.1/providers/amp-fx-presets-utils.js:129
↓ 1 callers
Method
defaultLevel_
* @return {!LogLevel_Enum} * @private
src/utils/log.js:170
↓ 1 callers
Method
deferredMount
* Whether this element supports deferred-build mode. In this mode, the * element's build will be deferred roughly based on the * `content-visibi
src/base-element.js:127
↓ 1 callers
Function
defineCommentsElement
(win)
src/bento/components/bento-facebook/1.0/web-component.js:30
↓ 1 callers
Function
defineElement
(win)
src/bento/components/bento-inline-gallery/1.0/web-component.js:17
↓ 1 callers
Function
defineElement
(win)
src/bento/components/bento-facebook/1.0/web-component.js:18
↓ 1 callers
Function
defineElement
(win)
extensions/amp-date-countdown/1.0/web-component.js:30
↓ 1 callers
Function
defineElement
(win)
extensions/amp-date-display/1.0/web-component.js:30
↓ 1 callers
Function
defineElement
(win)
extensions/amp-embedly-card/1.0/web-component.js:13
↓ 1 callers
Function
defineElementEmbedlyKey
(win)
extensions/amp-embedly-card/1.0/web-component.js:22
↓ 1 callers
Function
defineLikeElement
(win)
src/bento/components/bento-facebook/1.0/web-component.js:38
↓ 1 callers
Function
definePageElement
(win)
src/bento/components/bento-facebook/1.0/web-component.js:46
↓ 1 callers
Function
definePaginationElement
(win)
src/bento/components/bento-inline-gallery/1.0/web-component.js:27
↓ 1 callers
Function
defineProperties
(e,r)
third_party/react-dates/bundle.js:1
↓ 1 callers
Method
defineProperty_
(obj, propertyKey, descriptor)
testing/describes.js:428
↓ 1 callers
Function
defineThumbnailsElement
(win)
src/bento/components/bento-inline-gallery/1.0/web-component.js:35
↓ 1 callers
Method
delayAdRequestEnabled
* @return {boolean|number} whether ad request should be delayed until * renderOutsideViewport is met or if number, the amount of viewports.
extensions/amp-a4a/0.1/amp-a4a.js:485
↓ 1 callers
Method
delegateActionToService
* Delegates an action to specified platform. * @param {string} action * @param {string} platformKey * @param {?string} sourceId * @return
extensions/amp-subscriptions/0.1/amp-subscriptions.js:827
↓ 1 callers
Method
delegateAuthToViewer_
* Delegates authentication to viewer
extensions/amp-subscriptions/0.1/amp-subscriptions.js:533
↓ 1 callers
Function
deleteBranch
* @param {string} branch
build-system/tasks/sweep-experiments/cleanup-branches.js:101
↓ 1 callers
Method
deltaX_
* @return {number} * @private
src/gesture-recognizers.js:940
↓ 1 callers
Method
deltaY_
* @return {number} * @private
src/gesture-recognizers.js:950
↓ 1 callers
Function
deprecatedCopyTextToClipboard
(win, text)
src/core/window/clipboard.js:10
↓ 1 callers
Method
deque_
* @private
src/service/history-impl.js:254
↓ 1 callers
Function
derandomize_
* @param {string} target File containing the AMP runtime (amp.js or v0.js) * @param {!JSON} configJson The json object in which to enable local dev
build-system/tasks/prepend-global/index.js:261
↓ 1 callers
Function
describeEnv
* Returns a wrapped version of Mocha's describe(), it() and only() methods * that also sets up the provided fixtures and returns the corresponding *
build-system/tasks/e2e/describes-e2e.js:373
↓ 1 callers
Function
describeEnv
* Returns a wrapped version of Mocha's describe(), it() and only() methods * that also sets up the provided fixtures and returns the corresponding *
testing/describes.js:297
↓ 1 callers
Function
deserialize
* Deserialize the serializedIds and return keyValue pairs. * @param {string} serializedIds * @return {!{[key: string]: string}}
extensions/amp-analytics/0.1/linker.js:161
↓ 1 callers
Function
deserialize
* Deserialize the serializedIds and return keyValue pairs. * @param {string} serializedIds * @return {!{[key: string]: string}}
extensions/amp-consent/0.1/linker.js:161
↓ 1 callers
Function
deserialize
* Utility to deserialize a buffer * @param {!Array<*>} data * @return {!Message}
third_party/subscriptions-project/swg.js:2707
↓ 1 callers
Function
destinationPath
(templatePath)
build-system/tasks/make-extension/index.js:99
↓ 1 callers
Method
destroy
* Destroys iframe.
src/iframe-helper.js:489
↓ 1 callers
Method
detach
* Called when a Transport instance is being removed from the DOM
extensions/amp-analytics/0.1/iframe-transport.js:100
↓ 1 callers
Method
detach
* Remove canvas from the document and cancel the RAF.
extensions/amp-story/1.0/background-blur.js:71
↓ 1 callers
Method
detachedCallback
* Override in subclass to adjust the element when it is being removed from * the DOM. Could e.g. be used to remove a listener.
src/base-element.js:458
↓ 1 callers
Method
detachedCallback
@override
extensions/amp-a4a/0.1/amp-a4a.js:1499
↓ 1 callers
Method
detachedCallback
@override
extensions/amp-analytics/0.1/amp-analytics.js:157
↓ 1 callers
Method
detectAttributionReportingSupport
* Determine if `attribution-reporting` is supported by user-agent. Should only return * true for Chrome 92+. * @visibleForTesting * @return {
extensions/amp-ad-exit/0.1/amp-ad-exit.js:439
↓ 1 callers
Method
determineInitialDirtiness_
@private
extensions/amp-form/0.1/form-dirtiness.js:131
↓ 1 callers
Function
devEtld
(config)
extensions/amp-access-scroll/0.1/scroll-url.js:13
↓ 1 callers
Function
devMode
* Runs a development mode. * * @param {!puppeteer.Browser} browser a Puppeteer controlled browser. * @param {!Array<!WebpageDef>} webpages an array
build-system/tasks/visual-diff/dev-mode.js:32
↓ 1 callers
Function
diffTentative
(filepath, content, gitDiffFlags = ['-U1'])
build-system/common/diff.js:15
↓ 1 callers
Method
diff_
* Updates `this.container_` by DOM diffing its children against `elements`. * * TODO(amphtml): The diffing feature is dark-launched and highly c
extensions/amp-list/0.1/amp-list.js:1203
↓ 1 callers
Method
dirtyElement
* Dirties the cached element measurements after a mutation occurs. * * TODO(jridgewell): This API needs to be audited. Common practice is * t
src/service/mutator-impl.js:254
↓ 1 callers
Method
disableScroll_
* @return {!UnlistenDef} * @private
extensions/amp-video-docking/0.1/amp-video-docking.js:1298
↓ 1 callers
Method
disableUserSelect_
* @return {!UnlistenDef} * @private
extensions/amp-video-docking/0.1/amp-video-docking.js:1287
↓ 1 callers
Method
disconnect
* Called when an element is disconnected from DOM, or when an ampDoc is * being disconnected (the element itself may still be connected to ampDoc
src/custom-element.js:1376
↓ 1 callers
Method
disconnect
()
extensions/amp-access/0.1/iframe-api/iframe-api.js:65
↓ 1 callers
Method
disconnect
()
extensions/amp-animation/0.1/test/test-amp-animation.js:35
↓ 1 callers
Method
disconnect
()
testing/fake-dom.js:735
↓ 1 callers
Method
disconnectedCallback
()
src/preact/bento-ce.js:116
↓ 1 callers
Method
discoverAccess_
* Returns false if access is restricted, otherwise true * @param {!Element} root An element that is an item of type in ALLOWED_TYPES list * @ret
third_party/subscriptions-project/config.js:994
↓ 1 callers
Function
discoverDistFlavors_
* Discovers which AMP flavors are defined in the current working directory. * * The returned list of flavors will always contain the base flavor, an
build-system/tasks/release/index.js:176
↓ 1 callers
Method
discoverProductId_
* @param {!Object} json * @return {?string}
third_party/subscriptions-project/config.js:940
↓ 1 callers
Method
discoverProductId_
* Obtains the product ID that meets the requirements * - child of an item of one of ALLOWED_TYPES * - Not a child of an item of type 'Section'
third_party/subscriptions-project/config.js:1053
↓ 1 callers
Method
discoverSelectors_
* Find all `position:fixed` and `position:sticky` elements. * @param {!Array<CSSRule>} rules * @private
src/service/fixed-layer.js:850
↓ 1 callers
Method
dismissFromSwipe_
* Animate element to close position, with the duration based on the distance * that needs to be travelled. * @param {number} finalDistance *
extensions/amp-sidebar/0.2/swipe-to-dismiss.js:213
↓ 1 callers
Method
dismissFromSwipe_
* Animate element to close position, with the duration based on the distance * that needs to be travelled. * @param {number} finalDistance *
extensions/amp-sidebar/0.1/swipe-to-dismiss.js:213
↓ 1 callers
Method
dismissIframe_
* @param {{container: !Element, iframe:!HTMLIFrameElement}} containerAndFrame * @private
third_party/subscriptions-project/swg.js:16781
↓ 1 callers
Method
dismissOnTap_
@private
extensions/amp-video-docking/0.1/amp-video-docking.js:564
↓ 1 callers
Method
dispatchCustomAnalyticsEvent_
* @param {string} eventType The eventType must be prefixed with video-custom- to prevent naming collisions with other analytics event types. * @par
extensions/amp-delight-player/0.1/amp-delight-player.js:374
↓ 1 callers
Method
dispatchCustomAnalyticsEvent_
* @param {string} eventType * @param {!{[key: string]: string}=} vars
extensions/amp-video-iframe/0.1/amp-video-iframe.js:361
↓ 1 callers
Method
dispatchEndOfStoriesEvent_
* Dispatches end of stories event when appropriate. * @param {!Object} data * @private
src/amp-story-player/amp-story-player-impl.js:1761
↓ 1 callers
Method
dispatchFormValueChangeEventIfNecessary_
* Dispatches an `AmpEvents_Enum.FORM_VALUE_CHANGE` if the element's changed * property represents the value of a form field. * @param {!Element}
extensions/amp-bind/0.1/bind-impl.js:1274
↓ 1 callers
Method
dispatchVisibilityChangeEvent_
* TODO(alanorozco): Deprecate native event mechanism. * @private
3p/ampcontext.js:145
↓ 1 callers
Function
displayLifecycleDebugging
* Logs debug information.
build-system/compile/debug-compilation-lifecycle.js:50
↓ 1 callers
Method
displayOptionsData
* Update component to reflect values in the data obtained. * Called when user has responded (in this session or before). * * @protected @abst
extensions/amp-story-interactive/0.1/amp-story-interactive-abstract.js:561
↓ 1 callers
Method
displaySuggestions_
* Toggle the container of suggestions to show. * If the publisher has opted to autosuggest the first option, do this as well. * @param {boolean}
extensions/amp-autocomplete/0.1/amp-autocomplete.js:640
↓ 1 callers
Method
displayUnsupportedBrowser_
* Displays the publisher [fallback] element if provided, or renders our own * unsupported browser layer. * @return {!Promise|undefined} * @pr
extensions/amp-story/1.0/amp-story.js:2046
↓ 1 callers
Function
displayWarning
* @param {?string} message
extensions/amp-date-countdown/1.0/component.js:245
↓ 1 callers
Method
dispose
* Instructs the service to release any resources it might be holding. Can * be called only once in the lifecycle of a service.
src/service-helpers.js:43
↓ 1 callers
Method
dispose
* Called when the subscriber is completely discarded, for instance via * `ubsubscribe` API.
src/core/context/subscriber.js:152
↓ 1 callers
Method
dispose
* Cleans up the all the mutation observer once the last listener stops * listening, or when the service's doc is disposing.
src/service/hidden-observer-impl.js:81
↓ 1 callers
Method
dispose
@override
extensions/amp-inputmask/0.1/mask-impl.js:137
↓ 1 callers
Method
dispose
@override
extensions/amp-analytics/0.1/visibility-model.js:185
↓ 1 callers
Method
dispose
* Unlistens for start and stop.
extensions/amp-analytics/0.1/events.js:1048
↓ 1 callers
Method
dispose
* Cleanup any consumed resources
extensions/amp-form/0.1/amp-form-textarea.js:129
↓ 1 callers
Method
dispose
* Cleans up listeners and DOM elements.
extensions/amp-story-captions/0.1/track-renderer.js:61
↓ 1 callers
Function
disposeServicesForEmbed
(embedWin)
src/service-helpers.js:517
↓ 1 callers
Method
dispose_
* @private
extensions/amp-font/0.1/amp-font.js:164
↓ 1 callers
Method
dispose_
* Function to dispose of our bootstrap iframe * @private
extensions/amp-recaptcha-input/0.1/amp-recaptcha-service.js:200
↓ 1 callers
Function
divertStoryAdPlacements
(win)
src/experiments/story-ad-placements.js:19
↓ 1 callers
Method
doActionXhr_
* Send a request to the form's action endpoint. * @return {!Promise<!Response>} * @private
extensions/amp-form/0.1/amp-form.js:915
↓ 1 callers
Function
doBuildExtension
* Builds a single extension after extracting its settings. * @param {!Object} extensions * @param {string} extension * @param {!Object} options *
build-system/tasks/extension-helpers.js:360
↓ 1 callers
Method
doPop_
* @param {!HistoryStateDef} historyState * @private
src/service/history-impl.js:208
↓ 1 callers
Function
doRadixFocus
(clickPos)
third_party/inputmask/inputmask.js:1972
↓ 1 callers
Method
doRenderPass_
* Renders the items stored in `this.renderItems_`. If its value changes * by the time render completes, schedules another render pass. * @privat
extensions/amp-list/0.1/amp-list.js:925
↓ 1 callers
Function
doScopeSelector
(selector, scopeSelector, opt_transformer)
third_party/webcomponentsjs/ShadowCSS.js:176
↓ 1 callers
Method
doVerifyXhr_
* Send a request to the form's verify endpoint. * @return {!Promise<!Response>} * @private
extensions/amp-form/0.1/amp-form.js:924
↓ 1 callers
Method
docVisibilityChanged_
@private
src/utils/display-observer.js:300
↓ 1 callers
Method
docVisibilityChanged_
@private
src/service/scheduler.js:184
↓ 1 callers
Method
dockOnPositionChange_
* @param {!VideoOrBaseElementDef} video * @param {!DockTargetDef} target * @param {!RectDef=} opt_inlineRect * @private
extensions/amp-video-docking/0.1/amp-video-docking.js:725
↓ 1 callers
Method
doesWidgetCategoryMarkupExist_
* Returns true if the publisher defined some markup on the page with the * widget visibility section (e.g. <tag visiblity=widgetCategoryName>).
extensions/amp-web-push/0.1/web-push-service.js:489
↓ 1 callers
Function
domOrderComparator
(element1, element2)
src/core/dom/index.js:428
↓ 1 callers
Method
drag_
* Drags stories following the swiping gesture. * @param {number} deltaX * @private
src/amp-story-player/amp-story-player-impl.js:2029
↓ 1 callers
Method
drawOffscreenCanvas_
* Composes the image offscreen at 100% opacity, then uses it for fading in. * If these draw calls are done with opacity, a flash would be visible.
extensions/amp-story/1.0/background-blur.js:246
← previous
next →
8,201–8,300 of 18,703, ranked by callers