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
hasTrailingUnderscore
* @param {string} * @return {boolean}
build-system/eslint-rules/private-prop-names.js:26
↓ 2 callers
Method
hasVideoWithCaptions_
* Checks if the page has any videos with captions. * @return {!Promise<boolean>} * @private
extensions/amp-story/1.0/amp-story-page.js:1669
↓ 2 callers
Function
hash
* Returns a hexadecimal 128 character string that is the * SHA-512 hash of the passed string. * @param {string} stringToHash * @return {!Promise<st
third_party/subscriptions-project/swg.js:3345
↓ 2 callers
Function
he
(n)
third_party/d3/d3.js:2
↓ 2 callers
Function
helpersMaker
()
extensions/amp-link-rewriter/0.1/test/test-helpers.js:3
↓ 2 callers
Method
hideAllValidations
* Hides all validation messages.
extensions/amp-form/0.1/form-validators.js:297
↓ 2 callers
Method
hideBlurryPlaceholder_
* Fades out a blurry placeholder if one currently exists. * @return {boolean} if there was a blurred image placeholder that was hidden.
extensions/amp-video/0.1/amp-video.js:1013
↓ 2 callers
Function
hideControls
()
ads/google/ima/ima-video.js:1358
↓ 2 callers
Method
hideInternal_
@private
extensions/amp-story/1.0/amp-story-hint.js:216
↓ 2 callers
Method
hideOnTimeout
@param {number=} timeout
extensions/amp-video-docking/0.1/controls.js:373
↓ 2 callers
Method
hideSpacersAndSlides_
* Hides any spacers or slides that are not currently necessary. Enough * spacers are shown to allow 1 revolution of scrolling (not including the
extensions/amp-base-carousel/0.1/carousel.js:1072
↓ 2 callers
Method
hideSubscriptionsDialog_
* @private
extensions/amp-story/1.0/amp-story.js:1700
↓ 2 callers
Method
hideValidationFor
* @param {!Element} input
extensions/amp-form/0.1/form-validators.js:378
↓ 2 callers
Method
hide_
* Hide current prompt UI
extensions/amp-consent/0.1/amp-consent.js:428
↓ 2 callers
Method
hintControls
* Shows the controls and then fades them away.
extensions/amp-carousel/0.1/carousel-controls.js:102
↓ 2 callers
Method
historyReplaceState_
* @param {*=} state * @param {(string|undefined)=} title * @param {(string|undefined)=} url * @private
src/service/history-impl.js:772
↓ 2 callers
Function
hr
(e,t,n)
examples/amp-script/vue-todomvc.js:7
↓ 2 callers
Function
hr
()
third_party/d3/d3.js:2
↓ 2 callers
Function
hypenCaseToCamelCase
(hyphenCase)
testing/helpers/index.js:135
↓ 2 callers
Method
idleRenderOutsideViewport
* Allows for rendering outside of the constraint set by renderOutsideViewport * so long task scheduler is idle. Integer values less than those ret
src/base-element.js:527
↓ 2 callers
Method
idleRenderOutsideViewport
* Whether this is allowed to render when scheduler is idle but not in * viewport. * @return {boolean}
src/service/resource.js:813
↓ 2 callers
Function
if
(this.touchEventState_.isSwipeY === false)
extensions/amp-story-page-attachment/0.1/amp-story-draggable-drawer.js:345
↓ 2 callers
Method
ifModuleBuild
()
testing/test-config.js:84
↓ 2 callers
Method
iframeLoaded
* Called whenever the iframe is loaded.
third_party/subscriptions-project/swg.js:15554
↓ 2 callers
Function
iframeMessagingClientFor
(win)
src/inabox/inabox-iframe-messaging-client.js:15
↓ 2 callers
Method
iframeSource_
* Build Iframe source * @return {string} * @private
extensions/amp-minute-media-player/0.1/amp-minute-media-player.js:190
↓ 2 callers
Function
immediatelyLoadingHref
(opt_content)
test/unit/test-font-stylesheet-timeout.js:46
↓ 2 callers
Function
importOption
(option, optionData)
third_party/inputmask/inputmask.js:118
↓ 2 callers
Method
importPkcsKey
* Converts an RSA JSON Web Key object to a browser-native cryptographic key. * As a precondition, `isPkcsAvailable()` must be `true`. * * @pa
src/service/crypto-impl.js:171
↓ 2 callers
Method
inLastWindow_
* Checks if a given index is in the last window of items. For example, if * showing two slides at a time with the slides [a, b, c, d], both slide
extensions/amp-base-carousel/0.1/carousel.js:1353
↓ 2 callers
Function
includedServices
(win)
src/render-delaying-services.js:111
↓ 2 callers
Function
indexOfExpectedMessage
(message)
testing/console-logging-setup.js:49
↓ 2 callers
Method
inflateAndSendRtc_
* @param {string} url * @param {!{[key: string]: !../../../src/service/variable-source.AsyncResolverDef}} macros * @param {string} errorReportin
src/service/real-time-config/real-time-config-impl.js:396
↓ 2 callers
Method
init
* @param {!{[key: string]: ?string}|!Promise<!{[key: string]: ?string}>} variants * @package * @restricted
extensions/amp-experiment/0.1/variant.js:33
↓ 2 callers
Method
init
* Initiate the handshake. If handshake confirmed, start listening for * messages. The service is disabled if the viewerorigin parameter is * abs
extensions/amp-viewer-integration/0.1/amp-viewer-integration.js:67
↓ 2 callers
Method
init
* @param {!./dialog.Dialog} unusedDialog * @return {!Promise} * @abstract
third_party/subscriptions-project/swg.js:2842
↓ 2 callers
Method
init3pResponseListener_
* amp-analytics will create an iframe for vendors in * extensions/amp-analytics/0.1/vendors/* who have transport/iframe defined. * This is limit
extensions/amp-ad-exit/0.1/amp-ad-exit.js:499
↓ 2 callers
Function
initActionMap
* This would usually be a private method on BaseElement class, but we cannot * use privates here. So, it's manually devirtualized into a regular func
src/base-element.js:1059
↓ 2 callers
Method
initLinkRewriter_
* Initialize and register a Narrativ LinkRewriter instance * @return {!../../amp-skimlinks/0.1/link-rewriter/link-rewriter.LinkRewriter} * @priv
extensions/amp-smartlinks/0.1/amp-smartlinks.js:168
↓ 2 callers
Method
initRenderer_
@private
extensions/amp-story-360/0.1/amp-story-360.js:723
↓ 2 callers
Method
initSkimlinksLinkRewriter_
* Initialise Skimlinks LinkRewriter. * @return {!./link-rewriter/link-rewriter.LinkRewriter} * @private
extensions/amp-skimlinks/0.1/amp-skimlinks.js:144
↓ 2 callers
Method
init_
* @param {!Array<!Element>=} opt_elements * @private
extensions/amp-selector/0.1/amp-selector.js:278
↓ 2 callers
Method
initialize
()
test/unit/builtins/test-amp-pixel.js:214
↓ 2 callers
Method
initializeAndAddStory_
* Initializes story with properties used in this class and adds it to the * stories array. * @param {!StoryDef} story * @private
src/amp-story-player/amp-story-player-impl.js:308
↓ 2 callers
Function
initializeColorMask
(input)
third_party/inputmask/inputmask.js:2365
↓ 2 callers
Function
initializeListeners_
* @private
extensions/amp-story-subscriptions/0.1/amp-story-subscriptions.js:158
↓ 2 callers
Method
initializeListeners_
* @private
extensions/amp-story-share-menu/0.1/amp-story-share-menu.js:135
↓ 2 callers
Method
initializeLoadMoreButton_
* @private
extensions/amp-list/0.1/service/load-more-service.js:40
↓ 2 callers
Method
initializeLoadMoreFailedElement_
* @private
extensions/amp-list/0.1/service/load-more-service.js:124
↓ 2 callers
Method
initializeLoadMoreLoadingElement_
* @private
extensions/amp-list/0.1/service/load-more-service.js:70
↓ 2 callers
Method
initializePages_
* @return {!Promise} * @private
extensions/amp-story/1.0/amp-story.js:1316
↓ 2 callers
Method
initializePaymentsClient_
* Initializes Payments client.
third_party/subscriptions-project/swg.js:17989
↓ 2 callers
Method
initialize_
* Lazily initialize the default replacements. * @private
src/service/variable-source.js:181
↓ 2 callers
Method
initialize_
* Create the actual image element and set up instance variables. * Called lazily in the first `#layoutCallback`. * @return {!Image}
src/builtins/amp-img/amp-img.js:182
↓ 2 callers
Method
initiateHandshakeWithDocument
* Performs a handshake and initializes messaging. * * Requires the `handshakepoll` viewer capability and the `origin` viewer parameter to be spe
extensions/amp-viewer-integration/0.1/messaging/messaging.js:104
↓ 2 callers
Function
injectStyleSheet
* Injects the provided styles in the HEAD section of the document. * @param {!../model/doc.Doc} doc The document object. * @param {string} styleText
third_party/subscriptions-project/swg.js:3741
↓ 2 callers
Function
insertAfterOrAtStart
(root, element, after = null)
src/core/dom/index.js:132
↓ 2 callers
Function
insertExtensionBundlesConfig
* Inserts an extension entry into bundles.config.extensions.json * * @param {BundleDef} bundle * @param {string=} destination * @return {Promise<v
build-system/tasks/make-extension/index.js:141
↓ 2 callers
Method
insertInListBasedOnPriority_
* Mutate linkRewriterList to insert a new LinkRewriter in the list * while keeping the list in order of priority as defined by the * idPriorityL
extensions/amp-skimlinks/0.1/link-rewriter/link-rewriter-manager.js:230
↓ 2 callers
Method
insertLoadIframe_
* @param {string} id * @return {!Promise<HTMLIFrameElement>} * @private
extensions/amp-imgur/0.1/amp-imgur.js:97
↓ 2 callers
Function
install
(win)
src/polyfills/document-contains.js:21
↓ 2 callers
Method
install
* Install the inputmask service and controllers.
extensions/amp-inputmask/0.1/amp-inputmask.js:31
↓ 2 callers
Function
installActionServiceForDoc
(ampdoc)
src/service/action-impl.js:1408
↓ 2 callers
Function
installAmpdocServicesForInabox
(ampdoc)
src/inabox/inabox-services.js:26
↓ 2 callers
Function
installAmpdocServicesInternal
* @param {!./ampdoc-impl.AmpDoc} ampdoc * @param {boolean} isEmbedded
src/service/core-services.js:92
↓ 2 callers
Function
installBatchedXhrService
(window)
src/service/batched-xhr-impl.js:92
↓ 2 callers
Function
installCidService
(ampdoc)
src/service/cid-impl.js:729
↓ 2 callers
Method
installEventHandlers_
* @private
extensions/amp-video/0.1/amp-video.js:693
↓ 2 callers
Method
installExtensionsForDoc_
* @param {!Document} doc
extensions/amp-live-list/0.1/live-list-manager.js:299
↓ 2 callers
Function
installForChildWin
(parentWin, childWin)
src/polyfills/resize-observer.js:24
↓ 2 callers
Function
installFormProxy
(form)
extensions/amp-form/0.1/form-proxy.js:34
↓ 2 callers
Method
installFriendlyIframeEmbed_
* Convert the iframe to FIE impl and append to DOM. * @param {string} html * @param {!Array<{extensionId: string, extensionVersion: string}>} ex
extensions/amp-a4a/0.1/amp-a4a.js:1980
↓ 2 callers
Function
installGlobalNavigationHandlerForDoc
(ampdoc)
src/service/navigation.js:53
↓ 2 callers
Function
installIframeMessagingClient
(win)
src/inabox/inabox-iframe-messaging-client.js:24
↓ 2 callers
Function
installInaboxResourcesServiceForDoc
(ampdoc)
src/inabox/inabox-resources.js:246
↓ 2 callers
Function
installInputService
(win)
src/input.js:279
↓ 2 callers
Function
installOwnersServiceForDoc
(ampdoc)
src/service/owners-impl.js:162
↓ 2 callers
Function
installPreconnectService
(window)
src/preconnect.js:323
↓ 2 callers
Function
installRuntimeStylesPromise
* @param {!Window} win
testing/describes.js:921
↓ 2 callers
Function
installRuntimeStylesTo
(head)
test/unit/test-extensions.js:38
↓ 2 callers
Function
installStandardActionsForDoc
(ampdoc)
src/service/standard-actions-impl.js:617
↓ 2 callers
Method
installSubmissionHandlers_
* Install submission handler on all forms in the document. * @param {NodeList} forms * @private
extensions/amp-form/0.1/amp-form.js:1626
↓ 2 callers
Function
installUrlForDoc
(ampdoc)
src/service/url-impl.js:177
↓ 2 callers
Function
installWebAnimationsIfNecessary
(ampdoc)
extensions/amp-animation/0.1/install-polyfill.js:12
↓ 2 callers
Method
install_
* @param {!Element} element * @param {!FxType} type * @private
extensions/amp-fx-collection/0.1/amp-fx-collection.js:82
↓ 2 callers
Function
instrumentIframeWindow
* Installs a mutation observer in a window to look for iframes. * @param {!Element} node * @param {!Window} parent * @param {!Window} win
3p/environment.js:133
↓ 2 callers
Method
interactionPrev
* Performs the prev action (e.g. for a click from the prev button). For a * carousel, this moves one carousel viewport backwards. For slides, this
extensions/amp-carousel/0.2/amp-carousel.js:306
↓ 2 callers
Function
interactiveElementsSelectors
()
extensions/amp-story/1.0/amp-story-embedded-component.js:100
↓ 2 callers
Function
is
(e)
examples/amp-script/vue-todomvc.js:7
↓ 2 callers
Function
is
(t,e)
third_party/react-dates/bundle.js:1
↓ 2 callers
Method
isActive
* Returns true if the service has already been initialized. * * @return {*} TODO(#23582): Specify return type
extensions/amp-next-page/0.1/next-page-service.js:110
↓ 2 callers
Method
isActiveOn
* @param {!Element} element * @return {boolean}
extensions/amp-form/0.1/validation-bubble.js:47
↓ 2 callers
Method
isAd_
* Whether the element is an Ad. Note that this does not cover amp-embed * currently. * @private * @return {boolean}
extensions/amp-loader/0.1/amp-loader.js:321
↓ 2 callers
Function
isAmpFormatType
* Checks that the document is of an AMP format type. * @param {Array<string>} formats * @param {Document} doc * @return {boolean}
src/core/document/format.js:7
↓ 2 callers
Function
isAmpStateSrc
(src)
extensions/amp-render/1.0/shared/amp-fetch-utils.js:17
↓ 2 callers
Function
isAmphtml
(doc)
src/core/document/format.js:25
↓ 2 callers
Function
isAnimationPaused
(iconElement)
test/integration/test-video-players-helper.js:457
↓ 2 callers
Function
isAssignment
* @param {*} node * @param {string} name * @return {{ * CallExpression: {Function(*): undefined}, * NewExpression: {Function(*): undefin
build-system/eslint-rules/prefer-deferred-promise.js:12
↓ 2 callers
Method
isAttached
* @return {boolean}
third_party/subscriptions-project/swg.js:10405
↓ 2 callers
Method
isAutoAdsLayoutCallbackExperimentOn_
* @return {boolean} * @private
extensions/amp-auto-ads/0.1/amp-auto-ads.js:98
← previous
next →
6,101–6,200 of 18,703, ranked by callers