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
Method
handler
(e)
extensions/amp-video-docking/0.1/amp-video-docking.js:530
↓ 1 callers
Method
handler
* Handler function. * @param {!../components/activities.ActivityPortDef} port
third_party/subscriptions-project/swg.js:14148
↓ 1 callers
Method
hasAdPromise
* @return {boolean} whether adPromise was initialized (indicator of * element validity). * @protected
extensions/amp-a4a/0.1/amp-a4a.js:579
↓ 1 callers
Function
hasAnimations
(element)
extensions/amp-story/1.0/animation.js:61
↓ 1 callers
Method
hasAnyCachedSources_
* @private * @return {boolean}
extensions/amp-video/0.1/amp-video.js:668
↓ 1 callers
Function
hasAwaitParent
* Returns true if the given espree AST node is a child of an `AwaitExpression`. * @param {!Object} node * @return {boolean}
build-system/eslint-rules/await-expect.js:52
↓ 1 callers
Method
hasBackgroundContent_
* @return {boolean} True if the currently loading element has background * content via a placeholder or poster. * @private
extensions/amp-loader/0.1/amp-loader.js:202
↓ 1 callers
Method
hasBeenViewed
@return {boolean}
extensions/amp-story-auto-ads/0.1/story-ad-page.js:160
↓ 1 callers
Method
hasBlurryImagePlaceholder_
* Whether element has an image blurry placeholder * @return {boolean}
extensions/amp-loader/0.1/amp-loader.js:350
↓ 1 callers
Function
hasCustomElements
* Does win have a full Custom Elements registry? * * @param {!Window} win * @return {boolean}
src/polyfills/custom-elements.js:66
↓ 1 callers
Method
hasCustomSlot
@override
extensions/amp-live-list/0.1/amp-live-list.js:251
↓ 1 callers
Function
hasEnumAnnotation
* @param {!Node} node * @return {boolean}
build-system/eslint-rules/enums.js:46
↓ 1 callers
Function
hasExclusiveLinksFlag_
* Flag to mark links as exclusive. * @param {!Element} element * @return {boolean}
extensions/amp-smartlinks/0.1/linkmate-options.js:43
↓ 1 callers
Method
hasExistingStickyAd_
* @return {boolean} * @private
extensions/amp-auto-ads/0.1/anchor-ad-strategy.js:68
↓ 1 callers
Function
hasForbiddenTerms
* Test if a file's contents match any of the forbidden terms * @param {string} srcFile * @return {boolean} true if any of the terms match the file c
build-system/tasks/presubmit.js:24
↓ 1 callers
Function
hasFullScreenApi
* Checks if the current browser supports requesting fullscreen * @param {Window} win * @return {boolean}
src/bento/components/bento-jwplayer/1.0/component.js:20
↓ 1 callers
Method
hasInfoTemplate_
* Returns `true` if an info template exists. * @return {boolean} * @private
extensions/amp-date-picker/0.1/amp-date-picker.js:1731
↓ 1 callers
Function
hasLinkmateFlag_
* Flag to run the Linkmate service on an article. * @param {!Element} element * @return {boolean} * @private
extensions/amp-smartlinks/0.1/linkmate-options.js:34
↓ 1 callers
Method
hasLoadingIndicator
* @return {boolean} * @abstract
third_party/subscriptions-project/swg.js:2868
↓ 1 callers
Method
hasLowerBitrate_
* Returns true if any sources of the video have a lower bitrate than the given * bitrate. * @param {!Element} video * @param {number} bitrate
extensions/amp-video/0.1/flexible-bitrate.js:223
↓ 1 callers
Method
hasMatchingPendingElement_
* Returns the index of the matching element from the queue using the * element id. Otherwise returns -1 for not found. * * @param {!Array<!El
extensions/amp-live-list/0.1/amp-live-list.js:682
↓ 1 callers
Function
hasNaturalDimensions
(tagName)
src/core/static-layout.js:43
↓ 1 callers
Function
hasNextNodeInDocumentOrder
* Whether the element have a next node in the document order. * This means either: * a. The element itself has a nextSibling. * b. Any of the ele
third_party/subscriptions-project/config.js:386
↓ 1 callers
Method
hasOffersFlowRequestCallback
* @return {boolean}
third_party/subscriptions-project/swg.js:9184
↓ 1 callers
Method
hasOptedOut_
* @return {boolean} true if the user has opted out.
extensions/amp-analytics/0.1/amp-analytics.js:503
↓ 1 callers
Function
hasPurposeOneFromConsentString_
* @param {string} consentString * @return {boolean}
extensions/amp-a4a/0.1/amp-a4a.js:2649
↓ 1 callers
Function
hasTapAction
(el)
extensions/amp-story/1.0/utils.js:42
↓ 1 callers
Function
hasTargeting
(impl)
extensions/amp-ad-network-doubleclick-impl/0.1/sra-utils.js:210
↓ 1 callers
Function
hasTemplateLiteral
* @param {!Node} node * @return {boolean}
build-system/eslint-rules/no-mixed-interpolation.js:20
↓ 1 callers
Method
hasValidLdJsonType
* Determines wheter one of the document types (field `@type`) defined in * LD+JSON schema is in ENABLED_LD_JSON_TYPES. * @param {!../../../src/s
extensions/amp-auto-lightbox/0.1/amp-auto-lightbox.js:358
↓ 1 callers
Method
hasValidOgType
* Determines wheter the document type as defined by Open Graph meta tag * e.g. `<meta property="og:type">` is valid. * @param {!../../../src/ser
extensions/amp-auto-lightbox/0.1/amp-auto-lightbox.js:335
↓ 1 callers
Method
hasVideoWithAudio_
* Checks if the page has any videos with audio. * @return {!Promise<boolean>} * @private
extensions/amp-story/1.0/amp-story-page.js:1653
↓ 1 callers
Function
hash
()
build-system/common/esbuild-babel.js:213
↓ 1 callers
Function
haveSlidersLoadEnded
()
extensions/amp-image-slider/0.1/test/integration/test-amp-image-slider.js:865
↓ 1 callers
Function
he
(e,a,t)
third_party/react-dates/bundle.js:1
↓ 1 callers
Function
headerBidding
* @param {!Window} global * @param {!Object} data
ads/vendors/pulsepoint.js:40
↓ 1 callers
Method
height
* Determine the height of the contents to allow resizing after first layout. * * @return {!Promise<?number>}
extensions/amp-pinterest/0.1/pin-widget.js:340
↓ 1 callers
Function
helpersFactory
(env)
extensions/amp-smartlinks/0.1/test/test-linkmate.js:9
↓ 1 callers
Function
helpersFactory
(env)
extensions/amp-smartlinks/0.1/test/test-amp-smartlinks.js:9
↓ 1 callers
Function
hex2rgba
* Format a hex value (HTML colors such as #ffffff) as an RGBA. * * @param {string} hex * @return {string} rgba
validator/js/chromeextension/worker.js:33
↓ 1 callers
Method
hideAfterTimeout
* Hides the overlay after a given time * @param {number} timeout
extensions/amp-story/1.0/amp-story-hint.js:199
↓ 1 callers
Method
hideAllLoadMoreElements
* Hide all load-more elements during reset.
extensions/amp-list/0.1/service/load-more-service.js:246
↓ 1 callers
Function
hideBanner
* Hides the app banner. * @param {!Object} state
extensions/amp-app-banner/0.1/amp-app-banner.js:534
↓ 1 callers
Method
hideControls
@override
extensions/amp-jwplayer/0.1/amp-jwplayer.js:188
↓ 1 callers
Method
hideControls
@override
extensions/amp-3q-player/0.1/amp-3q-player.js:256
↓ 1 callers
Method
hideControls
@override
extensions/amp-delight-player/0.1/amp-delight-player.js:610
↓ 1 callers
Method
hideControls
@override
extensions/amp-video-iframe/0.1/amp-video-iframe.js:510
↓ 1 callers
Method
hideControls_
* Hide the lightbox overlay (description and controls). * @private
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:587
↓ 1 callers
Method
hideCurrentDialog_
* Hides and removes the current dialog being shown. * @private
extensions/amp-story-dev-tools/0.1/amp-story-dev-tools-tab-preview.js:796
↓ 1 callers
Method
hideFallbackAndPlaceholder_
* Must be called in mutate context. * @private
extensions/amp-list/0.1/amp-list.js:1661
↓ 1 callers
Method
hideMessageAfterTimeout_
* Hides message after elapsed time. * @param {string} message * @private
extensions/amp-story/1.0/amp-story-system-layer.js:714
↓ 1 callers
Method
hideMessageInternal_
* Hides message. * @param {string} message * @private
extensions/amp-story/1.0/amp-story-system-layer.js:729
↓ 1 callers
Method
hideOnFocusedState_
* Hides navigation hint if tooltip is open. * @param {boolean} isActive * @private
extensions/amp-story/1.0/amp-story-hint.js:255
↓ 1 callers
Method
hideOnTapOutside_
@private
extensions/amp-video-docking/0.1/controls.js:458
↓ 1 callers
Method
hideRestOfTheSlides_
* Given an index, hides rest of the slides that are not needed. * @param {Array<number>} indexArr Array of indices that * should not be hidde
extensions/amp-carousel/0.1/slidescroll.js:928
↓ 1 callers
Method
hideToolbar_
* Function to hide the toolbar, * and show toolbar-only element in the sidebar. * @private
extensions/amp-sidebar/0.2/toolbar.js:131
↓ 1 callers
Method
hideToolbar_
* Function to hide the toolbar, * and show toolbar-only element in the sidebar. * @private
extensions/amp-sidebar/0.1/toolbar.js:132
↓ 1 callers
Method
hideViewerHeader
* Updates binding with the new padding when hiding viewer header. * @param {boolean} unusedTransient * @param {number} unusedLastPaddingTop
src/service/viewport/viewport-binding-def.js:75
↓ 1 callers
Method
highlightUsingTextFragments_
* @param {!HighlightInfoDef} highlightInfo * @private
extensions/amp-viewer-integration/0.1/highlight-handler.js:176
↓ 1 callers
Method
historyForTesting
@return {!../../../src/service/history-impl.History}
extensions/amp-bind/0.1/bind-impl.js:652
↓ 1 callers
Method
historyPushState_
* @param {*=} state * @param {(string|undefined)=} title * @param {(string|undefined)=} url * @private
src/service/history-impl.js:714
↓ 1 callers
Function
hn
(n,t,e)
third_party/d3/d3.js:1
↓ 1 callers
Function
hn
(t,n)
third_party/d3-geo-projection/d3-geo-projection.js:1
↓ 1 callers
Function
hoistProperties
* Resolves static references to object properties as deeply as possible, * and hoists references to those values. * @param {import('@babel/trave
build-system/compile/json-schema/index.js:273
↓ 1 callers
Function
htmlSplit
(str)
third_party/caja/html-sanitizer.js:1922
↓ 1 callers
Function
httpsRequest
* @param {string} url * @param {object} options * @param {string=} data * @return {!Promise<{res: *, body: string}>}
build-system/common/update-session-issues/index.js:91
↓ 1 callers
Method
idForWindow_
* Returns an identifier for `win`, unique for set of windows seen so far. * @param {!Window} win * @return {number} * @private
src/web-worker/amp-worker.js:243
↓ 1 callers
Function
ieMobileHandler
(input, inputValue, caretPos)
third_party/inputmask/inputmask.js:1844
↓ 1 callers
Function
ieSafeCssTextFromKeyFrameRule
(rule)
third_party/webcomponentsjs/ShadowCSS.js:167
↓ 1 callers
Function
iframeDrop
(url, ampDoc, data)
extensions/amp-addthis/0.1/addthis-utils/pixel.js:74
↓ 1 callers
Function
iframeNestingDepth
* @param {!Window} win * @return {number}
ads/google/a4a/utils.js:397
↓ 1 callers
Method
ignoreBecauseAnotherDocked_
* @param {!VideoOrBaseElementDef} video * @return {boolean}
extensions/amp-video-docking/0.1/amp-video-docking.js:681
↓ 1 callers
Method
ignoreDueToDismissal_
* @param {!VideoOrBaseElementDef} video * @return {boolean} * @private
extensions/amp-video-docking/0.1/amp-video-docking.js:843
↓ 1 callers
Method
ignoreDueToNotPlayingManually_
* @param {!VideoOrBaseElementDef} video * @return {boolean}
extensions/amp-video-docking/0.1/amp-video-docking.js:673
↓ 1 callers
Function
ii
(e,t)
examples/amp-script/vue-todomvc.js:7
↓ 1 callers
Method
immediateTriggerCondition_
* Returns true if this task should be run without delay. * @return {boolean} * @protected
src/chunk.js:219
↓ 1 callers
Function
implExtends
(o2, impl)
extensions/amp-o2-player/0.1/test/test-amp-o2-player.js:175
↓ 1 callers
Function
importAttributeOptions
(npt, opts, userOptions, dataAttribute)
third_party/inputmask/inputmask.js:115
↓ 1 callers
Method
importKey_
* @param {!Promise<string>} pemPromise * @return {!Promise<!webCrypto.CryptoKey>}
extensions/amp-access/0.1/jwt.js:146
↓ 1 callers
Function
includeJsonLiteral
(path)
build-system/babel-plugins/babel-plugin-transform-json-configuration/index.js:187
↓ 1 callers
Method
incrementFrameClick_
* Increases a click count for the iframe * * @param {Element} activeElement
extensions/amp-addthis/0.1/addthis-utils/monitors/click-monitor.js:61
↓ 1 callers
Method
incrementPageEventCount_
* Keeps count of number of events emitted by page for an event type. * @param {!StoryAnalyticsEvent} eventType * @private
extensions/amp-story/1.0/story-analytics.js:182
↓ 1 callers
Function
indexOf
(list, elem)
third_party/inputmask/inputmask.dependencyLib.js:10
↓ 1 callers
Function
indexOf
(t,e)
third_party/react-dates/bundle.js:1
↓ 1 callers
Function
indexWithinParent
* Gets a string showing the index of an element within * the children of its parent, counting only nodes with the same tag. * Stop at 25, just to ha
src/core/dom/fingerprint.js:73
↓ 1 callers
Function
init
* Initialize 3p frame.
3p/recaptcha.js:58
↓ 1 callers
Function
init
* Initializer.
ads/vendors/medianet.js:127
↓ 1 callers
Function
init
* Initializer.
ads/vendors/a9.js:180
↓ 1 callers
Function
init
* Initialize WebAssembly module. This function must be called before all other * functions. * * @async
validator/cpp/engine/wasm/validator.js:28
↓ 1 callers
Method
init
* A chance to initialize default Preact props for the element. * * @return {JsonObject|void}
src/preact/base-element.js:346
↓ 1 callers
Method
init
@override
extensions/amp-audio/1.0/amp-audio.js:17
↓ 1 callers
Method
init
* @override * Initializes the players but does not change the state. * @suppress {missingProperties}
extensions/amp-animation/0.1/runners/scrolltimeline-worklet-runner.js:45
↓ 1 callers
Method
init
* @override * Initializes the players but does not change the state.
extensions/amp-animation/0.1/runners/native-web-animation-runner.js:65
↓ 1 callers
Method
initBatchInterval_
* Handle batchInterval
extensions/amp-analytics/0.1/requests.js:291
↓ 1 callers
Method
initFields_
* Init params * @private
extensions/amp-minute-media-player/0.1/amp-minute-media-player.js:112
↓ 1 callers
Method
initFocusHandler_
* @param {!Messaging} messaging * @private
extensions/amp-viewer-integration/0.1/amp-viewer-integration.js:245
↓ 1 callers
Method
initHiddenObserver_
* Start observing changes to the hidden attribute, if we haven't already * started.
src/service/fixed-layer.js:246
↓ 1 callers
Method
initHighlight_
* @param {!HighlightInfoDef} highlightInfo * @private
extensions/amp-viewer-integration/0.1/highlight-handler.js:253
↓ 1 callers
Function
initInaboxHost
* A sample bootstrap script that is to be run in ads tag. * * @param {!Window} win
examples/amphtml-ads/ads-tag-integration.js:20
↓ 1 callers
Method
initKeyboardHandler_
* @param {!Messaging} messaging * @private
extensions/amp-viewer-integration/0.1/amp-viewer-integration.js:261
← previous
next →
9,501–9,600 of 18,703, ranked by callers