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
getPaddings
* Extracts paddings sizes from provided styles. * * @param {CSSStyleDeclaration} styles * @returns {Object} Paddings box.
third_party/resize-observer-polyfill/ResizeObserver.install.js:202
↓ 1 callers
Method
getPageAttachmentState_
* Send message to story asking for page attachment state. * @private
src/amp-story-player/amp-story-player-impl.js:1484
↓ 1 callers
Method
getPageById
(pageId)
extensions/amp-story-auto-ads/0.1/test/story-mock.js:20
↓ 1 callers
Method
getPageClicks
* Returns the number of page clicks * * @return {number}
extensions/amp-addthis/0.1/addthis-utils/monitors/click-monitor.js:76
↓ 1 callers
Function
getPageContainer
* Create DOM element for the Facebook embedded page plugin. * Reference: https://developers.facebook.com/docs/plugins/page-plugin * @param {!Window}
3p/facebook.js:108
↓ 1 callers
Method
getPageContainingElement_
* Retrieves the page containing the element, or null. A background audio * set on the <amp-story> tag would not be contained in a page. * @param
extensions/amp-story/1.0/amp-story.js:2301
↓ 1 callers
Method
getPageDistanceMapHelper_
* Creates a map of a page and all of the pages reachable from that page, by * distance. * * @param {number} distance The distance that the pa
extensions/amp-story/1.0/amp-story.js:2137
↓ 1 callers
Method
getPageId_
* @private * @return {string} the page id
extensions/amp-story-360/0.1/amp-story-360.js:392
↓ 1 callers
Method
getPageId_
* @private * @return {string} the page id
extensions/amp-story-panning-media/0.1/amp-story-panning-media.js:361
↓ 1 callers
Method
getPageIndex_
* @param {Page} desiredPage * @return {number} The index of the page.
extensions/amp-next-page/1.0/service.js:770
↓ 1 callers
Method
getPageParam_
* @return {string} Page data for ad request * @private
extensions/amp-ad-network-mgid-impl/0.1/amp-ad-network-mgid-impl.js:142
↓ 1 callers
Function
getPagePosition
* Returns the x,y coordinates of the given element relative to the window. * @param {!Element} el * @return {{x: number, y: number}}
ads/google/ima/ima-video.js:1090
↓ 1 callers
Function
getPageViewId
* Returns a relatively low entropy random string. * This should be called once per window and then cached for subsequent * access to the same value
src/service/document-info-impl.js:111
↓ 1 callers
Method
getParameterSize_
* @return {string} The size parameter. * @private
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:1151
↓ 1 callers
Method
getParams
* @return {?EventParams}
third_party/subscriptions-project/swg.js:843
↓ 1 callers
Method
getParentOrigin_
* @return {?string} * @private
extensions/amp-web-push/0.1/amp-web-push-helper-frame.js:300
↓ 1 callers
Function
getParseableDatetimeUtc
* @param {string|number} yyyy * @param {string|number} mm * @param {string|number} dd * @param {string} time * @return {string}
build-system/common/update-session-issues/index.js:383
↓ 1 callers
Function
getPathsFromIgnoreList
* @return {Promise<string[]>}
build-system/tasks/clean.js:33
↓ 1 callers
Method
getPaywallData_
* Get paywall data by calling authorize endpoint * @return {!Promise<Object>} * @private
extensions/amp-access-fewcents/0.1/fewcents-impl.js:204
↓ 1 callers
Function
getPercentageOffsetFromAlignment
( axis, alignment, container, el )
src/bento/components/bento-base-carousel/1.0/dimensions.js:104
↓ 1 callers
Function
getPhotosCarouselContainer
* Create DOM element for the Yotpo Embedded Widget plugin: * @param {!Window} global * @param {!Object} data The element data * @return {!Element}
3p/yotpo.js:221
↓ 1 callers
Function
getPjsonData
(pjson)
extensions/amp-addthis/0.1/addthis-utils/pjson.js:25
↓ 1 callers
Method
getPlaceholderForElementType_
* Returns the default placeholder based on element type * @param {!Element} element * @return {string} * @private
extensions/amp-lightbox-gallery/0.1/service/lightbox-manager-impl.js:366
↓ 1 callers
Function
getPlacementAlgo
(win, storeService, pageManager)
extensions/amp-story-auto-ads/0.1/algorithm-utils.js:14
↓ 1 callers
Method
getPlacementSizing_
* Gets instructions for the placement in terms of height, width and margins. * This is intended to be used for non-responsive auto ads only. * @
extensions/amp-auto-ads/0.1/placement.js:253
↓ 1 callers
Function
getPlacementsFromObject
* Validates that the placementObj represents a valid placement and if so * constructs and returns an instance of the Placement class for it. * @para
extensions/amp-auto-ads/0.1/placement.js:347
↓ 1 callers
Method
getPlatformKey
* @override
extensions/amp-subscriptions/0.1/local-subscription-platform-base.js:77
↓ 1 callers
Method
getPlatform_
* @return {!../../../src/service/platform-impl.Platform} * @private visibleForTesting
extensions/amp-standalone/0.1/amp-standalone.js:27
↓ 1 callers
Method
getPlayedRanges
* Get a 2d array of start and stop times that the user has watched. * This is used for analytics metadata. * @return {!Array<Array<number>>}
src/video-interface.js:79
↓ 1 callers
Method
getPlayedRanges
* @override
extensions/amp-jwplayer/0.1/amp-jwplayer.js:147
↓ 1 callers
Method
getPlayingState_
* @param {!../video-interface.VideoOrBaseElementDef} video * @return {!../video-interface.PlayingStateDef} * @private
src/service/video-manager-impl.js:1345
↓ 1 callers
Method
getPointY_
* Computes the curve's Y coordinate at a point between 0 and 1. * @param {number} t The point on the curve to find. * @param {number} y0 Y coord
src/core/data-structures/curve.js:160
↓ 1 callers
Method
getPolicy_
* @return {!UrlReplacementPolicy_Enum} * @private
extensions/amp-render/1.0/shared/amp-fetch-utils.js:98
↓ 1 callers
Method
getPooolAccess_
* @return {!Promise<Object>} * @private
extensions/amp-access-poool/0.1/poool-impl.js:151
↓ 1 callers
Method
getPopupDimensions_
* @return {{w: number, h: number, x: number, y: number}} * @private
extensions/amp-web-push/0.1/web-push-service.js:880
↓ 1 callers
Method
getPosForSlideIndex_
* Calculates the target scroll position for the given slide index. * @param {number} index * @return {number}
extensions/amp-carousel/0.1/scrollable-carousel.js:224
↓ 1 callers
Method
getPositionStyle_
* Returns the styles required to postion the dialog. * @return {!Object<string, string|number>} * @private
third_party/subscriptions-project/swg.js:11328
↓ 1 callers
Function
getPostContainer
* Create DOM element for the Facebook embedded content plugin for posts. * @see https://developers.facebook.com/docs/plugins/embedded-posts * @param
3p/facebook.js:62
↓ 1 callers
Function
getPostContainer
* Embedly looks for a blockquote with a '-card' suffixed class. * @param {!Window} global * @return {!Element} blockquote
3p/reddit.js:17
↓ 1 callers
Function
getPotentiallyFocusableElements
* Gets the potentially focusable elements, relative to a given element. Note * that we do not need to go into ShadowRoots, giving their host * `tabi
src/core/dom/modal.js:96
↓ 1 callers
Method
getPrParam_
* @return {string} Referrer info for ad request * @private
extensions/amp-ad-network-mgid-impl/0.1/amp-ad-network-mgid-impl.js:219
↓ 1 callers
Function
getPreconnectFeatures
* Detect related features if feature detection is supported by the * browser. Even if this fails, the browser may support the feature. * @param {!Wi
src/preconnect.js:36
↓ 1 callers
Method
getPreconnectUrls
* Returns preconnect urls for A4A. Ad network should overwrite in their * Fast Fetch implementation and return an array of urls for the runtime to
extensions/amp-a4a/0.1/amp-a4a.js:495
↓ 1 callers
Method
getPreconnectUrls
@override
extensions/amp-ad-network-adsense-impl/0.1/amp-ad-network-adsense-impl.js:628
↓ 1 callers
Method
getPreset_
* @param {!Element} el * @return {?StoryAnimationPresetDef}
extensions/amp-story/1.0/animation.js:789
↓ 1 callers
Function
getPrevArrowSlot
(controller)
extensions/amp-base-carousel/1.0/test-e2e/helpers.js:31
↓ 1 callers
Method
getPrevButtonTitlePrefix_
* @return {string} The title to use for the pevious button. * @private
extensions/amp-carousel/0.2/amp-carousel.js:440
↓ 1 callers
Method
getPrevButtonTitle_
* @param {number} index * @return {string} The title of the button. * @private
extensions/amp-carousel/0.2/amp-carousel.js:478
↓ 1 callers
Method
getPrevIndex_
* @param {?number} currentIndex * @return {?number} The previous index that would be navigated to, or null * if at the start and not looping.
extensions/amp-carousel/0.2/amp-carousel.js:403
↓ 1 callers
Method
getPriorityList_
* Extract the priority list from the optional html meta tag. * The meta tag should contain a whitespace separated list of * LinkRewriter Ids.
extensions/amp-skimlinks/0.1/link-rewriter/link-rewriter-manager.js:172
↓ 1 callers
Function
getProductGalleryContainer
* Create DOM element for the Yotpo Product Gallery plugin: * @param {!Window} global * @param {!Object} data The element data * @return {!Element}
3p/yotpo.js:140
↓ 1 callers
Function
getPromotedProductsContainer
* Create DOM element for the Yotpo Promoted Products plugin: * @param {!Window} global * @param {!Object} data The element data * @return {!Element
3p/yotpo.js:241
↓ 1 callers
Function
getPropertyChain
* @param {string} source * @param {types.TraversalAncestors} ancestors * @return {string}
build-system/tasks/get-zindex/js.js:44
↓ 1 callers
Method
getProps_
* Get the initial values for properties whose values do not change during * the lifetime of the AMP element. Convert the kebab-case html attributes
extensions/amp-date-picker/0.1/amp-date-picker.js:1340
↓ 1 callers
Function
getPubCode_
* * @param {!Element} element * @return {string}
extensions/amp-skimlinks/0.1/skim-options.js:69
↓ 1 callers
Function
getPubControlSlotSize
* Calculate the slot size for Pub Control UI. * @param {number} slotWidth * @param {number} numColumns * @param {number} numRows * @param {!Layout
ads/google/a4a/shared/content-recommendation.js:440
↓ 1 callers
Method
getPublisherNameFromJsonLdPageConfig_
* Gets publisher name from JSON-LD page config. * @private * @nocollapse * @return {string|undefined}
third_party/subscriptions-project/swg-gaa.js:2167
↓ 1 callers
Method
getPublisherNameFromMicrodataPageConfig_
* Gets publisher name from Microdata page config. * @private * @nocollapse * @return {string|undefined}
third_party/subscriptions-project/swg-gaa.js:2199
↓ 1 callers
Method
getPublisherNameFromPageConfig_
* Gets publisher name from page config. * @private * @nocollapse * @return {string}
third_party/subscriptions-project/swg-gaa.js:2143
↓ 1 callers
Method
getPullRequests
* Get pull requests associated with a list of commits * @param {Array<string>} shas * @return {Promise<Array<GraphQlQueryResponseData>>}
build-system/release-tagger/utils.js:191
↓ 1 callers
Method
getPurchaseConfig_
* @return {!Promise<Object>} * @private
extensions/amp-access-laterpay/0.2/laterpay-impl.js:255
↓ 1 callers
Method
getPurchaseConfig_
* @return {!Promise<Object>} * @private
extensions/amp-access-laterpay/0.1/laterpay-impl.js:219
↓ 1 callers
Method
getPvidParam_
* @return {string} Pageview info for ad request * @private
extensions/amp-ad-network-mgid-impl/0.1/amp-ad-network-mgid-impl.js:242
↓ 1 callers
Function
getQueryParamUrl
* Helper method to convert an query param array to string * @param {!Array<string>} params * @return {string}
src/impression.js:330
↓ 1 callers
Function
getQueryString
* Returns the Query String of a full url, will not include # parameters * @param {?string} endpoint * @return {?string}
src/bento/components/bento-social-share/1.0/component.js:233
↓ 1 callers
Method
getQueryString_
* @return {string} * @private
third_party/subscriptions-project/swg.js:7898
↓ 1 callers
Method
getRaf_
* @return {function(function())} requestAnimationFrame or polyfill.
src/service/vsync-impl.js:429
↓ 1 callers
Function
getRandom
* @param {!Window} win * @return {string}
src/inabox/inabox-iframe-messaging-client.js:55
↓ 1 callers
Function
getRandomInts
* Returns an array of random values. The length of the array is numInts. Each * int will be >= 0 and < maxVal. * @param {!number} numInts * @para
third_party/subscriptions-project/swg.js:3100
↓ 1 callers
Method
getRandomString_
* Generate a 32-byte random string. * Uses the win.crypto when available. * @return {string} The random string * @private
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:1860
↓ 1 callers
Function
getRawTag
(t)
third_party/react-dates/bundle.js:1
↓ 1 callers
Method
getReaderId
* @param {string} platformKey * @return {!Promise<string>}
extensions/amp-subscriptions/0.1/amp-subscriptions.js:269
↓ 1 callers
Method
getReadyPromise
@return {!Promise<null>}
third_party/subscriptions-project/swg.js:7313
↓ 1 callers
Function
getReadyState
* @param {!Document} doc * @return {string}
third_party/subscriptions-project/swg.js:10585
↓ 1 callers
Function
getReadyState
* @param {!Document} doc * @return {string}
third_party/subscriptions-project/swg-gaa.js:1261
↓ 1 callers
Function
getReadyState
* @param {!Document} doc * @return {string}
third_party/subscriptions-project/config.js:37
↓ 1 callers
Method
getRecBox_
* @param {!Element} element the container of the amp-next-page extension * @return {!Element} * @private
extensions/amp-next-page/1.0/service.js:1022
↓ 1 callers
Method
getRecaptchaFrameSrc_
* Function to get our recaptcha iframe src * * This should take the current URL, * either in canonical (www.example.com), * or in cache (w
extensions/amp-recaptcha-input/0.1/amp-recaptcha-service.js:259
↓ 1 callers
Method
getReferrer_
* Returns the referrer or undefined if the referrer is not resolved * before the given timeout * @param {number=} opt_timeout * @return {!(Pr
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:1027
↓ 1 callers
Method
getReferrer_
* Returns the referrer or undefined if the referrer is not resolved * before the given timeout * @param {number=} opt_timeout * @return {!(Pr
extensions/amp-ad-network-mgid-impl/0.1/amp-ad-network-mgid-impl.js:272
↓ 1 callers
Method
getReferrer_
* @return {string} * @private
third_party/subscriptions-project/swg.js:7906
↓ 1 callers
Function
getRefreshManager
(a4a, opt_predicate)
extensions/amp-a4a/0.1/refresh-manager.js:149
↓ 1 callers
Method
getRelativePosFromScroll
* @param {!VisibilityObserverHostEntry} entry * @return {?ViewportRelativePos}
extensions/amp-next-page/1.0/visibility-observer.js:303
↓ 1 callers
Method
getRelativePosFromSentinel
* @param {!VisibilityObserverEntry} entry * @return {?ViewportRelativePos}
extensions/amp-next-page/1.0/visibility-observer.js:329
↓ 1 callers
Function
getRelease
* Get a release * @param {string} head * @param {Object|undefined} octokitRest * @param {Object|undefined} octokitGraphQl * @return {Promise<Objec
build-system/release-tagger/make-release.js:185
↓ 1 callers
Method
getRemoteConfig_
* @return {!JsonObject}
extensions/amp-story-auto-ads/0.1/story-ad-config.js:103
↓ 1 callers
Method
getRenderMode_
* Returns the render mode whether need to force redirect. * * @param {!PaymentDataRequest} paymentDataRequest * @return {string} * @privat
third_party/subscriptions-project/swg.js:16620
↓ 1 callers
Function
getReplaceGlobalsPlugin
* Returns a Babel plugin that replaces the global identifier with the correct * alternative. Used before transforming test code with esbuild. * * @
build-system/babel-config/helpers.js:91
↓ 1 callers
Function
getReplaceParams
* Attempts to retrieve extra parameters from the "amp_r" query param, * returning null if invalid. * @param {!./ampdoc-impl.AmpDoc} ampdoc * @retur
src/service/document-info-impl.js:171
↓ 1 callers
Function
getRepoRoot
* Returns the current git repo's root directory if we are inside one. * @return {string|undefined}
build-system/task-runner/amp-cli-runner.js:19
↓ 1 callers
Method
getRequestUrl
* @return {string} The finalized ad request URL. * @protected * @abstract
extensions/amp-a4a/0.1/amp-ad-network-base.js:124
↓ 1 callers
Method
getRequested
* @return {?boolean}
third_party/subscriptions-project/swg.js:1695
↓ 1 callers
Function
getResourceFilePath
* Returns path for provided js filename * @param {string} publisher js filename * @return {string} Path to provided filename.
ads/vendors/mgid.js:51
↓ 1 callers
Function
getResourceFilePath
* Returns path for provided js filename * @param {string} publisher js filename * @return {string} Path to provided filename.
ads/vendors/adskeeper.js:67
↓ 1 callers
Function
getResourceFilePath
* Returns path for provided js filename * @param {string} publisher js filename * @return {string} Path to provided filename.
ads/vendors/idealmedia.js:51
↓ 1 callers
Function
getResourceTimingEntries
* Gets all resource timing entries from the given window. * @param {!Window} win * @return {!Array<!PerformanceResourceTiming>}
extensions/amp-analytics/0.1/resource-timing.js:107
↓ 1 callers
Function
getResponseErrorData_
* @param {!Error} error * @return {!Promise<!Array<VerificationErrorDef>>} * @private
extensions/amp-form/0.1/form-verifiers.js:249
↓ 1 callers
Method
getResponsiveHeight_
* Calculates the appropriate height for a full-width responsive ad of the * given width. * @param {!{width: number, height: number}} viewportSiz
extensions/amp-ad-network-adsense-impl/0.1/responsive-state.js:427
↓ 1 callers
Function
getReviewsCarouselContainer
* Create DOM element for the Yotpo reviews carousel plugin: * @param {!Window} global * @param {!Object} data The element data * @return {!Element}
3p/yotpo.js:74
↓ 1 callers
Function
getReviewsTabContainer
* Create DOM element for the Yotpo Reviews Tab plugin: * @param {!Window} global * @return {!Element} div
3p/yotpo.js:128
← previous
next →
9,101–9,200 of 18,703, ranked by callers