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
↓ 3 callers
Function
generateJson
(numberOfItems, pagesLeft)
build-system/server/routes/list.js:51
↓ 3 callers
Function
generateMask
(mask, metadata, opts)
third_party/inputmask/inputmask.js:656
↓ 3 callers
Function
generateResponseDataFor
(responseCounts)
extensions/amp-story-interactive/0.1/test/test-amp-story-interactive.js:66
↓ 3 callers
Method
generateToken
* Generates an origin experiment token given a config json. * @param {number} version * @param {!JsonObject} json * @param {!webCrypto.Crypto
src/service/origin-experiments-impl.js:147
↓ 3 callers
Method
get
* Get the session for the vendor, checking if it exists or * creating it if necessary. * @param {string|undefined} type * @param {Function=}
extensions/amp-analytics/0.1/session-manager.js:172
↓ 3 callers
Method
get
* Retrieve a promise associated to an `amp-user-notification` component * that is resolved when user agrees to the terms. * @param {string} id
extensions/amp-user-notification/0.1/amp-user-notification.js:482
↓ 3 callers
Method
get
* Get the local consent state list * @return {!Promise<!ConsentInfoDef>}
extensions/amp-consent/0.1/consent-state-manager.js:486
↓ 3 callers
Function
getA4AId
(win)
src/inabox/utils.js:37
↓ 3 callers
Method
getAccessReaderId
* Returns the promise that will yield the access READER_ID. * * This is a restricted API. * * @return {?Promise<string>}
extensions/amp-access/0.1/access-vars.js:14
↓ 3 callers
Method
getActionNode_
* For global targets e.g. "AMP", returns the document root. Otherwise, * `target` is an element id and the corresponding element is returned. *
src/service/action-impl.js:547
↓ 3 callers
Method
getActionSource_
* Gets the ActionSource to use for a given ActionTrust_Enum. * @param {!ActionTrust_Enum} trust * @return {!ActionSource} * @private
extensions/amp-stream-gallery/0.1/amp-stream-gallery.js:445
↓ 3 callers
Method
getActionSource_
* Gets the ActionSource to use for a given ActionTrust_Enum. * @param {!ActionTrust_Enum} trust * @return {!ActionSource}
extensions/amp-base-carousel/0.1/amp-base-carousel.js:371
↓ 3 callers
Function
getActiveExperimentBranches
(win)
src/experiments/index.js:355
↓ 3 callers
Method
getAdClientId_
* @return {string} ad client ID for the current ad unit. * @private
extensions/amp-ad-network-adsense-impl/0.1/amp-ad-network-adsense-impl.js:268
↓ 3 callers
Method
getAdPageById
* @param {string} pageId * @return {StoryAdPage}
extensions/amp-story-auto-ads/0.1/story-ad-page-manager.js:147
↓ 3 callers
Method
getAllLdJsonTypes
* @param {!../../../src/service/ampdoc-impl.AmpDoc} ampdoc * @return {!Array<string>}
extensions/amp-auto-lightbox/0.1/amp-auto-lightbox.js:343
↓ 3 callers
Method
getAllVideos_
* Gets all video elements on this page. * @return {!Array<?Element>} * @private
extensions/amp-story/1.0/amp-story-page.js:1004
↓ 3 callers
Method
getAllowlistForElement_
* Returns a replacement allowlist from elements' data-amp-replace attribute. * @param {!Element} element * @param {!{[key: string]: boolean}=} o
src/service/url-replacements-impl.js:1003
↓ 3 callers
Function
getAmpFormWithInitialization
(initFromUrl)
extensions/amp-form/0.1/test/test-amp-form.js:3360
↓ 3 callers
Function
getAmpTwitter
(tweetid)
extensions/amp-twitter/0.1/test/test-amp-twitter.js:21
↓ 3 callers
Function
getAsyncValueFunction
* Returns a method that resolves the numbers 0 through 6. * @return {function():!Promise<T>} * @template T
test/e2e/test-expect.js:1580
↓ 3 callers
Function
getAttributeMutationDefaultClass
(value)
extensions/amp-experiment/1.0/test/test-attribute-mutation.js:39
↓ 3 callers
Function
getAttributeMutationParamsObject
(attributeName, value)
extensions/amp-experiment/1.0/test/test-attribute-mutation.js:27
↓ 3 callers
Function
getAttributeMutationRecord
()
extensions/amp-experiment/1.0/test/test-mutation.js:35
↓ 3 callers
Method
getAuthResponse
@return {?JsonObject}
extensions/amp-access/0.1/amp-access-source.js:146
↓ 3 callers
Function
getBackendSpecs
(backendUrl, backendsList)
extensions/amp-story-interactive/0.1/interactive-disclaimer.js:122
↓ 3 callers
Method
getBaseScore
* Returns the base score configured for the platform. * @return {number}
extensions/amp-subscriptions/0.1/subscription-platform.js:88
↓ 3 callers
Method
getBodyElement
@visibleForTesting
src/inabox/inabox-viewport.js:790
↓ 3 callers
Function
getBrotliBundleSizes
* Get the brotli bundle sizes of the current build after normalizing the RTV number. * * @return {Promise<{[key: string]: number}>} the bundle size
build-system/tasks/bundle-size/index.js:40
↓ 3 callers
Function
getCallTrackingEl
(config = {})
extensions/amp-call-tracking/0.1/test/test-amp-call-tracking.js:30
↓ 3 callers
Function
getCanonicalUrl
* Returns the canonical URL from the canonical tag. If the canonical tag is * not present, treat the doc URL itself as canonical. * @param {!../mode
third_party/subscriptions-project/swg.js:5419
↓ 3 callers
Function
getCenter
(axis, el)
src/bento/components/bento-base-carousel/1.0/dimensions.js:57
↓ 3 callers
Function
getCenter
(axis, el)
extensions/amp-base-carousel/0.1/dimensions.js:50
↓ 3 callers
Function
getChildNodes
(element)
extensions/amp-truncate-text/0.1/test/test-amp-truncate-text.js:70
↓ 3 callers
Method
getConsentPolicy
@override
extensions/amp-ad-network-adsense-impl/0.1/amp-ad-network-adsense-impl.js:209
↓ 3 callers
Method
getContentHeight
@override
src/service/viewport/viewport-impl.js:363
↓ 3 callers
Method
getContext
* @return {?AnalyticsContext}
third_party/subscriptions-project/swg.js:801
↓ 3 callers
Method
getCurrentTime
* Current playback time in seconds at time of trigger. * * This is used for analytics metadata. * * @return {number}
src/video-interface.js:63
↓ 3 callers
Method
getCustomRealTimeConfigMacros_
@override
extensions/amp-ad-network-smartadserver-impl/0.1/amp-ad-network-smartadserver-impl.js:164
↓ 3 callers
Function
getDateButton
( wrapper, date, getAriaLabel = (date) => format(date, DATE_FORMAT) )
extensions/amp-date-picker/1.0/test/test-helpers.js:8
↓ 3 callers
Function
getDecisionTaker
(tst)
third_party/inputmask/inputmask.js:803
↓ 3 callers
Function
getDeepObject
()
test/unit/core/types/object/test-object.js:194
↓ 3 callers
Function
getDefaultArgs
(config, fn)
src/bento/util/e2e-helpers.js:6
↓ 3 callers
Function
getDriveViewer
(src, opt_responsive)
extensions/amp-google-document-embed/0.1/test/test-amp-google-document-embed.js:18
↓ 3 callers
Method
getElementDistance
@override
extensions/amp-story/1.0/amp-story.js:2321
↓ 3 callers
Function
getElementsFromMutationRecordSelector
( document, mutationRecord )
extensions/amp-experiment/1.0/mutation-record.js:61
↓ 3 callers
Function
getEmbedPin
(pinID, pinAlt, mockResponse)
extensions/amp-pinterest/0.1/test/test-amp-pinterest.js:63
↓ 3 callers
Method
getEmptyExperimentToVariant_
* Function to return an empty experiment to variant * Object. This is useful for type checking in analytics * and disabling all experiments manu
extensions/amp-experiment/1.0/amp-experiment.js:174
↓ 3 callers
Method
getEnabledItems_
Returns all item elements in the results container that do not have the * 'data-disabled' attribute. * @return {!NodeList} * @private
extensions/amp-autocomplete/0.1/amp-autocomplete.js:1239
↓ 3 callers
Function
getExperimentConfig
* Extracts and validates the config for the given experiment. * @param {string} experiment * @return {?Object}
build-system/common/utils.js:33
↓ 3 callers
Function
getExperimentToggles
* Returns a set of experiment IDs currently on. * @param {Window} win * @return {ExperimentTogglesMap}
src/experiments/index.js:183
↓ 3 callers
Function
getExperiments
* Ensures that the experiments have been initialized and returns them. * @param {!Window} win * @return {!Object<string, boolean>}
third_party/subscriptions-project/swg.js:7486
↓ 3 callers
Function
getFilesFromFileList
* Returns list of files in the comma-separated file named at --filelist. * * @return {Array<string>}
build-system/common/utils.js:101
↓ 3 callers
Function
getFirstInstanceValue_
* Given array of instances, execute extractFn on each and return first non- * falsey value or null if none are truthy. * @param {!Array<!./amp-ad-ne
extensions/amp-ad-network-doubleclick-impl/0.1/sra-utils.js:64
↓ 3 callers
Function
getFitText
(text, opt_responsive)
extensions/amp-fit-text/0.1/test/test-amp-fit-text.js:29
↓ 3 callers
Method
getFormOrNull_
* @return {?HTMLFormElement}
extensions/amp-autocomplete/0.1/amp-autocomplete.js:376
↓ 3 callers
Function
getFxTypes
(element)
extensions/amp-fx-collection/0.1/fx-type.js:191
↓ 3 callers
Method
getGaaToken_
* Retrieves the 'gaa_n' parameter from the query string.
third_party/subscriptions-project/swg.js:12566
↓ 3 callers
Function
getHasOverflow
(element)
extensions/amp-form/0.1/amp-form-textarea.js:164
↓ 3 callers
Method
getHostElement
* The host element of the analytics root. * * @return {?Element} * @abstract
extensions/amp-analytics/0.1/analytics-root.js:101
↓ 3 callers
Function
getHulu
(eid, opt_responsive)
extensions/amp-hulu/0.1/test/test-amp-hulu.js:18
↓ 3 callers
Method
getId
@return {string}
extensions/amp-story-auto-ads/0.1/story-ad-page.js:143
↓ 3 callers
Method
getIframePositionPromise_
* Retrieve iframe position entry in next animation frame. * @return {*} TODO(#23582): Specify return type * @private
extensions/amp-ad/0.1/amp-ad-xorigin-iframe-handler.js:536
↓ 3 callers
Method
getIframeTitle
* Returns the amp-ad title attribute or a fallback string. * @return {string} iframe title attribute
extensions/amp-a4a/0.1/amp-a4a.js:2516
↓ 3 callers
Function
getImgurElement
(imgurId)
extensions/amp-imgur/0.1/test/test-amp-imgur.js:33
↓ 3 callers
Function
getImportResolverPlugin
* Import resolver Babel plugin configuration. * @param {'preact' | 'react'} buildFor * @return {!Array}
build-system/babel-config/import-resolver.js:100
↓ 3 callers
Function
getInObConstructorStub
()
test/unit/core/dom/layout/test-intersection-no-root.js:7
↓ 3 callers
Function
getInObConstructorStub
()
test/unit/core/dom/layout/test-intersection.js:7
↓ 3 callers
Function
getInaboxUrl
* @param {express.Request} req * @param {string=} extraExperiment * @return {!URL}
build-system/server/routes/a4a-envelopes.js:89
↓ 3 callers
Method
getInitialLayoutBox
* Returns the first measured layout box. * @return {!../layout-rect.LayoutRectDef}
src/service/resource.js:622
↓ 3 callers
Function
getIns
(gistid, file)
extensions/amp-gist/0.1/test/test-amp-gist.js:18
↓ 3 callers
Method
getIosMajorVersion
* Returns the major ios version in number. * @return {?number}
src/service/platform-impl.js:188
↓ 3 callers
Method
getItemHeading_
* Return the heading of given menu item. * @param {!Element} item * @return {!Element} * @private
extensions/amp-mega-menu/0.1/amp-mega-menu.js:390
↓ 3 callers
Function
getJsonContents
* Fetches the content of a JSON/JSONC/JSON5 file. * * @param {string} file repo root relative. * @return {any}
build-system/tasks/check-json-schemas.js:17
↓ 3 callers
Function
getLanguageCodesFromString
(languageCode)
src/service/localization/index.js:55
↓ 3 callers
Method
getLastConsentInstanceInfo
* Get last consent instance stored. * @return {Promise<!ConsentInfoDef>}
extensions/amp-consent/0.1/consent-state-manager.js:177
↓ 3 callers
Method
getLastEnqueueTime
* Last time a task was enqueued. * @return {!time}
src/service/task-queue.js:53
↓ 3 callers
Function
getLayoutClass
(layout)
src/core/dom/layout/index.js:99
↓ 3 callers
Function
getLinearRGBValue
(x)
extensions/amp-story/1.0/utils.js:141
↓ 3 callers
Method
getLinkRequested
* @return {?boolean}
third_party/subscriptions-project/swg.js:368
↓ 3 callers
Function
getListitemAElements
(document)
build-system/server/app-index/test/test-file-list.js:56
↓ 3 callers
Method
getLocalizedString
* @param {!../../../src/service/localization/strings.LocalizedStringId_Enum} id * @return {?string}
extensions/amp-story-auto-ads/0.1/story-ad-localization.js:95
↓ 3 callers
Method
getLocationQueryParameterValue
* Note that location is parsed once on first access and cached. * @param {string} parameterName * @return {string|undefined} parameter value fro
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:1900
↓ 3 callers
Function
getMaskPrefix
(mask)
extensions/amp-inputmask/0.1/inputmask-custom-alias.js:108
↓ 3 callers
Method
getMaxMediaElementCounts
@override
extensions/amp-story/1.0/amp-story.js:2335
↓ 3 callers
Method
getMergedSharedData
* Get shared data of a policy. If multiple consent instances return * sharedData, a merge will be done. For any conflict keys, the value from *
extensions/amp-consent/0.1/consent-policy-manager.js:295
↓ 3 callers
Method
getMetadata
* Returns video's meta data (artwork, title, artist, album, etc.) for use * with the Media Session API * @return {!./mediasession-helper.Metadat
src/video-interface.js:136
↓ 3 callers
Method
getMinimalTcData_
* Create MinimalTCData object. Fill in fields dependent on * command. * @param {?Object} metadata * @param {?Object} sharedData * @param {
extensions/amp-consent/0.1/tcf-api-command-manager.js:219
↓ 3 callers
Method
getModelRotationOnAxis_
* @param {JsonObject} args * @param {string} axisName * @return {number} * @private
3p/3d-gltf/viewer.js:98
↓ 3 callers
Function
getModernFragment
(url)
extensions/amp-addthis/0.1/addthis-utils/fragment.js:10
↓ 3 callers
Function
getMowPlayer
(attributes)
extensions/amp-mowplayer/0.1/test/test-amp-mowplayer.js:31
↓ 3 callers
Function
getNameArgs
(key)
extensions/amp-analytics/0.1/variables.js:535
↓ 3 callers
Function
getNextArrow
(styles, controller)
extensions/amp-base-carousel/1.0/test-e2e/helpers.js:46
↓ 3 callers
Function
getNextArrowSlot
(el)
extensions/amp-stream-gallery/0.1/test/test-amp-stream-gallery.js:50
↓ 3 callers
Method
getNonAmpCreativeRenderingMethod
* @param {string=} headerValue Method as given in header. * @return {?XORIGIN_MODE}
extensions/amp-a4a/0.1/amp-a4a.js:2479
↓ 3 callers
Method
getOgType
* @param {!../../../src/service/ampdoc-impl.AmpDoc} ampdoc * @return {string|undefined}
extensions/amp-auto-lightbox/0.1/amp-auto-lightbox.js:322
↓ 3 callers
Function
getOutput
* Executes the provided command, returning the process object. * @param {string} cmd * @param {?Object=} options * @return {!Object}
build-system/common/process.js:32
↓ 3 callers
Method
getPaddingTop
@override
src/inabox/inabox-viewport.js:159
↓ 3 callers
Method
getPage_
* @private * @return {?Element} the parent amp-story-page
extensions/amp-story-panning-media/0.1/amp-story-panning-media.js:372
↓ 3 callers
Method
getPagesByDistance_
* @return {!Array<!Array<string>>} A 2D array representing lists of pages by * distance. The outer array index represents the distance from th
extensions/amp-story/1.0/amp-story.js:2074
← previous
next →
4,201–4,300 of 18,703, ranked by callers