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
getInlinePages_
* Reads the inline next pages from the element. * @param {!Element} element the container of the amp-next-page extension * @return {!Array<!./pa
extensions/amp-next-page/1.0/service.js:878
↓ 2 callers
Function
getInnerHtmlProto
(win)
test/unit/polyfills/test-custom-elements.js:10
↓ 2 callers
Function
getInnerText
* Gets text between two headers * @param {string }body * @param {string} header * @return {string}
build-system/status-page/common.js:34
↓ 2 callers
Function
getInputs
(doc)
extensions/amp-form/0.1/test/test-form-validators.js:51
↓ 2 callers
Method
getInteractiveId_
* Gets the interactive ID * @private * @return {string}
extensions/amp-story-interactive/0.1/amp-story-interactive-abstract.js:233
↓ 2 callers
Function
getIntersectionObserverDispatcher
* @param {!typeof IntersectionObserver} Native * @param {!typeof IntersectionObserver} Polyfill * @return {!typeof IntersectionObserver}
src/polyfills/stubs/intersection-observer-stub.js:52
↓ 2 callers
Method
getIntersectionObserverWithThreshold_
* Returns an IntersectionObserver configured to the given threshold, creating * one if one does not yet exist. * * @param {number} threshold
extensions/amp-a4a/0.1/refresh-manager.js:217
↓ 2 callers
Method
getItemContent_
* Return the expandable content of given menu item. * @param {!Element} item * @return {!Element} * @private
extensions/amp-mega-menu/0.1/amp-mega-menu.js:401
↓ 2 callers
Method
getItemsSlot_
* @param {!Element} parent * @return {?Element} * @private
extensions/amp-live-list/0.1/amp-live-list.js:907
↓ 2 callers
Function
getJitter
(wait, opt_perc)
src/core/types/function/exponential-backoff.js:37
↓ 2 callers
Method
getKey_
* @param {string} origin * @return {string} * @private
src/service/storage-impl.js:358
↓ 2 callers
Function
getKeyboardShortcuts
(e)
third_party/react-dates/bundle.js:1
↓ 2 callers
Function
getLabel
* @param {function(new: T)} messageType * @return {string} * @template T
third_party/subscriptions-project/swg.js:2724
↓ 2 callers
Method
getLabel
(date: Date)
extensions/amp-date-picker/1.0/component/use-date-picker-context.tsx:23
↓ 2 callers
Function
getLastPositionCoordinates
* @param {*} positions * @return {*} TODO(#23582): Specify return type
ads/vendors/nativo.js:97
↓ 2 callers
Method
getLayoutBox
* Returns a previously measured layout box adjusted to the viewport. This * mainly affects fixed-position elements that are adjusted to be always
src/custom-element.js:1497
↓ 2 callers
Method
getLayoutPriority
* Returns the resource's element priority. * @return {number}
src/service/resource.js:270
↓ 2 callers
Method
getLayoutPriority
@override
extensions/amp-ad/0.1/amp-ad-3p-impl.js:140
↓ 2 callers
Method
getLayoutPriority
@override
extensions/amp-a4a/0.1/amp-a4a.js:375
↓ 2 callers
Method
getLayoutPriority
@override
extensions/amp-analytics/0.1/amp-analytics.js:109
↓ 2 callers
Function
getLineClamp
()
extensions/amp-fit-text/1.0/test/test-component.js:165
↓ 2 callers
Function
getLineClamp
()
extensions/amp-fit-text/0.1/test/test-amp-fit-text.js:263
↓ 2 callers
Function
getLinkInfo
* For an event, see if there is an anchor tag in the target * ancestor chain and if yes, check whether we can figure * out an AMP target URL. * @pa
ads/alp/handler.js:101
↓ 2 callers
Function
getListContainer
(controller)
extensions/amp-list/0.1/test-e2e/test-ssr.js:57
↓ 2 callers
Function
getListItems
(controller)
extensions/amp-list/0.1/test-e2e/test-ssr.js:61
↓ 2 callers
Function
getListenForSentinel
* Returns an array of WindowEventsDef that have had any listenFor listeners * registered for this sentinel. * @param {?Window} parentWin the window
src/iframe-helper.js:51
↓ 2 callers
Function
getLocalStorageStateContainer
* Gets a dictionary of all history states on the current origin. * If an entry is expired, removes it from the set and writes the new * set back to
extensions/amp-story/1.0/history.js:103
↓ 2 callers
Method
getLocaleString_
* @param {!Date} date * @param {string} locale * @param {?{[key: string]: *}} localeOptions * @return {string} * @private
extensions/amp-date-display/0.1/amp-date-display.js:242
↓ 2 callers
Function
getLocaleStrings
(locale)
extensions/amp-date-countdown/1.0/messages.js:6
↓ 2 callers
Function
getLocator
(tst, align)
third_party/inputmask/inputmask.js:810
↓ 2 callers
Function
getMatchingValue
* @param {!Array<!MediaQueriesListAndValueDef>} mediaQueryListsAndValues * @return {string} The value for the first matching MediaQuery, or an empty
extensions/amp-base-carousel/0.1/responsive-attributes.js:46
↓ 2 callers
Method
getMaxBitrate_
* Sets a max bitrate if video is on the first page of an amp-story doc. * @return {number}
extensions/amp-video/0.1/amp-video.js:676
↓ 2 callers
Function
getMaxFirstInputDelay
(firstContentfulPaint)
testing/amp-performance-extension/measure.js:66
↓ 2 callers
Method
getMaxScrollDepth
* Gets the maximum amount that the user has scrolled down the page. * @return {number} depth
extensions/amp-analytics/0.1/visibility-manager.js:250
↓ 2 callers
Function
getMeasuredResources
(ampdoc, hostWin, filterFn)
src/ini-load.js:153
↓ 2 callers
Function
getMediaQueryListsAndValues
* @param {string} value * @return {!Array<!MediaQueriesListAndValueDef>}
extensions/amp-base-carousel/0.1/responsive-attributes.js:13
↓ 2 callers
Function
getMetaTag
* Returns the value from content attribute of a meta tag with given name. * * If multiple tags are found, the first value is returned. * * @param
third_party/subscriptions-project/config.js:1144
↓ 2 callers
Function
getMetaUrl
* Check for a custom URL definition in special <meta> tags. Note that this does * not allow for distinct custom URLs in AmpDocShadow instances. The s
src/config/urls.js:38
↓ 2 callers
Function
getMetric
(name)
testing/amp-performance-extension/measure.js:81
↓ 2 callers
Method
getMinAdSpacing_
* @private * @return {number}
extensions/amp-auto-ads/0.1/ad-tracker.js:142
↓ 2 callers
Method
getMinDataPollInterval
* Default minimum data poll interval value. * * @return {number}
extensions/amp-live-list/0.1/live-list-manager.js:317
↓ 2 callers
Function
getMinifiedConfig
* Gets the config for minified babel transforms run, used by 3p vendors. * * @param {'preact' | 'react'} buildFor * @param {!Object=} opt_replacePl
build-system/babel-config/minified-config.js:15
↓ 2 callers
Method
getMinimalPingReturn_
* Create minimal PingReturn object. * @param {?Object} metadata * @param {number=} opt_tcfPolicyVersion * @return {!MinimalPingReturn}
extensions/amp-consent/0.1/tcf-api-command-manager.js:274
↓ 2 callers
Function
getMonths
(e,t,n)
third_party/react-dates/bundle.js:1
↓ 2 callers
Method
getMutator_
* @return {!./service/mutator-interface.MutatorInterface} * @private
src/friendly-iframe-embed.js:569
↓ 2 callers
Method
getName_
* @return {string} Returns a string to identify this tag. May not be unique * if the element id is not unique. * @private
extensions/amp-bind/0.1/amp-state.js:260
↓ 2 callers
Method
getNative
* @return {?boolean}
third_party/subscriptions-project/swg.js:2636
↓ 2 callers
Function
getNavigationTiming
* Returns the value of some navigation timing parameter. * Feature detection is used for safety on browsers that do not support the * performance AP
ads/google/a4a/utils.js:111
↓ 2 callers
Function
getNetworkId
(element)
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:2045
↓ 2 callers
Function
getNextArrow
()
extensions/amp-carousel/0.2/test/test-e2e/test-arrows-in-lightbox.js:18
↓ 2 callers
Function
getNextButtonTitle
(element, options)
extensions/amp-carousel/0.1/build-dom.js:297
↓ 2 callers
Method
getNextButtonTitle
@return {string}
extensions/amp-carousel/0.1/slidescroll.js:720
↓ 2 callers
Method
getNextIndex_
* @param {?number} currentIndex * @return {?number} The next index that would be navigated to, or null if at * the end and not looping. *
extensions/amp-carousel/0.1/slidescroll.js:792
↓ 2 callers
Function
getNextPageParam
(lastPage)
extensions/amp-list/1.0/component.js:140
↓ 2 callers
Method
getNonAmpCreativeRenderingMethod
@override
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:1888
↓ 2 callers
Function
getNormalizedHostnameFromAnchor
(anchor)
extensions/amp-skimlinks/0.1/utils.js:32
↓ 2 callers
Function
getNormalizedHostnameFromUrl
(url)
extensions/amp-skimlinks/0.1/utils.js:22
↓ 2 callers
Method
getNumberOfOptions
* Returns the number of options. * * @protected * @return {number}
extensions/amp-story-interactive/0.1/amp-story-interactive-abstract.js:850
↓ 2 callers
Function
getObserver
* @param {Window} win * @return {ResizeObserver}
src/core/dom/layout/size-observer.js:163
↓ 2 callers
Method
getOffsetX_
* Given a x offset relative to the viewport, return the x offset * relative to the amp-pan-zoom component. * @param {number} clientX * @retur
extensions/amp-pan-zoom/0.1/amp-pan-zoom.js:431
↓ 2 callers
Method
getOffsetY_
* Given a y offset relative to the viewport, return the y offset * relative to the amp-pan-zoom component. * @param {number} clientY * @retur
extensions/amp-pan-zoom/0.1/amp-pan-zoom.js:443
↓ 2 callers
Function
getOnExperiments
* @return {!Array<string>}
third_party/subscriptions-project/swg.js:7632
↓ 2 callers
Function
getOptionalSandboxFlags
()
src/core/3p-frame.js:19
↓ 2 callers
Method
getOptionalTarget_
* @return {?Window} * @private
extensions/amp-access/0.1/iframe-api/messenger.js:95
↓ 2 callers
Function
getOptions
* Resolves the prettier config for the given file * @param {string} file * @return {Promise<Object>}
build-system/tasks/prettify.js:51
↓ 2 callers
Function
getOptions
* @param {!Element} element * @param {MutationObserver} mu * @return {!JsonObject}
extensions/amp-selector/1.0/base-element.js:71
↓ 2 callers
Function
getOrCreateCookie
* If cookie exists it's returned immediately. Otherwise, if instructed, the * new cookie is created. * @param {!Cid} cid * @param {!GetCidDef} getC
src/service/cid-impl.js:446
↓ 2 callers
Method
getOrCreateDeferById_
* Retrieves UserNotificationDeferDef object. Creates an defer if it doesn't * exist. * @param {string} id * @return {!UserNotificationDeferDe
extensions/amp-user-notification/0.1/amp-user-notification.js:541
↓ 2 callers
Method
getOrCreatePair_
* @param {function(?RedirectVerifierPairDef)} callback * @return {?Promise} * @private
third_party/subscriptions-project/swg.js:18234
↓ 2 callers
Method
getOrCreateRunners_
* Gets or creates AnimationRunners. * These are either from an <amp-story-animation> spec or resolved from * presets via animate-in attributes.
extensions/amp-story/1.0/animation.js:669
↓ 2 callers
Method
getOrigin_
* Returns the server origin based on the environment. * * @private * @return {string}
third_party/subscriptions-project/swg.js:16630
↓ 2 callers
Function
getOverflowY
* @param {!Element} element An Element to get the overflow for. * @return {number} The vertical overflow, if any, in pixels.
extensions/amp-truncate-text/0.1/truncate-text.js:132
↓ 2 callers
Function
getPadding
(t,e,i)
third_party/react-dates/bundle.js:1
↓ 2 callers
Method
getPageConfig_
* Returns PageConfig if available * @return {?PageConfig} PageConfig found so far
third_party/subscriptions-project/config.js:1075
↓ 2 callers
Method
getPageElement
@return {?Element}
extensions/amp-story-auto-ads/0.1/story-ad-page.js:165
↓ 2 callers
Method
getPageIndexById
(pageId)
extensions/amp-story-auto-ads/0.1/test/story-mock.js:31
↓ 2 callers
Function
getPageOffsets
(impls)
extensions/amp-ad-network-doubleclick-impl/0.1/sra-utils.js:289
↓ 2 callers
Function
getPageviewStateTokensForAdRequest
(instancesInAdRequest)
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:2087
↓ 2 callers
Method
getPaywallContainer_
* Return element on publisher's page where paywall will be displayed * @return {!Element} * @private
extensions/amp-access-fewcents/0.1/fewcents-impl.js:262
↓ 2 callers
Method
getPercInView
* Helper function to calculate both the xInView and yInView of the * geometry update messages. In the case of a 400px wide viewport, * with a 10
extensions/amp-ad-network-doubleclick-impl/0.1/safeframe-host.js:428
↓ 2 callers
Function
getPercentageOffsetFromAlignment
( axis, alignment, container, el )
extensions/amp-base-carousel/0.1/dimensions.js:127
↓ 2 callers
Method
getPlaceholder
* Returns an optional placeholder element for this custom element. * @return {?Element} * @package @final
src/custom-element.js:1920
↓ 2 callers
Function
getPlatform
()
extensions/amp-apester-media/0.1/utils.js:71
↓ 2 callers
Method
getPlatformConfig_
* @return {!Promise<!JsonObject>} * @private
extensions/amp-subscriptions/0.1/amp-subscriptions.js:392
↓ 2 callers
Method
getPolicy_
* @return {!UrlReplacementPolicy_Enum}
extensions/amp-list/0.1/amp-list.js:1643
↓ 2 callers
Method
getPositionEntry_
* @param {!Element} element * @return {!PositionEntryDef} * @private
ads/inabox/position-observer.js:81
↓ 2 callers
Method
getPositionObserver
* @return {!PositionObserver}
extensions/amp-next-page/1.0/visibility-observer.js:276
↓ 2 callers
Function
getPrevArrow
()
extensions/amp-carousel/0.2/test/test-e2e/test-arrows-in-lightbox.js:12
↓ 2 callers
Function
getPrevButtonTitle
(element, options)
extensions/amp-carousel/0.1/build-dom.js:310
↓ 2 callers
Method
getPrevButtonTitle
@return {string}
extensions/amp-carousel/0.1/slidescroll.js:710
↓ 2 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.1/slidescroll.js:778
↓ 2 callers
Method
getPreviousPageId
* Gets the ID of the previous page in the story (before the current page). * @return {?string} Returns the ID of the next page in the story, or nul
extensions/amp-story/1.0/amp-story-page.js:1491
↓ 2 callers
Method
getProgressMs
* @return {number} The progress, in terms of milliseconds elapsed.
extensions/amp-story/1.0/page-advancement.js:943
↓ 2 callers
Function
getProxySafeDomain
* Returns the given domain if the current origin is not the AMP proxy origin, * otherwise returns the empty string. * * On proxy origin, we want co
ads/google/a4a/cookie-utils.js:19
↓ 2 callers
Function
getProxySourceOrigin
(url)
src/service/cid-impl.js:506
↓ 2 callers
Function
getPubmineScriptElement
()
test/unit/ads/test-pubmine.js:13
↓ 2 callers
Method
getPullRequestsBetweenCommits
* Get pull requests between two commits * @param {string} head * @param {string} base * @return {Promise<Array<GraphQlQueryResponseData>>}
build-system/release-tagger/utils.js:223
↓ 2 callers
Method
getQueryParamData_
* Return the QUERY_PARAM from the current location href * @param {string} param * @param {string} defaultValue * @return {string} * @priva
src/service/url-replacements-impl.js:717
↓ 2 callers
Function
getRandom
(win)
src/3p-frame.js:322
↓ 2 callers
Function
getReactStyle
* @param {string} name * @return {?string}
build-system/babel-plugins/babel-plugin-react-style-props/index.js:16
← previous
next →
5,801–5,900 of 18,703, ranked by callers