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
get
* @param {string} name * @return {string}
src/polyfills/fetch.js:226
↓ 1 callers
Method
get
* @param {string} name * @param {number|undefined} opt_duration * @return {*|undefined}
src/service/storage-impl.js:217
↓ 1 callers
Method
get
* Note: Only returns the current `stackIndex`. * @override
src/service/history-impl.js:1018
↓ 1 callers
Method
get
@override
src/service/resources-impl.js:270
↓ 1 callers
Method
get
@override
src/inabox/inabox-cid.js:13
↓ 1 callers
Method
get
* Retrieves a state property. * @param {string} key Property to retrieve from the state. * @return {*}
extensions/amp-story/1.0/amp-story-store-service.js:540
↓ 1 callers
Function
getA2AAncestor
(win)
ads/alp/handler.js:220
↓ 1 callers
Method
getA4aAnalyticsConfig
* Returns network-specific config for amp-analytics. It should overridden * with network-specific configurations. * This function may return nul
extensions/amp-a4a/0.1/amp-a4a.js:2413
↓ 1 callers
Method
getA4aAnalyticsVars
* Returns variables to be included on an analytics event. This can be * overridden by specific network implementations. * Note that this functio
extensions/amp-a4a/0.1/amp-a4a.js:2402
↓ 1 callers
Method
getATConfig_
* @private * @param {!../../../src/service/ampdoc-impl.AmpDoc} ampDoc * @return {!JsonObject}
extensions/amp-addthis/0.1/amp-addthis.js:365
↓ 1 callers
Method
getAccessReaderId
@override from AccessVars
extensions/amp-subscriptions/0.1/amp-subscriptions.js:184
↓ 1 callers
Method
getActionServiceForTesting
* @return {?../../../src/service/action-impl.ActionService} * @visibleForTesting
extensions/amp-accordion/0.1/amp-accordion.js:630
↓ 1 callers
Method
getActionSource_
* Gets the ActionSource to use for a given ActionTrust_Enum. * @param {!ActionTrust_Enum} trust * @return {!ActionSource}
extensions/amp-carousel/0.2/amp-carousel.js:359
↓ 1 callers
Method
getActivePcos
* @return {!Array}
extensions/amp-addthis/0.1/addthis-utils/monitors/active-tools-monitor.js:48
↓ 1 callers
Method
getActiveVisitors_
* Returns a list of visitors that have not yet been marked completed. * @return {!Array<!Visitor>} * @private
src/utils/dom-ancestor-visitor.js:45
↓ 1 callers
Function
getAdContainer
* @param {!Window} global * @return {?Node}
ads/vendors/runative.js:66
↓ 1 callers
Function
getAdContainer
* @param {!Window} global * @return {?Node}
ads/vendors/trafficstars.js:74
↓ 1 callers
Function
getAdContainer
* @param {!Window} global * @param {string} zoneId * @return {?Node}
ads/vendors/sabavision.js:40
↓ 1 callers
Method
getAdDoc
@return {?Document} ad document within FIE
extensions/amp-story-auto-ads/0.1/story-ad-page.js:138
↓ 1 callers
Function
getAdType
* Helper function to determine which product to request * @param {!Object} data The data passed in by the partner * @return {number} Enum of ad type
ads/vendors/csa.js:210
↓ 1 callers
Function
getAdTypes
* Returns an array of ad types. * @return {!Array<string>}
build-system/tasks/runtime-test/helpers.js:19
↓ 1 callers
Method
getAdUrl
* Gets the Ad URL to send an XHR Request to. To be implemented * by network. * @param {!ConsentTupleDef=} opt_ununsedConsentTuple * @param {
extensions/amp-a4a/0.1/amp-a4a.js:1560
↓ 1 callers
Method
getAdUrl
@override
extensions/amp-ad-network-nws-impl/0.1/amp-ad-network-nws-impl.js:69
↓ 1 callers
Method
getAdUrl
@override
extensions/amp-ad-network-valueimpression-impl/0.1/amp-ad-network-valueimpression-impl.js:193
↓ 1 callers
Function
getAddThisModeObject
(mode)
extensions/amp-addthis/0.1/addthis-utils/mode.js:36
↓ 1 callers
Method
getAdditionalContextMetadata
* Returns base object that will be written to cross-domain iframe name * attribute. * @param {boolean=} opt_isSafeframe Whether creative is rend
extensions/amp-a4a/0.1/amp-a4a.js:2502
↓ 1 callers
Method
getAdditionalSandboxAttributes_
* Retrieve additional sandbox restrictions to be removed from the iframe. * @return {Array<string>}
extensions/amp-consent/0.1/consent-ui.js:518
↓ 1 callers
Method
getAdjacentPageIds
* Returns all of the pages that are one hop from this page. * @return {!Array<string>}
extensions/amp-story/1.0/amp-story-page.js:1458
↓ 1 callers
Function
getAdsLocalhost
* @param {!Window} win * @return {string}
src/3p-frame.js:290
↓ 1 callers
Method
getAdsLogo_
* `<amp-ad>s` have several different classes, so putting the code here for * now since it is the safest way to make sure that they all get the corr
extensions/amp-loader/0.1/amp-loader.js:306
↓ 1 callers
Function
getAllBabelConfigs
* Populates a single object with the babel configs from all the *-config.js * files in this directory. * * @return {!Object}
build-system/babel-config/index.js:11
↓ 1 callers
Function
getAllNodes
* Gets all the nodes within a subtree that match a filter. * @param {!Node} root The root of the subtree. * @param {function(!Node): boolean} filter
extensions/amp-truncate-text/0.1/truncate-text.js:188
↓ 1 callers
Function
getAllPaginated
* @param {(number) => string} getPagePath * @return {Promise<Object[]>}
build-system/tasks/sweep-experiments/cleanup-branches.js:51
↓ 1 callers
Function
getAllowedBrowsers
* @return {Set<string>}
build-system/tasks/e2e/describes-e2e.js:418
↓ 1 callers
Function
getAlphaNumeric
* Removes special characters from the provided string. * @param {string} value * @return {string}
extensions/amp-inputmask/0.1/mask-impl.js:185
↓ 1 callers
Function
getAmpCacheHref
* Returns the AMP page href from an AMP Cache. Otherwise returns empty string. * * @return {string} * @private
validator/js/chromeextension/content_script.js:28
↓ 1 callers
Function
getAmpConfig
* Loads the AMP_CONFIG objects from whatever the v0.js is that the user has * (depends on whether they opted into one of the pre-release channels or
tools/experiments/experiments.js:379
↓ 1 callers
Function
getAmpConfig
()
3p/frame-metadata.js:62
↓ 1 callers
Function
getAmpConfigForFile
* Given a target, retrieves the appropriate AMP_CONFIG string to prepend. * Returns an empty string if no AMP_CONFIG is necessary. * * @param {stri
build-system/tasks/prepend-global/index.js:204
↓ 1 callers
Function
getAmpContext
()
ads/vendors/affinity.js:52
↓ 1 callers
Method
getAmpDoc
@override
src/inabox/inabox-viewer.js:20
↓ 1 callers
Function
getAmpFormat
* Gets the AMP format type for the given HTML file by parsing its contents and * examining the root element. * @param {string} file * @return {Prom
build-system/tasks/validate-html-fixtures.js:50
↓ 1 callers
Function
getAmpHtmlLinkHref
* Determine if <link rel="amphtml" href="..."> exists in the page and * return the href's value iff it starts with http:// or https://. * Otherwise
validator/js/chromeextension/content_script.js:46
↓ 1 callers
Function
getAmpMegaMenu
()
extensions/amp-mega-menu/0.1/test/test-amp-mega-menu.js:24
↓ 1 callers
Function
getAmpRuntimeTypeParameter
* Returns an enum value representing the AMP binary type, or null if this is a * canonical page. * @param {!Window} win * @return {?string} The bin
extensions/amp-ad-network-valueimpression-impl/0.1/amp-ad-network-valueimpression-impl.js:407
↓ 1 callers
Method
getAmpScriptJson_
* Gets the json from an amp-script uri. * * @param {string} src * @return {Promise<!JsonObject>} * @private
extensions/amp-list/0.1/amp-list.js:466
↓ 1 callers
Function
getAmpState
()
extensions/amp-bind/0.1/test/test-amp-state.js:31
↓ 1 callers
Method
getAmpStateJson
* Gets the json from an "amp-state:" uri. For example, src="amp-state:json.path". * @param {string} src * @return {Promise<!JsonObject>}
extensions/amp-render/1.0/shared/amp-fetch-utils.js:39
↓ 1 callers
Method
getAmpStateJson_
* Gets the json an amp-list that has an "amp-state:" uri. For example, * src="amp-state:json.path". * * @param {string} src * @return {Pro
extensions/amp-list/0.1/amp-list.js:431
↓ 1 callers
Method
getAmpdoc
@override
src/service/resources-impl.js:275
↓ 1 callers
Function
getAmpdocService
* This is essentially a duplicate of `ampdoc.js`, but necessary to avoid * circular dependencies. * @param {!Window} win * @return {!./service/ampd
src/service-helpers.js:327
↓ 1 callers
Function
getAnalyticsTag
* Get the AmpAnalytics instance * @param {string} vendor
extensions/amp-analytics/0.1/test/test-vendors.js:190
↓ 1 callers
Function
getAnchorElements
* Looks up the element(s) addresses by the anchorObj. * * @param {(Document|ShadowRoot|Element)} rootElement * @param {!Object} anchorObj * @retur
extensions/amp-auto-ads/0.1/placement.js:402
↓ 1 callers
Function
getAndroidIntentForUrl
* @param {string} appId * @return {string}
extensions/amp-app-banner/1.0/utils/android.js:95
↓ 1 callers
Method
getAndroidIntentForUrl_
* @param {string} appId * @return {string}
extensions/amp-app-banner/0.1/amp-app-banner.js:508
↓ 1 callers
Method
getAnimationSpec
* Returns the animation spec. * @return {?JsonObject}
extensions/amp-animation/0.1/amp-animation.js:180
↓ 1 callers
Method
getApi
* Returns this BaseElement instance. This is equivalent to Bento's * imperative API object, since this is where we define the element's custom *
src/base-element.js:1048
↓ 1 callers
Method
getAsyncCid_
* Get async cid. * @return {!Promise} * @private
extensions/amp-user-notification/0.1/amp-user-notification.js:335
↓ 1 callers
Method
getAttributeConfig_
* The configuration for handling attributes on this element. * @return {!{[key: string]: function(string)}} * @private
extensions/amp-stream-gallery/0.1/amp-stream-gallery.js:149
↓ 1 callers
Method
getAttributeConfig_
* The configuration for handling attributes on this element. * @return {!{[key: string]: function(string)}} * @private
extensions/amp-base-carousel/0.1/amp-base-carousel.js:100
↓ 1 callers
Method
getAttributionReportingValues_
* Extracts the keys from the `browserAdConversion` data creates a * string to be used as the `features` param for the `window.open()` call. * @p
extensions/amp-ad-exit/0.1/amp-ad-exit.js:449
↓ 1 callers
Method
getAuthorScript_
* Query local or fetch remote author script. * * Returns promise that resolves with the script contents or rejected if the * fetch fails or i
extensions/amp-script/0.1/amp-script.js:397
↓ 1 callers
Method
getAuthorizationTimeout
* @return {number}
extensions/amp-access/0.1/amp-access-client.js:101
↓ 1 callers
Method
getAutoAdvanceAfterSeconds_
* Calculates the duration of this page's preview based upon the * 'previewSecondsPerPage' query parameter. * @return {number} The number of seco
extensions/amp-story/1.0/amp-story-page.js:412
↓ 1 callers
Method
getAutoFullscreenManagerForTesting_
* @return {!AutoFullscreenManager} * @visibleForTesting
src/service/video-manager-impl.js:325
↓ 1 callers
Function
getBadgetsContainer
* Create DOM element for the Yotpo Badges plugin: * @param {!Window} global * @return {!Element} div
3p/yotpo.js:116
↓ 1 callers
Function
getBaseCid
* Returns the base cid for the current user(). This string must not * be exposed to users without hashing with the current source origin * and the e
src/service/cid-impl.js:521
↓ 1 callers
Function
getBaseElementForSlide
* @param {!Element} slide * @return {!Element}
extensions/amp-lightbox-gallery/0.1/service/lightbox-manager-impl.js:45
↓ 1 callers
Function
getBeOpinion
* Produces the Twitter API object for the passed in callback. If the current * frame is the master frame it makes a new one by injecting the respecti
3p/beopinion.js:28
↓ 1 callers
Function
getBeOpinionAsyncInit
* @param {*} global * @param {*} accountId * @return {!Function}
3p/beopinion.js:89
↓ 1 callers
Method
getBiggestMediaElements_
* Gets a list of the active page's amp-img or amp-video elements * sorted by size (possibly empty). * @private * @param {!Element} pageElemen
extensions/amp-story/1.0/background-blur.js:266
↓ 1 callers
Function
getBinaryTypeNumericalCode
(type)
ads/google/a4a/utils.js:904
↓ 1 callers
Function
getBinaryTypeNumericalCode
* Returns a numerical code representing the binary type. * @param {string} type * @return {?string}
extensions/amp-ad-network-valueimpression-impl/0.1/amp-ad-network-valueimpression-impl.js:417
↓ 1 callers
Method
getBindDates_
* Create an array for date objects to be consumed by AMP actions and events * or amp-bind. * @param {!moment} startDate * @param {?moment} en
extensions/amp-date-picker/0.1/amp-date-picker.js:1595
↓ 1 callers
Function
getBitrateManager
(win)
extensions/amp-video/0.1/flexible-bitrate.js:41
↓ 1 callers
Function
getBlockId
* @param {string} src * @return {string}
ads/vendors/rnetplus.js:31
↓ 1 callers
Function
getBlockId
* @param {string} src * @return {string}
ads/vendors/rbinfox.js:33
↓ 1 callers
Function
getBlockId
* @param {string} src * @return {string}
ads/vendors/24smi.js:42
↓ 1 callers
Method
getBlockParameters_
* Constructs block-level url parameters. * @return {!{[key: string]: string|boolean|number}}
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:689
↓ 1 callers
Method
getBody
@override
src/service/ampdoc-impl.js:833
↓ 1 callers
Method
getBody
@override
src/service/ampdoc-impl.js:1036
↓ 1 callers
Function
getBodymovinAnimationSdk
* @param {!Window} global * @param {string} renderer * @param {!Function} cb
3p/bodymovinanimation.js:31
↓ 1 callers
Method
getBorderTop
* Returns the width of top border if this type of viewport needs border * offsetting. This is currently only needed for iOS to avoid scroll freeze.
src/service/viewport/viewport-binding-def.js:30
↓ 1 callers
Function
getBottomLineContainer
* Create DOM element for the Yotpo bottom line plugin: * @param {!Window} global * @param {!Object} data The element data * @return {!Element} div
3p/yotpo.js:33
↓ 1 callers
Function
getBranchPull
* @param {string} state * @param {string} orgOrUser * @param {string} branch * @return {Promise<Object|undefined>}
build-system/tasks/sweep-experiments/cleanup-branches.js:77
↓ 1 callers
Function
getBrowserCapabilitiesBitmap
* Returns a bitmap representing what features are supported by this browser. * @param {!Window} win * @return {number}
ads/google/a4a/utils.js:963
↓ 1 callers
Function
getBrowserCapabilitiesBitmap
* Returns a bitmap representing what features are supported by this browser. * @param {!Window} win * @return {number}
extensions/amp-ad-network-valueimpression-impl/0.1/amp-ad-network-valueimpression-impl.js:449
↓ 1 callers
Function
getBucketTicket
* Returns a float number (bucket ticket) in the range of [0, 100). The number * is hashed from the CID of the given scope (opt_cidScope). If the * s
extensions/amp-experiment/1.0/variant.js:169
↓ 1 callers
Function
getBucketTicket
* Returns a float number (bucket ticket) in the range of [0, 100). The number * is hashed from the CID of the given scope (opt_cidScope). If the * s
extensions/amp-experiment/0.1/variant.js:162
↓ 1 callers
Method
getButtonSuffixFormat_
* A format string for the button label. Should be a string, containing two * placeholders of "%s", where the index and total count will go. * @r
extensions/amp-carousel/0.2/amp-carousel.js:453
↓ 1 callers
Method
getCMPConfig_
* Read and format the CMP config * The returned CMP config should looks like * { * "consentInstanceId": "foo", * "checkConsentHref": "ht
extensions/amp-consent/0.1/consent-config.js:280
↓ 1 callers
Function
getCacheBuster
* Create and modify a Date object to return the first day of the current week. * @return {Date} The altered date.
ads/vendors/insurads.js:11
↓ 1 callers
Method
getCacheBusterParam_
* @return {string} Cachebuster for ad request * @private
extensions/amp-ad-network-mgid-impl/0.1/amp-ad-network-mgid-impl.js:155
↓ 1 callers
Function
getCacheUrlService
* Lazy loads the amp-cache-url extension if needed and retrieves its service. * @param {!Element} videoEl * @param {!AmpDoc} ampdoc * @return {!Pro
extensions/amp-video/0.1/video-cache.js:242
↓ 1 callers
Function
getCallExpressionZIndexValue
* @param {types.CallExpression} node * @return {string|number|undefined}
build-system/tasks/get-zindex/js.js:11
↓ 1 callers
Method
getCallback_
* * @param {?../api/subscriptions.ButtonOptions|?../api/subscriptions.SmartButtonOptions|function()} optionsOrCallback * @param {function()=} ca
third_party/subscriptions-project/swg.js:8955
↓ 1 callers
Method
getCalloutParam_
* Converts a URL into its corresponding shortened callout string. * We also truncate to a maximum length of 50 characters. * For instance, if we
src/service/real-time-config/real-time-config-impl.js:195
↓ 1 callers
Method
getCandidates
* Gets all unvisited lightbox candidates. * @param {!Document|!Element} root * @return {!Array<!Element>}
extensions/amp-auto-lightbox/0.1/amp-auto-lightbox.js:302
↓ 1 callers
Method
getCanonicalFrameStorageValue_
* Returns a Promise that resolves when the helper iframe responds with the * value of the LocalStorage key. * * @param {string} storageKey Th
extensions/amp-web-push/0.1/web-push-service.js:853
↓ 1 callers
Method
getCapabilities_
* Forward the allowlisted capabilities from the viewer * to the multidoc's ampdocs (i.e. CID), so they know * the viewer supports it for the mul
extensions/amp-next-page/1.0/service.js:545
← previous
next →
8,601–8,700 of 18,703, ranked by callers