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
Method
flushNearingViewportChanges_
* Flush changes for things nearing the viewport.
extensions/amp-base-carousel/0.1/child-layout-manager.js:308
↓ 2 callers
Method
flushQueue_
* Send queued data (if there is any) to a cross-domain iframe * @private
extensions/amp-analytics/0.1/iframe-transport-message-queue.js:100
↓ 2 callers
Method
flushQueuedTicks_
* Forwards all queued ticks to the viewer tick method. * @private
src/service/performance-impl.js:924
↓ 2 callers
Function
flushRaf
(ts = performance.now())
testing/preact.js:26
↓ 2 callers
Function
forEachChild
* @param {!Node} node The node to operate on. * @param {function(!Node)} cb A callback to call for each child.
extensions/amp-truncate-text/0.1/truncate-text.js:66
↓ 2 callers
Function
forEachOnObject
* @param {!Object} theObject * @param {!Function} callback
ads/vendors/uas.js:26
↓ 2 callers
Method
forType
* @param {string} type * @return {!Array<!EventListener>}
testing/fake-dom.js:378
↓ 2 callers
Method
forceSchedule_
@private
src/service/vsync-impl.js:378
↓ 2 callers
Function
formOrNullForElement
(element)
src/core/dom/form.js:11
↓ 2 callers
Function
formatTime
(time)
ads/google/ima/ima-video.js:1003
↓ 2 callers
Method
forwardEventToViewer_
* @param {!Event} e * @private
extensions/amp-viewer-integration/0.1/focus-handler.js:35
↓ 2 callers
Function
freeze
* @param {!Object} obj * @return {!Object}
testing/fake-dom.js:784
↓ 2 callers
Method
fromAutoAdvanceString
* Gets an instance of TimeBasedAdvancement based on the value of the * auto-advance string (from the 'auto-advance-after' attribute on the page).
extensions/amp-story/1.0/page-advancement.js:969
↓ 2 callers
Method
fromDegrees
* @param {number} heading * @param {number} pitch * @param {number} zoom * @return {!CameraOrientation}
extensions/amp-story-360/0.1/amp-story-360.js:139
↓ 2 callers
Method
fullscreenEnter
()
src/service/video-manager-impl.js:259
↓ 2 callers
Method
fullscreenEnter
@override
extensions/amp-jwplayer/0.1/amp-jwplayer.js:215
↓ 2 callers
Method
fullscreenExit
@override
extensions/amp-jwplayer/0.1/amp-jwplayer.js:227
↓ 2 callers
Function
fuzzysearch
(query, text)
third_party/fuzzysearch/index.js:3
↓ 2 callers
Function
g
(e,t)
third_party/inputmask/bundle.js:11
↓ 2 callers
Function
g
(t)
third_party/d3-geo-projection/d3-geo-projection.js:1
↓ 2 callers
Function
ge
(n,t)
third_party/d3/d3.js:2
↓ 2 callers
Function
gen
(length, create)
extensions/amp-list/1.0/storybook/Basic.js:146
↓ 2 callers
Function
generateBundles
* Generate bundles for all 3p vendors to be built. * @return {object}
build-system/tasks/3p-vendor-helpers.js:95
↓ 2 callers
Method
generateOption_
* Creates an option template filled with the details the attributes. * @param {./amp-story-interactive-abstract.OptionConfigType} option * @retu
extensions/amp-story-interactive/0.1/amp-story-interactive-binary-poll.js:184
↓ 2 callers
Method
generateRequest
* @param {boolean} withPayload * @return {!RequestDef}
extensions/amp-analytics/0.1/transport.js:93
↓ 2 callers
Function
generateResponseFormat
* @return {string} slot data written in expected stream response format
ads/google/a4a/test/test-line-delimited-response-handler.js:15
↓ 2 callers
Function
geoData
* * @param {{[key: string]: (string|Array<string})>|null} geo * @param {string} geoType * @return {string}
src/service/url-replacements-impl.js:73
↓ 2 callers
Method
getAcceptableBitrate_
* Returns the currently known acceptable bitrate for the user. * If the effective connection type of the user has changed since we last * looked
extensions/amp-video/0.1/flexible-bitrate.js:148
↓ 2 callers
Method
getAccessValue_
* Resolves the value via access service. If access service is not configured, * the resulting value is `null`. * @param {function(!../../extensi
src/service/url-replacements-impl.js:675
↓ 2 callers
Function
getActionHandler
()
test/unit/test-action.js:1030
↓ 2 callers
Method
getAdFrame_
* Returns the iframe containing the creative if it exists. * @return {?HTMLIFrameElement}
extensions/amp-story-auto-ads/0.1/story-ad-page.js:400
↓ 2 callers
Function
getAdHeight
* Calculate the ad height according to the layout and ad width. * @param {number} adWidth * @param {!LayoutType} layout * @return {number}
ads/google/a4a/shared/content-recommendation.js:400
↓ 2 callers
Method
getAdSizeOptimizationStorageKey_
* @param {string} adClientId * @return {string} ad size optimization storage key. * @private
extensions/amp-ad-network-adsense-impl/0.1/responsive-state.js:263
↓ 2 callers
Method
getAdUrl
@override
extensions/amp-ad-network-oblivki-impl/0.1/amp-ad-network-oblivki-impl.js:21
↓ 2 callers
Method
getAdUrl
@override
extensions/amp-ad-network-fake-impl/0.1/amp-ad-network-fake-impl.js:66
↓ 2 callers
Method
getAdUrl
@override
extensions/amp-ad-network-smartads-impl/0.1/amp-ad-network-smartads-impl.js:21
↓ 2 callers
Function
getAdWidth
* Calculate the core width according to the slot width and number * of columns. * @param {number} slotWidth * @param {number} numColumns * @return
ads/google/a4a/shared/content-recommendation.js:413
↓ 2 callers
Method
getAdditionalContextMetadata
@override
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:1908
↓ 2 callers
Method
getAdjustedViewportHeight_
* Preset effect behaves differently for elements that are initially above * the fold. * * Normally, preset factor is spread across a whole vi
extensions/amp-fx-collection/0.1/providers/fx-provider.js:251
↓ 2 callers
Function
getAdks
(impls)
extensions/amp-ad-network-doubleclick-impl/0.1/sra-utils.js:135
↓ 2 callers
Method
getAllMedia_
* Gets all media elements on this page. * @return {!Array<?Element>} * @private
extensions/amp-story/1.0/amp-story-page.js:995
↓ 2 callers
Method
getAllPlatformWeights_
* Calculate and return weights for all platforms * @return {!Array<!PlatformWeightDef>} * @private
extensions/amp-subscriptions/0.1/platform-store.js:555
↓ 2 callers
Method
getAllPlatformsEntitlements
* Returns entitlements when all platforms are done fetching them. * @return {!Promise<!Array<!./entitlement.Entitlement>>}
extensions/amp-subscriptions/0.1/platform-store.js:436
↓ 2 callers
Function
getAllowedPaymentMethodForType_
* @param {!IsReadyToPayRequest} isReadyToPayRequest * @param {string} paymentMethodType * @return {?PaymentMethod} Return first payment method for t
third_party/subscriptions-project/swg.js:16259
↓ 2 callers
Method
getAllowedTags
* Gets a copy of the map of allowed tag names (standard DOMPurify config). * @return {!{[key: string]: boolean}}
src/purifier/index.js:124
↓ 2 callers
Function
getAmpAdResourceId
(node, topWin)
src/ad-helper.js:91
↓ 2 callers
Method
getAmpAdResourceId_
* Gets the resource ID of the amp-ad element containing this amp-ad-exit tag. * This is a pass-through for the version in service.js, solely becaus
extensions/amp-ad-exit/0.1/amp-ad-exit.js:472
↓ 2 callers
Function
getAmpBeOpinion
(accountId)
extensions/amp-beopinion/0.1/test/test-amp-beopinion.js:22
↓ 2 callers
Function
getAmpContext
* The external context given to React components to control whether they can * render/play/etc. * * - renderable: whether this vDOM area is rendera
src/preact/context.tsx:37
↓ 2 callers
Method
getAmpDoc
* Returns the instance of the ampdoc (`AmpDoc`) that contains the specified * node. If the runtime is in the single-doc mode, the one global `AmpDo
src/service/ampdoc-impl.js:176
↓ 2 callers
Function
getAmpFont
()
extensions/amp-font/0.1/test/test-amp-font.js:32
↓ 2 callers
Function
getAmpLayout
(attrs, innerHTML)
test/unit/builtins/test-amp-layout.js:12
↓ 2 callers
Function
getAmpMathml
()
extensions/amp-mathml/0.1/test/test-amp-mathml.js:20
↓ 2 callers
Method
getAnalytics
* Returns the analytics service for subscriptions. * @return {!./analytics.SubscriptionAnalytics}
extensions/amp-subscriptions/0.1/service-adapter.js:15
↓ 2 callers
Method
getAnalyticsDetails
* Collects a snapshot of the current video state for video analytics * @return {!Promise<!VideoAnalyticsDetailsDef>}
src/service/video-manager-impl.js:994
↓ 2 callers
Function
getAncestors
* Gets all ancestors of an Element, including ancestors of any ShadowRoot * hosts. * @param {Element} element * @return {Array<Element>}
src/core/dom/modal.js:70
↓ 2 callers
Method
getAnimationPresetDef_
* @private * @return {!AnimationPresetDef}
extensions/amp-lightbox/0.1/amp-lightbox.js:492
↓ 2 callers
Function
getApplyExperimentToVariantParams
(mutations)
extensions/amp-experiment/1.0/test/test-apply-experiment.js:37
↓ 2 callers
Method
getArticle
* If the manager is also responsible for fetching the Article, it * will be accessible from here and should resolve a null promise otherwise. *
third_party/subscriptions-project/swg.js:12795
↓ 2 callers
Method
getArticleTitle_
* @return {string} * @private
extensions/amp-access-laterpay/0.2/laterpay-impl.js:317
↓ 2 callers
Method
getArticleTitle_
* @return {string} * @private
extensions/amp-access-laterpay/0.1/laterpay-impl.js:258
↓ 2 callers
Function
getAttributionReportingStatusUrlVariableRewriter
* @param {!Window} win * @param {string=} status * @param {(Element|./service/ampdoc-impl.AmpDoc)=} opt_elementOrAmpDoc Whether services are provide
src/pixel.js:152
↓ 2 callers
Method
getAutoFormat_
* @return {string} * @private
extensions/amp-ad-network-adsense-impl/0.1/responsive-state.js:361
↓ 2 callers
Function
getAutoSlotSize
* @param {number} availableWidth * @return {{width: number, height: number}}
ads/google/a4a/shared/content-recommendation.js:380
↓ 2 callers
Function
getBaseDomain
* Strips out all prefixing m. www. amp. from a domain name. * @param {string} domain * @return {string}
extensions/amp-analytics/0.1/linker-manager.js:485
↓ 2 callers
Function
getBaseIntrinsic
(e,r)
third_party/react-dates/bundle.js:1
↓ 2 callers
Method
getBasePath_
* Returns the base path based on the environment. * * @private * @return {string} The base path
third_party/subscriptions-project/swg.js:16652
↓ 2 callers
Method
getBindDate_
* Create a date object to be consumed by AMP actions and events or amp-bind. * @param {?moment} date * @return {?BindDateDetails} * @private
extensions/amp-date-picker/0.1/amp-date-picker.js:1574
↓ 2 callers
Function
getBindingInline
(attributes)
extensions/amp-autocomplete/0.1/test/test-amp-autocomplete-bindings.js:117
↓ 2 callers
Method
getBitrateForComparison_
* Returns the bitrate of a source in such a way that bitrates that are higher * than the current acceptable bitrate rank lowest. * @param {!Elem
extensions/amp-video/0.1/flexible-bitrate.js:205
↓ 2 callers
Method
getBodyElement
* @return {!HTMLBodyElement} * @visibleForTesting
src/friendly-iframe-embed.js:548
↓ 2 callers
Function
getBordersSize
* Extracts borders size from provided styles. * * @param {CSSStyleDeclaration} styles * @param {...string} positions - Borders position
third_party/resize-observer-polyfill/ResizeObserver.js:187
↓ 2 callers
Function
getBordersSize
* Extracts borders size from provided styles. * * @param {CSSStyleDeclaration} styles * @param {...string} positions - Borders position
third_party/resize-observer-polyfill/ResizeObserver.install.js:186
↓ 2 callers
Function
getBrightcoveBuild
(attributes)
extensions/amp-brightcove/0.1/test/test-amp-brightcove.js:39
↓ 2 callers
Function
getBrightcoveIframeSrc
( account, player, embed, playlistId, videoId, referrer, additionalParams )
src/bento/apis/brightcove-api.js:46
↓ 2 callers
Function
getBufferedPercentage
* @private * @param {!Element} videoEl * @return {number} the percentage buffered [0-1]
extensions/amp-video/0.1/flexible-bitrate.js:341
↓ 2 callers
Function
getButtonTitle
* Returns the title for a next or prev button. * Format: * - Scrollable: "Next item in carousel" * - Slides : "Next item in carousel (X of Y)"
extensions/amp-carousel/0.1/build-dom.js:328
↓ 2 callers
Method
getButtonTitleSuffix_
* @param {number} buttonIndex The index that the button will take the user * to. * @return {string} The formatted suffix for the button title
extensions/amp-carousel/0.2/amp-carousel.js:464
↓ 2 callers
Method
getByConstructor
* Finds the custom element definition by constructor instance. * * @param {!CustomElementConstructorDef} ctor * @return {!CustomElementDef|un
src/polyfills/custom-elements.js:256
↓ 2 callers
Method
getCachedSources_
* @private * @return {!Array<!Element>}
extensions/amp-video/0.1/amp-video.js:651
↓ 2 callers
Function
getCalendarButtonByDay
(calendar, day)
extensions/amp-date-picker/0.1/test/integration/test-integration-maximum-nights.js:59
↓ 2 callers
Function
getCallbacksObject
* @return {{renderStartCb: (function(*=)), reportRenderedEntityIdentifierCb: (function(*=)), noContentAvailableCb: (function())}}
ads/vendors/medianet.js:53
↓ 2 callers
Function
getCdnUrlRegExp
(pathPattern = '[^\'">]+')
build-system/server/app-utils.js:73
↓ 2 callers
Method
getCenterX_
* Gets the horizontal center of the currently docked video, offset by x. * @param {number} offsetX * @return {number} * @private
extensions/amp-video-docking/0.1/amp-video-docking.js:1483
↓ 2 callers
Function
getChannelError
* Creates a dev error for the case where a channel cannot be established. * @param {*=} opt_reason * @return {!Error}
src/service/viewer-impl.js:928
↓ 2 callers
Function
getChannels
* Get channels from Channels section * status.amp.dev only cares about Stable and LTS, so ignore other channels * @param {string} body * @return {A
build-system/status-page/common.js:47
↓ 2 callers
Function
getCharacterDataMutationRecord
()
extensions/amp-experiment/1.0/test/test-mutation.js:27
↓ 2 callers
Function
getCheckSum
* Create a unique checksum hashing the fingerprint and a few other values. * @param {string} serializedIds * @param {number=} opt_offsetMin * @retu
extensions/amp-analytics/0.1/linker.js:112
↓ 2 callers
Function
getCheckSum
* Create a unique checksum hashing the fingerprint and a few other values. * @param {string} serializedIds * @param {number=} opt_offsetMin * @retu
extensions/amp-consent/0.1/linker.js:112
↓ 2 callers
Function
getCheckSum
* @private * @description * Utility to try to pull a checksum attribute from an element. * Uses 'data-checksum' or user specified checksum property
third_party/set-dom/set-dom.js:254
↓ 2 callers
Function
getCheckSum
* @private * @description * Utility to try to pull a checksum attribute from an element. * Uses 'data-checksum' or user specified checksum property
third_party/set-dom/original.js:248
↓ 2 callers
Function
getChooseAvailableDatePhrase
(e,t)
third_party/react-dates/bundle.js:1
↓ 2 callers
Method
getCidService_
* Get cid service. * @return {!Promise} * @private
extensions/amp-user-notification/0.1/amp-user-notification.js:358
↓ 2 callers
Function
getCompanionVideoAdSize
(apesterElement)
extensions/amp-apester-media/0.1/monetization/companion/video.js:181
↓ 2 callers
Method
getComponentDescendants_
* Gets a list of all AMP element descendants. * @return {!Array<!Element>} * @private
extensions/amp-lightbox/0.1/amp-lightbox.js:205
↓ 2 callers
Function
getComputedTop
(win)
extensions/amp-fx-collection/0.1/test/integration/test-amp-fx-fly-in.js:132
↓ 2 callers
Function
getConfig
* Retrieve the describes config if set. * If not set, it sets the config to an empty object and returns it. * After getting the config the first tim
build-system/tasks/e2e/describes-e2e.js:82
↓ 2 callers
Function
getConfig
* @param {string} type Prod or canary * @param {string} target File containing the AMP runtime (amp.js or v0.js) * @param {string} filename File con
build-system/tasks/prepend-global/index.js:134
↓ 2 callers
Method
getConfig
* @return {!JsonObject}
extensions/amp-access/0.1/amp-access-source.js:561
↓ 2 callers
Function
getConfigOpts
(element)
extensions/amp-link-rewriter/0.1/config-options.js:15
← previous
next →
5,601–5,700 of 18,703, ranked by callers