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
Function
finish
()
3p/3d-gltf/index.js:15
↓ 1 callers
Method
finish
* @param {bool} unusedPauseOnError
extensions/amp-animation/0.1/runners/animation-runner.js:65
↓ 1 callers
Function
finishBundle
* Performs the final steps after a JS file is bundled and optionally minified * with esbuild and babel. * @param {string} destDir * @param {string}
build-system/tasks/helpers.js:231
↓ 1 callers
Method
finishWhenReady_
* @param {!../../amp-animation/0.1/runners/animation-runner.AnimationRunner} runner * @private
extensions/amp-story/1.0/animation.js:420
↓ 1 callers
Function
fireIntersection
({boundingClientRect, intersectionRatio, target})
test/unit/test-video-rotate-to-fullscreen.js:30
↓ 1 callers
Method
fireObservable_
* @param {string} messageType * @param {object} message
3p/iframe-messaging-client.js:224
↓ 1 callers
Method
fireSelectAndChangeEvents_
* Triggers select event on amp-autocomplete element and change events (bind * and native, for amp-script) on child input/textarea with the given va
extensions/amp-autocomplete/0.1/amp-autocomplete.js:1135
↓ 1 callers
Method
fire_
* Send out request. Should only be called by `trigger_` function * @private
extensions/amp-analytics/0.1/requests.js:230
↓ 1 callers
Method
firstDateAfter
* Gets the first date in the date list after the given date. * @param {!Date} date * @return {!Date}
extensions/amp-date-picker/1.0/component/dates-list.js:75
↓ 1 callers
Method
firstLayoutCompleted
* Called to notify the element that the first layout has been successfully * completed. * * The default behavior of this method is to hide th
src/base-element.js:606
↓ 1 callers
Method
fit
* @param {!Element} pageElement * @param {!Element} container * @param {string} content * @return {Promise<boolean>}
extensions/amp-story-auto-ads/0.1/story-ad-button-text-fitter.js:48
↓ 1 callers
Method
fixIosElasticScrollLeak_
* @private
extensions/amp-sidebar/0.2/amp-sidebar.js:667
↓ 1 callers
Method
fixIosElasticScrollLeak_
* @private
extensions/amp-sidebar/0.1/amp-sidebar.js:683
↓ 1 callers
Function
fixTextRangesWithRemovedText
* Fixes text ranges that point a text node removed when pos is marked. * @param {!TextPosDef} pos * @param {!Text} newText * @param {number} from
extensions/amp-viewer-integration/0.1/findtext.js:325
↓ 1 callers
Function
fixedEncodeURIComponent
* encode URI based on RFC 3986 * @param {string} str url string * @return {*} TODO(#23582): Specify return type
ads/vendors/uzou.js:56
↓ 1 callers
Function
flattenDown
(t,e)
third_party/react-dates/bundle.js:1
↓ 1 callers
Function
flattenDownDepth
(t,e,r)
third_party/react-dates/bundle.js:1
↓ 1 callers
Function
flattenFrom
(t)
third_party/react-dates/bundle.js:1
↓ 1 callers
Function
flattenFromDepth
(t,e)
third_party/react-dates/bundle.js:1
↓ 1 callers
Function
flattenGraph
* Flattens the module dependency graph and makes its entries unique. This * serves as the input on which all rules are tested. * * @param {!ModuleD
build-system/tasks/dep-check.js:231
↓ 1 callers
Method
flickToDismiss_
* @param {number} offsetX * @param {number} direction -1 or 1 * @private
extensions/amp-video-docking/0.1/amp-video-docking.js:1380
↓ 1 callers
Function
flip
* Returns the result of a coin flip, true or false * * @return {boolean}
build-system/server/app.js:693
↓ 1 callers
Method
flush_
* @private
extensions/amp-ad/0.1/legacy-ad-intersection-observer-host.js:196
↓ 1 callers
Function
focus
()
test/unit/core/dom/test-dom.js:525
↓ 1 callers
Method
focusInModal_
* Focus in the lightbox if it's not yet. * @private
extensions/amp-lightbox/0.1/amp-lightbox.js:635
↓ 1 callers
Function
forAllWithinInternal
* Execute a callback for all elements within the container. * * @param {Element} container * @param {boolean} includeSelf * @param {boolean} deep
src/core/dom/resource-container-helper.js:74
↓ 1 callers
Method
forDoc
* @param {!Element} element * @return {!Promise<!LiveListManager>}
extensions/amp-live-list/0.1/live-list-manager.js:109
↓ 1 callers
Function
forEachContained
* Iterates over all context nodes that are contained within the specified * `node`. Only iterates over known context nodes. * * @param {Node} node
src/core/context/node.js:503
↓ 1 callers
Method
forEachVisibleChild_
* Call the callback function for each child element that is visible in the * lightbox given current scroll position. * @param {number} pos *
extensions/amp-lightbox/0.1/amp-lightbox.js:800
↓ 1 callers
Method
forceClipDraw_
* Something causes browsers to forget to redraw the content of the container when they become visible. * @private
extensions/amp-fx-flying-carpet/0.1/amp-fx-flying-carpet.js:154
↓ 1 callers
Method
forceCollapse_
* Collapses slot by setting its size to 0x0. * @private
extensions/amp-a4a/0.1/amp-ad-network-base.js:216
↓ 1 callers
Method
forceDeallocateMediaElement_
* Forcibly deallocates a specific media element, regardless of its distance * from the current position in the document. * @param {!PoolBoundEle
extensions/amp-story/1.0/media-pool.js:440
↓ 1 callers
Function
forceElementReflow
(element)
ads/vendors/ssp.js:108
↓ 1 callers
Method
forceOpacity_
* To check for background-color alpha and force it to be 1. * Whoever calls this needs to make sure it's in a vsync. * @param {string} backgroun
extensions/amp-sticky-ad/1.0/amp-sticky-ad.js:304
↓ 1 callers
Method
forcePlaceAdAfterPage_
* Force an immediate ad placement without waiting for ad being loaded, * and then navigate to the ad page. * @param {!StoryAdPage} adPage
extensions/amp-story-auto-ads/0.1/amp-story-auto-ads.js:207
↓ 1 callers
Method
forceRepaintForSafari_
* For some reason, Safari has an issue where sometimes when pages become * visible, some descendants are not painted. This is a hack, where we det
extensions/amp-story/1.0/amp-story.js:1632
↓ 1 callers
Function
formatBasepath
* Adds a trailing slash if missing. * @param {string} basepath * @return {string}
build-system/server/app-index/util/listing.js:46
↓ 1 callers
Function
formatExtractedMessages
* Format extracted messages table in multiple outputs, keyed by id. * @return {!Promise}
build-system/compile/log-messages.js:32
↓ 1 callers
Method
formatPinCount
* Pretty print the Pin count with english suffixes * @param {number|string} count The Pin count for the source URL * @return {string}
extensions/amp-pinterest/0.1/save-button.js:90
↓ 1 callers
Method
formatPrice_
* @param {number} priceValue * @return {string} * @private
extensions/amp-access-laterpay/0.2/laterpay-impl.js:537
↓ 1 callers
Method
formatPrice_
* @param {number} priceValue * @return {string} * @private
extensions/amp-access-laterpay/0.1/laterpay-impl.js:476
↓ 1 callers
Method
forwardEventToViewer_
* @param {!Event} e * @private
extensions/amp-viewer-integration/0.1/keyboard-handler.js:84
↓ 1 callers
Function
forwardWrappingDistance
(a, b, arr)
extensions/amp-base-carousel/0.1/array-util.js:12
↓ 1 callers
Method
fromElement
* Gets an instance of ManualAdvancement based on the HTML tag of the element. * @param {!Window} win * @param {!Element} element * @return {?
extensions/amp-story/1.0/page-advancement.js:788
↓ 1 callers
Function
fromStructuredCloneable
(response, responseType)
src/utils/xhr-utils.js:118
↓ 1 callers
Function
fu
(n)
third_party/d3/d3.js:2
↓ 1 callers
Method
fullscreenEnter
* @override
extensions/amp-3q-player/0.1/amp-3q-player.js:263
↓ 1 callers
Method
fullscreenEnter
@override
extensions/amp-minute-media-player/0.1/amp-minute-media-player.js:416
↓ 1 callers
Method
fullscreenEnter
* @override
extensions/amp-delight-player/0.1/amp-delight-player.js:617
↓ 1 callers
Method
fullscreenEnter
* @override
extensions/amp-wistia-player/0.1/amp-wistia-player.js:250
↓ 1 callers
Method
fullscreenEnter
@override
extensions/amp-video-iframe/0.1/amp-video-iframe.js:486
↓ 1 callers
Method
fullscreenEnter
@override
extensions/amp-connatix-player/0.1/amp-connatix-player.js:489
↓ 1 callers
Method
fullscreenEnter
* @override
extensions/amp-ooyala-player/0.1/amp-ooyala-player.js:249
↓ 1 callers
Method
fullscreenExit
* Quits fullscreen mode
src/video-interface.js:176
↓ 1 callers
Method
fullscreenExit
* @override
extensions/amp-3q-player/0.1/amp-3q-player.js:273
↓ 1 callers
Method
fullscreenExit
@override
extensions/amp-minute-media-player/0.1/amp-minute-media-player.js:427
↓ 1 callers
Method
fullscreenExit
* @override
extensions/amp-delight-player/0.1/amp-delight-player.js:624
↓ 1 callers
Method
fullscreenExit
* @override
extensions/amp-wistia-player/0.1/amp-wistia-player.js:260
↓ 1 callers
Method
fullscreenExit
@override
extensions/amp-connatix-player/0.1/amp-connatix-player.js:504
↓ 1 callers
Method
fullscreenExit
* @override
extensions/amp-ooyala-player/0.1/amp-ooyala-player.js:259
↓ 1 callers
Function
g
(e,t,n)
examples/amp-script/todomvc.ssr.js:2
↓ 1 callers
Function
g
()
third_party/d3/d3.js:1
↓ 1 callers
Function
generateAMPConfigObject
()
test/unit/test-amp-context.js:396
↓ 1 callers
Function
generateActiveViewRequest
* @param {!JsonObject} config * @param {!Array<string>} urls
ads/google/a4a/utils.js:721
↓ 1 callers
Method
generateAdKey_
* @param {string} size * @return {string} The ad unit hash key string. * @private
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:1504
↓ 1 callers
Method
generateAdKey_
* @param {string} size * @param {string} slot * @return {string} The ad unit hash key string. * @private
extensions/amp-ad-network-valueimpression-impl/0.1/amp-ad-network-valueimpression-impl.js:184
↓ 1 callers
Method
generateAmpAnalyticsOffsets_
* Generates start and end of all json scripts * within <amp-analytics> tags * @param {Document} doc * @param {string} creative
extensions/amp-ad-network-fake-impl/0.1/amp-ad-metadata-transformer.js:243
↓ 1 callers
Function
generateAttributes
(opt_sentinel)
test/unit/test-amp-context.js:414
↓ 1 callers
Function
generateAttributesA4A
(opt_sentinel)
test/unit/test-amp-context.js:437
↓ 1 callers
Function
generateBeginToRenderRequest
* @param {!JsonObject} config * @param {!Array<string>} urls
ads/google/a4a/utils.js:745
↓ 1 callers
Function
generateContents
()
build-system/common/esbuild-babel.js:199
↓ 1 callers
Method
generateCtaMetadata_
* Generates CTA metadata for story ads * @param {Element} element
extensions/amp-ad-network-fake-impl/0.1/amp-ad-metadata-transformer.js:134
↓ 1 callers
Method
generateEmbedSourceUrl_
* * Returns the composed embed source url * @return {string} url *
extensions/amp-playbuzz/0.1/amp-playbuzz.js:269
↓ 1 callers
Function
generateFileListing_
* Generates a listing of all files in each org-cdn/rtv/ subdirectory. * @param {string} outputDir full directory path to emplace artifacts in. * @r
build-system/tasks/release/index.js:412
↓ 1 callers
Function
generateFunctionAllowlist
* @return {!{[key: string]: !{[key: string]: Function}}} * @private
extensions/amp-bind/0.1/bind-expression.js:33
↓ 1 callers
Function
generateHash
()
build-system/common/esbuild-babel.js:204
↓ 1 callers
Method
generateHeadMetadata_
* Generates metadata from document head, including * runtime offsets, custom extensions, styles, and CTA * @param {Element} head
extensions/amp-ad-network-fake-impl/0.1/amp-ad-metadata-transformer.js:77
↓ 1 callers
Method
generateIframeSrc_
@private
extensions/amp-3q-player/0.1/amp-3q-player.js:82
↓ 1 callers
Method
generateImageMetadata_
* Generates image metadata * @param {Document} doc
extensions/amp-ad-network-fake-impl/0.1/amp-ad-metadata-transformer.js:147
↓ 1 callers
Function
generateIncorrectAttributes
()
test/unit/test-amp-context.js:454
↓ 1 callers
Function
generateInfo
* @param {string} filePath * @return {string}
build-system/server/app.js:1542
↓ 1 callers
Method
generateJsonMetadata_
* Finds all <script type=application/json> tags and parses * existing <amp-ad-metadata> script, if it exists * @param {Document} doc
extensions/amp-ad-network-fake-impl/0.1/amp-ad-metadata-transformer.js:175
↓ 1 callers
Method
generateJsonOffsets_
* Generates start and end of all json scripts, * not including <amp-analytics> json * @param {string} creative
extensions/amp-ad-network-fake-impl/0.1/amp-ad-metadata-transformer.js:225
↓ 1 callers
Function
generateJsonWithState
(numberOfItems, pagesLeft)
build-system/server/routes/list.js:135
↓ 1 callers
Method
generateKeys
* Generates an RSA public/private key pair for signing and verifying. * @return {!Promise} * @protected
src/service/origin-experiments-impl.js:126
↓ 1 callers
Function
generateLightboxUid
* Generates a unique id for lightbox grouping. * @return {string}
extensions/amp-auto-lightbox/0.1/amp-auto-lightbox.js:405
↓ 1 callers
Function
generateList
()
build-system/tasks/check-video-interface-list.js:30
↓ 1 callers
Function
generateNonSraXhrMockCall
(impl, creative)
extensions/amp-ad-network-doubleclick-impl/0.1/test/test-doubleclick-sra.js:495
↓ 1 callers
Function
generatePageImpressionId
()
extensions/amp-skimlinks/0.1/utils.js:7
↓ 1 callers
Function
generatePostMessage
(ins, iframe, height)
extensions/amp-vk/0.1/test/test-amp-vk.js:213
↓ 1 callers
Method
generateRequests_
* Goes through all the requests in predefined vendor config and tag's config * and creates a map of request name to request template. These request
extensions/amp-analytics/0.1/amp-analytics.js:534
↓ 1 callers
Function
generateResults
(category, count = 2)
build-system/server/routes/list.js:65
↓ 1 callers
Method
generateRuntimeOffsets_
* Generates start and end of all runtime scripts, * so they can be extracted by amp-a4a.js * @param {string} creative
extensions/amp-ad-network-fake-impl/0.1/amp-ad-metadata-transformer.js:204
↓ 1 callers
Function
generateSerializedAttributesA4A
(opt_sentinel)
test/unit/test-amp-context.js:433
↓ 1 callers
Function
generateSessionId
* Return a pseudorandom low entropy value for session id. * @return {number}
extensions/amp-analytics/0.1/session-manager.js:289
↓ 1 callers
Function
generateSraXhrMockCall
( validInstances, networkId, responses, opt_xhrFail, opt_allInvalid )
extensions/amp-ad-network-doubleclick-impl/0.1/test/test-doubleclick-sra.js:429
↓ 1 callers
Method
generateStyleMetadata_
* Generates custom style metadata * @param {Element} element
extensions/amp-ad-network-fake-impl/0.1/amp-ad-metadata-transformer.js:122
↓ 1 callers
Method
generateTimerId_
* @return {number} * @private
extensions/amp-analytics/0.1/events.js:1259
↓ 1 callers
Method
generateUUID_
* Generate a unique UUID for this session. * @return {string} * @private
extensions/amp-smartlinks/0.1/amp-smartlinks.js:213
↓ 1 callers
Function
get
()
extensions/amp-form/0.1/form-proxy.js:185
← previous
next →
8,501–8,600 of 18,703, ranked by callers