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
elementTypeCanBeAnimated_
* Returns true if the element is loaded and contains an img. * @param {!Element} element * @return {boolean} * @private
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:799
↓ 2 callers
Function
elementWithTypesRandomWhitespace
(types)
extensions/amp-fx-collection/0.1/test/test-fx-type.js:141
↓ 2 callers
Method
emitProgress_
* Emits an event indicating that the progress of the current page has changed * to the specified value. * @param {number} progress The progress
extensions/amp-story/1.0/amp-story-page.js:1423
↓ 2 callers
Method
emit_
* @param {string} eventType * @param {!JsonObject} eventData * @private
extensions/amp-addthis/0.1/post-message-dispatcher.js:33
↓ 2 callers
Method
emptyContainer_
* @private * @return {!Promise}
extensions/amp-access-laterpay/0.2/laterpay-impl.js:346
↓ 2 callers
Method
emptyContainer_
* @private * @return {!Promise}
extensions/amp-access-laterpay/0.1/laterpay-impl.js:287
↓ 2 callers
Function
emptyServiceHolderWithPromise
@return {!ServiceHolderDef}
src/service-helpers.js:636
↓ 2 callers
Method
enable
@public
extensions/amp-video-docking/0.1/controls.js:224
↓ 2 callers
Method
enableGyroscope_
* Listens for deviceorientation events. * * Some browsers support the 'deviceorientation' event but never call it. * This waits for one call
extensions/amp-story-360/0.1/amp-story-360.js:475
↓ 2 callers
Method
enableInteractions_
* Register a list of user action functions
extensions/amp-consent/0.1/amp-consent.js:256
↓ 2 callers
Function
encodeId
* id is either a Brightcove-assigned id, or a publisher-generated * reference id. Reference ids are prefixed 'ref:' and the colon * must be preserve
src/bento/apis/brightcove-api.js:29
↓ 2 callers
Method
endDoc
* Handler called when the parsing is done.
validator/js/engine/htmlparser-interface.js:429
↓ 2 callers
Method
endTag
* Handler called when the parser found a closing tag. * @param {!ParsedHtmlTag} tag
validator/js/engine/htmlparser-interface.js:406
↓ 2 callers
Method
enqueueTask_
* Queues a task to be executed later with given priority. * @param {!Task} task * @param {number} priority * @private
src/chunk.js:366
↓ 2 callers
Function
ensureCache
()
third_party/react-dates/bundle.js:1
↓ 2 callers
Function
ensureCanMutateNextEventHandlers
(e)
third_party/react-dates/bundle.js:1
↓ 2 callers
Method
ensurePageTrackingInitialized_
* Creates a tracking object for each page if non-existant. * @param {number} adIndex
extensions/amp-story-auto-ads/0.1/story-ad-analytics.js:92
↓ 2 callers
Method
ensureProtocolMatches_
* Ensures that the protocol of the original url matches the protocol of the * replacement url. Returns the replacement if they do, the original if
src/service/url-replacements-impl.js:1193
↓ 2 callers
Function
enterFullscreen
* @param {object} global
ads/google/ima/ima-video.js:1226
↓ 2 callers
Function
entry
(name)
build-system/tasks/check-video-interface-list.js:23
↓ 2 callers
Function
env
* @param {string} key * @return {string}
build-system/common/update-session-issues/index.js:367
↓ 2 callers
Function
errorLine
* Renders one line of error output. * @param {string} filenameOrUrl * @param {!Object} error * @return {string}
validator/cpp/engine/wasm/validator.js:160
↓ 2 callers
Function
errorReportingDataForViewer
(errorReportData)
src/error-reporting.js:446
↓ 2 callers
Function
evaluateAccessExpr
(expr, data)
extensions/amp-access/0.1/access-expr.js:25
↓ 2 callers
Method
evaluateBinding_
* Called when a binding is ready to be resolved. Determines which version of * binding to use and if synchronous or asynchronous version should be
src/service/url-expander/expander.js:296
↓ 2 callers
Function
evaluateExpr
(expr, data)
extensions/amp-subscriptions/0.1/expr.js:8
↓ 2 callers
Function
evaluatePropertyKey
* @param {babel.NodePath<babel.types.MemberExpression>} memberExpression * @return {null | undefined | number | string}
build-system/compile/json-schema/index.js:189
↓ 2 callers
Method
evaluate_
* Evaluate a single expression with the given scope. * @param {!BindExpression} expression * @param {!JsonObject} scope * @return {{result: ?
extensions/amp-bind/0.1/bind-evaluator.js:216
↓ 2 callers
Function
execOrThrow
* Executes the provided command, piping the parent process' stderr, throwing * an error with the provided message the command fails, and returns the
build-system/common/exec.js:75
↓ 2 callers
Function
execute
Helper for invoking expand/collapse actions on amp-accordion.
extensions/amp-accordion/0.1/test/test-amp-accordion.js:74
↓ 2 callers
Method
executeAction
@override
extensions/amp-subscriptions/0.1/local-subscription-platform-base.js:194
↓ 2 callers
Method
executeCallback_
* @param {!CallbackId} id * @param {function(*)} callback * @param {*} data * @private
third_party/subscriptions-project/swg.js:9331
↓ 2 callers
Method
executeInteractiveRequest_
* Executes a Interactive API call. * * @param {string} method GET or POST. * @param {number=} optionSelected * @return {!Promise<!Interact
extensions/amp-story-interactive/0.1/amp-story-interactive-abstract.js:707
↓ 2 callers
Method
executeNextMediaElementTask_
* @param {!PoolBoundElementDef} mediaEl The element whose task queue should * be executed. * @private
extensions/amp-story/1.0/media-pool.js:991
↓ 2 callers
Function
executeRequest
(el, rawUrl, opts = {})
extensions/amp-story/1.0/request-utils.js:26
↓ 2 callers
Method
execute_
* Run a task. * Schedule the next round if there are more tasks. * @param {?IdleDeadline} idleDeadline * @return {boolean} Whether anything w
src/chunk.js:399
↓ 2 callers
Method
executionAction_
* Executes the action immediately. All errors are consumed and reported. * @param {!./service/action-impl.ActionInvocation} invocation * @pa
src/custom-element.js:1868
↓ 2 callers
Function
exists
(selector)
extensions/amp-auto-lightbox/0.1/amp-auto-lightbox.js:375
↓ 2 callers
Function
exitFullscreen
* @param {object} global
ads/google/ima/ima-video.js:1211
↓ 2 callers
Function
exitIndirect
()
extensions/amp-ad-exit/0.1/test/test-amp-ad-exit.js:174
↓ 2 callers
Method
expandElement
@override
src/service/mutator-impl.js:87
↓ 2 callers
Function
expandExtraUrlParams
* Function that handler extraUrlParams from config and trigger. * @param {!./variables.VariableService} variableService * @param {!../../../src/serv
extensions/amp-analytics/0.1/requests.js:445
↓ 2 callers
Method
expandInputValueAsync
* Expands an input element value attribute with variable substituted. * @param {!HTMLInputElement} element * @return {!Promise<string>}
src/service/url-replacements-impl.js:941
↓ 2 callers
Method
expandInputValue_
* Expands in input element value attribute with variable substituted. * @param {!HTMLInputElement} element * @param {boolean=} opt_sync * @re
src/service/url-replacements-impl.js:964
↓ 2 callers
Method
expandString_
* Expands macros in strings. * @param {string} string * @return {!Promise<string>}
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:894
↓ 2 callers
Method
expandSyncIfAllowedList_
* @param {string} href * @param {!{[key: string]: boolean}|undefined} allowlist * @return {string}
src/service/url-replacements-impl.js:1142
↓ 2 callers
Method
expandTemplateUrl_
* @param {string} url * @param {!ExpansionOptions} expansionOptions * @param {!{[key: string]: (!../../../src/service/variable-source.ResolverRe
extensions/amp-analytics/0.1/requests.js:191
↓ 2 callers
Method
expandTemplateWithUrlParams_
* Expands spec using provided expansion options and applies url replacement * if necessary. * @param {string} spec Expression that needs to be e
extensions/amp-analytics/0.1/amp-analytics.js:820
↓ 2 callers
Method
expandValueAndReplaceAsync_
* @param {string} value * @param {!ExpansionOptions} options * @param {!Element} element amp-analytics element. * @param {!../../../src/servi
extensions/amp-analytics/0.1/variables.js:473
↓ 2 callers
Method
expandVarsForAnchor_
* @param {!Element} el * @private
src/service/navigation.js:416
↓ 2 callers
Method
expand_
* Expands the component by removing any height restriction via CSS.
extensions/amp-truncate-text/0.1/amp-truncate-text.js:270
↓ 2 callers
Function
expectAmpElementToHaveBeenHidden
(element)
test/unit/test-standard-actions.js:84
↓ 2 callers
Function
expectAmpElementToHaveBeenScrolledIntoView
(element)
test/unit/test-standard-actions.js:98
↓ 2 callers
Function
expectCalledWithAmpVideoIntegration
(spy)
test/unit/test-video-iframe-integration.js:14
↓ 2 callers
Function
expectElementToHaveBeenHidden
(element)
test/unit/test-standard-actions.js:53
↓ 2 callers
Function
expectRenderedInFriendlyIframe
* Checks various consistency properties on the friendly iframe created by * A4A privileged path rendering. Note that this returns a Promise, so its
extensions/amp-a4a/0.1/test/test-a4a-integration.js:42
↓ 2 callers
Function
expectRenderedInXDomainIframe
(element, src)
extensions/amp-a4a/0.1/test/test-a4a-integration.js:55
↓ 2 callers
Function
expectStorage
(keyValues)
test/unit/test-storage.js:52
↓ 2 callers
Function
expectXhr
(url, payload)
extensions/amp-analytics/0.1/test/test-transport.js:571
↓ 2 callers
Function
exponentialFalloff
(percentage, power)
extensions/amp-inline-gallery/0.1/amp-inline-gallery-pagination.js:25
↓ 2 callers
Function
extensionRegistrationTest
()
test/unit/test-runtime.js:138
↓ 2 callers
Function
extensionsForInternal
* @param {!Window} window * @return {!./service/extensions-impl.Extensions}
src/service/index.js:51
↓ 2 callers
Function
extractAllowedAuthMethodsForCards_
* Returns the allowedAuthMethods for a card from the request. * * @param {!IsReadyToPayRequest} isReadyToPayRequest * @return {?Array<string>} * @
third_party/subscriptions-project/swg.js:16241
↓ 2 callers
Function
extractScriptSrc
(html)
test/unit/test-friendly-iframe-embed.js:706
↓ 2 callers
Method
extractSize
@override
extensions/amp-ad-network-nws-impl/0.1/amp-ad-network-nws-impl.js:76
↓ 2 callers
Function
failAfter
* Fail when the stream ends if for any AMP validation results, * isFailure(ampValidationResult) returns true. * * @param {function(amphtmlValidator
validator/js/gulpjs/index.js:119
↓ 2 callers
Function
fakeEntitlements
* return a fake entitlements object * @param {boolean} isReadyToPay * @return {Object}
extensions/amp-subscriptions-google/0.1/test/test-amp-subscriptions-google.js:1123
↓ 2 callers
Function
fakeFocusEvent
(type)
extensions/amp-viewer-integration/0.1/test/test-focus-handler.js:14
↓ 2 callers
Function
feCached
* @param {string} url FE URL. * @return {string} The complete URL including cache param.
third_party/subscriptions-project/swg.js:5606
↓ 2 callers
Method
fetch
@override
third_party/subscriptions-project/swg.js:13820
↓ 2 callers
Function
fetchAdContent
* Returns a promise that fetches the content of the AMP ad at the amp4test url. * This somewhat simulates rendering an ad by getting its content from
test/integration/test-amphtml-ads.js:479
↓ 2 callers
Method
fetchAndAddKeys_
* Try to download the keyset for the named signing service and add a promise * for each key to the `keys` object. * * @param {!{[key: string]
extensions/amp-a4a/0.1/signature-verifier.js:293
↓ 2 callers
Method
fetchCid_
* @param {string} url * @param {string} scope * @param {?string} token * @return {!Promise<!JsonObject>}
src/service/cid-api.js:129
↓ 2 callers
Method
fetchClientConfig
* Fetches the client config from the server. * @param {Promise<void>=} readyPromise optional promise to wait on before * attempting to fetch the
third_party/subscriptions-project/swg.js:9641
↓ 2 callers
Function
fetchJson
(url)
extensions/amp-list/1.0/storybook/Basic.js:45
↓ 2 callers
Method
fetchSrc_
* Fetch the JSON from the URL specified in the src attribute. * @return {!Promise<!JsonObject|!Array<!JsonObject>>} * @private
extensions/amp-date-picker/0.1/amp-date-picker.js:1249
↓ 2 callers
Method
fetch_
(url, action, timeout = 10000)
testing/helpers/service.js:212
↓ 2 callers
Function
filesContainingPattern
(glob, string)
build-system/tasks/sweep-experiments/index.js:69
↓ 2 callers
Function
fillIframeSrcdoc
(page)
examples/visual-tests/amphtml-ads/helpers.js:3
↓ 2 callers
Function
filter
* Pinterest provides text HTML encoded. This utility transforms it back * into UTF-8 text. * @param {string} str - the string to filter * @return {
extensions/amp-pinterest/0.1/util.js:31
↓ 2 callers
Method
filterConfig
* After fetching the config, this method is called to allow rewriting the * config on the client side. * @param {!JsonObject} unusedConfig *
extensions/amp-auto-ads/0.1/ad-network-config.js:45
↓ 2 callers
Function
filterCustomVar
* @param {!Object} customVars * @return {!Object}
ads/vendors/openx.js:159
↓ 2 callers
Method
filter_
* Checks the click event against the given filters. Returns true if the event * passes. * @param {!Array<!./filters/filter.Filter>} filters *
extensions/amp-ad-exit/0.1/amp-ad-exit.js:319
↓ 2 callers
Method
findAndPrepareEmbeddedComponents_
* Finds embedded components in page and prepares them. * @private
extensions/amp-story/1.0/amp-story-page.js:951
↓ 2 callers
Method
findAndRenderTemplateArray
* Discovers the template for the specified parent and renders it using the * supplied array of data. The template can be specified either via "temp
src/service/template-impl.js:174
↓ 2 callers
Function
findConfigBitCommits
( cutoffDateFormatted, configJsonPath, experiment, percentage )
build-system/tasks/sweep-experiments/index.js:220
↓ 2 callers
Function
findContainer
(wrapper)
extensions/amp-pan-zoom/1.0/test/test-component.js:23
↓ 2 callers
Method
findElementXPath
* @param {string} xpath * @return {!Promise<!ElementHandle<!WebElement>>}
build-system/tasks/e2e/selenium-webdriver-controller.js:173
↓ 2 callers
Function
findEngagedTimeBetween
* Find the engaged time between the event and the time (exclusive of the time) * @param {ActivityEventDef} activityEvent * @param {number} time * @
extensions/amp-analytics/0.1/activity-impl.js:43
↓ 2 callers
Function
findInArray
* Implements `Array.find()` method that's not yet available in all browsers. * * @param {?Array<T>} array * @param {function(T, number, !Array<T>):
third_party/subscriptions-project/swg.js:3062
↓ 2 callers
Method
findTopParagraph_
* Reviews positions of each paragraph relative to vieport, finds top. * @return {*} TODO(#23582): Specify return type * @private
extensions/amp-access-scroll/0.1/read-depth-tracker.js:47
↓ 2 callers
Method
fire
* @param {string} key * @param {*} thisArg * @param {!Array} args * @return {boolean} True when a callback was found and successfully execute
ads/inabox/inabox-messaging-host.js:48
↓ 2 callers
Method
fireListener_
* Fires listener given the specified configuration. * @param {!AnalyticsEvent} event * @param {!Element} rootTarget * @param {!JsonObject} co
extensions/amp-analytics/0.1/events.js:582
↓ 2 callers
Function
firstElementLeaf
(el)
extensions/amp-auto-lightbox/0.1/test/test-amp-auto-lightbox.js:47
↓ 2 callers
Method
firstLayoutCompleted
@override
src/builtins/amp-img/amp-img.js:396
↓ 2 callers
Function
fixEntry
@param {!Window} win
src/polyfills/intersection-observer.js:44
↓ 2 callers
Function
flatten
* Flatten array of arrays if necessary. * * @param {Array} arr * @return {!Array}
build-system/tasks/dep-check.js:317
↓ 2 callers
Function
flush
()
testing/preact.js:55
↓ 2 callers
Method
flushBackingAwayViewportChanges_
* Flush changes for things backing away from the viewport.
extensions/amp-base-carousel/0.1/child-layout-manager.js:322
↓ 2 callers
Method
flushInViewportChanges_
* Flush changes for things in the viewport.
extensions/amp-base-carousel/0.1/child-layout-manager.js:336
← previous
next →
5,501–5,600 of 18,703, ranked by callers