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
authorize
* @return {!Promise<!JsonObject>}
extensions/amp-access-poool/0.1/poool-impl.js:97
↓ 3 callers
Method
back
()
testing/fake-dom.js:551
↓ 3 callers
Function
batchedRead
* Returns the string contents and hash of the file at the specified path. If * multiple reads are requested for the same file before the first read h
build-system/common/transform-cache.js:108
↓ 3 callers
Function
batchedXhrServiceForTesting
(window)
src/service/batched-xhr-impl.js:84
↓ 3 callers
Method
blockNextNotification
()
third_party/subscriptions-project/swg.js:12855
↓ 3 callers
Function
blockRegExp
(name)
build-system/tasks/check-analytics-vendors-list.js:20
↓ 3 callers
Function
bootstrapThirdPartyFrames
* Generates frames.html * * @param {!Object} options * @return {Promise<void>}
build-system/tasks/helpers.js:102
↓ 3 callers
Function
boundValueSpring
( val: number, min: number, max: number, extent: number )
extensions/amp-pan-zoom/1.0/hooks/usePanZoomState.ts:36
↓ 3 callers
Function
bounds
({containerSize, contentSize})
extensions/amp-pan-zoom/1.0/test/test-component.js:126
↓ 3 callers
Function
build
* Actually build a JS file or extension. Only will allow one build per * bundle at a time. * * @param {!Object} bundles * @param {string} name *
build-system/server/lazy-build.js:75
↓ 3 callers
Method
build
* @param {!Document} doc * @param {function(function(), function())} measureMutateElement * @return {!LightboxCaption} A LightboxCaption instanc
extensions/amp-lightbox-gallery/0.1/lightbox-caption.js:23
↓ 3 callers
Method
buildAudioElement
* Builds the internal <audio> element.
extensions/amp-audio/0.1/amp-audio.js:106
↓ 3 callers
Function
buildAutoplayConfig
(autoplay)
test/unit/test-amp-story-player.js:108
↓ 3 callers
Method
buildCallback
@override
extensions/amp-accordion/0.1/amp-accordion.js:69
↓ 3 callers
Function
buildExtensions
* Build all the AMP extensions * * @param {!Object} options * @return {!Promise}
build-system/tasks/extension-helpers.js:330
↓ 3 callers
Method
buildGetHref_
* Constructs the new href to execute a `GET` request with the * `elementId` and `ampUserId` query params appended. * @param {string} ampUserId
extensions/amp-user-notification/0.1/amp-user-notification.js:223
↓ 3 callers
Function
buildNewServer
* Builds the new server by converting typescript transforms to JS. This JS * output is not type-checked as part of `amp check-build-system`. * @retu
build-system/server/typescript-compile.js:25
↓ 3 callers
Method
buildPlayer
@public
src/amp-story-player/amp-story-player-impl.js:394
↓ 3 callers
Function
buildRuntime
* Performs a clean build of the AMP runtime in testing mode. * Used by `amp e2e|integration|visual-diff`. * * @param {boolean} opt_minified builds
build-system/common/utils.js:19
↓ 3 callers
Function
buildVendorConfigs
* Entry point for 'amp ad-vendor-configs' * Compile all the vendor configs and drop in the dist folder * @param {!Object} options * @return {!Promi
build-system/tasks/3p-vendor-helpers.js:31
↓ 3 callers
Function
calculateDistance
* Calculates the distance between two points in two dimensions. * TODO(#21104) Refactor. * @param {number} x1 The x coordinate of the first point.
extensions/amp-lightbox-gallery/0.1/swipe-to-dismiss.js:66
↓ 3 callers
Function
calculateExtensionFileUrl
( win, location, filename, opt_isLocalDev )
src/service/extension-script.js:63
↓ 3 callers
Function
calculateLegacyStateValue
(consentState)
extensions/amp-consent/0.1/consent-info.js:219
↓ 3 callers
Method
calculate_
* @param {number=} triggerId * @private
src/service/video-manager-impl.js:1534
↓ 3 callers
Function
callDoubleclick
(code)
ads/vendors/ix.js:31
↓ 3 callers
Method
callFunction
* Calls the specified function on this amp-script's worker-dom instance. * Accepts variable number of args to pass along to the underlying worker.
extensions/amp-script/0.1/amp-script.js:233
↓ 3 callers
Function
camelCaseToHyphenCase
(camelCase)
src/core/dom/style.js:34
↓ 3 callers
Method
cancel
()
extensions/amp-animation/0.1/test/test-web-animations.js:2101
↓ 3 callers
Method
capDistance_
* Caps the amount to shift swipe element based on orientation and direction. * @param {number} deltaX * @param {number} deltaY * @return {num
extensions/amp-sidebar/0.2/swipe-to-dismiss.js:110
↓ 3 callers
Method
capDistance_
* Caps the amount to shift swipe element based on orientation and direction. * @param {number} deltaX * @param {number} deltaY * @return {num
extensions/amp-sidebar/0.1/swipe-to-dismiss.js:110
↓ 3 callers
Function
captureEventDispatched
(eventName, element, dispatchEventFunction)
extensions/amp-form/0.1/test/test-form-dirtiness.js:59
↓ 3 callers
Method
changeToLayoutContainer_
* Converts the amp-list to de facto layout container. Called in mutate * context. * @return {!Promise} * @private
extensions/amp-list/0.1/amp-list.js:1445
↓ 3 callers
Method
change_
* @param {!Object} args
testing/fake-dom.js:476
↓ 3 callers
Method
changed_
* @private
src/inabox/inabox-viewport.js:359
↓ 3 callers
Method
check
* Check if the Scroll App blocks the resource request.
extensions/amp-access-scroll/0.1/scroll-impl.js:204
↓ 3 callers
Function
checkFunc
()
test/unit/core/dom/test-dom.js:239
↓ 3 callers
Method
checkParsing_
@private
src/service/scheduler.js:213
↓ 3 callers
Function
checkResponse
* Checks the response of an operation. Throws if there's an error, and prints * success messages if not. * @param {!Response} response * @param {..
build-system/tasks/bundle-size/index.js:65
↓ 3 callers
Function
checkUserValidity
* Checks user validity which applies .user-valid and .user-invalid AFTER the * user interacts with the input by moving away from the input (blur) or
extensions/amp-form/0.1/amp-form.js:1503
↓ 3 callers
Method
checkValidity_
* @return {boolean} False if the form is invalid. * @private
extensions/amp-form/0.1/amp-form.js:1128
↓ 3 callers
Function
checklistMarkdown
(list)
build-system/tasks/sweep-experiments/index.js:277
↓ 3 callers
Function
chunkServiceForDoc
* @param {!Element|!ShadowRoot|!./service/ampdoc-impl.AmpDoc} elementOrAmpDoc * @return {!Chunks} * @private
src/chunk.js:35
↓ 3 callers
Function
classifyString
(keywordString = '', nonStrictMatch = false)
extensions/amp-addthis/0.1/addthis-utils/classify.js:49
↓ 3 callers
Method
cleanup_
@private
extensions/amp-access/0.1/login-dialog.js:164
↓ 3 callers
Method
clearDateField_
* Clear the value from the given input field. * @param {?Element} field An input field * @private
extensions/amp-date-picker/0.1/amp-date-picker.js:1562
↓ 3 callers
Function
clearModalStack
()
src/core/dom/modal.js:245
↓ 3 callers
Function
clickThroughPages
(controller, numPages)
extensions/amp-story-auto-ads/0.1/test-e2e/test-amp-story-auto-ads-utils.js:1
↓ 3 callers
Method
close
Close the lightbox
src/bento/components/bento-lightbox/1.0/component.type.js:35
↓ 3 callers
Method
closeDialog
* Closes the popup or redirects the dialog back to the AMP page. * * @public
extensions/amp-web-push/0.1/amp-web-push-permission-dialog.js:131
↓ 3 callers
Method
closeDisclaimer_
* Closes the disclaimer dialog if open. * @private
extensions/amp-story-interactive/0.1/amp-story-interactive-abstract.js:952
↓ 3 callers
Method
closeShadowRoot_
* @param {!ShadowRoot} shadowRoot * @return {Promise} * @private
src/multidoc-manager.js:487
↓ 3 callers
Method
close_
* Closes the lightbox-gallery * @return {!Promise} * @private
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:1107
↓ 3 callers
Function
cmdEscape
(str)
build-system/tasks/sweep-experiments/index.js:62
↓ 3 callers
Method
collectVars
* Collects all substitutions in the provided URL and expands them to the * values for known variables. Optional `opt_bindings` can be used to add
src/service/url-replacements-impl.js:1160
↓ 3 callers
Method
compile_
@private
third_party/zuho/zuho.js:248
↓ 3 callers
Method
complete
* Completes the resolution pass. The new queries are tracked for changes * and the old queries are untracked.
src/core/dom/media-query-props.js:66
↓ 3 callers
Method
completeExpand
* Completes expand: ensures that the element is not `display:none` and * updates measurements.
src/service/resource.js:561
↓ 3 callers
Method
completeUpgrade_
* Completes the upgrade of the element with the provided implementation. * @param {!./base-element.BaseElement} newImpl * @param {number} up
src/custom-element.js:410
↓ 3 callers
Method
complete_
* @private
third_party/subscriptions-project/swg.js:14355
↓ 3 callers
Method
connectedCallback_
* Fires connectedCallback on the custom element, if it has one. * This also upgrades the custom element, since it may not have been * accessible
src/polyfills/custom-elements.js:395
↓ 3 callers
Function
constructImpl
(config)
extensions/amp-ad/0.1/test/test-amp-ad-3p-impl.js:470
↓ 3 callers
Function
constructSessionInfo
* Constructs a new SessionInfoDef object * @param {boolean} engaged * @param {number=} count * @return {!SessionInfoDef}
extensions/amp-analytics/0.1/session-manager.js:330
↓ 3 callers
Function
containsNotSelf
(parent, child)
src/core/dom/index.js:523
↓ 3 callers
Method
copyJsonObject_
* Copies an object containing JSON data and returns it. * Returns null if input object contains invalid JSON (e.g. undefined or * circular refer
extensions/amp-bind/0.1/bind-impl.js:1659
↓ 3 callers
Function
copyTextToClipboard
(win, text, successCallback, failCallback)
src/core/window/clipboard.js:67
↓ 3 callers
Function
countSelected
()
extensions/amp-selector/1.0/test/test-component.js:138
↓ 3 callers
Function
createAmpMathmlElement
(env, {formula, ...args})
extensions/amp-mathml/1.0/test/test-amp-mathml.js:79
↓ 3 callers
Function
createAndRenderGoogleReadAloudPlayer
(attrs = {})
extensions/amp-google-read-aloud-player/0.1/test/test-amp-google-read-aloud-player.js:65
↓ 3 callers
Function
createBoxNode
(value, opt_dimensions)
extensions/amp-animation/0.1/parsers/css-expr-ast.js:635
↓ 3 callers
Function
createCloseButton
()
extensions/amp-lightbox/0.1/test/test-amp-lightbox.js:47
↓ 3 callers
Method
createContainerWidthState
* @param {!Element} element to potentially create state for. * @return {?ResponsiveState} fall back state.
extensions/amp-ad-network-adsense-impl/0.1/responsive-state.js:88
↓ 3 callers
Function
createCrypto
(win)
test/unit/test-crypto.js:106
↓ 3 callers
Function
createDateTemplate
* Create a template from a body and attributes * @param {string} body * @param {!{[key: string]: string}=} opt_attrs
extensions/amp-date-picker/0.1/test/test-amp-date-picker.js:85
↓ 3 callers
Function
createDriver
* * @param {BrowserNameDef} browserName * @param {!string[]} args * @param {string=} deviceName * @return {!WebDriver}
build-system/tasks/e2e/describes-e2e.js:116
↓ 3 callers
Function
createElementWithNoStub
(attributes)
extensions/amp-ad-network-adsense-impl/0.1/test/test-responsive-state.js:88
↓ 3 callers
Function
createEmbedlyCard
(dataUrl)
extensions/amp-embedly-card/0.1/test/test-amp-embedly-card.js:17
↓ 3 callers
Method
createEntitlements_
* @param {string} raw * @param {!Object|!Array<!Object>} json * @param {boolean=} isReadyToPay * @param {?string=} decryptedDocumentKey *
third_party/subscriptions-project/swg.js:12984
↓ 3 callers
Method
createEvent_
()
extensions/amp-pan-zoom/1.0/test/test-component.js:616
↓ 3 callers
Function
createExpanderWithAllowlist
(allowlist, mockBindings)
test/unit/url-expander/test-expander.js:86
↓ 3 callers
Function
createFile
(name)
validator/js/gulpjs/test/validate.js:181
↓ 3 callers
Method
createIfResponsive
* @param {!Element} element to potentially create state for. * @return {?ResponsiveState} reponsive state for the element, if it * corresponds
extensions/amp-ad-network-adsense-impl/0.1/responsive-state.js:76
↓ 3 callers
Function
createImagePixel
* @param {!Window} win * @param {string} src * @param {boolean=} noReferrer * @param {string=} attributionSrc * @param {(Element|./service/ampdoc-
src/pixel.js:93
↓ 3 callers
Function
createLink
(id)
extensions/amp-lightbox/0.1/test/test-amp-lightbox.js:56
↓ 3 callers
Function
createLinker
(version, ids)
extensions/amp-analytics/0.1/linker.js:32
↓ 3 callers
Function
createLoaderElement
( ampDoc, element, elementWidth, elementHeight, startTime = ampDoc.win.Date.now() )
src/service/loader-element.js:28
↓ 3 callers
Function
createParseDateAttr
(name)
src/preact/parse-props.js:347
↓ 3 callers
Method
createPartitionbar_
* Create partition bar for the reference elements * @private
extensions/amp-access-fewcents/0.1/fewcents-impl.js:478
↓ 3 callers
Method
createPaymentRequest_
* Create PaymentRequest instance. * * @param {!IsReadyToPayRequest|!PaymentDataRequest} request The necessary information to check if user is
third_party/subscriptions-project/swg.js:15714
↓ 3 callers
Function
createPseudoLocale
(localizedStringBundle, localizationFn)
src/service/localization/strings.js:173
↓ 3 callers
Method
createPurchaseOption_
* @param {!JsonObject} option Shape: PurchaseOption_0_2_Def * @return {!Element} * @private
extensions/amp-access-laterpay/0.2/laterpay-impl.js:469
↓ 3 callers
Method
createPurchaseOption_
* @param {!JsonObject} option Shape: PurchaseOption_0_1_Def * @return {!Element} * @private
extensions/amp-access-laterpay/0.1/laterpay-impl.js:407
↓ 3 callers
Method
createRunner
* Creates the animation runner for the provided spec. Waits for all * necessary resources to be loaded before the runner is resolved. * @param {
extensions/amp-animation/0.1/web-animations.js:191
↓ 3 callers
Method
createRunner_
* @param {?JsonObject=} opt_args * @param {?JsonObject=} opt_positionObserverData * @return {!Promise<!./runners/animation-runner.AnimationRunne
extensions/amp-animation/0.1/amp-animation.js:457
↓ 3 callers
Function
createScaffoldingForFluidRendering
* Sets up the necessary mocks and stubs to render a fake fluid creative in unit * tests. * @param {!AmpAdNetworkDoubleclickImpl} impl * @param {!Ob
extensions/amp-ad-network-doubleclick-impl/0.1/test/test-doubleclick-fluid.js:57
↓ 3 callers
Method
createSelectiveListener
* Creates listener-filter for DOM events to check against the specified * selector. If the node (or its ancestors) match the selector the listener
extensions/amp-analytics/0.1/analytics-root.js:374
↓ 3 callers
Function
createSliderInfo
(slider)
extensions/amp-image-slider/0.1/test/integration/test-amp-image-slider.js:900
↓ 3 callers
Method
createSourceElement_
* @param {string} src * @param {?string} type * @param {Object=} attributes * @return {!Element} source element * @private
extensions/amp-video/0.1/amp-video.js:635
↓ 3 callers
Method
createSpacers_
* @param {number} count The number of spacers to create * @return {!Array<!Element>} An array of spacers. * @private
extensions/amp-base-carousel/0.1/carousel.js:959
↓ 3 callers
Function
createTemplate
()
extensions/amp-access/0.1/test/test-amp-access.js:611
↓ 3 callers
Function
createWithAttr
(attr)
test/unit/core/dom/test-query.js:71
← previous
next →
4,001–4,100 of 18,703, ranked by callers