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
expandRequestStr
* Expand single request to an object * @param {!JsonObject} request * @return {*} TODO(#23582): Specify return type
extensions/amp-analytics/0.1/config.js:554
↓ 1 callers
Method
expandTemplateWithUrlParams_
* Expands spec using provided expansion options and applies url replacement * if necessary. * @param {string} template Expression that needs to
extensions/amp-analytics/0.1/linker-manager.js:192
↓ 1 callers
Method
expandValue_
* Expands json targeting values. * @param {string|Array<string>|null} value * @return {!Promise<string>|!Promise<Array<string>>}
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:877
↓ 1 callers
Function
expectAllUnique
(numArray)
extensions/amp-analytics/0.1/test/test-iframe-transport.js:29
↓ 1 callers
Function
expectAysncError
* A helper function for expecting an error from an async function since we * don't have ChaiAsExpected and we cannot wait for errors from *
extensions/amp-base-carousel/0.1/test-e2e/test-hidden-controls.js:18
↓ 1 callers
Function
expectAysncError
* A helper function for expecting an error from an async function since we * don't have ChaiAsExpected and we cannot wait for errors from *
extensions/amp-carousel/0.1/test-e2e/test-hidden-controls.js:15
↓ 1 callers
Function
expectBodyHasAttributes
(attributes)
extensions/amp-experiment/0.1/test/test-amp-experiment.js:56
↓ 1 callers
Function
expectCondition
* @param {function(): !Promise<T1>} valueFn * @param {function(T2): boolean} condition * @param {function(T1): T2} opt_mutate * @return {!Condition
build-system/tasks/e2e/selenium-webdriver-controller.js:41
↓ 1 callers
Function
expectNoFalseDefinitions
(objOrDef, id)
extensions/amp-fx-collection/0.1/test/test-fx-type.js:11
↓ 1 callers
Function
expectRender
()
extensions/amp-list/0.1/test/test-amp-list.js:179
↓ 1 callers
Method
expectedError
* Throws an error and marks with an expected property. * @param {...*} var_args * @throws {!Error}
third_party/subscriptions-project/config.js:606
↓ 1 callers
Function
experimentBranchesMacro
* If given an experiment name returns the branch id if a branch is selected. * If no branch name given, it returns a comma separated list of active b
extensions/amp-analytics/0.1/variables.js:213
↓ 1 callers
Function
experimentTogglesOrNull
(win)
src/experiments/index.js:174
↓ 1 callers
Method
expiresIn_
* @param {number} time * @return {number}
src/service/cid-api.js:187
↓ 1 callers
Function
exposeKarmaConfig
* Exposes Karma's config constant for use during tests. The regular test runner * uses `karma`, while the debugger uses `__karma__ `.
testing/init-tests-helpers.js:64
↓ 1 callers
Method
expressionsForTesting
* Returns the expression cache for testing. * @return {!{[key: string]: !BindExpression}} * @visibleForTesting
extensions/amp-bind/0.1/bind-evaluator.js:241
↓ 1 callers
Function
extendProperty
(value)
third_party/inputmask/inputmask.date.extensions.js:147
↓ 1 callers
Function
extensionPayload
* Wrap in a structure that allows lazy execution and provides extension * metadata. * The returned code corresponds to an object. A bundle is not co
build-system/compile/compile-wrappers.js:62
↓ 1 callers
Function
extensionScriptInNode
(win, id, version)
src/service/extension-script.js:280
↓ 1 callers
Function
externalMessageUrl
(id, interpolatedParts)
src/utils/log.js:75
↓ 1 callers
Function
externalMessagesSimpleTableUrl
()
src/utils/log.js:86
↓ 1 callers
Function
extractAdSenseImageUrl
* Extracts the core_image_url string from the JSON text content of the * MEDIA_TEMPLATE_DATA tag. * @param {Element} el The element containing the m
extensions/amp-next-page/0.1/amp-next-page.js:295
↓ 1 callers
Function
extractAdSenseTextContent
* Returns the text content of an element, with leading/trailing whitespace * trimmed. * @param {Element} el * @return {*} TODO(#23582): Specify ret
extensions/amp-next-page/0.1/amp-next-page.js:312
↓ 1 callers
Method
extractAmpAnalyticsConfig
* Extracts configuration used to build amp-analytics element for active view * and begin to render. * * @param {!Headers} responseHeaders
extensions/amp-ad-network-nws-impl/0.1/amp-ad-network-nws-impl.js:43
↓ 1 callers
Method
extractAnchorTrackingInfo_
* Extract the information about links on the page * in order to send it to the tracking API: * - Number of affiliate links on the pages * - A
extensions/amp-skimlinks/0.1/tracking.js:243
↓ 1 callers
Function
extractCssJsFileMap
* Extracts extension info and creates a mapping from CSS files in different * source directories to their equivalent JS files in the 'build/' directo
build-system/tasks/runtime-test/helpers-unit.js:38
↓ 1 callers
Function
extractKeywordsFromContent
(content)
extensions/amp-addthis/0.1/addthis-utils/classify.js:93
↓ 1 callers
Function
extractSingleDocParams
* @param {!Window} win * @param {!{[key: string]: string}|undefined} initParams * @return {!{[key: string]: string}}
src/service/ampdoc-impl.js:1072
↓ 1 callers
Function
extractTextContentTtml
* Extract the text content from a TTML file. * https://www.w3.org/TR/2018/REC-ttml2-20181108/ * @param {string} text * @return {string}
extensions/amp-story/1.0/semantic-render.js:107
↓ 1 callers
Function
extractTextContentWebVtt
* Extract the text content from a WebVTT file. * https://www.w3.org/TR/webvtt1/ * @param {string} text * @return {string}
extensions/amp-story/1.0/semantic-render.js:126
↓ 1 callers
Function
extractUrlExperimentId
(win, element)
ads/google/a4a/traffic-experiments.js:33
↓ 1 callers
Method
extractUrlExperimentId_
* For easier unit testing. * @return {?string}
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:533
↓ 1 callers
Function
extractedItems
()
build-system/compile/log-messages.js:25
↓ 1 callers
Function
f
(t,n)
third_party/d3-geo-projection/d3-geo-projection.js:1
↓ 1 callers
Function
factory
(Inputmask)
extensions/amp-inputmask/0.1/inputmask-custom-alias.js:10
↓ 1 callers
Function
factoryUsage
* @param {CompilerNode} node
build-system/eslint-rules/html-template.js:35
↓ 1 callers
Method
failTask
* @param {*} reason The reason for failing the task. * @protected
extensions/amp-story/1.0/media-tasks.js:185
↓ 1 callers
Function
failedToLoad
* Emit error on load failure. * @param {!Element|!Window} eleOrWindow Supports both Elements and as a special * case Windows.
src/utils/event-helper.js:222
↓ 1 callers
Method
fastScan_
* @param {!Array<!Element>} addedElements * @param {!Array<!Element>} removedElements * @return {!Promise} * @private
extensions/amp-bind/0.1/bind-impl.js:485
↓ 1 callers
Function
fb
(a)
third_party/wgxpath/wgxpath.js:55
↓ 1 callers
Method
features
* @return {!Array<string>}
build-system/externs/amp.extern.js:1047
↓ 1 callers
Method
fetchAdSensePages_
* Fetches content recommendations from AdSense and returns a list of {@link * AmpNextPageItem}. * @param {string} client AdSense publisher code.
extensions/amp-next-page/0.1/amp-next-page.js:195
↓ 1 callers
Function
fetchAmpSw_
* Fetches latest AMP service-worker package from the npm registry. * * @param {string} flavorType AMP flavor to build. * @param {string} tempDir fu
build-system/tasks/release/index.js:304
↓ 1 callers
Method
fetchAuthorScript_
* @param {string} authorUrl * @param {string} debugId An element identifier for error messages. * @return {!Promise<string>}
extensions/amp-script/0.1/amp-script.js:436
↓ 1 callers
Function
fetchCaptions
* Fetches captions for a video if available and returns them as plain * text. * @param {!./amp-story-page.AmpStoryPage} page * @param {!Element} vi
extensions/amp-story/1.0/semantic-render.js:63
↓ 1 callers
Method
fetchCid_
* Returns scoped CID retrieved from the Viewer. * @param {string} url * @param {boolean=} useAlternate * @return {!Promise<?string>}
src/service/cache-cid-api.js:84
↓ 1 callers
Function
fetchConfigFromBranch_
* @param {string} filename File containing the config * @param {boolean=} opt_localBranch Whether to use the local branch version * @param {string=}
build-system/tasks/prepend-global/index.js:65
↓ 1 callers
Method
fetchConfig_
* Fetches the element config from the URL specified in [src]. * @private * @return {*} TODO(#23582): Specify return type
extensions/amp-next-page/0.1/amp-next-page.js:260
↓ 1 callers
Method
fetchCount
* Fetch the remote Pin count for the source URL * @return {Promise}
extensions/amp-pinterest/0.1/save-button.js:80
↓ 1 callers
Method
fetchCountry_
* Fetch country from API defined in config.urls * * JSON schema of Geo API response - version 0.2: * { * "$schema": "http://json-schema.
extensions/amp-geo/0.1/amp-geo.js:346
↓ 1 callers
Function
fetchCoverage_
* Fetch aggregated coverage data from server. * @param {string} outDir relative path to coverage files directory. * @return {Promise<void>}
build-system/tasks/e2e/index.js:97
↓ 1 callers
Method
fetchCredentialedJson
@override
extensions/amp-subscriptions-google/0.1/amp-subscriptions-google.js:1040
↓ 1 callers
Function
fetchDocument
* @param {string} url * @return {!Promise<!Document>}
examples/pwa/pwa.js:373
↓ 1 callers
Method
fetchEntitlementsWithCaching_
* @param {!GetEntitlementsParamsExternalDef=} params * @return {!Promise<!Entitlements>} * @private
third_party/subscriptions-project/swg.js:12758
↓ 1 callers
Method
fetchEntitlements_
* @param {!GetEntitlementsParamsExternalDef=} params * @return {!Promise<!Entitlements>} * @private
third_party/subscriptions-project/swg.js:12826
↓ 1 callers
Method
fetchLocalizationStrings_
* Fetches from the CDN or localhost the localization strings. * @param {string[]} candidateLanguageCodes * @private
extensions/amp-story/1.0/amp-story.js:2792
↓ 1 callers
Method
fetchPageDocument
* @param {!Page} page * @return {!Promise<!Document>}
extensions/amp-next-page/1.0/service.js:779
↓ 1 callers
Method
fetchPin
@return {!Promise<!JsonObject>}
extensions/amp-pinterest/0.1/pin-widget.js:79
↓ 1 callers
Function
fetchPolyfill
* A minimal polyfill of Fetch API. It only polyfills what we currently use. * * See https://developer.mozilla.org/en-US/docs/Web/API/GlobalFetch/fet
third_party/subscriptions-project/swg.js:13507
↓ 1 callers
Method
fetchPromiseForTesting
* @return {!Promise} * @visibleForTesting
src/web-worker/amp-worker.js:256
↓ 1 callers
Method
fetchRedirectResponse_
* @param {string} redirectEncryptedCallbackData * @return {!PaymentData} * @private
third_party/subscriptions-project/swg.js:16486
↓ 1 callers
Method
fetchRemoteConfig_
* Returns a promise that resolves when remote config is ready (or * immediately if no remote config is specified.) * @private * @return {!Pro
extensions/amp-analytics/0.1/config.js:126
↓ 1 callers
Method
fetchStories_
* Fetches more stories from the publisher's endpoint. * @return {!Promise} * @private
src/amp-story-player/amp-story-player-impl.js:835
↓ 1 callers
Method
fetchVendorConfig_
* Returns a promise that resolves when vendor config is ready (or * immediately if no vendor config is specified) * @private * @return {!Prom
extensions/amp-analytics/0.1/config.js:95
↓ 1 callers
Function
fetch_
* Fetches vendor response. * @param {!Window} win * @param {string} url * @return {!Promise<JsonObject>}
extensions/amp-call-tracking/0.1/amp-call-tracking.js:23
↓ 1 callers
Method
fetch_
* We want to call `fetch_` unbound from any context since it could * be either the native fetch or our polyfill. * * @param {string} input
src/service/xhr-impl.js:56
↓ 1 callers
Method
fetch_
* Imitates the functionality of `window.fetch`. * * @param {!RequestInfo} input * @param {(!RequestInit|undefined)} init * @return {!Promi
extensions/amp-a4a/0.1/test/fetch-mock.js:91
↓ 1 callers
Method
fetch_
* @param {boolean=} refresh * @return {!Promise<!JsonObject|!Array<JsonObject>>} * @private
extensions/amp-list/0.1/amp-list.js:1585
↓ 1 callers
Method
fetch_
* Wrapper to stub during testing. * @param {!../../../src/service/ampdoc-impl.AmpDoc} ampdoc * @param {!UrlReplacementPolicy_Enum} policy * @
extensions/amp-bind/0.1/amp-state.js:152
↓ 1 callers
Method
fetch_
* Fetches the client config from the server. * @return {!Promise<!ClientConfig>}
third_party/subscriptions-project/swg.js:9744
↓ 1 callers
Method
fetch_
* @param {!GetEntitlementsParamsExternalDef=} params * @return {!Promise<!Entitlements>} * @private
third_party/subscriptions-project/swg.js:13148
↓ 1 callers
Method
fetch_
* We want to call `fetch_` unbound from any context since it could * be either the native fetch or our polyfill. * * @param {string} input
third_party/subscriptions-project/swg.js:13410
↓ 1 callers
Method
fetch_
* @param {string} productId * @return {!Promise<!Array<!../api/offer.Offer>>} * @private
third_party/subscriptions-project/swg.js:14786
↓ 1 callers
Function
file_validator_proto_init
()
validator/validator.pb.go:5419
↓ 1 callers
Method
fillMediaSessionMetadata_
* Gets the provided metadata and fills in missing fields * @private
src/service/video-manager-impl.js:720
↓ 1 callers
Function
filterEntries
* Filters out resource timing entries that don't have a name defined in * resourceDefs. It returns a new array where each element contains a * resou
extensions/amp-analytics/0.1/resource-timing.js:213
↓ 1 callers
Method
finalizeClose_
* Clean up when closing lightbox. * * @param {!ActionTrust_Enum} trust * @private
extensions/amp-lightbox/0.1/amp-lightbox.js:542
↓ 1 callers
Method
finalizeOpen_
* @param {!Function} callback Called when open animation completes. * @param {!ActionTrust_Enum} trust * @private
extensions/amp-lightbox/0.1/amp-lightbox.js:324
↓ 1 callers
Function
finalizeRunner
* Finalizes the task runner by doing special-case setup for `amp --help`, * parsing the invoked command, and printing an error message if an unknown
build-system/task-runner/amp-task-runner.js:269
↓ 1 callers
Function
findAfter
* @param {Array<T>} array * @param {T} item * @return {?T}
build-system/eslint-rules/prefer-unnested-spread-objects.js:43
↓ 1 callers
Method
findAndBlurMediaEl_
* Ensures element exists, is loaded and is not a transparent png or gif. * Recursive if the mediaEl is png or gif with transparent pixels. * @pr
extensions/amp-story/1.0/background-blur.js:91
↓ 1 callers
Method
findAndSetHtmlForTemplate
* Discovers the already rendered template for the specified parent and * inserts it in the DOM. The template can be specified either via "template"
src/service/template-impl.js:156
↓ 1 callers
Method
findAndSetMetadata_
* Checks to see if there is a window variable assigned with the * sentinel value, sets it, and returns true if so. * @private
3p/ampcontext.js:405
↓ 1 callers
Function
findCaretPos
(clientx)
third_party/inputmask/inputmask.js:2367
↓ 1 callers
Function
findContent
(wrapper)
extensions/amp-pan-zoom/1.0/test/test-component.js:20
↓ 1 callers
Function
findContentContainer
(wrapper)
extensions/amp-pan-zoom/1.0/test/test-component.js:18
↓ 1 callers
Method
findCountry_
* findCountry_, sets this.country_ and this.mode_ * @param {!../../../src/service/ampdoc-impl.AmpDoc} ampdoc * @return {Promise}
extensions/amp-geo/0.1/amp-geo.js:181
↓ 1 callers
Method
findGroup
* @param {Node} node * @return {?ContextNode<?>} * @protected
src/core/context/node.js:379
↓ 1 callers
Method
findHighlightedNodes_
* @param {!HighlightInfoDef} highlightInfo * @private
extensions/amp-viewer-integration/0.1/highlight-handler.js:217
↓ 1 callers
Function
findImportDeclaration
* @param {Path} reference * @param {string} importedName * @return {?Path}
build-system/babel-plugins/babel-plugin-transform-jss/index.js:63
↓ 1 callers
Function
findJsSourceFilename
* @param {string} nameWithoutExtension * @param {?string|void} cwd * @return {Promise<string|undefined>}
build-system/common/fs.js:8
↓ 1 callers
Method
findMatches_
* Structures the regex matching into the desired format * @param {string} url url to be substituted * @param {RegExp} expression regex containin
src/service/url-expander/expander.js:115
↓ 1 callers
Function
findObserverByIo
* @param {!Array<!ObserverDef>} observers * @param {!IntersectionObserver} io * @return {number}
src/utils/display-observer.js:462
↓ 1 callers
Method
findOrBuildCarousel_
* Returns the existing carousel corresponding to the group id * or builds a new one. * @param {string} lightboxGroupId * @return {!Promise}
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:327
↓ 1 callers
Method
findOrBuildGallery_
* @private
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:1253
↓ 1 callers
Method
findOrInitializeLightbox_
* @param {string} lightboxGroupId * @return {!Promise} * @private
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:246
↓ 1 callers
Function
findOverlappingIndex
( axis, alignment, container, children, startIndex )
src/bento/components/bento-base-carousel/1.0/dimensions.js:128
↓ 1 callers
Function
findOverlappingIndex
( axis, alignment, container, children, startIndex )
extensions/amp-base-carousel/0.1/dimensions.js:151
↓ 1 callers
Function
findPropertyValue
* Looks up value of an identifier property. * E.g. given `window[FOO]`, finds `FOO = 'abc'` in code and returns `'abc'`. * @param {!Node} proper
build-system/eslint-rules/window-property-name.js:33
↓ 1 callers
Method
findSlot_
* @return {?Element} * @private
extensions/amp-video-docking/0.1/amp-video-docking.js:394
← previous
next →
8,401–8,500 of 18,703, ranked by callers