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
↓ 8 callers
Method
play
* Plays the specified media element in the DOM by replacing it with a media * element from the pool and playing that. * @param {!DomElementDef}
extensions/amp-story/1.0/media-pool.js:778
↓ 8 callers
Method
preload
* @param {string} url * @param {string} as
third_party/subscriptions-project/swg.js:17850
↓ 8 callers
Method
prerenderAllowed
* AMP Cache may selectively cache certain video sources (based on various * heuristics such as video type, extensions, etc...). * When AMP Cache
extensions/amp-video/0.1/amp-video.js:124
↓ 8 callers
Method
processCrossDomainIframe
* If iframe is specified in config/transport, check whether third-party * iframe already exists, and if not, create it.
extensions/amp-analytics/0.1/iframe-transport.js:111
↓ 8 callers
Function
pushIfNotExist
(array, item)
src/core/types/array.js:127
↓ 8 callers
Method
queueSize
* Returns how many creativeId -> message(s) mappings there are * @return {number} * @visibleForTesting
extensions/amp-analytics/0.1/iframe-transport-message-queue.js:70
↓ 8 callers
Method
record
(record)
test/unit/test-loading-indicator.js:51
↓ 8 callers
Function
rect
(el)
extensions/amp-base-carousel/0.1/test-e2e/test-grouping.js:18
↓ 8 callers
Function
registerContainer
(container, opt_root)
src/utils/display-observer.js:86
↓ 8 callers
Method
removeElement
* Removes the element from the fixed/sticky layer. * @param {!Element} element
src/service/fixed-layer.js:346
↓ 8 callers
Function
render
(data)
extensions/amp-date-display/1.0/test/test-component.js:13
↓ 8 callers
Method
renderAsString
@override
extensions/amp-mustache/0.2/amp-mustache.js:116
↓ 8 callers
Method
renderAsString
@override
extensions/amp-mustache/0.1/amp-mustache.js:115
↓ 8 callers
Method
renderTemplate
* Renders the specified template element using the supplied data. * @param {!Element} templateElement * @param {!JsonObject} data * @return {
src/service/template-impl.js:76
↓ 8 callers
Function
requestResize
()
test/unit/ads/test-csa.js:47
↓ 8 callers
Method
resetPlatforms
* Reauthorize platforms
extensions/amp-subscriptions/0.1/service-adapter.js:105
↓ 8 callers
Function
resolveRequiredPromises
(entitlementSpec, grantEntitlementSpec)
extensions/amp-subscriptions/0.1/test/test-amp-subscriptions.js:387
↓ 8 callers
Method
runLinkmate
* Callback used by LinkRewriter. Whenever there is a change in the anchors * on the page we want make a new API call. * @param {!Array<!HTMLElem
extensions/amp-smartlinks/0.1/linkmate.js:46
↓ 8 callers
Method
schedule
* @param {!AmpElement} target
src/service/scheduler.js:79
↓ 8 callers
Method
schedulePreload
@override
src/service/owners-impl.js:41
↓ 8 callers
Function
sendMessageConsentUi
\ * @param {!ConsentUI} consentUI * @param {string} source * @param {string} action
extensions/amp-consent/0.1/test/test-consent-ui.js:1077
↓ 8 callers
Method
sendNaClickTracking
* Sends tracking request to Skimlinks tracking API in order to * register non-affiliated click. * @param {!HTMLElement} anchor * @public
extensions/amp-skimlinks/0.1/tracking.js:106
↓ 8 callers
Function
serialize
* @param {string} html * @return {!NodeList}
test/unit/test-sanitizer.js:80
↓ 8 callers
Function
serialize
* @param {string} html * @return {!NodeList}
test/unit/test-purifier.js:49
↓ 8 callers
Method
setAsContainer
* Set itself as a container element that can be monitored by the scheduler * for auto-mounting. Scheduler is used for R1 elements. A container is
src/base-element.js:473
↓ 8 callers
Method
setBoth
* Helper method to set both sync and async resolvers. * @param {string} varName * @param {!SyncResolverDef} syncResolver * @param {!AsyncReso
src/service/variable-source.js:253
↓ 8 callers
Function
setDuration
(video, durationSeconds)
test/unit/test-video-analytics-percentage-tracker.js:39
↓ 8 callers
Function
setElementResourceState
(element, state)
test/unit/test-owners.js:72
↓ 8 callers
Function
setInitialDisplay
(el, value)
src/core/dom/style.js:182
↓ 8 callers
Method
setLegacyConsentInstanceId
* * @param {string} consentInstanceId
extensions/amp-consent/0.1/consent-policy-manager.js:88
↓ 8 callers
Method
setPageviewStateToken
* Sets the pageview state token associated with the slot. Token does not * expire. * @param {string} token
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:1985
↓ 8 callers
Method
setReady
* Signals that the FIE doc is ready. * @restricted
src/service/ampdoc-impl.js:1059
↓ 8 callers
Function
setReportValiditySupportedForTesting
(isSupported)
extensions/amp-form/0.1/form-validators.js:41
↓ 8 callers
Method
setTimingResolver_
* Utility function for setting resolver for timing data that supports * sync and async. * @param {string} varName * @param {string} startEven
src/service/url-replacements-impl.js:112
↓ 8 callers
Function
setupInit
(opt_init, opt_accept)
src/utils/xhr-utils.js:253
↓ 8 callers
Method
shouldPreventDefaultOnEnter
( activeElement: boolean, submitOnEnter: boolean )
src/bento/components/bento-autocomplete/1.0/types.ts:64
↓ 8 callers
Function
shouldShowStoryUrlInfo
(viewer, storeService)
extensions/amp-story/1.0/utils.js:225
↓ 8 callers
Method
skipShadowDemo
* @return {ItConfig}
build-system/tasks/e2e/describes-e2e.js:296
↓ 8 callers
Method
stop
* Invoked when the advancement configuration should cease taking effect. * @param {boolean=} unusedCanResume
extensions/amp-story/1.0/page-advancement.js:171
↓ 8 callers
Function
stubService
(sandbox, win, serviceId, method)
testing/helpers/service.js:14
↓ 8 callers
Function
stubVsyncMeasure
()
test/unit/test-viewport.js:163
↓ 8 callers
Method
switchToParent
* @return {!Promise}
build-system/tasks/e2e/selenium-webdriver-controller.js:638
↓ 8 callers
Method
tickInteractionToNextPaint_
* Record the interaction to next paint score. * @param {number=} duration
src/service/performance-impl.js:656
↓ 8 callers
Function
tn
(n)
third_party/d3/d3.js:1
↓ 8 callers
Method
transformMutate
* Apply or reset transform style to fixed elements. The existing transition, * if any, is disabled when custom transform is supplied. * @param {
src/service/fixed-layer.js:285
↓ 8 callers
Function
transition$1
* Returns a promise which is resolved after the given duration of animation * @param {!Element} el - Element to be observed. * @param {!Object<strin
third_party/subscriptions-project/swg.js:10329
↓ 8 callers
Method
tryUnwrap
* Unwraps the root element. If root has a single element child, * returns the child. Otherwise, returns root. * @param {!Element} root * @ret
src/base-template.js:90
↓ 8 callers
Function
u
(e)
third_party/inputmask/bundle.js:5
↓ 8 callers
Method
unlayoutCallback
@override
extensions/amp-a4a/0.1/amp-a4a.js:1452
↓ 8 callers
Method
unobserve
* Stops the intersection observer from observing the element.
extensions/amp-a4a/0.1/refresh-manager.js:340
↓ 8 callers
Method
update
(options)
extensions/amp-pan-zoom/1.0/test/test-component.js:619
↓ 8 callers
Method
updateAllEntries
* This should always be called in vsync. * @param {boolean=} opt_force * @visibleForTesting
src/service/position-observer/position-observer-impl.js:154
↓ 8 callers
Method
updateLightboxMode
@override
src/inabox/inabox-viewport.js:652
↓ 8 callers
Method
updatePositions_
* Update element positions based on percentage * Should be wrapped inside mutateElement * @param {number} percentFromLeft * @private
extensions/amp-image-slider/0.1/amp-image-slider.js:658
↓ 8 callers
Function
upgrade
(io)
test/unit/polyfills/test-intersection-observer.js:503
↓ 8 callers
Function
urlAsLocation
(url)
src/url.js:48
↓ 8 callers
Function
v
(e,t,r)
examples/amp-script/vue-todomvc.js:7
↓ 8 callers
Function
validateOneOf
(data, schemaName = "one-of")
build-system/babel-plugins/babel-plugin-transform-json-import/test/fixtures/transform-assertions/schema-one-of/output.mjs:82
↓ 8 callers
Method
verifyAuthToken_
* Logs error and sends message to viewer * @param {string} token * @param {?string} decryptedDocumentKey * @return {!Promise<!Entitlement>}
extensions/amp-subscriptions/0.1/viewer-subscription-platform.js:140
↓ 8 callers
Method
verifyToken
* Verifies an origin experiment token given a public key. * @param {string} token * @param {!Location} location * @param {!webCrypto.CryptoKe
src/service/origin-experiments-impl.js:164
↓ 8 callers
Function
waitForChildPromise
(parent, checkFunc)
src/core/dom/index.js:66
↓ 8 callers
Function
waitForDiscover
(...nodesOrContextNodes)
test/unit/core/context/test-node-values.js:114
↓ 8 callers
Method
waitForElementBuild
* @param {string} selector * @param {number=} timeout * @return {!Promise}
testing/helpers/service.js:295
↓ 8 callers
Function
waitForMutationObserver
(iframe)
test/unit/test-3p-environment.js:208
↓ 8 callers
Function
waitForRender
()
extensions/amp-soundcloud/1.0/test/test-amp-soundcloud.js:73
↓ 8 callers
Function
waitForRender
()
extensions/amp-facebook/1.0/test/test-amp-facebook.js:25
↓ 8 callers
Method
whenExtensionsKnown
* Resolved when the initial document set of extension is known. * @return {!Promise}
src/service/ampdoc-impl.js:455
↓ 8 callers
Method
whenViewportLayoutComplete_
* Returns a promise that is resolved when resources in viewport * have been finished being laid out. * @return {!Promise} * @private
src/service/performance-impl.js:775
↓ 8 callers
Method
xssiJson
* A substitute for the standard response.json(), which may optionally strip a prefix before calling JSON.parse(). * * @param {!Response} res fet
src/service/xhr-impl.js:146
↓ 7 callers
Function
Ce
(e,t)
examples/amp-script/vue-todomvc.js:7
↓ 7 callers
Function
Er
(e,t,n,r,i)
examples/amp-script/vue-todomvc.js:7
↓ 7 callers
Function
H
(e)
examples/amp-script/todomvc.ssr.js:2
↓ 7 callers
Function
Ni
(e,t)
examples/amp-script/vue-todomvc.js:7
↓ 7 callers
Function
On
(n,t,e)
third_party/d3/d3.js:1
↓ 7 callers
Function
R
(e,t,n,r)
examples/amp-script/vue-todomvc.js:7
↓ 7 callers
Function
Ra
(e,t)
examples/amp-script/vue-todomvc.js:7
↓ 7 callers
Function
T
(i)
third_party/react-dates/bundle.js:1
↓ 7 callers
Function
Ue
(e,a,t)
third_party/react-dates/bundle.js:1
↓ 7 callers
Function
Va
(e,a)
third_party/react-dates/bundle.js:1
↓ 7 callers
Function
Xn
(n)
third_party/d3/d3.js:1
↓ 7 callers
Function
_
(e)
third_party/react-dates/bundle.js:1
↓ 7 callers
Function
_toConsumableArray
(e)
third_party/react-dates/bundle.js:1
↓ 7 callers
Method
actionHandler_
* Handle actions that require at least high trust. * @param {!../../../src/service/action-impl.ActionInvocation} invocation * @return {?Promise}
extensions/amp-form/0.1/amp-form.js:357
↓ 7 callers
Method
activate
@override
extensions/amp-subscriptions-google/0.1/amp-subscriptions-google.js:731
↓ 7 callers
Function
addAmpExperimentIdToElement
(experimentId, element)
ads/google/a4a/traffic-experiments.js:167
↓ 7 callers
Function
addConfigElement
(opt_elementName, opt_type, opt_textContent)
extensions/amp-experiment/0.1/test/test-amp-experiment.js:49
↓ 7 callers
Function
addDays
* @param {Date} date * @param {number=} days * @return {Date}
build-system/common/update-session-issues/index.js:278
↓ 7 callers
Method
addEvent
* @param {string} name * TODO(dvoytenko): switch to a system where the event recognizers are * registered with Action instead, e.g. "doubletap",
src/service/action-impl.js:290
↓ 7 callers
Function
addRequiredExtensionsToHead
( docStr, extensionConf = { 'amp-mustache': {version: '0.2'}, } )
build-system/server/app-index/amphtml-helpers.js:93
↓ 7 callers
Function
assertAttributeMutationFormat
(mutationRecord)
extensions/amp-experiment/1.0/mutation/mutation.js:40
↓ 7 callers
Function
assertIsName
* Asserts that name is just an alphanumeric word, and does not contain * advanced CSS selector features like attributes, pseudo-classes, class names,
src/core/dom/query.js:15
↓ 7 callers
Function
assertSuccess
(response)
src/utils/xhr-utils.js:365
↓ 7 callers
Method
authorize
* Decides whether to show the paywall or not * @return {!Promise<!JsonObject>}
extensions/amp-access-fewcents/0.1/fewcents-impl.js:94
↓ 7 callers
Function
buildAmpAutocomplete
(wantSsr)
extensions/amp-autocomplete/0.1/test/test-amp-autocomplete.js:26
↓ 7 callers
Method
buildCallback
@override
extensions/amp-experiment/0.1/amp-experiment.js:37
↓ 7 callers
Method
buildCallback
@override
extensions/amp-smartlinks/0.1/amp-smartlinks.js:52
↓ 7 callers
Function
buildDom
(element)
src/builtins/amp-layout/build-dom.js:11
↓ 7 callers
Method
buildLoginUrls_
* @return {?Promise<!Array<!{type: string, url: string}>>} * @private
extensions/amp-access/0.1/amp-access-source.js:526
↓ 7 callers
Method
calcPercent
@override
extensions/amp-animation/0.1/parsers/css-expr-ast.js:473
↓ 7 callers
Function
calculateEntryPointScriptUrl
( location, entryPoint, isLocalDev, opt_rtv )
src/service/extension-script.js:83
← previous
next →
2,001–2,100 of 18,703, ranked by callers