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
getIframe
(src)
extensions/amp-ad/0.1/test/test-legacy-ad-intersection-observer-host.js:32
↓ 1 callers
Method
getIframeClickString
* Returns array of clicked iframes * * @return {string}
extensions/amp-addthis/0.1/addthis-utils/monitors/click-monitor.js:85
↓ 1 callers
Method
getIframeContext_
* @return {Promise<Object|undefined>} * @private
extensions/amp-ima-video/0.1/amp-ima-video.js:188
↓ 1 callers
Method
getIframeMessagingClient
* Gets the IframeMessagingClient. * @return {!IframeMessagingClient} * @visibleForTesting
3p/iframe-transport-client.js:108
↓ 1 callers
Function
getIframeName
(url)
extensions/amp-addthis/0.1/addthis-utils/pixel.js:69
↓ 1 callers
Method
getIframeNameString_
* Return unique name with the appropriate prefix. * This name is defined by tiktok but is not documented on their site. * @private * @return
extensions/amp-tiktok/0.1/amp-tiktok.js:328
↓ 1 callers
Method
getIframeOrigin_
* Returns the payframe origin based on the environment. * * @return {string} * @private
third_party/subscriptions-project/swg.js:15587
↓ 1 callers
Method
getIframeSrc_
@private
extensions/amp-dailymotion/0.1/amp-dailymotion.js:237
↓ 1 callers
Method
getIframeSrc_
@return {string}
extensions/amp-google-read-aloud-player/0.1/amp-google-read-aloud-player.js:102
↓ 1 callers
Method
getIframeUrl
* Returns the iframe pwg url to be used to be used for amp. * * @param {string} environment * @param {string} origin * @return {string} Th
third_party/subscriptions-project/swg.js:16695
↓ 1 callers
Method
getIframeUrl_
* Returns the payframe URL based on the environment. * * @param {string} origin The origin that is opening the payframe. * @param {string|nul
third_party/subscriptions-project/swg.js:15605
↓ 1 callers
Method
getImage
* @static * @param {Window} win * @return {typeof Image}
src/core/window/interface.js:98
↓ 1 callers
Method
getImage
* Returns the boundaries of the image element. * @return {?Element}
extensions/amp-image-viewer/0.1/amp-image-viewer.js:235
↓ 1 callers
Method
getImageBoxWithOffset
* Returns the boundaries of the image element with the offset if it was * moved by a gesture. * @return {!../../../src/layout-rect.LayoutRectDef
extensions/amp-image-lightbox/0.1/amp-image-lightbox.js:172
↓ 1 callers
Method
getImageBoxWithOffset
* Returns the boundaries of the image element with the offset if it was * moved by a gesture. * @return {?../../../src/layout-rect.LayoutRectDef
extensions/amp-image-viewer/0.1/amp-image-viewer.js:244
↓ 1 callers
Function
getImgurSrc
* Returns the imgur URL * @param {string} imgurId * @return {string}
src/bento/components/bento-imgur/1.0/component.js:98
↓ 1 callers
Function
getImportCode
* @param {Set<string>} validatorFns * @return {string}
build-system/compile/json-schema/index.js:152
↓ 1 callers
Function
getImportMap
(node)
build-system/eslint-rules/no-duplicate-import.js:19
↓ 1 callers
Function
getInOb
* @param {Window} win * @return {IntersectionObserver}
src/core/dom/layout/intersection-no-root.js:26
↓ 1 callers
Function
getInOb
* @param {Window} win * @return {IntersectionObserver}
src/core/dom/layout/intersection.js:18
↓ 1 callers
Function
getIncident
* Get unresolved incident by cherry-pick issue number * @return {Promise<Object>}
build-system/status-page/incident.js:74
↓ 1 callers
Function
getInitAdScript
* @param {!Window} global * @param {!Object} data * @return {?Node}
ads/vendors/runative.js:79
↓ 1 callers
Function
getInitAdScript
* @param {!Window} global * @param {!Object} data * @return {?Node}
ads/vendors/trafficstars.js:87
↓ 1 callers
Function
getInitAdScript
* @param {!Window} global * @param {!Object} data * @return {?Node}
ads/vendors/sabavision.js:52
↓ 1 callers
Function
getInitData
* @param {!Object} data * @return {JsonObject}
ads/vendors/runative.js:45
↓ 1 callers
Function
getInitData
* @param {!Object} data * @return {JsonObject}
ads/vendors/trafficstars.js:51
↓ 1 callers
Method
getInitialGeometry
* Returns the initialGeometry to assign to the name of the safeframe * for rendering. This needs to be done differently than all the other * geo
extensions/amp-ad-network-doubleclick-impl/0.1/safeframe-host.js:272
↓ 1 callers
Method
getInitialIndex_
* @return {number} The initial index for the carousel. * @private
extensions/amp-stream-gallery/0.1/amp-stream-gallery.js:455
↓ 1 callers
Method
getInitialIndex_
* @return {number} The initial index for the carousel. * @private
extensions/amp-base-carousel/0.1/amp-base-carousel.js:600
↓ 1 callers
Function
getInitialNoneValues
* Gets the initial values of an Element's animation state. * For time-based animations, auto is equivalent to a value of 0s. * * @param {boolean} i
testing/helpers/service.js:97
↓ 1 callers
Method
getInitialState_
* Get the initial value for properties that change during the lifetime of * the AMP element. * @return {!JsonObject}
extensions/amp-date-picker/0.1/amp-date-picker.js:802
↓ 1 callers
Method
getInitialViewHeight
* Returns the initial height of viewport. * * @return {number}
extensions/amp-addthis/0.1/addthis-utils/monitors/scroll-monitor.js:45
↓ 1 callers
Method
getInlineConfig_
* @private * @return {!JsonObject}
extensions/amp-analytics/0.1/config.js:371
↓ 1 callers
Method
getInlineConfig_
* Reads the inline config from the element. * @return {?*} Config JSON object, or null if no inline config specified. * @private
extensions/amp-next-page/0.1/amp-next-page.js:164
↓ 1 callers
Method
getInlineConfig_
* @param {!Element} child * @return {!JsonObject}
extensions/amp-story-auto-ads/0.1/story-ad-config.js:89
↓ 1 callers
Method
getInlineConfig_
* Read the inline config from publisher * @return {?JsonObject}
extensions/amp-consent/0.1/consent-config.js:257
↓ 1 callers
Method
getInlineData_
* Reads the 'items' data from the child <script> element. * For use with static local data. * @param {!Element} script * @return {!Array<!Jso
src/bento/components/bento-autocomplete/1.0/base-element.js:22
↓ 1 callers
Method
getInlineData_
* Reads the 'items' data from the child <script> element. * For use with static local data. * @param {!Element} script * @return {!Array<!Jso
extensions/amp-autocomplete/0.1/amp-autocomplete.js:398
↓ 1 callers
Function
getInput
* Extracts the input for a test from its input file. * * @param {string} inputFile * @return {Promise<string>}
build-system/tasks/server-tests.js:26
↓ 1 callers
Method
getInputmask_
* Require and configure the Inputmask dependency. * @param {!Element} element * @return {function(!Object):!Inputmask} * @private visible for
extensions/amp-inputmask/0.1/mask-impl.js:96
↓ 1 callers
Function
getInstance
* Provided a URL or a filename from which to fetch the validator_wasm.js * file, fetches, instantiates, and caches the validator instance * asynchro
validator/js/nodejs/index.js:288
↓ 1 callers
Function
getInternalDomains_
* * @param {?../../../src/service/document-info-impl.DocumentInfoDef} docInfo * @return {!Array<string>}
extensions/amp-skimlinks/0.1/skim-options.js:124
↓ 1 callers
Method
getIntersectionElementLayoutBox
* Returns the layout rectangle used for when calculating this element's * intersection with the viewport. * @return {!./layout-rect.LayoutRectDe
src/base-element.js:838
↓ 1 callers
Function
getIntersectionRatioMinAutoplay
* @param {!Element} element * @return {!Promise<number>}
extensions/amp-video-iframe/1.0/amp-video-iframe.js:25
↓ 1 callers
Method
getInterval
@override
extensions/amp-live-list/0.1/amp-live-list.js:692
↓ 1 callers
Method
getIntervalFromExpId_
* Map branches to the interval from experiment branch. * @param {string} branchId * @return {number}
extensions/amp-story-auto-ads/0.1/algorithm-predetermined.js:131
↓ 1 callers
Function
getInvalidType
* Returns invalid error type on the input. * @see https://developer.mozilla.org/en-US/docs/Web/API/ValidityState * @param {!Element} input * @retur
extensions/amp-form/0.1/form-validators.js:569
↓ 1 callers
Method
getInvalidType_
* Wraps the validity type for inputs to support pattern on <textarea> * @param {!Element} input * @param {string=} inputInvalidType * @return
extensions/amp-form/0.1/form-validators.js:330
↓ 1 callers
Method
getIsClicked
* @return {?boolean}
third_party/subscriptions-project/swg.js:1980
↓ 1 callers
Function
getIsFluid
(impls)
extensions/amp-ad-network-doubleclick-impl/0.1/sra-utils.js:325
↓ 1 callers
Method
getIsFromUserAction
* @return {?boolean}
third_party/subscriptions-project/swg.js:729
↓ 1 callers
Method
getIsUserRegistered
* @return {?boolean}
third_party/subscriptions-project/swg.js:1465
↓ 1 callers
Function
getItemElement
( element: HTMLElement | null )
src/bento/components/bento-autocomplete/1.0/component/helpers.ts:3
↓ 1 callers
Method
getItemElement_
* Returns the nearest ancestor element that is a suggested item. * @param {?Element} element * @return {?Element} * @private
extensions/amp-autocomplete/0.1/amp-autocomplete.js:1040
↓ 1 callers
Method
getItemsForWidth_
* Determines how many whole items in addition to the current peek value can * fit for a given item width. This can be rounded up or down to satisfy
extensions/amp-stream-gallery/0.1/amp-stream-gallery.js:468
↓ 1 callers
Function
getItemsFromPage
* * @param {object} pageData * @param {string} itemsKey * @return {*}
extensions/amp-list/1.0/component.js:82
↓ 1 callers
Function
getJsFilesFor
* Retrieves the set of JS source files that import the given CSS file. * * @param {string} cssFile * @param {!{[key: string]: string}} cssJsFileMap
build-system/tasks/runtime-test/helpers-unit.js:121
↓ 1 callers
Function
getJscodeshiftReport
* @param {string} line * @return {?Array<string>} [filename, report]
build-system/test-configs/jscodeshift/index.js:33
↓ 1 callers
Function
getJsonLd
(root)
extensions/amp-video-iframe/0.1/amp-video-iframe.js:87
↓ 1 callers
Method
getJsonLd_
* @param {!Node} root * @return {?JsonObject}
extensions/amp-google-read-aloud-player/0.1/amp-google-read-aloud-player.js:134
↓ 1 callers
Function
getJsonObject_
* Requests groups of pixels at specified delays * @param {(?JsonObject|string|undefined|null)} object * @return {!JsonObject}
extensions/amp-addthis/0.1/addthis-utils/pixel.js:145
↓ 1 callers
Method
getJwplayer_
* Checks comformity for opt_player, or obtains global singleton instance. * @param {?JwplayerPartialInterfaceDef=} opt_player * @return {!Jwplay
src/video-iframe-integration.js:209
↓ 1 callers
Method
getJwt
* @return {?string}
third_party/subscriptions-project/swg.js:1062
↓ 1 callers
Function
getKeyboardEventInit
* @param {!Event} e * @return {!JsonObject}
extensions/amp-viewer-integration/0.1/keyboard-handler.js:130
↓ 1 callers
Method
getKeyframeOptions_
* @param {!Element} el * @return {!{[key: string]: *}} * @private
extensions/amp-story/1.0/animation.js:816
↓ 1 callers
Method
getLabelList
* @return {!Array<string>}
third_party/subscriptions-project/swg.js:576
↓ 1 callers
Function
getLanguageCodeFallbacks
* Finds fallback language codes for the current language code. * @param {string} languageCode the language code to get fallbacks for * @return {stri
build-system/tasks/build-story-localization.js:22
↓ 1 callers
Function
getLanguageCodeFromElement
* Gets a language code (ex: "en-US") from a given Element. * @param {!Element} element * @return {string}
third_party/subscriptions-project/swg.js:8688
↓ 1 callers
Function
getLanguageStrings
* Reads the language files found in amp-story and stores it in a * Object. * @return {Promise<Object>}
build-system/tasks/build-story-localization.js:47
↓ 1 callers
Function
getLargerAdOneColumnSidebysideSize
* @param {number} availableWidth * @param {!LayoutType} layoutType * @param {number} numColumns * @param {number} numRows * @return {{width: numbe
ads/google/a4a/shared/content-recommendation.js:470
↓ 1 callers
Function
getLastExpectError
* Retrieves the expected error state. * @return {?Error}
build-system/tasks/e2e/expect.js:20
↓ 1 callers
Method
getLastRequestUrl
()
testing/helpers/service.js:395
↓ 1 callers
Method
getLastVisibleTime
* Passthrough for ampdoc visibility state. Only to be used by viewer * integration. * @restricted * TODO(#22733): remove if no longer used by
src/service/viewer-impl.js:498
↓ 1 callers
Function
getLayoutCallback
(impl, creative, isSra, noRender)
extensions/amp-ad-network-doubleclick-impl/0.1/test/test-doubleclick-sra.js:605
↓ 1 callers
Method
getLayoutMargins_
* Returns the layout margins for the resource. * @param {!Resource} resource * @return {!../layout-rect.LayoutMarginsDef} * @private
src/service/mutator-impl.js:161
↓ 1 callers
Function
getLegacyStoredConsentInfo
* Convert the legacy boolean stored value to consentInfo object * @param {boolean} value * @return {!ConsentInfoDef}
extensions/amp-consent/0.1/consent-info.js:280
↓ 1 callers
Function
getLightboxElements
* @param {!Document} document * @param {function(number)} open * @return {!Array<PreactDef.Renderable>}
src/bento/components/bento-lightbox-gallery/1.0/base-element.js:127
↓ 1 callers
Function
getLikeContainer
* Create DOM element for the Facebook like-button plugin: * Reference: https://developers.facebook.com/docs/plugins/like-button * @param {!Window} g
3p/facebook.js:148
↓ 1 callers
Function
getLinkAttribute_
* What attribute the outbound link variable is stored in an anchor. * @param {!Element} element * @return {string} * @private
extensions/amp-smartlinks/0.1/linkmate-options.js:53
↓ 1 callers
Function
getLinkRels
* Returns a map object of link tag relations in document head. * Key is the link rel, value is a list of corresponding hrefs. * @param {!Document} d
src/service/document-info-impl.js:121
↓ 1 callers
Function
getLinkSelector_
* Selector used to get all links that are meant to be monetized. * @param {!Element} element * @return {string} * @private
extensions/amp-smartlinks/0.1/linkmate-options.js:65
↓ 1 callers
Function
getLinkSelector_
* * @param {!Element} element * @return {?string}
extensions/amp-skimlinks/0.1/skim-options.js:113
↓ 1 callers
Method
getLinkmateOptions_
* API call to retrieve the Narrativ config for this extension. * API response will be a list containing nested json values. For the purpose * of
extensions/amp-smartlinks/0.1/amp-smartlinks.js:116
↓ 1 callers
Method
getLinksInDOM_
* Get the list of anchors element in the page. * (Based on linkSelector option) * @return {!Array<!HTMLElement>} * @private
extensions/amp-skimlinks/0.1/link-rewriter/link-rewriter.js:230
↓ 1 callers
Function
getListContainer
(controller)
extensions/amp-list/0.1/test-e2e/test-function-src.js:55
↓ 1 callers
Function
getListItems
(controller)
extensions/amp-list/0.1/test-e2e/test-function-src.js:59
↓ 1 callers
Function
getListRegExp
()
build-system/tasks/check-video-interface-list.js:45
↓ 1 callers
Function
getListenForEvents
* Returns an mapping of event names to listenFor listeners. * @param {?Window} parentWin the window that created the iframe * @param {string} sentin
src/iframe-helper.js:104
↓ 1 callers
Function
getListenFors
* Returns a mapping from a URL's origin to an array of windows and their * listenFor listeners. * @param {?Window} parentWin the window that created
src/iframe-helper.js:34
↓ 1 callers
Function
getListing
* @param {string} rootPath * @param {string} basepath * @return {Promise<null|undefined|string[]>}
build-system/server/app-index/util/listing.js:20
↓ 1 callers
Function
getLiveBlogItem
* @return {string}
build-system/server/app.js:700
↓ 1 callers
Function
getLiveBlogItemWithBindAttributes
* @return {string}
build-system/server/app.js:760
↓ 1 callers
Method
getLiveChannelId_
* @return {?string} * @private
extensions/amp-youtube/0.1/amp-youtube.js:330
↓ 1 callers
Method
getLiveLists_
* Queries the document for all `amp-live-list` tags. * * @param {!Document} doc * @return {!Array<!Element>} * @private
extensions/amp-live-list/0.1/live-list-manager.js:185
↓ 1 callers
Method
getLoadMoreButtonClickable
* @return {!Element}
extensions/amp-list/0.1/service/load-more-service.js:111
↓ 1 callers
Method
getLoadMoreFailedClickable
* @return {!Element}
extensions/amp-list/0.1/service/load-more-service.js:164
↓ 1 callers
Function
getLoaderDom
* @param {!AmpElement} element Used to get a document to build HTML with. * @return {!Element} The loader DOM.
extensions/amp-loader/0.1/amp-loader.js:71
↓ 1 callers
Function
getLoaderServicePromise
* Gets a Promise for the LoaderService, initiating a request to download the * code. * @param {!./ampdoc-impl.AmpDoc} ampDoc * @param {!Element} el
src/service/loader-element.js:10
↓ 1 callers
Function
getLoaderType
(tagName, attribName)
third_party/caja/html-sanitizer.js:2262
↓ 1 callers
Method
getLoadingView
* Gets the LoadingView for this dialog. * @return {LoadingView}
third_party/subscriptions-project/swg.js:11033
← previous
next →
8,901–9,000 of 18,703, ranked by callers