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
↓ 4 callers
Function
createExecElement
(id, enqueAction, defaultActionAlias)
test/unit/test-action.js:45
↓ 4 callers
Function
createFakeAnchorReplacementList
()
extensions/amp-skimlinks/0.1/test/test-tracking.js:54
↓ 4 callers
Function
createFie
(bodyElementMock, parentType = 'amp-ad')
test/unit/test-friendly-iframe-embed.js:1105
↓ 4 callers
Function
createFilter
(name, spec, adExitInstance)
extensions/amp-ad-exit/0.1/filters/factory.js:12
↓ 4 callers
Function
createLoaderLogo
(element)
extensions/amp-facebook/0.1/facebook-loader.js:12
↓ 4 callers
Function
createOpeningButton
(id)
extensions/amp-lightbox/0.1/test/test-amp-lightbox.js:37
↓ 4 callers
Function
createRectInit
* Creates DOMRectInit object based on the provided dimensions and the x/y coordinates. * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrecti
third_party/resize-observer-polyfill/ResizeObserver.js:369
↓ 4 callers
Function
createRectInit
* Creates DOMRectInit object based on the provided dimensions and the x/y coordinates. * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrecti
third_party/resize-observer-polyfill/ResizeObserver.install.js:368
↓ 4 callers
Function
createReplacement
* @param {string} identifierName the identifier name to replace * @param {boolean|string} value the value to replace with * @return {!Object} re
build-system/babel-config/helpers.js:39
↓ 4 callers
Function
createResource
(id, rect)
test/unit/test-mutator.js:107
↓ 4 callers
Function
createResponseInstance
(body, init)
test/unit/test-xhr.js:305
↓ 4 callers
Method
createScanner_
* @param {!Array<string>} path * @param {?Element} target * @param {?number} index * @param {?{[key: string]: *}} vars * @param {?WebAnima
extensions/amp-animation/0.1/web-animations.js:254
↓ 4 callers
Function
createStoryForInlineVideoTesting
()
extensions/amp-video/0.1/test/test-video-cache.js:672
↓ 4 callers
Function
createStoryObjects
(numberOfStories)
test/unit/test-amp-story-player.js:738
↓ 4 callers
Function
csa
(global, data)
ads/vendors/csa.js:35
↓ 4 callers
Function
csiTrigger
* Returns amp-analytics config for a new CSI trigger. * @param {string} on The name of the analytics trigger. * @param {!{[key: string]: string}} pa
ads/google/a4a/utils.js:571
↓ 4 callers
Function
current
* @return {{ * used: Set, * declared: Map, * }}
build-system/eslint-rules/unused-private-field.js:21
↓ 4 callers
Function
d
(e)
examples/amp-script/todomvc.ssr.js:2
↓ 4 callers
Function
deactivateChunking
()
src/chunk.js:104
↓ 4 callers
Function
decideStrategy
(options)
extensions/amp-story-interactive/0.1/amp-story-interactive-results.js:179
↓ 4 callers
Function
deepmerge
(e,r,t)
third_party/react-dates/bundle.js:1
↓ 4 callers
Function
defaultCase
()
third_party/inputmask/inputmask.js:369
↓ 4 callers
Function
defaultSerializer
(baseUrl, batchSegments)
extensions/amp-analytics/0.1/transport-serializer.js:99
↓ 4 callers
Function
delay
(ms = 250)
extensions/amp-list/1.0/storybook/Basic.js:41
↓ 4 callers
Method
delayAdRequestEnabled
@override
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:562
↓ 4 callers
Function
delayAfterDeferringToEventLoop
(win, duration)
extensions/amp-lightbox-gallery/0.1/utils.js:17
↓ 4 callers
Method
delegateActionToService
* Delegates actions to a given service. * @param {string} action * @param {string} platformKey * @param {?string} sourceId * @return {!Pro
extensions/amp-subscriptions/0.1/service-adapter.js:78
↓ 4 callers
Method
destroy
* Provide a function to clear timeout before set this intersection to null.
extensions/amp-ad/0.1/legacy-ad-intersection-observer-host.js:211
↓ 4 callers
Function
determineTestTemplate
(pos, tests)
third_party/inputmask/inputmask.js:815
↓ 4 callers
Function
devAssertString
(shouldBeString, opt_message)
src/core/assert/dev.js:108
↓ 4 callers
Method
disableScroll
@override
src/inabox/inabox-viewport.js:322
↓ 4 callers
Method
disableScroll_
* Disables scrolling on the document * @private
extensions/amp-consent/0.1/consent-ui.js:825
↓ 4 callers
Method
disconnect
()
test/unit/test-ini-load.js:102
↓ 4 callers
Method
dispatch
* Receives an event from IframeTransportClient, and passes it along to * the creative that this context represents. * @param {string} event
3p/iframe-transport-client.js:158
↓ 4 callers
Function
dispatchVideoEvent
* @param {!HTMLIFrameElement} currentTarget * @param {string} name
src/bento/components/bento-youtube/1.0/component.js:229
↓ 4 callers
Method
displayActiveItemInInput
* Updates the input element text with the user highlighted active suggestion (before selection) * * @param {!HTMLInputElement} unusedInputEl
extensions/amp-autocomplete/0.1/autocomplete-binding-def.js:61
↓ 4 callers
Function
displayWarning
* @param {?string} message
src/bento/components/bento-soundcloud/1.0/component.js:122
↓ 4 callers
Method
display_
* Display and load sticky ad. * @private
extensions/amp-sticky-ad/1.0/amp-sticky-ad.js:202
↓ 4 callers
Function
displayed
(array)
extensions/amp-subscriptions/0.1/test/test-local-subscription-rendering.js:85
↓ 4 callers
Function
displayed
(array)
extensions/amp-subscriptions/0.1/test/test-renderer.js:171
↓ 4 callers
Function
disposeServicesForDoc
(ampdoc)
src/service-helpers.js:508
↓ 4 callers
Method
doc
@override
third_party/subscriptions-project/swg.js:19063
↓ 4 callers
Function
draw3pInternal
(win, data, configCallback)
3p/integration-lib.js:121
↓ 4 callers
Method
emptyContainer_
* Removes the paywall from the element on publisher's page where paywall is displayed * @private * @return {!Promise}
extensions/amp-access-fewcents/0.1/fewcents-impl.js:237
↓ 4 callers
Method
enqueue
* Enqueues an event to be sent to a cross-domain iframe. * @param {!IframeTransportEventDef} event * Identifies the event and which Transport in
extensions/amp-analytics/0.1/iframe-transport-message-queue.js:80
↓ 4 callers
Function
ensureFramed
(window)
3p/integration-lib.js:294
↓ 4 callers
Method
error_
* @param {string} message * @param {?Element=} opt_element * @private
src/service/action-impl.js:655
↓ 4 callers
Function
esbuildCompile
* Transforms a given JavaScript file entry point with esbuild and babel, and * watches it for changes (if required). * * @param {string} srcDir *
build-system/tasks/helpers.js:259
↓ 4 callers
Function
et
(e)
examples/amp-script/vue-todomvc.js:7
↓ 4 callers
Method
evaluateExpression_
* Evaluates a single expression and returns its result. * @param {string} expression * @param {!JsonObject} scope * @return {!Promise<!JsonOb
extensions/amp-bind/0.1/bind-impl.js:1024
↓ 4 callers
Method
execute
* Function to call .execute() on the recaptcha API within * our iframe, to dispatch recaptcha actions. * Takes in an element resource ID, siteke
extensions/amp-recaptcha-input/0.1/amp-recaptcha-service.js:137
↓ 4 callers
Method
executeAction_
* @param {string} method * @param {=any} args * @private
extensions/amp-story/1.0/animation.js:952
↓ 4 callers
Function
expandConfigRequest
(config)
extensions/amp-analytics/0.1/config.js:536
↓ 4 callers
Method
expandLongTask
* @param {!Promise} promise
extensions/amp-script/0.1/user-activation-tracker.js:84
↓ 4 callers
Function
expandPostMessage
( ampdoc, msg, configParams, trigger, expansionOption, element )
extensions/amp-analytics/0.1/requests.js:391
↓ 4 callers
Function
expectAmpElementToHaveBeenShown
(element, sync = false)
test/unit/test-standard-actions.js:89
↓ 4 callers
Function
expectEqualNodeLists
* @param {!NodeList} a * @param {!NodeList} b
test/unit/test-sanitizer.js:90
↓ 4 callers
Function
expectEqualNodeLists
* @param {!NodeList} a * @param {!NodeList} b
test/unit/test-purifier.js:59
↓ 4 callers
Function
expectFetch
(fetched, rendered, opts = DEFAULT_LIST_OPTS)
extensions/amp-list/0.1/test/test-amp-list.js:149
↓ 4 callers
Function
expectNthCallToMatch
(fn, callIndex, expected)
extensions/amp-analytics/0.1/test/test-scroll-manager.js:12
↓ 4 callers
Function
expectSigningServiceError
(signingServiceName)
extensions/amp-a4a/0.1/test/test-signature-verifier.js:23
↓ 4 callers
Function
exponentialBackoff
(opt_base)
src/core/types/function/exponential-backoff.js:8
↓ 4 callers
Function
exponentialBackoffClock
(opt_base)
src/core/types/function/exponential-backoff.js:18
↓ 4 callers
Function
extensionKey
* @param {string} extensionId * @param {string} version * @return {string}
src/service/extensions-impl.js:668
↓ 4 callers
Function
extractArticleTags
(ampdoc)
extensions/amp-apester-media/0.1/utils.js:124
↓ 4 callers
Function
extractElementTags
(element)
extensions/amp-apester-media/0.1/utils.js:82
↓ 4 callers
Function
extractHost
(url)
ads/google/a4a/utils.js:426
↓ 4 callers
Method
extractSize
* Determine the desired size of the creative based on the HTTP response * headers. Must be less than or equal to the original size of the ad slot
extensions/amp-a4a/0.1/amp-a4a.js:1634
↓ 4 callers
Function
fakePostMessage
(element, data = '{}')
extensions/amp-imgur/0.1/test/test-amp-imgur.js:24
↓ 4 callers
Function
fe
()
examples/amp-script/vue-todomvc.js:7
↓ 4 callers
Method
fetchDomainResolverApi
* Calls the domain resolver API (Beacon) and return the API response * through a Promise. * * This method is public since it can also be call
extensions/amp-skimlinks/0.1/affiliate-link-resolver.js:75
↓ 4 callers
Method
fetchList_
* Request list data from `src` and return a promise that resolves when * the list has been populated with rendered list items. If the viewer is
extensions/amp-list/0.1/amp-list.js:719
↓ 4 callers
Method
finally
@override
build-system/tasks/e2e/controller-promise.js:44
↓ 4 callers
Method
findResourcesInElements_
* Finds resources within the parent resource's shallow subtree. * @param {!Resource} parentResource * @param {!Array<!Element>} elements * @p
src/service/owners-impl.js:104
↓ 4 callers
Method
findRoot_
* @param {!Node} context * @return {!./analytics-root.AnalyticsRoot}
extensions/amp-analytics/0.1/instrumentation.js:98
↓ 4 callers
Method
findTemplate
* Find a specified template inside the parent. Fail if the template is * not present. * @param {!Element} parent * @param {string=} opt_query
src/service/template-impl.js:198
↓ 4 callers
Method
firstLayoutCompleted
()
test/unit/test-custom-element.js:65
↓ 4 callers
Function
flyIn
* @param {!./fx-provider.FxElement} fxElement * @param {string} axis 'X' or 'Y' (uppercase) * @param {number} coeff 1 or -1
extensions/amp-fx-collection/0.1/providers/amp-fx-presets.js:30
↓ 4 callers
Method
formatGeom_
* Builds geometry update format expected by GPT Safeframe. * Also sets this.currentGeometry as side effect. * @param {!../../../src/layout-rect.
extensions/amp-ad-network-doubleclick-impl/0.1/safeframe-host.js:378
↓ 4 callers
Function
formatI18nNumber
(localizationService, el, currency, price)
extensions/amp-story-shopping/0.1/amp-story-shopping.js:15
↓ 4 callers
Method
forwardEvent_
* @param {!Event} e * @private
extensions/amp-viewer-integration/0.1/touch-handler.js:123
↓ 4 callers
Method
forwardRequestToAmpScript
* @param {!AmpDoc} ampdoc * @param {!RequestDef} request * @return {!Promise}
extensions/amp-analytics/0.1/transport.js:340
↓ 4 callers
Function
frame
(id)
test/unit/test-3p.js:250
↓ 4 callers
Function
ft
(t,n,r)
examples/amp-script/vue-todomvc.js:7
↓ 4 callers
Function
ga
(a,b)
third_party/wgxpath/wgxpath.js:30
↓ 4 callers
Function
get
(domain)
test/unit/test-integration.js:224
↓ 4 callers
Function
getA4ARegistry
()
ads/_a4a-config.js:22
↓ 4 callers
Method
getActionMap_
* @param {!Element} node * @param {string} actionEventType * @return {?{[key: string]: !Array<!ActionInfoDef>}}
src/service/action-impl.js:779
↓ 4 callers
Function
getActionQueueForTesting
(element)
src/custom-element.js:2221
↓ 4 callers
Method
getAdUrl
@override
extensions/amp-ad-network-adzerk-impl/0.1/amp-ad-network-adzerk-impl.js:72
↓ 4 callers
Function
getAds
(type)
test/unit/ads/test-csa.js:13
↓ 4 callers
Function
getAmpAccordionWithContents
(contents, opt_shouldSetId)
extensions/amp-accordion/0.1/test/test-amp-accordion.js:31
↓ 4 callers
Method
getAmpAdMetadata
@override
extensions/amp-ad-network-adzerk-impl/0.1/amp-ad-network-adzerk-impl.js:140
↓ 4 callers
Method
getAmpDoc
@override
src/service/viewer-impl.js:320
↓ 4 callers
Method
getAmpDocIfAvailable
* Returns the instance of the ampdoc (`AmpDoc`) that contains the specified * node. * * @param {!Node} node * @return {?AmpDoc}
src/service/ampdoc-impl.js:129
↓ 4 callers
Function
getAttributionReportingStatus
( isAttributionReportingSupported, target )
extensions/amp-ad-exit/0.1/amp-ad-exit.js:592
↓ 4 callers
Function
getAutoConfig
(availableWidth, isMobile)
ads/google/a4a/shared/content-recommendation.js:176
↓ 4 callers
Function
getAutofocusElementForShowAction
(element)
src/service/standard-actions-impl.js:33
↓ 4 callers
Method
getAvailablePlatformsEntitlements_
* Returns entitlements for resolved platforms. * @private * @return {!Array<!./entitlement.Entitlement>}
extensions/amp-subscriptions/0.1/platform-store.js:468
↓ 4 callers
Function
getBindingSingle
(attributes)
extensions/amp-autocomplete/0.1/test/test-amp-autocomplete-bindings.js:34
← previous
next →
3,301–3,400 of 18,703, ranked by callers