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
↓ 9 callers
Method
getConsentPolicy_
* Get the consent policy to follow. * @return {?string}
src/custom-element.js:1885
↓ 9 callers
Function
getCsiAmpAnalyticsVariables
(analyticsTrigger, a4a, qqid)
ads/google/a4a/utils.js:640
↓ 9 callers
Method
getDockedVideo_
* @return {!VideoOrBaseElementDef} * @private
extensions/amp-video-docking/0.1/amp-video-docking.js:573
↓ 9 callers
Function
getDocumentVisibilityState
(doc)
src/core/document/visibility.js:8
↓ 9 callers
Function
getElement
(attributes, opt_responsive, opt_beforeLayoutCallback)
extensions/amp-byside-content/0.1/test/test-amp-byside-content.js:23
↓ 9 callers
Function
getElementServiceIfAvailable
( win, id, extension, version, opt_element )
src/element-service.js:29
↓ 9 callers
Function
getExistingServiceOrNull
(win, id)
src/service-helpers.js:176
↓ 9 callers
Function
getFakeTouchEvent
(type)
extensions/amp-viewer-integration/0.1/test/test-touch-handler.js:4
↓ 9 callers
Method
getFallback
()
extensions/amp-a4a/0.1/test/utils.js:18
↓ 9 callers
Function
getForm
(doc, isCustomValidations = false)
extensions/amp-form/0.1/test/test-form-validators.js:32
↓ 9 callers
Method
getFrameData
* Gets the FrameData associated with a particular cross-domain frame type. * @param {string} type The type attribute of the amp-analytics tag *
extensions/amp-analytics/0.1/iframe-transport.js:294
↓ 9 callers
Function
getLengthUnits
(length)
src/core/dom/layout/index.js:189
↓ 9 callers
Method
getLoadMoreButton
* @return {!Element}
extensions/amp-list/0.1/service/load-more-service.js:91
↓ 9 callers
Method
getMacros
* @param {!Element} element * @return {!JsonObject} contains all registered macros
extensions/amp-analytics/0.1/variables.js:305
↓ 9 callers
Method
getName_
* @return {string} Returns a string to identify this tag. May not be unique * if the element id is not unique. * @private
extensions/amp-analytics/0.1/amp-analytics.js:836
↓ 9 callers
Function
getNextArrow
(controller)
extensions/amp-base-carousel/0.1/test-e2e/helpers.js:64
↓ 9 callers
Function
getOutput
* Computes the output for a test from its transform and input. * * @param {string} transform * @param {string} input * @return {Promise<string>}
build-system/tasks/server-tests.js:107
↓ 9 callers
Method
getPlatformKey
@override
extensions/amp-subscriptions-google/0.1/amp-subscriptions-google.js:726
↓ 9 callers
Function
getPrevArrow
(controller)
extensions/amp-base-carousel/0.1/test-e2e/helpers.js:60
↓ 9 callers
Function
getProxyServingType
(url)
src/url.js:409
↓ 9 callers
Function
getReadyIframeCmpConsentUi
()
extensions/amp-consent/0.1/test/test-consent-ui.js:106
↓ 9 callers
Function
getRecaptchaInput
(config = ampRecaptchaInputAttributes)
extensions/amp-recaptcha-input/0.1/test/test-amp-recaptcha-input.js:28
↓ 9 callers
Method
getReceiver
* Returns the element identified by a receiver id if it exists in the * invocation origin document and has a classList. If not found, returns null.
extensions/amp-gwd-animation/0.1/amp-gwd-animation-impl.js:423
↓ 9 callers
Function
getSCPlayer
(mediaid, isPlaylist, opt_attrs)
extensions/amp-soundcloud/0.1/test/test-amp-soundcloud.js:23
↓ 9 callers
Function
getSchedulerForDoc
(ampdoc)
src/service/scheduler.js:302
↓ 9 callers
Method
getScrollLeft
@override
src/inabox/inabox-viewport.js:169
↓ 9 callers
Function
getSlideWrappers
(el)
extensions/amp-carousel/0.2/test/test-type-slides.js:52
↓ 9 callers
Function
getSlidesFromShadow
()
extensions/amp-base-carousel/1.0/test/test-amp-base-carousel.js:47
↓ 9 callers
Method
getStartTime
* The start time from which all visibility events and times are measured. * @return {number} * @abstract
extensions/amp-analytics/0.1/visibility-manager.js:182
↓ 9 callers
Function
getVendorJsPropertyName
(style, camelCase, opt_bypassCache)
src/core/dom/style.js:75
↓ 9 callers
Function
getViewportHeight
(win)
extensions/amp-fx-collection/0.1/test/integration/test-amp-fx-parallax.js:128
↓ 9 callers
Function
getViqeo
(params)
extensions/amp-viqeo-player/0.1/test/test-amp-viqeo-player.js:171
↓ 9 callers
Method
handleClick_
* Handle clicks on the element. * @private
extensions/amp-social-share/0.1/amp-social-share.js:178
↓ 9 callers
Method
handleClick_
* Handle the click event * @param {!Event} event * @return {boolean|undefined}
extensions/amp-standalone/0.1/amp-standalone.js:45
↓ 9 callers
Method
handleCommand_
* @param {string|undefined} rsvpId * @param {string} cmd * @param {?Object} payload * @return {*} * @private
extensions/amp-access/0.1/iframe-api/messenger.js:225
↓ 9 callers
Method
hasDescendantsOf
* Returns `true` if the specified element contains any of the elements in * the history. * @param {!Element} element * @return {boolean}
src/focus-history.js:126
↓ 9 callers
Method
hasOwner
* Whether the resource has an owner. * @return {boolean}
src/service/resource.js:262
↓ 9 callers
Method
hasResolvableAction
* Checks if the given element's registered action resolves to at least one * existing element by id or a global target (e.g. "AMP"). * @param {!
src/service/action-impl.js:504
↓ 9 callers
Function
ids
(array)
test/unit/test-extension-script.js:446
↓ 9 callers
Function
init
()
extensions/amp-orientation-observer/0.1/test/test-amp-orientation-observer.js:15
↓ 9 callers
Function
install
(win)
src/polyfills/intersection-observer.js:19
↓ 9 callers
Method
installExtensionsInEmbed
* Install extensions in the child window (friendly iframe). The pre-install * callback, if specified, is executed after polyfills have been configu
src/friendly-iframe-embed.js:717
↓ 9 callers
Function
installRuntimeServices
(global)
src/service/core-services.js:57
↓ 9 callers
Function
installSessionServiceForTesting
(ampdoc)
extensions/amp-analytics/0.1/session-manager.js:354
↓ 9 callers
Method
isAndroid
* Whether the current platform is an Android device. * @return {boolean}
src/service/platform-impl.js:23
↓ 9 callers
Method
isAtEnd
* @return {boolean} True if the carousel is not looping, and is at the * start, false otherwise.
extensions/amp-base-carousel/0.1/carousel.js:903
↓ 9 callers
Function
isCancelError
* Whether the specified error is an AbortError type. * See https://heycam.github.io/webidl/#aborterror. * @param {*} error * @return {boolean}
third_party/subscriptions-project/swg.js:3810
↓ 9 callers
Function
isDisabled
(element)
src/core/dom/form.js:132
↓ 9 callers
Function
isDocumentHidden
(doc)
src/core/document/visibility.js:39
↓ 9 callers
Function
isExperimentOn
(win, experimentId)
src/experiments/index.js:60
↓ 9 callers
Function
isPubId
(candidate)
extensions/amp-addthis/0.1/addthis-utils/mode.js:52
↓ 9 callers
Function
isPullRequestBuild
* Returns true if this is a PR build. * @return {boolean}
build-system/common/ci.js:65
↓ 9 callers
Method
isSecure
* Returns `true` if the URL is secure: either HTTPS or localhost (for * testing). * @param {string} url * @return {boolean}
src/service/url-impl.js:144
↓ 9 callers
Function
isSelectedEndDate
(wrapper, date)
extensions/amp-date-picker/1.0/test/test-helpers.js:25
↓ 9 callers
Function
isString
(s)
src/core/types/string/index.js:204
↓ 9 callers
Method
isUrlSimilarForQueryParams
* Compares if two URLs are identical except for a subset of the query * parameters. The second URL (that is being tested) must have the same subset
extensions/amp-web-push/0.1/web-push-service.js:426
↓ 9 callers
Function
ji
(e,t)
examples/amp-script/vue-todomvc.js:7
↓ 9 callers
Method
layoutCallback
@override
extensions/amp-analytics/0.1/amp-analytics.js:150
↓ 9 callers
Method
layoutCallback
@override
extensions/amp-carousel/0.1/slidescroll.js:458
↓ 9 callers
Function
layoutShoppingImplAndAttachmentChildImpl
()
extensions/amp-story-shopping/0.1/test/test-amp-story-shopping-attachment.js:161
↓ 9 callers
Method
listenWhenEnabled_
* @param {!Element} element * @param {string} eventType * @param {function()} callback * @return {!UnlistenDef} * @private
extensions/amp-video-docking/0.1/controls.js:356
↓ 9 callers
Method
loadBlob
* Returns the promise that yields the store blob for the specified origin. * @param {string} unusedOrigin * @return {!Promise<?string>}
src/service/storage-impl.js:297
↓ 9 callers
Method
loadMeteringState
* Loads metering state for a given publication ID. * * @return {!Promise<?MeteringStateDef>}
extensions/amp-subscriptions/0.1/metering.js:92
↓ 9 callers
Function
loaded
(element)
extensions/amp-social-share/0.1/test/test-amp-social-share.js:81
↓ 9 callers
Function
log
(logger, tagName, attribName, oldValue, newValue)
third_party/caja/html-sanitizer.js:2223
↓ 9 callers
Function
logEvent
* Logs Showcase events. * @param {{ * analyticsEvent: (AnalyticsEvent|undefined), * showcaseEvent: (ShowcaseEvent|undefined), * isFromUserAc
third_party/subscriptions-project/swg-gaa.js:2759
↓ 9 callers
Method
logEvent
* @overrides * @param {!../api/client-event-manager-api.ClientEvent} event * @param {(!../api/client-event-manager-api.ClientEventParams|undefin
third_party/subscriptions-project/swg.js:7274
↓ 9 callers
Function
logSeparator_
* Prints a separator line so logs are easy to read.
build-system/tasks/release/index.js:149
↓ 9 callers
Method
looksLikeTrackingIframe_
* @return {boolean} * @private
extensions/amp-iframe/0.1/amp-iframe.js:312
↓ 9 callers
Function
makeElementWithConfig
(config)
extensions/amp-ad-exit/0.1/test/test-amp-ad-exit.js:142
↓ 9 callers
Function
makeInteractive
(interactiveId, answered = false)
extensions/amp-story/1.0/test/test-amp-story-store-service.js:176
↓ 9 callers
Method
maybeRewriteLink
* Notify the LinkRewriteService that a click has happened on an anchor. * This is the chance for one of the registered LinkRewriter to rewrite the
extensions/amp-skimlinks/0.1/link-rewriter/link-rewriter-manager.js:125
↓ 9 callers
Function
maybeToEsmName
* @param {string} name * @return {string}
build-system/tasks/helpers.js:201
↓ 9 callers
Function
memo
(obj, prop, factory)
src/core/types/object/index.js:189
↓ 9 callers
Function
mockMode
(options)
test/unit/3p/test-3p-frame.js:30
↓ 9 callers
Method
mutateElement
* Runs the specified mutation on the element and ensures that remeasures and * layouts are performed for the affected elements. * * This meth
src/base-element.js:949
↓ 9 callers
Method
next
* Moves forward by the current advance count. * @param {!ActionSource=} actionSource
extensions/amp-base-carousel/0.1/carousel.js:345
↓ 9 callers
Method
onHeaderPicked_
* Handles accordion header activation, through clicks or enter/space presses. * @param {!Event} event 'click' or 'keydown' event. * @private
extensions/amp-accordion/0.1/amp-accordion.js:526
↓ 9 callers
Method
onSubmitSuccess
* Processes dirtiness state when the form submission succeeds. This clears * the "submitting" state and the form's overall dirtiness.
extensions/amp-form/0.1/form-dirtiness.js:76
↓ 9 callers
Method
openChannelAndStart_
* @param {!../../../src/service/viewer-interface.ViewerInterface} viewer * @param {!../../../src/service/ampdoc-impl.AmpDoc} ampdoc * @param {st
extensions/amp-viewer-integration/0.1/amp-viewer-integration.js:170
↓ 9 callers
Function
originMatches
(event, iframe, host)
src/iframe-video.js:30
↓ 9 callers
Method
overflowCallback
* Informs the element that it's either overflown or not. * @param {boolean} overflown * @param {number|undefined} requestedHeight * @param {n
src/service/resource.js:375
↓ 9 callers
Function
parseDate
( value: string, dateFormat: string = ISO_8601, locale: Locale = DEFAULT_LOCALE )
extensions/amp-date-picker/1.0/parsers.ts:184
↓ 9 callers
Method
pingback
* Pingback document view. * @return {!Promise}
extensions/amp-access/0.1/iframe-api/access-controller.js:29
↓ 9 callers
Function
playVideo
()
ads/google/ima/ima-video.js:1120
↓ 9 callers
Method
postbackOrRedirect_
* Tries to postback the response message or redirect URL. * @return {!Promise} * @private
extensions/amp-access/0.1/amp-login-done-dialog.js:35
↓ 9 callers
Method
preprocessPercentages_
* Preprocess the percentages for display. * * @param {!Array<!InteractiveOptionType>} optionsData * @return {Array<number>} * @protected
extensions/amp-story-interactive/0.1/amp-story-interactive-abstract.js:572
↓ 9 callers
Method
promiseErrorHandler_
* Handles uncaught errors within promise flow. * @param {*} error * @param {boolean=} opt_ignoreStack * @private
extensions/amp-a4a/0.1/amp-a4a.js:1313
↓ 9 callers
Method
registerHandler
* Registers a method that will handle requests sent to the specified * message name. * @param {string} messageName The name of the message to ha
extensions/amp-viewer-integration/0.1/messaging/messaging.js:263
↓ 9 callers
Method
render
(fast)
third_party/zuho/zuho.js:209
↓ 9 callers
Function
renderHook
* Similar to @testing-library/react-hooks, except works with Enzyme. * * Renders a hook. * Anything that should trigger a render should be wrapped
extensions/amp-pan-zoom/1.0/test/test-component.js:580
↓ 9 callers
Method
renderResults_
* Render the given data into item elements in the given container element. * @param {!Array<!JsonObject|string>} filteredData * @param {!Element
extensions/amp-autocomplete/0.1/amp-autocomplete.js:732
↓ 9 callers
Method
requestChangeSize
@override
src/service/mutator-impl.js:66
↓ 9 callers
Function
resetScheduledElementForTesting
(win, elementName)
src/service/custom-element-registry.js:222
↓ 9 callers
Method
run
* Sets up message listeners for messages from the AMP page and service * worker. * * @param {?string} allowedOrigin For testing purposes only
extensions/amp-web-push/0.1/amp-web-push-helper-frame.js:388
↓ 9 callers
Method
selectApplicablePlatform_
* Returns most qualified platform. Qualification of a platform is based on * weight. Every platform starts with weight 0 and evaluated against *
extensions/amp-subscriptions/0.1/platform-store.js:529
↓ 9 callers
Method
sendCommand_
* Sends a command to the player through postMessage. * @param {string} command * @param {boolean} opt_arg * @private
extensions/amp-dailymotion/0.1/amp-dailymotion.js:224
↓ 9 callers
Function
sendFakeInfoDeliveryMessage
(yt, iframe, info)
extensions/amp-youtube/0.1/test/test-amp-youtube.js:402
↓ 9 callers
Method
setContainer
* Adds the observer for the specified container. The first observer to * find an intersection will trigger the element's mount. * * @param {!
src/service/scheduler.js:131
↓ 9 callers
Function
setCurrentTime
(video, currentTimeSeconds)
test/unit/test-video-analytics-percentage-tracker.js:43
← previous
next →
1,701–1,800 of 18,703, ranked by callers