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
getLocalBundleSize
* @return {Promise<void>}
build-system/tasks/bundle-size/index.js:227
↓ 1 callers
Function
getLocalStorageState
* Get history state from localStorage. * @param {!Window} win * @return {*}
extensions/amp-story/1.0/history.js:66
↓ 1 callers
Function
getLocale
(locale)
extensions/amp-timeago/1.0/locales.js:38
↓ 1 callers
Function
getLocale
(locale)
extensions/amp-timeago/0.1/locales.js:38
↓ 1 callers
Function
getLocaleWord
* Return an object with a label for 'years', 'months', etc. based on the * user provided locale string. * @param {string} locale * @return {!JsonOb
extensions/amp-date-countdown/1.0/component.js:142
↓ 1 callers
Function
getLocalizationService
(element)
extensions/amp-story-auto-ads/0.1/story-ad-localization.js:67
↓ 1 callers
Function
getLocation
()
3p/frame-metadata.js:98
↓ 1 callers
Function
getLocationHashParams
()
validator/js/webui/webui.js:4
↓ 1 callers
Method
getLocationHref_
* Retrieve url of the current doc. * @return {string} * @private
extensions/amp-smartlinks/0.1/amp-smartlinks.js:204
↓ 1 callers
Method
getLocationHref_
* Retrieve url of the current doc. * @return {string} * @private
extensions/amp-smartlinks/0.1/linkmate.js:174
↓ 1 callers
Method
getLocation_
* @return {!Location} * @private
src/service/navigation.js:692
↓ 1 callers
Method
getLoggingPromise
* Please note that logs sent after getLoggingPromise is called are not * guaranteed to be finished when the promise is resolved. You should call
third_party/subscriptions-project/swg.js:8132
↓ 1 callers
Function
getLoginUrl
(ampdoc, urlOrPromise)
extensions/amp-access/0.1/login-dialog.js:49
↓ 1 callers
Method
getLoginUrl
* @return {!Promise<string>}
extensions/amp-access/0.1/login-dialog.js:72
↓ 1 callers
Function
getLojsonData
(jsonData)
extensions/amp-addthis/0.1/addthis-utils/lojson.js:63
↓ 1 callers
Function
getMainWidgetContainer
* Create DOM element for the Yotpo main widget plugin: * @param {!Window} global * @param {!Object} data The element data * @return {!Element} div
3p/yotpo.js:56
↓ 1 callers
Method
getMapKey_
* Creates a map key for a fetch. * * @param {string} input URL * @param {string} responseType * @return {string} * @private
src/service/batched-xhr-impl.js:71
↓ 1 callers
Method
getMatchedGeoGroup
* Returns the matched geoGroup. Call after getConsentConfigPromise * has resolved. * @return {?string}
extensions/amp-consent/0.1/consent-config.js:66
↓ 1 callers
Method
getMatcher_
* @param {!WebAnimationSubtargetDef} spec * @return {function(!Element, number):boolean}
extensions/amp-animation/0.1/web-animations.js:672
↓ 1 callers
Function
getMathmlJs
* Get the correct script for the mathml formula. * * Use writeScript: Failed to execute 'write' on 'Document': It isn't possible * to write into a
3p/mathml.js:18
↓ 1 callers
Method
getMaxAllowedHeight_
* Returns maximum allowed height for current viewport. * @param {number} height * @return {number} * @private
third_party/subscriptions-project/swg.js:11271
↓ 1 callers
Method
getMaxBounds_
* Calculates max distances to keep image in viewport. * @private * @return {panningMediaMaxBoundsPercentDef}
extensions/amp-story-panning-media/0.1/amp-story-panning-media.js:186
↓ 1 callers
Method
getMaxMediaElementCounts
* @return {!{[key: !MediaType_Enum]: number}} The maximum amount of each media * type to allow within this element.
extensions/amp-story/1.0/media-pool.js:1094
↓ 1 callers
Function
getMaxNaturalDimensions
* Gets the maximum natural dimensions for an image with srcset. * This is necessary when the browser selects a src that is not shrunk for its * rend
extensions/amp-auto-lightbox/0.1/amp-auto-lightbox.js:213
↓ 1 callers
Method
getMaxVideoPreview_
* @return {number} The max-video-preview value, if it exists on the doc. A * positive value means that a maximum of <value> seconds may be used
extensions/amp-story/1.0/amp-story-page.js:428
↓ 1 callers
Function
getMaxWidthFromSrcset
* Parses srcset partially to get the maximum defined intrinsic width. * @param {!Element} img * @return {number} -1 if no srcset, or if srcset is de
extensions/amp-auto-lightbox/0.1/amp-auto-lightbox.js:188
↓ 1 callers
Method
getMaxWidth_
* Called on each button creation, in case of window resize. * Page width - (2 x 32px of padding on each side) + (2 x 10px padding on button). *
extensions/amp-story-auto-ads/0.1/story-ad-button-text-fitter.js:77
↓ 1 callers
Method
getMediaElement_
* Gets an HTMLMediaElement from an element that wraps it. * @return {?Element} The underlying HTMLMediaElement, if one exists. * @private
extensions/amp-story/1.0/page-advancement.js:1048
↓ 1 callers
Function
getMediaPerformanceMetricsService
(win)
extensions/amp-story/1.0/media-performance-metrics-service.js:89
↓ 1 callers
Method
getMessageData_
* Utility method to parse out the data from the supplied `postMessage` event. * @param {!Event} event * @return {?JsonObject|undefined} * @pr
extensions/amp-addthis/0.1/post-message-dispatcher.js:48
↓ 1 callers
Method
getMeta
* Initializes (if necessary) cached map of an ampdoc's meta name values to * their associated content values and returns the map. * @return {!{[
src/service/ampdoc-impl.js:352
↓ 1 callers
Method
getMeta
* @return {?AnalyticsEventMeta}
third_party/subscriptions-project/swg.js:829
↓ 1 callers
Function
getMetadata
(player, props)
src/bento/components/bento-video/1.0/component.js:41
↓ 1 callers
Method
getMetadata
@override
test/integration/test-video-manager.js:591
↓ 1 callers
Method
getMetadata_
* @return {!JsonObject} * @private
extensions/amp-video-iframe/0.1/amp-video-iframe.js:171
↓ 1 callers
Method
getMetadata_
* @return {!JsonObject} * @private
extensions/amp-google-read-aloud-player/0.1/amp-google-read-aloud-player.js:119
↓ 1 callers
Method
getMinDataMaxItemsPerPage
* Default minimum data max items per page value. * * @return {number}
extensions/amp-live-list/0.1/live-list-manager.js:327
↓ 1 callers
Function
getMinSinceEpoch
* Rounded time used to check if t2 - t1 is within our time tolerance. * @return {number}
extensions/amp-analytics/0.1/linker.js:181
↓ 1 callers
Function
getMinSinceEpoch
* Rounded time used to check if t2 - t1 is within our time tolerance. * @return {number}
extensions/amp-consent/0.1/linker.js:181
↓ 1 callers
Function
getMinifiedName
* @param {string} minifiedBasename should be without extension * @return {string}
build-system/server/new-server/transforms/utilities/cdn.ts:24
↓ 1 callers
Function
getModeObject
(opt_win)
src/mode-object.js:9
↓ 1 callers
Function
getMode_
* Provides info about the current app. * @param {!Window} win * @return {!ModeDef}
src/mode.js:45
↓ 1 callers
Function
getModifiedSourceFiles
(fromHash)
build-system/tasks/sweep-experiments/index.js:78
↓ 1 callers
Function
getModuleGraph
* @param {string} entryPointModule * @return {!Promise<ModuleDef>}
build-system/tasks/dep-check.js:181
↓ 1 callers
Function
getMonthlyTimeIdentifier
* The returned identifier will always be an 8 digit valid hexidecimal number * and will be unique for each MS within a given month. * @return {strin
third_party/subscriptions-project/swg.js:3278
↓ 1 callers
Method
getMuidParam_
* @return {string} Muidn info for ad request * @private
extensions/amp-ad-network-mgid-impl/0.1/amp-ad-network-mgid-impl.js:254
↓ 1 callers
Function
getMutationRecordsFromExperimentToVariant
( config, experimentToVariant )
extensions/amp-experiment/1.0/apply-experiment.js:105
↓ 1 callers
Method
getName
* @return {string} The name of this task.
extensions/amp-story/1.0/media-tasks.js:141
↓ 1 callers
Function
getNameArgsForTesting
(key)
extensions/amp-analytics/0.1/variables.js:579
↓ 1 callers
Method
getName_
* @return {string} * @protected
src/chunk.js:201
↓ 1 callers
Method
getName_
* @return {string} Returns a string to identify this tag. May not be unique * if the element label is not unique. * @private
extensions/amp-byside-content/0.1/amp-byside-content.js:261
↓ 1 callers
Function
getNaturalDimensions
(element)
src/core/static-layout.js:56
↓ 1 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
extensions/amp-ad-network-valueimpression-impl/0.1/amp-ad-network-valueimpression-impl.js:478
↓ 1 callers
Method
getNetworkInfoParams_
* @return {string} Network information data for ad request * @private
extensions/amp-ad-network-mgid-impl/0.1/amp-ad-network-mgid-impl.js:167
↓ 1 callers
Method
getNewDomains_
* From a list of anchors, extract the list of domains for which * we don't already have the affiliate status information. This is * the list of
extensions/amp-skimlinks/0.1/affiliate-link-resolver.js:198
↓ 1 callers
Method
getNewMediaEntry_
* @param {!HTMLMediaElement} media * @param {!Array<!UnlistenDef>} unlisteners * @return {!MediaEntryDef} * @private
extensions/amp-story/1.0/media-performance-metrics-service.js:269
↓ 1 callers
Function
getNextArrow
(controller)
extensions/amp-carousel/0.2/test/test-e2e/helpers.js:14
↓ 1 callers
Function
getNextArrowSlot
(controller)
extensions/amp-base-carousel/1.0/test-e2e/helpers.js:35
↓ 1 callers
Method
getNextButtonTitlePrefix_
* @return {string} The title to use for the next button. * @private
extensions/amp-carousel/0.2/amp-carousel.js:429
↓ 1 callers
Method
getNextButtonTitle_
* @param {number} index * @return {string} The title of the button. * @private
extensions/amp-carousel/0.2/amp-carousel.js:491
↓ 1 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.2/amp-carousel.js:417
↓ 1 callers
Function
getNextIssueData
* @param {TemplateDef} template * @return {object}
build-system/common/update-session-issues/index.js:304
↓ 1 callers
Method
getNextMediaEl_
* @private * @param {?Element} mediaEl * @return {?Element}
extensions/amp-story/1.0/background-blur.js:172
↓ 1 callers
Method
getNextOrientation
* Returns the CameraOrientation for the next frame, or null if the animation * is over. * @return {?CameraOrientation}
extensions/amp-story-360/0.1/amp-story-360.js:191
↓ 1 callers
Method
getNextPage
* Get next page object * @param {!./amp-story-page.AmpStoryPage} page * @return {?./amp-story-page.AmpStoryPage}
extensions/amp-story/1.0/amp-story.js:2674
↓ 1 callers
Method
getNextPage
(pageImpl)
extensions/amp-story-auto-ads/0.1/test/story-mock.js:26
↓ 1 callers
Function
getNextUrl
* Returns the nextUrl, according to the `loadMoreBookmark` string * @param {*} lastPage * @param {string} loadMoreBookmark * @return {*}
extensions/amp-list/1.0/component.js:72
↓ 1 callers
Function
getNodeLatestLtsVersion
* Extracts the latest node version from a JSON object containing version info * * @param {!Object} distributionsJson * @return {string}
build-system/common/check-package-manager.js:173
↓ 1 callers
Method
getNodesForOverflow_
* @return {!Array<!Node>} The nodes to show when overflowing.
extensions/amp-truncate-text/0.1/amp-truncate-text.js:188
↓ 1 callers
Method
getNonAmpCreativeRenderingMethod
@override
extensions/amp-ad-network-smartadserver-impl/0.1/amp-ad-network-smartadserver-impl.js:157
↓ 1 callers
Function
getNrtvAccountName_
* The slug used to distinguish Narrativ accounts. * @param {!Element} element * @return {string} * @private
extensions/amp-smartlinks/0.1/linkmate-options.js:22
↓ 1 callers
Function
getNthParentWindow
* Returns the Nth parent of the given window. * @param {!Window} win * @param {number} distance frames above us. * @return {!Window}
ads/alp/handler.js:252
↓ 1 callers
Function
getNumberOfErrors
* Returns the number of errors that occur in the set of ValidationErrors. * * * @param {Array<ValidationError>} errors Validation errors and/or war
validator/js/chromeextension/worker.js:72
↓ 1 callers
Function
getNumberOfWarnings
* Returns the number of warnings that occur in the set of ValidationErrors. * * @param {Array<ValidationError>} errors Validation errors and/or warn
validator/js/chromeextension/worker.js:82
↓ 1 callers
Method
getOffers
* @param {?string=} productId * @return {!Promise<!Array<!../api/offer.Offer>>}
third_party/subscriptions-project/swg.js:14774
↓ 1 callers
Function
getOffsetPosition
(axis, el)
src/bento/components/bento-base-carousel/1.0/dimensions.js:191
↓ 1 callers
Function
getOgImage
(doc)
extensions/amp-addthis/0.1/addthis-utils/meta.js:19
↓ 1 callers
Function
getOldBranches
* @return {Promise<string[]>}
build-system/tasks/sweep-experiments/cleanup-branches.js:65
↓ 1 callers
Method
getOldSku
* @return {?string}
third_party/subscriptions-project/swg.js:1836
↓ 1 callers
Method
getOneTime
* @return {?boolean}
third_party/subscriptions-project/swg.js:1850
↓ 1 callers
Method
getOptedInScopes_
* Reads meta tags for opted in scopes. Meta tags will have the form * <meta name="provider-api-name" content="provider-name"> * @return {!{[key
src/service/cid-impl.js:300
↓ 1 callers
Function
getOptimizedNumColumns
* Gets optimized number of columns. If the publisher specified value of * 'data-matched-content-columns-num' is too large, it may result in a very *
ads/google/a4a/shared/content-recommendation.js:510
↓ 1 callers
Method
getOptions_
* * @param {../api/subscriptions.ButtonOptions|../api/subscriptions.SmartButtonOptions|function()} optionsOrCallback * @return {!../api/subscrip
third_party/subscriptions-project/swg.js:8933
↓ 1 callers
Function
getOrAddWorkletModule
* @param {!Window} win * @private * @return {*} TODO(#23582): Specify return type
extensions/amp-animation/0.1/runners/scrolltimeline-worklet-runner.js:121
↓ 1 callers
Function
getOrCreateListenForEvents
* Returns an mapping of event names to listenFor listeners. * @param {?Window} parentWin the window that created the iframe * @param {!Element} ifra
src/iframe-helper.js:72
↓ 1 callers
Function
getOrCreateMessageId
* @param {string} message * @return {string} Short message id.
build-system/babel-plugins/babel-plugin-transform-log-methods/index.js:69
↓ 1 callers
Method
getOrCreateObservableFor_
* @param {string} messageType * @return {!Observable<?JsonObject>}
3p/iframe-messaging-client.js:213
↓ 1 callers
Method
getOrCreateRoot_
* @param {!Object} holder * @param {function():!./analytics-root.AnalyticsRoot} factory * @return {!./analytics-root.AnalyticsRoot}
extensions/amp-analytics/0.1/instrumentation.js:121
↓ 1 callers
Method
getOrCreateSession_
* Get our session if it exists or creates it. Sets the session * in localStorage to update the access time. * @param {string} type * @param {
extensions/amp-analytics/0.1/session-manager.js:198
↓ 1 callers
Method
getOriginalWebActivityPorts
* @return {!web-activities/activity-ports.ActivityPorts}
third_party/subscriptions-project/swg.js:7087
↓ 1 callers
Function
getOutermostAmpElement
* Traverse node ancestors and return the highest level amp element. * Returns the given node if none are found. * * @param {!Node} node * @return
src/service/performance-impl.js:983
↓ 1 callers
Function
getOverflowChevron
* Helper function to create a chevron element for the overflow element * @param {!Window} global The window object of the iframe * @return {!Element
ads/vendors/csa.js:352
↓ 1 callers
Function
getOverflowElement
* Helper function to create the base overflow element * @param {!Window} global The window object of the iframe * @return {!Element}
ads/vendors/csa.js:320
↓ 1 callers
Method
getOverflowElement
* Returns an optional overflow element for this custom element. * @return {?Element}
src/custom-element.js:2077
↓ 1 callers
Method
getOverflowElement_
* * Returns the overflow element * @return {!Element} overflowElement *
extensions/amp-playbuzz/0.1/amp-playbuzz.js:153
↓ 1 callers
Method
getOverflowElement_
* @return {!Element} Returns the overflow element * @private
extensions/amp-byside-content/0.1/amp-byside-content.js:273
↓ 1 callers
Function
getOverflowLine
* Helper function to create a line element for the overflow element * @param {!Window} global The window object of the iframe * @return {!Element}
ads/vendors/csa.js:338
↓ 1 callers
Method
getOverflowState
* @return {!OverflowState} state
extensions/amp-lightbox-gallery/0.1/lightbox-caption.js:94
↓ 1 callers
Method
getOwner
* @return {?Element} * @final
src/custom-element.js:1514
↓ 1 callers
Function
getPaddings
* Extracts paddings sizes from provided styles. * * @param {CSSStyleDeclaration} styles * @returns {Object} Paddings box.
third_party/resize-observer-polyfill/ResizeObserver.js:203
← previous
next →
9,001–9,100 of 18,703, ranked by callers