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
↓ 14 callers
Function
O
(e)
third_party/inputmask/bundle.js:11
↓ 14 callers
Method
acceptResult
* Accepts results from the caller. * @return {!Promise<!web-activities/activity-ports.ActivityResult>}
third_party/subscriptions-project/swg.js:4003
↓ 14 callers
Method
actionEvent
* @param {string} platformKey * @param {!Action|string} action * @param {!ActionStatus|string} status * @param {!JsonObject=} opt_vars
extensions/amp-subscriptions/0.1/analytics.js:131
↓ 14 callers
Function
appendConfigScriptElement
(doc, element, config)
extensions/amp-consent/0.1/test/test-consent-config.js:35
↓ 14 callers
Function
base64DecodeToBytes
(str)
src/core/types/string/base64.js:34
↓ 14 callers
Method
build
* @return {?Promise<!{[key: string]: string}>}
extensions/amp-subscriptions/0.1/actions.js:50
↓ 14 callers
Method
calcTaskTimeout_
* Calculates the timeout of a task. The timeout depends on two main factors: * the priorities of the tasks currently in the execution pool and thei
src/service/resources-impl.js:1428
↓ 14 callers
Function
calcVelocity
(deltaV, deltaTime, prevVelocity)
src/motion.js:33
↓ 14 callers
Function
createAmpElementForTesting
( win, opt_implementationClass, opt_elementConnectedCallback )
src/custom-element.js:2176
↓ 14 callers
Function
createAmpVkElement
(dataParams, layout)
extensions/amp-vk/0.1/test/test-amp-vk.js:34
↓ 14 callers
Function
createElement
* Create a new element on document with specified tagName and attributes. * @param {!Document} doc * @param {string} tagName * @param {!Object<stri
third_party/subscriptions-project/swg.js:3698
↓ 14 callers
Function
createGoogleAnalyticsEvent
( eventCategory, eventAction, eventLabel, nonInteraction )
third_party/subscriptions-project/swg.js:12150
↓ 14 callers
Function
createKeyboardEventInitWithKeyCode
* Creates a `KeyboardEventInit` object with default properties overridden by * the given key code. * * @param {string} key * @param {number} keyCo
extensions/amp-viewer-integration/0.1/test/test-keyboard-handler.js:543
↓ 14 callers
Function
createNestedIframeMocks
(depth, numXDomain)
test/unit/inabox/test-inabox-messaging-host.js:380
↓ 14 callers
Function
createVideo
()
test/unit/test-video-rotate-to-fullscreen.js:11
↓ 14 callers
Function
deepMerge
(target, source, depth = 10)
src/core/types/object/index.js:70
↓ 14 callers
Function
dereferenceArgsVariables
(args, event, opt_args)
src/service/action-impl.js:1132
↓ 14 callers
Function
execOrDie
* Executes the provided command, and terminates the program in case of failure. * * @param {string} cmd * @param {?Object=} options
build-system/common/exec.js:46
↓ 14 callers
Method
fetchText
* Fetches a text response. Note this returns the response object, not the * response's text. #fetchText merely sets up the request to accept text.
src/service/xhr-impl.js:135
↓ 14 callers
Function
fn
(n,t,e)
third_party/d3/d3.js:1
↓ 14 callers
Method
getAmpDoc
* Returns the associated ampdoc. Only available after attachment. It throws * exception before the element is attached. * @return {!./servic
src/custom-element.js:317
↓ 14 callers
Method
getAuthdataField
* Returns the promise that will yield the value of the specified field from * the authorization response. This method will wait for the most recent
extensions/amp-access/0.1/access-vars.js:27
↓ 14 callers
Method
getBody
* The `Document.body` element or analog. Returns `null` if not available * yet. * @return {?Element}
third_party/subscriptions-project/config.js:145
↓ 14 callers
Function
getData
* @param {string} command * @param {string} callId * @param {string=} opt_parameter
extensions/amp-consent/0.1/test/test-tcf-api-command-manager.js:470
↓ 14 callers
Method
getImage
* Returns the img element of the image viewer. * @return {!Element}
extensions/amp-image-lightbox/0.1/amp-image-lightbox.js:147
↓ 14 callers
Function
getLiveList
(attrs = {}, opt_id)
extensions/amp-live-list/0.1/test/test-live-list-manager.js:91
↓ 14 callers
Function
getNextButton
(el)
extensions/amp-carousel/0.2/test/test-type-slides.js:36
↓ 14 callers
Function
getPrevButton
(el)
extensions/amp-carousel/0.2/test/test-type-slides.js:40
↓ 14 callers
Method
getSessionValue
* Get the value from the session per the vendor. * @param {string|undefined} type * @param {SESSION_VALUES} value * @return {!Promise<number|
extensions/amp-analytics/0.1/session-manager.js:148
↓ 14 callers
Function
getTime
(wrapper)
extensions/amp-timeago/1.0/test/test-component.js:10
↓ 14 callers
Function
getVideoPlayer
(options)
test/integration/test-video-players-helper.js:563
↓ 14 callers
Function
googleAdUrl
( a4a, baseUrl, startTime, parameters, opt_experimentIds )
ads/google/a4a/utils.js:364
↓ 14 callers
Function
handleAds
(media, apesterElement)
extensions/amp-apester-media/0.1/monetization/index.js:12
↓ 14 callers
Method
handleFocus_
* Handle focus events in the document. * @param {!Event} e * @private
extensions/amp-date-picker/0.1/amp-date-picker.js:1040
↓ 14 callers
Method
handleSubmitAction_
* Handles submissions through action service invocations. * e.g. <img on=tap:form.submit> * @param {!../../../src/service/action-impl.ActionIn
extensions/amp-form/0.1/amp-form.js:505
↓ 14 callers
Method
hide
* Hide the UI
extensions/amp-consent/0.1/consent-ui.js:309
↓ 14 callers
Function
i
(e,t)
third_party/inputmask/bundle.js:5
↓ 14 callers
Function
invalid
(fn)
test/unit/test-integration.js:288
↓ 14 callers
Method
isMeasureRequested
* @return {boolean}
src/service/resource.js:569
↓ 14 callers
Method
isProxyOrigin
* Returns whether the URL has the origin of a proxy. * @param {string|!Location} url URL of an AMP document. * @return {boolean}
src/service/url-impl.js:134
↓ 14 callers
Function
isRTL
(doc)
src/core/dom/index.js:356
↓ 14 callers
Method
isValidElement
@return {boolean}
extensions/amp-ad-network-adsense-impl/0.1/responsive-state.js:268
↓ 14 callers
Method
isVisible
* @return {boolean}
extensions/amp-subscriptions/0.1/dialog.js:77
↓ 14 callers
Function
iterateCursor
(iterable, cb)
src/core/dom/index.js:320
↓ 14 callers
Function
jsxStylePropertyString
( property: string, value: any, isDimensional?: boolean )
src/core/dom/jsx/style-property-string.ts:5
↓ 14 callers
Method
keyDownHandler_
* Handles keyboard events. * @param {!Event} event * @return {!Promise} * @private
extensions/amp-autocomplete/0.1/amp-autocomplete.js:1294
↓ 14 callers
Method
layoutCallback
()
test/unit/test-extension-analytics.js:389
↓ 14 callers
Method
mask
@override
extensions/amp-inputmask/0.1/mask-impl.js:121
↓ 14 callers
Method
maybeCreateCta
* Try to create CTA (Click-To-Action) before showing the ad. Will fail if * not enough metadata to create the outlink button. * @return {Promise
extensions/amp-story-auto-ads/0.1/story-ad-page.js:236
↓ 14 callers
Function
numeric
(start, end)
src/core/dom/transition.js:61
↓ 14 callers
Method
onMessage
@override
src/service/viewer-impl.js:659
↓ 14 callers
Function
parseExtensionUrl
(scriptUrl)
src/service/extension-script.js:105
↓ 14 callers
Function
postMessage
* @param {!Object} data
ads/google/ima/ima-video.js:1454
↓ 14 callers
Function
propName
(name)
src/preact/utils.js:61
↓ 14 callers
Function
registerExtendedTemplateForDoc
(ampdoc, type, templateClass)
src/service/template-impl.js:355
↓ 14 callers
Function
remove
(array, shouldRemove)
src/core/types/array.js:66
↓ 14 callers
Method
reportPlatformFailureAndFallback
* Records a platform failure * logs error if all platforms have failed * uses fallback if there is one. * @param {string} platformKey
extensions/amp-subscriptions/0.1/platform-store.js:637
↓ 14 callers
Function
resetExperimentTogglesForTesting
(win)
src/experiments/index.js:240
↓ 14 callers
Function
resetMaskSet
(soft)
third_party/inputmask/inputmask.js:783
↓ 14 callers
Function
resolveRelativeUrl
(relativeUrlString, baseUrl)
src/url.js:544
↓ 14 callers
Method
resolveRequests
* @param {!Array<string>} path * @param {!WebAnimationDef|!Array<!WebAnimationDef>} spec * @param {?WebAnimationDef|undefined} args * @param
extensions/amp-animation/0.1/web-animations.js:219
↓ 14 callers
Function
rtcEntry
(response, url, error, isVendor)
test/unit/test-real-time-config.js:185
↓ 14 callers
Method
sendCommand_
* Sends a command to the player through postMessage. * @param {string} type * @param {Object=} payload * @private
extensions/amp-delight-player/0.1/amp-delight-player.js:387
↓ 14 callers
Function
sendRequest
(win, request, options)
extensions/amp-analytics/0.1/test/test-transport.js:559
↓ 14 callers
Method
setState_
* @param {!State} state * @private
extensions/amp-story-education/0.1/amp-story-education.js:179
↓ 14 callers
Function
setupForAdTesting
(fixture)
ads/google/a4a/test/test-utils.js:42
↓ 14 callers
Method
signals
@return {!Signals}
src/service/ampdoc-impl.js:332
↓ 14 callers
Method
startAuthorizationFlow_
* Unblock document based on grant state and selected platform * @param {boolean=} shouldActivatePlatform * @return {!Promise} * @private
extensions/amp-subscriptions/0.1/amp-subscriptions.js:572
↓ 14 callers
Function
toggleViewport
* Simulate an IntersectionObserver callback for an element. * @param {!Element} el * @param {boolean} inViewport
test/unit/core/dom/layout/test-viewport-observer.js:86
↓ 14 callers
Method
updateConsentInstanceState
* Update consent instance state * @param {CONSENT_ITEM_STATE} state * @param {string=} consentStr * @param {ConsentMetadataDef=} opt_consentM
extensions/amp-consent/0.1/consent-state-manager.js:115
↓ 14 callers
Method
updateReplacementUrls
* @param {!./link-rewriter.AnchorReplacementList} replacementList * @public
extensions/amp-skimlinks/0.1/link-rewriter/link-replacement-cache.js:40
↓ 14 callers
Function
upgradeOrRegisterElement
(win, name, toClass)
src/service/custom-element-registry.js:35
↓ 14 callers
Function
validatePage
(page, hostUrl)
extensions/amp-next-page/1.0/utils.js:32
↓ 14 callers
Function
warn
* @param {...*} var_args [description]
third_party/subscriptions-project/swg.js:2953
↓ 14 callers
Method
whenPolicyUnblock
* Wait for policy to resolve and check if it should be unblocked * @param {string} policyId * @return {!Promise<boolean>}
extensions/amp-consent/0.1/consent-policy-manager.js:269
↓ 13 callers
Function
L
()
third_party/inputmask/bundle.js:11
↓ 13 callers
Function
P
(a,b,c,d)
third_party/wgxpath/wgxpath.js:46
↓ 13 callers
Method
R1
@override
src/builtins/amp-img/amp-img.js:45
↓ 13 callers
Function
V
(a,b,c,d)
third_party/wgxpath/wgxpath.js:62
↓ 13 callers
Function
W
(a,b)
third_party/wgxpath/wgxpath.js:67
↓ 13 callers
Function
add
(p)
test/unit/test-3p-environment.js:100
↓ 13 callers
Method
addDocFactory
* Add a ampdoc factory to the extension currently being registered. This is a * restricted method and it's allowed to be called only during the ove
src/service/extensions-impl.js:428
↓ 13 callers
Function
addExperimentIdToElement
(experimentId, element)
ads/google/a4a/traffic-experiments.js:152
↓ 13 callers
Method
addListener
* Adds message event listener and triggers collapsing
extensions/amp-ad-network-smartadserver-impl/0.1/amp-ad-network-smartadserver-impl.js:225
↓ 13 callers
Method
addVisitor
* @param {!VisitorCallbackTypeDef} callback * @param {number=} maxAncestorsToVisit The limit of how many ancestors this * task should be execu
src/utils/dom-ancestor-visitor.js:55
↓ 13 callers
Method
analytics
@override
third_party/subscriptions-project/swg.js:19118
↓ 13 callers
Function
assertAbsoluteHttpOrHttpsUrl
(urlString)
src/url.js:339
↓ 13 callers
Method
assertArray
* Throws an error if the first argument is not an array. * The array can be empty. * * @param {*} shouldBeArray * @param {!Array|string=}
src/utils/log.js:470
↓ 13 callers
Method
assertHttpsUrl
* Asserts that a given url is HTTPS or protocol relative. It's a user-level * assert. * * Provides an exception for localhost. * * @par
src/service/url-impl.js:116
↓ 13 callers
Method
buildReadyResources_
* Builds resources that are ready to be built. * @private
src/service/resources-impl.js:391
↓ 13 callers
Function
buildUrl
( baseUrl, queryParams, maxLength, opt_truncationQueryParam )
ads/google/a4a/shared/url-builder.js:15
↓ 13 callers
Function
calculateFontSize
( measurer, expectedHeight, expectedWidth, minFontSize, maxFontSize )
extensions/amp-fit-text/1.0/component.js:85
↓ 13 callers
Function
callback
(result)
build-system/server/amp4test.js:130
↓ 13 callers
Method
completeView
* @param {?./view.View} view
third_party/subscriptions-project/swg.js:11459
↓ 13 callers
Function
computeInMasterFrame
(global, taskId, work, cb)
3p/3p.js:172
↓ 13 callers
Function
createCallbackCaller
()
test/unit/core/dom/layout/test-size-observer.js:62
↓ 13 callers
Function
createCampaignData
({ avAbove, avBelow, bottomAd, disabledAmpCompanionAds, display, inUnitVideo, srAbove, srBelow
extensions/amp-apester-media/0.1/test/test-amp-apester-monetization.js:188
↓ 13 callers
Function
createState
(attributes)
extensions/amp-ad-network-adsense-impl/0.1/test/test-responsive-state.js:100
↓ 13 callers
Function
createStyle
(attrs, css)
extensions/amp-animation/0.1/test/test-keyframes-extractor.js:13
↓ 13 callers
Function
doNotLoadExternalResourcesInTest
(win, sandbox)
testing/iframe.js:551
← previous
next →
1,101–1,200 of 18,703, ranked by callers