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
↓ 7 callers
Method
cancel
Cancels animation.
extensions/amp-story/1.0/animation.js:429
↓ 7 callers
Function
canonicalizeString
(s)
extensions/amp-viewer-integration/0.1/findtext.js:107
↓ 7 callers
Function
checkMinSpacing
(adTracker, tooNearPos, okPos)
extensions/amp-auto-ads/0.1/test/test-ad-tracker.js:41
↓ 7 callers
Method
cleanupTasks_
* Cleanup task queues from tasks for elements that has been unloaded. * @param {Resource} resource * @param {boolean=} opt_removePending Whether
src/service/resources-impl.js:1746
↓ 7 callers
Method
clearAutoplayTimer_
* Clear the autoplay timer. * @private
extensions/amp-carousel/0.1/slidescroll.js:1113
↓ 7 callers
Method
close
* Closes the lightbox.
extensions/amp-image-lightbox/0.1/amp-image-lightbox.js:927
↓ 7 callers
Method
close_
* Hides the sidebar. * @param {!ActionTrust_Enum} trust * @return {boolean} Whether the sidebar actually transitioned from "visible" * to
extensions/amp-sidebar/0.2/amp-sidebar.js:547
↓ 7 callers
Method
close_
* Hides the sidebar. * @param {!ActionTrust_Enum} trust * @return {boolean} Whether the sidebar actually transitioned from "visible" * to
extensions/amp-sidebar/0.1/amp-sidebar.js:548
↓ 7 callers
Method
complete
* @return {!Promise}
third_party/subscriptions-project/swg.js:6032
↓ 7 callers
Function
computeDisplay
* @param {?Array<boolean>} observations * @param {boolean} isDocDisplay * @return {?boolean}
src/utils/display-observer.js:414
↓ 7 callers
Method
config
@override
third_party/subscriptions-project/swg.js:19203
↓ 7 callers
Method
connect
* Connect the port to the host or vice versa. * @param {function(string, ?Object):*} onCommand
extensions/amp-access/0.1/iframe-api/messenger.js:52
↓ 7 callers
Method
connect
* @return {!Promise} * @package Visible for testing only.
extensions/amp-subscriptions/0.1/local-subscription-platform-iframe.js:105
↓ 7 callers
Method
connectedCallback
()
src/preact/bento-ce.js:109
↓ 7 callers
Function
constructImpl
(config)
extensions/amp-ad-network-adsense-impl/0.1/test/test-amp-ad-network-adsense-impl.js:1207
↓ 7 callers
Method
contains
* Determines if the given date is contained within the RRULEs or moment dates * contained in the date list. * @param {!Date|string} date * @r
extensions/amp-date-picker/1.0/component/dates-list.js:66
↓ 7 callers
Function
createAmpFx
(fxType, opt_attrs)
extensions/amp-fx-collection/0.1/test/test-amp-fx-collection.js:22
↓ 7 callers
Function
createAmpStory360
(imagePath, opt_gyroscope)
extensions/amp-story-360/0.1/test/test-amp-story-360.js:41
↓ 7 callers
Function
createAndRenderBasicGoogleReadAloudPlayer
()
extensions/amp-google-read-aloud-player/0.1/test/test-amp-google-read-aloud-player.js:76
↓ 7 callers
Function
createImg
(attributes, children)
test/unit/builtins/test-amp-img-v1.js:33
↓ 7 callers
Function
createStoryAdElementAndConfig
(doc, parent, config)
extensions/amp-story-auto-ads/0.1/test/story-mock.js:51
↓ 7 callers
Function
d
(e,t)
examples/amp-script/vue-todomvc.js:7
↓ 7 callers
Method
decode
* Decodes JWT token and returns its payload. * @param {string} encodedToken * @return {?JsonObject|undefined}
extensions/amp-access/0.1/jwt.js:62
↓ 7 callers
Method
decodeAndVerify
* Decodes HWT token and verifies its signature. * @param {string} encodedToken * @param {!Promise<string>} pemPromise * @return {!Promise<!Js
extensions/amp-access/0.1/jwt.js:80
↓ 7 callers
Method
decorateUI
@override
extensions/amp-subscriptions-google/0.1/amp-subscriptions-google.js:962
↓ 7 callers
Method
destroy
* Unregister this Host API.
extensions/amp-ad-network-doubleclick-impl/0.1/safeframe-host.js:770
↓ 7 callers
Method
destroy
* Detaches the graypane to the document.
third_party/subscriptions-project/swg.js:10419
↓ 7 callers
Function
detectNonAmpJs
(win)
src/error-reporting.js:662
↓ 7 callers
Function
devError
(tag, ...args)
src/core/error/index.js:108
↓ 7 callers
Method
disconnect
()
test/unit/polyfills/test-resize-observer.js:19
↓ 7 callers
Method
disconnect
* Disconnect the activity binding and cleanup listeners.
third_party/subscriptions-project/swg.js:6859
↓ 7 callers
Method
discover
* Requests the discovery phase. Asynchronously finds the nearest parent for * this node and its root. Roots and parents set directly via `setParent
src/core/context/node.js:286
↓ 7 callers
Method
dismiss
* Hides the current user notification and invokes the `dialogResolve_` * method. Removes the `.amp-active` class from the element. * * @param
extensions/amp-user-notification/0.1/amp-user-notification.js:424
↓ 7 callers
Function
doubleclick
(opt_global, opt_data)
ads/google/doubleclick.js:8
↓ 7 callers
Function
dt
(n)
third_party/d3/d3.js:1
↓ 7 callers
Method
execute
* @param {!../proto/api_messages.Message} request
third_party/subscriptions-project/swg.js:3993
↓ 7 callers
Function
executeAndVerifyResponse
()
ads/google/a4a/test/test-line-delimited-response-handler.js:28
↓ 7 callers
Method
expand
* take the template url and return a promise of its evaluated value * @param {string} url url to be substituted * @return {!Promise<string>|stri
src/service/url-expander/expander.js:81
↓ 7 callers
Method
expandFluidCreative_
* Attempts to expand a fluid creative. If the attempt fails, we will * re-attempt whenever the slot is out of the viewport until we succeed, * c
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:1435
↓ 7 callers
Method
expandInputValueSync
* Expands an input element value attribute with variable substituted. * @param {!HTMLInputElement} element * @return {string} Replaced string fo
src/service/url-replacements-impl.js:952
↓ 7 callers
Function
expandSync
(varName, opt_params)
extensions/amp-a4a/0.1/test/test-a4a-var-source.js:26
↓ 7 callers
Method
expand_
* Expand the given item to show its menu content. * @param {!Element} item * @private
extensions/amp-mega-menu/0.1/amp-mega-menu.js:327
↓ 7 callers
Function
expectImagePixel
(url, referrerPolicy, attributionSrc)
extensions/amp-analytics/0.1/test/test-transport.js:581
↓ 7 callers
Function
expectIsEnabled
(shouldBeEnabled)
extensions/amp-auto-lightbox/0.1/test/test-amp-auto-lightbox.js:578
↓ 7 callers
Function
expectPartialEqual
* Asserts that the object matches the expected properties * * @param {T} actual * @param {Partial<T>>} expectedPartial * @template T
extensions/amp-pan-zoom/1.0/test/test-component.js:565
↓ 7 callers
Function
experimentToggles
(win)
src/experiments/index.js:114
↓ 7 callers
Function
f
(t,n)
third_party/inputmask/bundle.js:11
↓ 7 callers
Method
fetch
* Asks the next-page manager to fetch the document's HTML * and inserts it * @return {!Promise}
extensions/amp-next-page/1.0/page.js:204
↓ 7 callers
Method
filterDataAndRenderResults_
* Client-side filter the source data according to the given opt_input * and render it in the results container_. * @param {?Array<!JsonObject|st
extensions/amp-autocomplete/0.1/amp-autocomplete.js:701
↓ 7 callers
Function
fireIntersections
(entries)
test/unit/core/dom/layout/test-intersection-no-root.js:30
↓ 7 callers
Function
fireIntersections
(entries)
test/unit/core/dom/layout/test-intersection.js:30
↓ 7 callers
Method
flushChanges
* Flush all intersection changes previously picked up.
extensions/amp-base-carousel/0.1/child-layout-manager.js:299
↓ 7 callers
Method
for
* @param {!MediaPoolRoot} root * @return {!MediaPool}
extensions/amp-story/1.0/media-pool.js:1046
↓ 7 callers
Method
generateBatchRequest
* @param {string} unusedBaseUrl * @param {!Array<!BatchSegmentDef>} unusedSegments * @param {boolean} unusedWithPayload * @return {!RequestDe
extensions/amp-analytics/0.1/transport-serializer.js:44
↓ 7 callers
Function
generateCalloutResponses
(numGoodResponses)
test/unit/test-real-time-config.js:194
↓ 7 callers
Function
generateMaskSet
(opts, nocache)
third_party/inputmask/inputmask.js:655
↓ 7 callers
Function
getAdContainer
(element)
src/ad-helper.js:69
↓ 7 callers
Function
getAmpAdRenderOutsideViewport
(element)
extensions/amp-ad/0.1/concurrent-load.js:52
↓ 7 callers
Function
getAmpRuntimeTypeParameter
(win)
ads/google/a4a/utils.js:990
↓ 7 callers
Method
getAnchorDomain_
* Extracts the domain (hostname) from an anchor. * @param {!HTMLElement} anchor * @return {string} - Hostname, without protocol, without www.
extensions/amp-skimlinks/0.1/affiliate-link-resolver.js:295
↓ 7 callers
Method
getBlockRtc_
* Checks if the `block-rtc` attribute is present and valid * based on the geolocation. * @return {!Promise<boolean>}
extensions/amp-a4a/0.1/amp-a4a.js:1582
↓ 7 callers
Method
getCol
* @inheritDoc * @this {DocLocatorImpl}
validator/js/engine/htmlparser.js:1089
↓ 7 callers
Function
getDailymotion
( videoId, optResponsive, optCustomSettings, optAutoplay )
extensions/amp-dailymotion/0.1/test/test-amp-dailymotion.js:18
↓ 7 callers
Method
getDefaultAdConstraints
* Network specific constraints on the placement of ads on the page. * @return {!./ad-tracker.AdConstraints}
extensions/amp-auto-ads/0.1/ad-network-config.js:58
↓ 7 callers
Function
getDimension
(axis, el)
src/bento/components/bento-base-carousel/1.0/dimensions.js:41
↓ 7 callers
Function
getDimension
(axis, el)
extensions/amp-base-carousel/0.1/dimensions.js:34
↓ 7 callers
Function
getElementConfig
(element)
extensions/amp-story/1.0/request-utils.js:48
↓ 7 callers
Function
getEnclosingContainerTypes
(adElement)
ads/google/a4a/utils.js:858
↓ 7 callers
Method
getExperiments
* Async returns array of origin experiment IDs that are enabled. * @param {boolean=} opt_rescan * @param {!webCrypto.JsonWebKey=} publicJwk Over
src/service/origin-experiments-impl.js:57
↓ 7 callers
Function
getExtraParamsUrl
(win, target)
src/impression.js:296
↓ 7 callers
Function
getFooVideoSrc
(filetype)
extensions/amp-video/0.1/test/test-amp-video.js:39
↓ 7 callers
Function
getForm
(doc, opt_verifyXhr = true)
extensions/amp-form/0.1/test/test-form-verifiers.js:27
↓ 7 callers
Function
getFormValidator
(form)
extensions/amp-form/0.1/form-validators.js:519
↓ 7 callers
Function
getGfycat
(gfyId, opt_params)
extensions/amp-gfycat/0.1/test/test-amp-gfycat.js:21
↓ 7 callers
Function
getImageLightbox
()
extensions/amp-image-lightbox/0.1/test/test-amp-image-lightbox.js:32
↓ 7 callers
Function
getImg
(attributes, children)
test/unit/test-amp-img-intrinsic.js:19
↓ 7 callers
Function
getImgWithBlur
* Creates an amp-img with an image child that could potentially be a * blurry placeholder. * @param {boolean} addPlaceholder Whether the chi
test/unit/builtins/test-amp-img.js:505
↓ 7 callers
Function
getImgWithBlur
* Creates an amp-img with an image child that could potentially be a * blurry placeholder. * @param {boolean} addPlaceholder Whether the chi
test/unit/builtins/test-amp-img-v1.js:438
↓ 7 callers
Method
getLine
* @inheritDoc * @this {DocLocatorImpl}
validator/js/engine/htmlparser.js:1081
↓ 7 callers
Method
getLocalizedString
* Retrieves the localized string synchronously, useful for strings bundled with a given extension. * * @param {!LocalizedStringId_Enum} localize
src/service/localization/index.js:146
↓ 7 callers
Method
getMaskElement_
* Get the sidebar's mask element; create one if none exists. * @return {!Element} * @private
extensions/amp-sidebar/0.2/amp-sidebar.js:646
↓ 7 callers
Method
getMaskElement_
* Get the sidebar's mask element; create one if none exists. * @return {!Element} * @private
extensions/amp-sidebar/0.1/amp-sidebar.js:662
↓ 7 callers
Method
getName_
* @return {string} Returns a string to identify this tag. May not be unique * if the element id is not unique. * @private
extensions/amp-analytics/0.1/config.js:437
↓ 7 callers
Function
getNextButton
(el)
extensions/amp-stream-gallery/0.1/test/test-amp-stream-gallery.js:54
↓ 7 callers
Function
getNumberOfAds
(pageCount, targetInterval)
extensions/amp-story-auto-ads/0.1/algorithm-predetermined.js:45
↓ 7 callers
Function
getOoyalaElement
( embedCode, playerId, pCode, opt_version, opt_config, opt_placeholder
extensions/amp-ooyala-player/0.1/test/test-amp-ooyala.js:22
↓ 7 callers
Function
getOpacity
(win)
test/integration/test-position-observer.js:170
↓ 7 callers
Function
getPrevButton
(el)
extensions/amp-stream-gallery/0.1/test/test-amp-stream-gallery.js:62
↓ 7 callers
Method
getProgress
* @return {number}
extensions/amp-story/1.0/page-advancement.js:194
↓ 7 callers
Method
getPurposeConsentRequired_
* Get `purposeConsentRequired` from consent config, * or from `checkConsentHref` response. * @return {!Promise<?Array>}
extensions/amp-consent/0.1/amp-consent.js:834
↓ 7 callers
Function
getRGBFromCssColorValue
(cssValue)
extensions/amp-story/1.0/utils.js:108
↓ 7 callers
Method
getResourceId
* Returns the resource ID of the element. * @return {number}
src/custom-element.js:1549
↓ 7 callers
Function
getResourceTiming
(element, spec, startTime)
extensions/amp-analytics/0.1/resource-timing.js:304
↓ 7 callers
Method
getScrollHeight
* Returns the max scroll height. * * @return {number}
extensions/amp-addthis/0.1/addthis-utils/monitors/scroll-monitor.js:54
↓ 7 callers
Function
getServices
* Returns the object that holds the services registered in a holder. * @param {!Object} holder * @return {!{[key: string]: !ServiceHolderDef}}
src/service-helpers.js:475
↓ 7 callers
Method
getSize
@override
src/service/viewport/viewport-impl.js:321
↓ 7 callers
Function
getSlideWrappersFromShadow
()
extensions/amp-base-carousel/1.0/test/test-amp-base-carousel.js:30
↓ 7 callers
Function
getSlot
()
test/unit/preact/test-base-element-runtime.js:131
↓ 7 callers
Method
getSourceOrigin
* Returns the source origin of an AMP document for documents served * on a proxy origin or directly. * @param {string|!Location} url URL of an A
src/service/url-impl.js:81
↓ 7 callers
Method
getState_
@private
src/service/history-impl.js:650
← previous
next →
2,101–2,200 of 18,703, ranked by callers