MCPcopy Create free account

hub / github.com/ampproject/amphtml / functions

Functions18,703 in github.com/ampproject/amphtml

↓ 1 callersMethodget
* @param {string} name * @return {string}
src/polyfills/fetch.js:226
↓ 1 callersMethodget
* @param {string} name * @param {number|undefined} opt_duration * @return {*|undefined}
src/service/storage-impl.js:217
↓ 1 callersMethodget
* Note: Only returns the current `stackIndex`. * @override
src/service/history-impl.js:1018
↓ 1 callersMethodget
@override
src/service/resources-impl.js:270
↓ 1 callersMethodget
@override
src/inabox/inabox-cid.js:13
↓ 1 callersMethodget
* 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 callersFunctiongetA2AAncestor
(win)
ads/alp/handler.js:220
↓ 1 callersMethodgetA4aAnalyticsConfig
* 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 callersMethodgetA4aAnalyticsVars
* 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 callersMethodgetATConfig_
* @private * @param {!../../../src/service/ampdoc-impl.AmpDoc} ampDoc * @return {!JsonObject}
extensions/amp-addthis/0.1/amp-addthis.js:365
↓ 1 callersMethodgetAccessReaderId
@override from AccessVars
extensions/amp-subscriptions/0.1/amp-subscriptions.js:184
↓ 1 callersMethodgetActionServiceForTesting
* @return {?../../../src/service/action-impl.ActionService} * @visibleForTesting
extensions/amp-accordion/0.1/amp-accordion.js:630
↓ 1 callersMethodgetActionSource_
* 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 callersMethodgetActivePcos
* @return {!Array}
extensions/amp-addthis/0.1/addthis-utils/monitors/active-tools-monitor.js:48
↓ 1 callersMethodgetActiveVisitors_
* Returns a list of visitors that have not yet been marked completed. * @return {!Array<!Visitor>} * @private
src/utils/dom-ancestor-visitor.js:45
↓ 1 callersFunctiongetAdContainer
* @param {!Window} global * @return {?Node}
ads/vendors/runative.js:66
↓ 1 callersFunctiongetAdContainer
* @param {!Window} global * @return {?Node}
ads/vendors/trafficstars.js:74
↓ 1 callersFunctiongetAdContainer
* @param {!Window} global * @param {string} zoneId * @return {?Node}
ads/vendors/sabavision.js:40
↓ 1 callersMethodgetAdDoc
@return {?Document} ad document within FIE
extensions/amp-story-auto-ads/0.1/story-ad-page.js:138
↓ 1 callersFunctiongetAdType
* 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 callersFunctiongetAdTypes
* Returns an array of ad types. * @return {!Array<string>}
build-system/tasks/runtime-test/helpers.js:19
↓ 1 callersMethodgetAdUrl
* 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 callersMethodgetAdUrl
@override
extensions/amp-ad-network-nws-impl/0.1/amp-ad-network-nws-impl.js:69
↓ 1 callersMethodgetAdUrl
@override
extensions/amp-ad-network-valueimpression-impl/0.1/amp-ad-network-valueimpression-impl.js:193
↓ 1 callersFunctiongetAddThisModeObject
(mode)
extensions/amp-addthis/0.1/addthis-utils/mode.js:36
↓ 1 callersMethodgetAdditionalContextMetadata
* 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 callersMethodgetAdditionalSandboxAttributes_
* Retrieve additional sandbox restrictions to be removed from the iframe. * @return {Array<string>}
extensions/amp-consent/0.1/consent-ui.js:518
↓ 1 callersMethodgetAdjacentPageIds
* 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 callersFunctiongetAdsLocalhost
* @param {!Window} win * @return {string}
src/3p-frame.js:290
↓ 1 callersMethodgetAdsLogo_
* `<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 callersFunctiongetAllBabelConfigs
* 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 callersFunctiongetAllNodes
* 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 callersFunctiongetAllPaginated
* @param {(number) => string} getPagePath * @return {Promise<Object[]>}
build-system/tasks/sweep-experiments/cleanup-branches.js:51
↓ 1 callersFunctiongetAllowedBrowsers
* @return {Set<string>}
build-system/tasks/e2e/describes-e2e.js:418
↓ 1 callersFunctiongetAlphaNumeric
* Removes special characters from the provided string. * @param {string} value * @return {string}
extensions/amp-inputmask/0.1/mask-impl.js:185
↓ 1 callersFunctiongetAmpCacheHref
* Returns the AMP page href from an AMP Cache. Otherwise returns empty string. * * @return {string} * @private
validator/js/chromeextension/content_script.js:28
↓ 1 callersFunctiongetAmpConfig
* 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 callersFunctiongetAmpConfig
()
3p/frame-metadata.js:62
↓ 1 callersFunctiongetAmpConfigForFile
* 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 callersFunctiongetAmpContext
()
ads/vendors/affinity.js:52
↓ 1 callersMethodgetAmpDoc
@override
src/inabox/inabox-viewer.js:20
↓ 1 callersFunctiongetAmpFormat
* 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 callersFunctiongetAmpHtmlLinkHref
* 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 callersFunctiongetAmpMegaMenu
()
extensions/amp-mega-menu/0.1/test/test-amp-mega-menu.js:24
↓ 1 callersFunctiongetAmpRuntimeTypeParameter
* 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 callersMethodgetAmpScriptJson_
* 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 callersFunctiongetAmpState
()
extensions/amp-bind/0.1/test/test-amp-state.js:31
↓ 1 callersMethodgetAmpStateJson
* 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 callersMethodgetAmpStateJson_
* 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 callersMethodgetAmpdoc
@override
src/service/resources-impl.js:275
↓ 1 callersFunctiongetAmpdocService
* 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 callersFunctiongetAnalyticsTag
* Get the AmpAnalytics instance * @param {string} vendor
extensions/amp-analytics/0.1/test/test-vendors.js:190
↓ 1 callersFunctiongetAnchorElements
* 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 callersFunctiongetAndroidIntentForUrl
* @param {string} appId * @return {string}
extensions/amp-app-banner/1.0/utils/android.js:95
↓ 1 callersMethodgetAndroidIntentForUrl_
* @param {string} appId * @return {string}
extensions/amp-app-banner/0.1/amp-app-banner.js:508
↓ 1 callersMethodgetAnimationSpec
* Returns the animation spec. * @return {?JsonObject}
extensions/amp-animation/0.1/amp-animation.js:180
↓ 1 callersMethodgetApi
* 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 callersMethodgetAsyncCid_
* Get async cid. * @return {!Promise} * @private
extensions/amp-user-notification/0.1/amp-user-notification.js:335
↓ 1 callersMethodgetAttributeConfig_
* 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 callersMethodgetAttributeConfig_
* 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 callersMethodgetAttributionReportingValues_
* 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 callersMethodgetAuthorScript_
* 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 callersMethodgetAuthorizationTimeout
* @return {number}
extensions/amp-access/0.1/amp-access-client.js:101
↓ 1 callersMethodgetAutoAdvanceAfterSeconds_
* 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 callersMethodgetAutoFullscreenManagerForTesting_
* @return {!AutoFullscreenManager} * @visibleForTesting
src/service/video-manager-impl.js:325
↓ 1 callersFunctiongetBadgetsContainer
* Create DOM element for the Yotpo Badges plugin: * @param {!Window} global * @return {!Element} div
3p/yotpo.js:116
↓ 1 callersFunctiongetBaseCid
* 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 callersFunctiongetBaseElementForSlide
* @param {!Element} slide * @return {!Element}
extensions/amp-lightbox-gallery/0.1/service/lightbox-manager-impl.js:45
↓ 1 callersFunctiongetBeOpinion
* 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 callersFunctiongetBeOpinionAsyncInit
* @param {*} global * @param {*} accountId * @return {!Function}
3p/beopinion.js:89
↓ 1 callersMethodgetBiggestMediaElements_
* 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 callersFunctiongetBinaryTypeNumericalCode
(type)
ads/google/a4a/utils.js:904
↓ 1 callersFunctiongetBinaryTypeNumericalCode
* 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 callersMethodgetBindDates_
* 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 callersFunctiongetBitrateManager
(win)
extensions/amp-video/0.1/flexible-bitrate.js:41
↓ 1 callersFunctiongetBlockId
* @param {string} src * @return {string}
ads/vendors/rnetplus.js:31
↓ 1 callersFunctiongetBlockId
* @param {string} src * @return {string}
ads/vendors/rbinfox.js:33
↓ 1 callersFunctiongetBlockId
* @param {string} src * @return {string}
ads/vendors/24smi.js:42
↓ 1 callersMethodgetBlockParameters_
* 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 callersMethodgetBody
@override
src/service/ampdoc-impl.js:833
↓ 1 callersMethodgetBody
@override
src/service/ampdoc-impl.js:1036
↓ 1 callersFunctiongetBodymovinAnimationSdk
* @param {!Window} global * @param {string} renderer * @param {!Function} cb
3p/bodymovinanimation.js:31
↓ 1 callersMethodgetBorderTop
* 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 callersFunctiongetBottomLineContainer
* 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 callersFunctiongetBranchPull
* @param {string} state * @param {string} orgOrUser * @param {string} branch * @return {Promise<Object|undefined>}
build-system/tasks/sweep-experiments/cleanup-branches.js:77
↓ 1 callersFunctiongetBrowserCapabilitiesBitmap
* Returns a bitmap representing what features are supported by this browser. * @param {!Window} win * @return {number}
ads/google/a4a/utils.js:963
↓ 1 callersFunctiongetBrowserCapabilitiesBitmap
* 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 callersFunctiongetBucketTicket
* 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 callersFunctiongetBucketTicket
* 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 callersMethodgetButtonSuffixFormat_
* 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 callersMethodgetCMPConfig_
* 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 callersFunctiongetCacheBuster
* 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 callersMethodgetCacheBusterParam_
* @return {string} Cachebuster for ad request * @private
extensions/amp-ad-network-mgid-impl/0.1/amp-ad-network-mgid-impl.js:155
↓ 1 callersFunctiongetCacheUrlService
* 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 callersFunctiongetCallExpressionZIndexValue
* @param {types.CallExpression} node * @return {string|number|undefined}
build-system/tasks/get-zindex/js.js:11
↓ 1 callersMethodgetCallback_
* * @param {?../api/subscriptions.ButtonOptions|?../api/subscriptions.SmartButtonOptions|function()} optionsOrCallback * @param {function()=} ca
third_party/subscriptions-project/swg.js:8955
↓ 1 callersMethodgetCalloutParam_
* 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 callersMethodgetCandidates
* Gets all unvisited lightbox candidates. * @param {!Document|!Element} root * @return {!Array<!Element>}
extensions/amp-auto-lightbox/0.1/amp-auto-lightbox.js:302
↓ 1 callersMethodgetCanonicalFrameStorageValue_
* 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 callersMethodgetCapabilities_
* 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
← previousnext →8,601–8,700 of 18,703, ranked by callers