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
getCdnUrlAttr
(node: posthtml.Node)
build-system/server/new-server/transforms/utilities/cdn-tag.ts:28
↓ 1 callers
Method
getCdnUrlOnOrigin
* If the resource URL is referenced from the publisher's origin, * convert the URL to be referenced from the cache. * @param {string} resourceUr
src/service/url-impl.js:163
↓ 1 callers
Function
getChar19
* Ensures the passed value is safe to use for character 19 per rfc4122, * sec. 4.1.5. "Sets the high bits of clock sequence". * @param {!number} v
third_party/subscriptions-project/swg.js:3269
↓ 1 callers
Function
getCharacterDataMutation
()
extensions/amp-experiment/1.0/test/test-character-data-mutation.js:26
↓ 1 callers
Method
getChildResources
* @return {!Array<!../service/resource.Resource>} * @visibleForTesting
src/inabox/inabox-viewport.js:642
↓ 1 callers
Method
getChildren
* Returns our discovered children * @return {!Array<!Element>}
extensions/amp-fx-flying-carpet/0.1/amp-fx-flying-carpet.js:228
↓ 1 callers
Function
getChromeArgs
* Configure chrome args. * * @param {!SeleniumConfigDef} config * @return {!Array<string>}
build-system/tasks/e2e/describes-e2e.js:159
↓ 1 callers
Method
getClientId_
* Gets a Promise to return the unique AMP clientId * @private * @return {Promise<string>}
extensions/amp-story-interactive/0.1/amp-story-interactive-abstract.js:407
↓ 1 callers
Method
getClientId_
* Returns the client ID to be used. * @return {?string} * @private
third_party/subscriptions-project/swg.js:18388
↓ 1 callers
Method
getClientInfoPromise_
* Get the client information that needs to be passed to cmp iframe * @return {!Promise<JsonObject>}
extensions/amp-consent/0.1/consent-ui.js:564
↓ 1 callers
Method
getClientRectAsync
@override
src/service/viewport/viewport-impl.js:414
↓ 1 callers
Method
getClosestPriorMatch_
* Finds the closest string in the user input prior to the cursor * to display suggestions.
src/bento/components/bento-autocomplete/1.0/component/autocomplete-binding-inline.ts:26
↓ 1 callers
Method
getClosestPriorMatch_
* Finds the closest string in the user input prior to the cursor * to display suggestions. * @param {RegExp} regex * @param {!HTMLInputElemen
extensions/amp-autocomplete/0.1/autocomplete-binding-inline.js:66
↓ 1 callers
Function
getCommentContainer
* @param {!Window} global * @param {!Object} data The element data * @return {!Element} div
3p/reddit.js:29
↓ 1 callers
Function
getCommentsContainer
* Create DOM element for the Facebook comments plugin: * Reference: https://developers.facebook.com/docs/plugins/comments * @param {!Window} global
3p/facebook.js:132
↓ 1 callers
Function
getCommit
* Get the SHA of the last green commit from the main branch. * * @param {Octokit} octokit * @return {Promise<string>} * @throws {Error} if a green
build-system/release-workflows/cut-nightly.js:45
↓ 1 callers
Function
getCommonUnitTestPaths
* @return {Array<*>}
build-system/test-configs/config.js:75
↓ 1 callers
Function
getCompanionPosition
* @param {!JsonObject} video * @return {?string}
extensions/amp-apester-media/0.1/monetization/companion/video.js:76
↓ 1 callers
Function
getCompanionVideoAdSize
(apesterElement)
extensions/amp-apester-media/0.1/monetization/inUnit/video.js:129
↓ 1 callers
Function
getCompiledFile
* Returns compiled file to prepend within wrapper and empty string if none. * * @param {string} srcFilename * @return {Promise<string>}
build-system/tasks/helpers.js:178
↓ 1 callers
Method
getComplete
* @return {?boolean}
third_party/subscriptions-project/swg.js:245
↓ 1 callers
Function
getComponentNameFromPath
* Gets the name of a component from its directory path. * Returns undefined if the path is not a component directory. * @param {string} path * @ret
build-system/release-tagger/make-release.js:103
↓ 1 callers
Function
getComponentSelectors
* Gets the list of components with their respective selectors. * @param {!Object} components * @return {!{[key: string]: string}}
extensions/amp-story/1.0/amp-story-embedded-component.js:77
↓ 1 callers
Function
getComputedStylePropertyPixels
* @param {!Window} win * @param {!Element} element * @param {string=} property * @return {number}
src/service/viewport/viewport-impl.js:48
↓ 1 callers
Method
getConfigBasePath_
* Returns the base path for authorize endpoint * @private * @return {string}
extensions/amp-access-fewcents/0.1/fewcents-impl.js:171
↓ 1 callers
Function
getConfigJson
* @param {!AmpElement} element * @return {JsonObject}
extensions/amp-link-rewriter/0.1/config-options.js:39
↓ 1 callers
Function
getConfigManager
()
extensions/amp-addthis/0.1/amp-addthis.js:80
↓ 1 callers
Function
getConfigOptions
(element)
extensions/amp-smartlinks/0.1/linkmate-options.js:6
↓ 1 callers
Method
getConfigUrl_
* @private * @return {string}
extensions/amp-access-laterpay/0.2/laterpay-impl.js:193
↓ 1 callers
Method
getConfigUrl_
* @private * @return {string}
extensions/amp-access-laterpay/0.1/laterpay-impl.js:160
↓ 1 callers
Function
getConfig_
* @param {!Element} element * @return {!Object}
extensions/amp-skimlinks/0.1/skim-options.js:161
↓ 1 callers
Method
getConfig_
* The experiment config can be represented as: * const config = { * experimentObject: { * // General experiment settings e.g schedule.
extensions/amp-experiment/1.0/amp-experiment.js:154
↓ 1 callers
Method
getConfig_
@return {!JsonObject} [description]
extensions/amp-experiment/0.1/amp-experiment.js:69
↓ 1 callers
Method
getConfig_
* Tries to load an auto-ads configuration from the given URL. This uses a * non-credentialed request. * @param {string} configUrl * @return {
extensions/amp-auto-ads/0.1/amp-auto-ads.js:78
↓ 1 callers
Function
getConsentData
(apesterElement)
extensions/amp-apester-media/0.1/monetization/consent-util.js:25
↓ 1 callers
Method
getConsentData_
* @private * @return {Promise}
extensions/amp-jwplayer/0.1/amp-jwplayer.js:632
↓ 1 callers
Method
getConsentData_
* Requests consent data from consent module * and forwards information to player * @private
extensions/amp-brid-player/0.1/amp-brid-player.js:290
↓ 1 callers
Method
getConsentInfo
* @param {string} policy * @return {Promise}
extensions/amp-jwplayer/1.0/amp-jwplayer.js:46
↓ 1 callers
Method
getConsentInstanceSharedData
* Returns a promise that resolves to a shareData object that is returned * from the remote endpoint. * * @return {?Promise<?Object>}
extensions/amp-consent/0.1/consent-state-manager.js:264
↓ 1 callers
Function
getConsentMetadataValue
* Get the associated value from the resolved consent metadata object * @param {!Element} element * @param {string} key * @return {!Promise<?Object>
extensions/amp-analytics/0.1/variables.js:603
↓ 1 callers
Method
getConsentPolicy
* Returns the consent policy id that this element should wait for before * buildCallback. * A `null` value indicates to not be blocked by consen
src/base-element.js:366
↓ 1 callers
Method
getConsentPolicy
@override
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:776
↓ 1 callers
Method
getConsentPolicy
@override
extensions/amp-consent/0.1/amp-consent.js:117
↓ 1 callers
Method
getConsentPolicyInfo_
* Get consent data from consent module * @return {!Promise<string>}
extensions/amp-nexxtv-player/0.1/amp-nexxtv-player.js:140
↓ 1 callers
Method
getConsentPolicyState_
* Get the consent policy state * @param {string} consentPolicyId * @private * @return {Promise}
extensions/amp-o2-player/0.1/amp-o2-player.js:224
↓ 1 callers
Method
getConsentState
* Requests consent state from the parent window. * * @param {function(*)} callback
3p/ampcontext.js:208
↓ 1 callers
Function
getConsentStateStr
* Get the resolved consent state value to send with analytics request * @param {!Element} element * @return {!Promise<?string>}
extensions/amp-analytics/0.1/variables.js:588
↓ 1 callers
Method
getConsentString_
* Get the consent string * @param {string} consentPolicyId * @private * @return {Promise}
extensions/amp-o2-player/0.1/amp-o2-player.js:214
↓ 1 callers
Method
getConsents_
* @param {!ConsentTupleDef=} consentTuple * @return {string[]} Consents parameters. * @private
extensions/amp-ad-network-mgid-impl/0.1/amp-ad-network-mgid-impl.js:84
↓ 1 callers
Method
getConsents_
* @return {Promise}
extensions/amp-brightcove/0.1/amp-brightcove.js:138
↓ 1 callers
Function
getContainerScript
* Get the correct script for the container. * @param {!Window} global * @param {string} scriptSource The source of the script, different for post an
3p/reddit.js:8
↓ 1 callers
Function
getContainerScript
* Get the correct script for the container. * @param {!Window} global * @param {string} scriptSource The source of the script, different for post an
3p/yotpo.js:10
↓ 1 callers
Method
getContainer_
* @return {!Element} * @private
extensions/amp-access-poool/0.1/poool-impl.js:170
↓ 1 callers
Function
getContentRect
* Calculates an appropriate content rectangle for provided html or svg element. * * @param {Element} target - Element content rectangle of w
third_party/resize-observer-polyfill/ResizeObserver.js:328
↓ 1 callers
Function
getContentRect
* Calculates an appropriate content rectangle for provided html or svg element. * * @param {Element} target - Element content rectangle of w
third_party/resize-observer-polyfill/ResizeObserver.install.js:327
↓ 1 callers
Method
getContextualSearch
* Gets contextual search value * @param {string} searchVal * @return {string} contextual search value
src/bento/components/bento-jwplayer/1.0/base-element.js:30
↓ 1 callers
Method
getContextualVal_
* @private * @return {?string}
extensions/amp-jwplayer/0.1/amp-jwplayer.js:615
↓ 1 callers
Method
getCookieMaxAgeMs_
* Retrieves cookieMaxAge from given config, provides default value if no * value is found or value is invalid * @param {JsonObject} inputConfig
extensions/amp-analytics/0.1/cookie-writer.js:146
↓ 1 callers
Method
getCookieMaxAgeMs_
* Retrieves cookieMaxAge from given config, provides default value if no * value is found or value is invalid * @param {JsonObject} inputConfig
extensions/amp-consent/0.1/cookie-writer.js:130
↓ 1 callers
Function
getCorrelator
* `nodeOrDoc` must be passed for correct behavior in shadow AMP (PWA) case. * @param {!Window} win * @param {!Element|!../../../src/service/ampdoc-i
extensions/amp-ad-network-valueimpression-impl/0.1/amp-ad-network-valueimpression-impl.js:568
↓ 1 callers
Function
getCounter
* @param {!Element} receiver * @param {string} counterName * @return {number} The current GWD goto counter value for the given receiver * eleme
extensions/amp-gwd-animation/0.1/amp-gwd-animation-impl.js:90
↓ 1 callers
Method
getCreativeSize
* Returns the creativeSize, which is the size extracted from the ad response. * @return {?({width, height}|../../../src/layout-rect.LayoutRectDef)}
extensions/amp-a4a/0.1/amp-a4a.js:477
↓ 1 callers
Method
getCredentials_
* @return {string} * @private
extensions/amp-youtube/0.1/amp-youtube.js:346
↓ 1 callers
Function
getCssImports
* Computes the transitive closure of CSS files imported by the given file. * @param {string} cssFile * @return {Promise<!Array<string>>}
build-system/tasks/css/jsify-css.js:119
↓ 1 callers
Method
getCtypes_
* @return {?string} * @private
extensions/amp-ad-network-adsense-impl/0.1/amp-ad-network-adsense-impl.js:500
↓ 1 callers
Function
getCurrentDate
()
extensions/amp-date-picker/1.0/date-helpers.ts:32
↓ 1 callers
Function
getCurrentNightly
* Get the current nightly branch's commit SHA. * * @param {Octokit} octokit * @return {Promise<string>}
build-system/release-workflows/cut-nightly.js:30
↓ 1 callers
Method
getCurrentView
@return {?./view.View}
third_party/subscriptions-project/swg.js:11085
↓ 1 callers
Function
getCustomBootstrapBaseUrl
* Returns the custom base URL for 3p bootstrap iframes if it exists. * Otherwise null. * @param {!Window} parentWindow * @param {!./service/ampdoc-
src/3p-frame.js:344
↓ 1 callers
Method
getCustomElementAmpDocReference_
* If the node is an AMP custom element, retrieves the AmpDoc reference. * @param {!Node} node * @return {?AmpDoc} The AmpDoc reference, if one e
src/service/ampdoc-impl.js:111
↓ 1 callers
Method
getCustomLogo_
* Returns the custom logo for the element if there is one. * @private * @return {{ * content: (!Element|undefined), * color: (string|und
extensions/amp-loader/0.1/amp-loader.js:241
↓ 1 callers
Method
getCustomRealTimeConfigMacros_
@override
extensions/amp-ad-network-valueimpression-impl/0.1/amp-ad-network-valueimpression-impl.js:148
↓ 1 callers
Function
getCustomTrackingId_
* * @param {!Element} element * @return {?string}
extensions/amp-skimlinks/0.1/skim-options.js:97
↓ 1 callers
Function
getCustomValidatorKeywords
* Creates a vocabulary keyword for each custom validator. * We name keywords by prefing the validator function name with an underscore: * { "_isIs
build-system/compile/json-schema/index.js:67
↓ 1 callers
Method
getCxurlParam_
* @return {string} Current page url for ad request * @private
extensions/amp-ad-network-mgid-impl/0.1/amp-ad-network-mgid-impl.js:233
↓ 1 callers
Function
getData
* Get the xpath test id data param * @param {!HTMLElement} node * @return {string|undefined}
build-system/tasks/e2e/driver/query-xpath.js:90
↓ 1 callers
Method
getDataVarsElements_
* Return all elements that have a data-vars attribute. * @param {!Array<!Element>} elementArray * @param {string} selector * @return {!Array<
extensions/amp-analytics/0.1/analytics-root.js:267
↓ 1 callers
Function
getDateFromCuid
(cuid)
extensions/amp-addthis/0.1/addthis-utils/cuid.js:11
↓ 1 callers
Method
getDayTemplateData_
* Create the data needed to render a day template * @param {!moment} date * @return {!JsonObject} * @private
extensions/amp-date-picker/0.1/amp-date-picker.js:1801
↓ 1 callers
Method
getDecryptionUrl_
* Returns the decryption url to be used to decrypt the encrypted payload. * * @private * @return {string} The decryption url
third_party/subscriptions-project/swg.js:16662
↓ 1 callers
Method
getDefaultActionAlias
* The element's default action alias. * @return {?string}
src/base-element.js:281
↓ 1 callers
Function
getDefaultEmbedAs
* Gets the default type to embed as, if not specified. * @param {string} href * @return {string}
3p/facebook.js:97
↓ 1 callers
Method
getDefaultLogo_
* Returns the default logo. * @return {!Element} * @private
extensions/amp-loader/0.1/amp-loader.js:284
↓ 1 callers
Function
getDefaultMinDate
* If `max` is null, the default minimum date is the current date. * If `max` is a Moment date and earlier than the current date, then * there is
extensions/amp-date-picker/0.1/date-picker-common.js:27
↓ 1 callers
Method
getDefaultProps
* Returns default props * @return {JsonObject}
src/preact/base-element.js:239
↓ 1 callers
Function
getDefaultResponseOptions
()
test/unit/test-xhr-document-fetcher.js:152
↓ 1 callers
Function
getDefaultResponsePromise
()
test/unit/test-xhr-document-fetcher.js:149
↓ 1 callers
Function
getDefaultResponsePromise
()
test/unit/test-xhr.js:633
↓ 1 callers
Function
getDefaultScrollAnimationDuration
* Calculates a default duration for a scrollTop animation. * @param {number} scrollTopA commutative with b. * @param {number} scrollTopB commutative
src/service/viewport/viewport-impl.js:1187
↓ 1 callers
Method
getDefaultSource_
* @return {!Sources} The default source, empty. * @private
extensions/amp-story/1.0/media-pool.js:289
↓ 1 callers
Method
getDefaultState_
* Retrieves the default state, that could be overriden by an embed mode. * @return {!State} * @private
extensions/amp-story/1.0/amp-story-store-service.js:598
↓ 1 callers
Method
getDefaultSticker_
* Return the specified default sticker or null if there's custom sticker provided. * Return fallback sticker is both default and custom sticker con
extensions/amp-story-audio-sticker/0.1/amp-story-audio-sticker.js:195
↓ 1 callers
Method
getDelayMs
* @return {number} The time, in milliseconds, that this advancement was * configured to wait before advancing.
extensions/amp-story/1.0/page-advancement.js:954
↓ 1 callers
Function
getDelayPromiseProducer
* @return {function(*): !Promise<*>}
src/friendly-iframe-embed.js:84
↓ 1 callers
Function
getDependencies
* Returns the list of dependencies for a given JS entrypoint by having esbuild * generate a metafile for it. Uses the set of babel plugins that would
build-system/tasks/helpers.js:689
↓ 1 callers
Method
getDescription
* Get the description for single lightboxed item. * @param {!Element} element * @return {string}
extensions/amp-lightbox-gallery/0.1/service/lightbox-manager-impl.js:313
↓ 1 callers
Function
getDevelopmentBootstrapBaseUrl
(parentWindow, srcFileBasename)
src/3p-frame.js:274
↓ 1 callers
Method
getDevicePixelRatioParam_
* @return {string} Device pixel ratio info for ad request * @private
extensions/amp-ad-network-mgid-impl/0.1/amp-ad-network-mgid-impl.js:193
↓ 1 callers
Method
getDialogConfig_
* Gets display configuration options for the opened dialog. Uses the * responsive desktop design properties if the updated offer flows UI (for *
third_party/subscriptions-project/swg.js:6508
↓ 1 callers
Method
getDialogConfig_
* Gets display configuration options for the opened dialog. Uses the * responsive desktop design properties if the updated offer flows UI (for *
third_party/subscriptions-project/swg.js:9986
← previous
next →
8,701–8,800 of 18,703, ranked by callers