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
getConfigRewriter_
* Reads configRewriter from a vendor config. * @return {!JsonObject}
extensions/amp-analytics/0.1/config.js:363
↓ 2 callers
Function
getConsentCID
(node)
extensions/amp-consent/0.1/consent-config.js:335
↓ 2 callers
Method
getConsentRequiredPromise_
* Returns a promise that resolve when amp-consent knows * if the consent is required. * @return {!Promise<boolean>}
extensions/amp-consent/0.1/amp-consent.js:627
↓ 2 callers
Method
getConsentState
* @return {!Promise<?CONSENT_POLICY_STATE>}
extensions/amp-ad/0.1/amp-ad-3p-impl.js:466
↓ 2 callers
Function
getConsentStateManager
(element)
extensions/amp-consent/0.1/consent-state-manager.js:38
↓ 2 callers
Method
getConsentStringInfo
* Get the consent string value of a policy. Return a promise that resolves * when the policy resolves. * @param {string} policyId * @return {
extensions/amp-consent/0.1/consent-policy-manager.js:309
↓ 2 callers
Method
getContainer
* Gets the container within the dialog. * @return {!Element}
third_party/subscriptions-project/swg.js:11006
↓ 2 callers
Method
getContainer_
* @return {!Element} * @private
extensions/amp-access-laterpay/0.2/laterpay-impl.js:333
↓ 2 callers
Method
getContainer_
* @return {!Element} * @private
extensions/amp-access-laterpay/0.1/laterpay-impl.js:274
↓ 2 callers
Function
getControlledRootNode
* Find the most appropriate root node that should be monitored for events * related to this target. * * @param {Node} target * @pa
third_party/resize-observer-polyfill/ResizeObserver.js:712
↓ 2 callers
Function
getControlledRootNode
* Find the most appropriate root node that should be monitored for events * related to this target. * * @param {Node} target * @pa
third_party/resize-observer-polyfill/ResizeObserver.install.js:711
↓ 2 callers
Method
getCorsUrl
* Add "__amp_source_origin" query parameter to the URL. Ideally, we'd be * able to set a header (e.g. AMP-Source-Origin), but this will force *
src/service/xhr-impl.js:200
↓ 2 callers
Function
getCount
()
testing/iframe.js:496
↓ 2 callers
Method
getCreativeId
* @return {string} Unique ID of this instance of IframeTransport * @visibleForTesting
extensions/amp-analytics/0.1/iframe-transport.js:311
↓ 2 callers
Function
getCsiAmpAnalyticsConfig
()
ads/google/a4a/utils.js:592
↓ 2 callers
Method
getCurrentEffectiveConnectionType_
* Returns the effective connection type as reported by the browser. * Defaults to `4g` if the browser (notably WebKit) does not report it. * @re
extensions/amp-video/0.1/flexible-bitrate.js:133
↓ 2 callers
Method
getCurrentSliderPercentage_
* Get current slider's percentage to the left * Should be wrapped inside measureElement * @private * @return {number}
extensions/amp-image-slider/0.1/amp-image-slider.js:557
↓ 2 callers
Method
getCurrentSpacesSum_
* Return the number of spaces currently being used by the devices on the screen. * @private * @return {number}
extensions/amp-story-dev-tools/0.1/amp-story-dev-tools-tab-preview.js:809
↓ 2 callers
Method
getCurrentTime
@override
extensions/amp-jwplayer/0.1/amp-jwplayer.js:135
↓ 2 callers
Method
getCustomRealTimeConfigMacros_
* To be overriden by network impl. Should return a mapping of macro keys * to values for substitution in publisher-specified URLs for RTC. * @pa
extensions/amp-a4a/0.1/amp-a4a.js:2462
↓ 2 callers
Method
getCustomSlot_
* Gets custom slot by id. * * @param {!Element} element
extensions/amp-live-list/0.1/amp-live-list.js:884
↓ 2 callers
Method
getCustomSlots_
* Queries for custom slots that will be used to host the live elements. This * overrides looking for live elements inside the default <amp-live-lis
extensions/amp-live-list/0.1/live-list-manager.js:200
↓ 2 callers
Function
getCustomValidations
(doc)
extensions/amp-form/0.1/test/test-form-validators.js:75
↓ 2 callers
Function
getDailymotionIframeSrc
( win, videoId, autoplay = false, endscreenEnable = true, info = true, mute = false, sharingEnab
src/bento/apis/dailymotion-api.js:20
↓ 2 callers
Method
getDataForHistory_
* Returns data that should be saved in browser history on AMP.setState() or * AMP.pushState(). This enables features like restoring browser tabs.
extensions/amp-bind/0.1/bind-impl.js:401
↓ 2 callers
Function
getDataForTemplate
* @param {number} timeleft * @param {string|undefined} biggestUnit * @param {!JsonObject} localeStrings * @param {boolean} countUp * @return {!Jso
extensions/amp-date-countdown/1.0/component.js:129
↓ 2 callers
Method
getDateType_
* Distinguish between RRULE dates and moment dates. * @param {!Date|string} date * @return {!DateType} * @private
extensions/amp-date-picker/1.0/component/dates-list.js:100
↓ 2 callers
Method
getDateType_
* Distinguish between RRULE dates and moment dates. * @param {!moment|string} date * @return {!DateType} * @private
extensions/amp-date-picker/0.1/dates-list.js:116
↓ 2 callers
Method
getDayTemplate_
* Get the template tag corresponding to a given date. * @param {!moment} date * @return {?Element} * @private
extensions/amp-date-picker/0.1/amp-date-picker.js:1694
↓ 2 callers
Method
getDeclaredSlotSize_
* Returns the width and height, as defined by the slot element's width and * height attributes. * @return {!SizeDef}
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:1141
↓ 2 callers
Function
getDefaultResponseOptions
()
test/unit/test-xhr.js:627
↓ 2 callers
Method
getDialog
* @returns {?Dialog}
third_party/subscriptions-project/swg.js:11482
↓ 2 callers
Method
getDistance
* @return {number} The distance from the current page to the active page.
extensions/amp-story/1.0/amp-story-page.js:1382
↓ 2 callers
Method
getDistanceViewportRatio
@return {!ViewportRatioDef}
src/service/resource.js:730
↓ 2 callers
Method
getDocument
* Retrieve the content document depending on browser support * * @param {*} iframe * The iframe to retrieve the document of * @return {*
extensions/amp-a4a/0.1/template-renderer.js:35
↓ 2 callers
Method
getDocument
* Gets the document object of the iframe element. * @return {!Document}
third_party/subscriptions-project/swg.js:10276
↓ 2 callers
Function
getDocumentKey
* Returns the key under which we store state for the current document. * @param {!Window} win * @return {string}
extensions/amp-story/1.0/history.js:128
↓ 2 callers
Method
getDots_
* @return {!Array<!Element>} * @private
extensions/amp-inline-gallery/0.1/amp-inline-gallery-pagination.js:179
↓ 2 callers
Method
getDuration
@override
extensions/amp-jwplayer/0.1/amp-jwplayer.js:140
↓ 2 callers
Method
getEditInfo_
* This is just article information used in the edit part of Linkmate payload. * @return {!JsonObject} * @private
extensions/amp-smartlinks/0.1/linkmate.js:149
↓ 2 callers
Function
getEffectiveLayoutInternal
* Gets the effective layout for an element. * * If class 'i-amphtml-layout' is present, then directly use its value. * Else calculate layout based
src/core/static-layout.js:238
↓ 2 callers
Method
getElement
* @return {!Element} The root element of this media pool.
extensions/amp-story/1.0/media-pool.js:1076
↓ 2 callers
Method
getElement
* @return {!Element} The description box Element.
extensions/amp-lightbox-gallery/0.1/lightbox-caption.js:73
↓ 2 callers
Method
getElement
* @return {!HTMLIFrameElement}
third_party/subscriptions-project/swg.js:7890
↓ 2 callers
Method
getElementById
* @param {string} id * @return {?Element}
extensions/amp-animation/0.1/web-animations.js:924
↓ 2 callers
Method
getElementFontSize_
* @param {!Element} target * @return {number} * @private
extensions/amp-animation/0.1/web-animations.js:1237
↓ 2 callers
Method
getElementIntersectionRect
* @param {!Element} unusedElement * @return {?JsonObject} * @abstract
extensions/amp-analytics/0.1/visibility-manager.js:549
↓ 2 callers
Function
getElementPosition
( clientX: number, clientY: number, element: HTMLElement )
extensions/amp-pan-zoom/1.0/component-ts.tsx:43
↓ 2 callers
Method
getElementRect_
* @param {!Element} target * @return {!../../../src/layout-rect.LayoutRectDef} * @private
extensions/amp-animation/0.1/web-animations.js:1290
↓ 2 callers
Method
getElementSignal
@override
extensions/amp-analytics/0.1/events.js:898
↓ 2 callers
Function
getElementType
* @param {?Node} node * @return {ELEMENT_TYPE_ENUM}
src/service/performance-impl.js:66
↓ 2 callers
Method
getElementVisibility
* @param {!Element} unusedElement * @return {number} * @abstract
extensions/amp-analytics/0.1/visibility-manager.js:542
↓ 2 callers
Function
getElementWidthVisitor
* Returns a visitor callback that gets the maximum width the given element may * occupy. * @param {function(?number): undefined} setWidth Callback t
extensions/amp-ad-network-doubleclick-impl/0.1/flexible-ad-slot-utils.js:24
↓ 2 callers
Function
getElementWidthVisitor
* Returns a visitor callback that gets the maximum width the given element may * occupy. * @param {function(?number): undefined} setWidth Callback t
extensions/amp-ad-network-valueimpression-impl/0.1/flexible-ad-slot-utils.js:24
↓ 2 callers
Function
getEnabledResults
( element: HTMLElement | null )
src/bento/components/bento-autocomplete/1.0/component/helpers.ts:35
↓ 2 callers
Method
getEncodedLocation_
* Gets encoded url for player usage. * @param {string} href * @param {VisibilityState_Enum=} visibilityState * @return {!Location} * @priv
src/amp-story-player/amp-story-player-impl.js:1405
↓ 2 callers
Method
getEntitlementFor
* Returns the first matching entitlement for the specified product, * optionally also matching the specified source. * * Returns non-metering
third_party/subscriptions-project/swg.js:4419
↓ 2 callers
Function
getEntropy
* Returns an array with a total of 128 of random values based on the * `win.crypto.getRandomValues` API. If that is not available concatenates * a s
src/service/cid-impl.js:687
↓ 2 callers
Method
getEntryOrNull_
* Returns the entry in the video manager corresponding to the video or * element provided, or null if unavailable. * @param {!../video-interface
src/service/video-manager-impl.js:286
↓ 2 callers
Method
getEpoch_
* @return {number|undefined} * @private
extensions/amp-date-countdown/0.1/amp-date-countdown.js:212
↓ 2 callers
Function
getErrorSeverityCounts
* Returns a dictionary of the number of errors and warnings that occur * in the set of ValidationErrors. * * @param {Array<ValidationError>} errors
validator/js/chromeextension/worker.js:55
↓ 2 callers
Method
getEventTypeInSandbox_
* @param {string} eventType * @return {string}
src/extension-analytics.js:113
↓ 2 callers
Function
getExistingAds
(ampdoc)
extensions/amp-auto-ads/0.1/ad-tracker.js:159
↓ 2 callers
Function
getExistingStyleElement
* @param {!Element|!ShadowRoot} cssRoot * @param {!{[key: string]: !Element}} styleMap * @param {string} key * @return {?Element}
src/style-installer.js:144
↓ 2 callers
Method
getExpressionSize
* @return {number}
extensions/amp-bind/0.1/bind-macro.js:39
↓ 2 callers
Method
getExtensionVersion
* @param {string} extensionId * @return {?string}
src/service/ampdoc-impl.js:439
↓ 2 callers
Function
getExtensionsFromArg
* Process the command line argument --extensions_from of example AMP documents * into a single list of AMP extensions consumed by those documents. *
build-system/tasks/extension-helpers.js:281
↓ 2 callers
Function
getFakeTrackingInfo
(data)
extensions/amp-skimlinks/0.1/test/test-waypoint.js:25
↓ 2 callers
Method
getFallback
* Returns an optional fallback element for this custom element. * @return {?Element} * @public @final
src/base-element.js:784
↓ 2 callers
Function
getFieSafeScriptSrcs
()
src/friendly-iframe-embed.js:106
↓ 2 callers
Method
getFirstAmpVideo_
* Returns the first amp-video in the amp-story-page if there is one, otherwise * returns null. * @return {?Element} * @private
extensions/amp-story/1.0/amp-story-page.js:591
↓ 2 callers
Method
getFirstMessageEventOfType
* @param {string} type * @returns {?Event}
testing/iframe.js:664
↓ 2 callers
Method
getFontElement_
* Create and style a DOM element to use to compare two fonts. * @param {?Document} doc * @param {string} fontFamily * @return {!Element} *
extensions/amp-font/0.1/fontloader.js:243
↓ 2 callers
Function
getForm
(doc)
extensions/amp-form/0.1/test/test-form-dirtiness.js:10
↓ 2 callers
Function
getFormats
* Gets formats from Formats section * @param {string} body * @return {Array<string>}
build-system/status-page/common.js:63
↓ 2 callers
Function
getFragment
(url)
src/url.js:368
↓ 2 callers
Function
getFrameOverlayManager
(win)
ads/inabox/frame-overlay-manager.js:96
↓ 2 callers
Method
getFriendlyIframeEmbed_
* Get FriendlyIframeEmbed if available. * @param {!Element} element Element supposedly inside the FIE. * @return {?../../friendly-iframe-embed.F
src/service/viewport/viewport-impl.js:733
↓ 2 callers
Method
getGrantStatus
* @return {!Promise<boolean>}
extensions/amp-subscriptions/0.1/amp-subscriptions.js:228
↓ 2 callers
Method
getGwdPageDeck_
* Returns the GWD pagedeck element if one exists in the document. * @return {?Element} * @private
extensions/amp-gwd-animation/0.1/amp-gwd-animation.js:167
↓ 2 callers
Method
getHead
@override
third_party/subscriptions-project/swg.js:10695
↓ 2 callers
Function
getHeadOrFallback
* Return <head> if present or just the document element. * @param {!Document} doc * @return {!Element}
ads/alp/handler.js:207
↓ 2 callers
Function
getHistoryState
(history)
src/core/window/history.js:8
↓ 2 callers
Method
getHistory_
* @private * @return {!../../../src/service/history-impl.History}
extensions/amp-image-lightbox/0.1/amp-image-lightbox.js:1244
↓ 2 callers
Method
getHistory_
* @private * @return {!../../../src/service/history-impl.History}
extensions/amp-sidebar/0.2/amp-sidebar.js:705
↓ 2 callers
Method
getHostname
* @static * @param {Window} win * @return {string}
src/core/window/interface.js:39
↓ 2 callers
Method
getHtml
* Requests HTML snippet from the parent window. * @param {string} selector CSS selector * @param {!Array<string>} attributes permissible attr
3p/ampcontext.js:192
↓ 2 callers
Function
getISO8601Date
* @param {Date} date * @return {string}
build-system/server/routes/test.js:16
↓ 2 callers
Method
getIframeBaseSrc_
@return {string}
extensions/amp-google-read-aloud-player/0.1/amp-google-read-aloud-player.js:96
↓ 2 callers
Method
getIframeSrc_
* @return {string} * @private
extensions/amp-powr-player/0.1/amp-powr-player.js:220
↓ 2 callers
Method
getIframeSrc_
* @return {string} iframe source url * @private
extensions/amp-brightcove/0.1/amp-brightcove.js:299
↓ 2 callers
Method
getIframeSrc_
* @return {string} * @private
extensions/amp-megaphone/0.1/amp-megaphone.js:125
↓ 2 callers
Function
getIframeTransportScriptUrl
* Get the URL of the client lib * @param {!Window} ampWin The window object of the AMP document * @param {boolean=} opt_forceProdUrl If true, prod U
extensions/amp-analytics/0.1/iframe-transport.js:50
↓ 2 callers
Function
getIframeTransportScriptUrlForTesting
( ampWin, opt_forceProdUrl )
extensions/amp-analytics/0.1/iframe-transport.js:36
↓ 2 callers
Method
getImageBox
* Returns the boundaries of the image element. * @return {!../../../src/layout-rect.LayoutRectDef}
extensions/amp-image-lightbox/0.1/amp-image-lightbox.js:163
↓ 2 callers
Function
getImportIdentifier
* @param {Path} importDeclaration * @param {string} name * @return {string}
build-system/babel-plugins/babel-plugin-transform-jss/index.js:236
↓ 2 callers
Function
getImports
* Returns the list of files imported by a JS file * * @param {string} jsFile * @return {!Array<string>}
build-system/tasks/runtime-test/helpers-unit.js:101
↓ 2 callers
Method
getInitRootElementRect_
* Gets the cached layout rectangle of the root element * @return {!Promise<!../../../src/layout-rect.LayoutRectDef>}
extensions/amp-analytics/0.1/scroll-manager.js:186
↓ 2 callers
Method
getInitialScrollDepth
* Gets the amount that the user had scrolled down the page, at the time of * ini-load. * @return {number} depth
extensions/amp-analytics/0.1/visibility-model.js:472
↓ 2 callers
Function
getInlineConfig
* Retrieves the inline config - will be called if * src attribute is invalid or not present. * @param {!Element} element * @return {(!Promise<!Jso
extensions/amp-story/1.0/request-utils.js:71
← previous
next →
5,701–5,800 of 18,703, ranked by callers