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
finish
()
extensions/amp-animation/0.1/test/test-web-animations.js:2096
↓ 8 callers
Method
generateMetadata
* Creates a JSON metadata in which custom stylesheets, extensions * and runtime offsets are recorded. This is used by AMP4ADS at runtime * for e
extensions/amp-ad-network-fake-impl/0.1/amp-ad-metadata-transformer.js:40
↓ 8 callers
Function
generateSerializedAttributes
(opt_sentinel)
test/unit/test-amp-context.js:410
↓ 8 callers
Function
generateUrls
(numUrls, numMacroUrls)
test/unit/test-real-time-config.js:170
↓ 8 callers
Method
getAdUrl
@override
extensions/amp-ad-network-dianomi-impl/0.1/amp-ad-network-dianomi-impl.js:30
↓ 8 callers
Function
getAmpAdTemplateHelper
(target)
extensions/amp-a4a/0.1/amp-ad-template-helper.js:133
↓ 8 callers
Function
getAnalyticsService
(win, el)
extensions/amp-story/1.0/story-analytics.js:63
↓ 8 callers
Function
getChildJsonConfig
(element)
src/core/dom/index.js:534
↓ 8 callers
Function
getConsentMetadata
(element, policyId = 'default')
src/consent.js:65
↓ 8 callers
Method
getContext
* @return {!Object} The context object passed to validators and renderers.
extensions/amp-a4a/0.1/amp-ad-network-base.js:115
↓ 8 callers
Function
getCryptoRandomBytesArray
(win, length)
src/core/types/string/bytes.js:94
↓ 8 callers
Method
getCurrentElement_
* @return {!LightboxElementMetadataDef} * @private
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:666
↓ 8 callers
Method
getCurrentExtensionHolder_
* Returns the holder for the extension currently being registered. * @param {string=} opt_forName Used for logging only. * @return {!ExtensionHo
src/service/extensions-impl.js:559
↓ 8 callers
Method
getCurrentPolicyStatus
* Returns the current consent policy state * @return {CONSENT_POLICY_STATE}
extensions/amp-consent/0.1/consent-policy-manager.js:507
↓ 8 callers
Method
getEncryptedDocumentKey
* Returns encrypted document key if it exists. * This key is needed for requesting a different key * that decrypts locked content on the page.
extensions/amp-subscriptions/0.1/crypto-handler.js:67
↓ 8 callers
Method
getEngagedValue_
Gets the most recent engaged value
extensions/amp-analytics/0.1/session-manager.js:256
↓ 8 callers
Method
getEntitlementForThis
* Returns the first matching entitlement for the current product, * optionally also matching the specified source. * @param {string=} source
third_party/subscriptions-project/swg.js:4404
↓ 8 callers
Function
getEvent
(name, target)
test/unit/utils/test-event-helper.js:20
↓ 8 callers
Method
getFormAsObject_
* Returns form data as an object. * @return {!JsonObject} * @private
extensions/amp-form/0.1/amp-form.js:1221
↓ 8 callers
Function
getFormVerifier
(form, xhr)
extensions/amp-form/0.1/form-verifiers.js:34
↓ 8 callers
Method
getGrantEntitlement
* Returns the entitlement which unlocked the document * @return {!Promise<?Entitlement>}
extensions/amp-subscriptions/0.1/platform-store.js:391
↓ 8 callers
Function
getHashParams
(opt_win)
src/core/types/string/url.js:53
↓ 8 callers
Function
getIns
(itemSrc, params, opt_responsive, opt_beforeLayoutCallback)
extensions/amp-playbuzz/0.1/test/test-amp-playbuzz.js:43
↓ 8 callers
Method
getIntersectionObserver_
* @return {!IntersectionObserver} * @private
extensions/amp-analytics/0.1/visibility-manager.js:753
↓ 8 callers
Function
getKaltura
(attributes, opt_responsive)
extensions/amp-kaltura-player/0.1/test/test-amp-kaltura-player.js:18
↓ 8 callers
Function
getLoggingPrefix
* Returns the formatted logging prefix for the ongoing PR check job * @return {string}
build-system/common/logging.js:39
↓ 8 callers
Method
getMajorVersion
* Returns the major version of the browser. * @return {number}
src/service/platform-impl.js:129
↓ 8 callers
Method
getMetric
* Retrieve a promise for tick label, resolved with metric. Used by amp-analytics * * @param {TickLabel_Enum} label * @return {!Promise<time>}
src/service/performance-impl.js:971
↓ 8 callers
Function
getOpacity
(win)
extensions/amp-fx-collection/0.1/test/integration/test-amp-fx-fade-in.js:130
↓ 8 callers
Method
getParent
* @return {?AmpDoc}
src/service/ampdoc-impl.js:327
↓ 8 callers
Method
getPendingChangeSize
* @return {!./resources-impl.SizeDef|undefined}
src/service/resource.js:404
↓ 8 callers
Function
getRenderedData
()
extensions/amp-date-display/1.0/test/test-amp-date-display.js:33
↓ 8 callers
Method
getReplacementUrl
* Get the replacement url associated with the anchor. * @param {!HTMLElement} anchor * @return {?string} * @public
extensions/amp-skimlinks/0.1/link-rewriter/link-rewriter.js:68
↓ 8 callers
Method
getScrollManager
* Returns the Scroll Managet corresponding to this analytics root. * The Scroll Manager is created lazily as needed, and will handle * calling
extensions/amp-analytics/0.1/analytics-root.js:451
↓ 8 callers
Method
getSeconds
* @return {?number}
third_party/subscriptions-project/swg.js:2515
↓ 8 callers
Function
getServeNpaPromise
(element)
ads/google/a4a/utils.js:1002
↓ 8 callers
Function
getSessionId
()
extensions/amp-addthis/0.1/addthis-utils/session.js:4
↓ 8 callers
Method
getSortTime_
* @param {!Element} elem * @return {time} * @private
extensions/amp-live-list/0.1/amp-live-list.js:940
↓ 8 callers
Function
getSupportedLanguageCode
(candidateLanguageCodes)
extensions/amp-story/1.0/amp-story-localization-service.js:78
↓ 8 callers
Function
getSwgMode
* Check for swg.mode= in url fragemnet if it exists use it * otherwise use the default build mode. * @returns {Object}
third_party/subscriptions-project/swg.js:5532
↓ 8 callers
Function
getTextContent
(element)
extensions/amp-truncate-text/0.1/test/test-amp-truncate-text.js:80
↓ 8 callers
Function
getTiktok
(attrs = {})
extensions/amp-tiktok/0.1/test/test-amp-tiktok.js:61
↓ 8 callers
Method
getViewerUrl
* Returns the promise that will yield the viewer URL value. It's by default * the current page's URL. The trusted viewers are allowed to override t
src/service/viewer-impl.js:555
↓ 8 callers
Function
getter
()
third_party/inputmask/inputmask.js:2516
↓ 8 callers
Method
goToSlide
* Moves the Carousel to a given index. * @param {number} index
extensions/amp-carousel/0.2/amp-carousel.js:281
↓ 8 callers
Method
halt
* Halts the motion. The motion promise will be rejected since the motion * has been interrupted.
src/motion.js:167
↓ 8 callers
Method
hide_
* @protected * @return {*} TODO(#23582): Specify return type
extensions/amp-app-banner/0.1/amp-app-banner.js:137
↓ 8 callers
Function
i
(e)
examples/amp-script/vue-todomvc.js:7
↓ 8 callers
Function
incrementLoadingAds
(win, opt_loadingPromise)
extensions/amp-ad/0.1/concurrent-load.js:79
↓ 8 callers
Method
initializeConfig
* Parses service configuration and determines environment compatibility. * @param {!AmpWebPushConfig} configJson
extensions/amp-web-push/0.1/web-push-service.js:209
↓ 8 callers
Function
insert
(iframe)
test/unit/test-iframe-helper.js:22
↓ 8 callers
Function
installTemplatesServiceForDoc
(ampdoc)
src/service/template-impl.js:343
↓ 8 callers
Function
installVariableServiceForTesting
(ampdoc)
extensions/amp-analytics/0.1/variables.js:548
↓ 8 callers
Function
interceptEventListeners
(target)
testing/fake-dom.js:403
↓ 8 callers
Function
intersectionEntryToJson
(entry)
src/core/dom/layout/intersection.js:81
↓ 8 callers
Function
isAdPositionAllowed
(element, win)
src/ad-helper.js:42
↓ 8 callers
Function
isCachedByCdn
(element, opt_videoElement)
extensions/amp-video/0.1/amp-video.js:1072
↓ 8 callers
Function
isConnectedNode
(node)
src/core/dom/index.js:182
↓ 8 callers
Method
isEnabled
@override
extensions/amp-live-list/0.1/amp-live-list.js:256
↓ 8 callers
Method
isEnabled
* Indicates whether amp-auto-ads should be enabled on this pageview. * @param {!Window} unusedWin * @return {boolean} true if amp-auto-ads shoul
extensions/amp-auto-ads/0.1/ad-network-config.js:26
↓ 8 callers
Function
isInFie
(element)
src/iframe-helper.js:599
↓ 8 callers
Method
isIndexOutofBounds_
* Checks if index is out of bounds. * @private * @param {number} index * @return {boolean}
src/amp-story-player/amp-story-player-impl.js:1955
↓ 8 callers
Method
isKeyboardActive
* Whether the keyboard input is currently active. * @return {boolean}
src/input.js:143
↓ 8 callers
Function
isPrimitive
(e)
third_party/react-dates/bundle.js:1
↓ 8 callers
Method
isProtocolValid
* Returns whether the URL has valid protocol. * Deep link protocol is valid, but not javascript etc. * @param {string|!Location} url * @retur
src/service/url-impl.js:71
↓ 8 callers
Method
isSubscriber
* Returns true if the user is a subscriber. * @return {boolean}
extensions/amp-subscriptions/0.1/entitlement.js:123
↓ 8 callers
Method
isSupported
* Returns true if the page is embedded in CCT and is served by a proxy. * @return {boolean}
src/service/cache-cid-api.js:54
↓ 8 callers
Method
isTooNearAnAd
* Indicates if the given yPosition would be within the specifiec minDistance, * vertically, of an ad that the AdTracker is aware of. * @param {n
extensions/amp-auto-ads/0.1/ad-tracker.js:94
↓ 8 callers
Function
joinFragments
(fragments, renderer = identity)
build-system/server/app-index/html.js:10
↓ 8 callers
Function
jsonConfiguration
(path)
build-system/babel-plugins/babel-plugin-transform-json-configuration/index.js:181
↓ 8 callers
Function
k
(e,t)
examples/amp-script/todomvc.ssr.js:2
↓ 8 callers
Function
makeChildIframeDocWrite
(win)
test/unit/test-3p-environment.js:231
↓ 8 callers
Method
markCrossDomainIframeAsDone
* Called when a creative no longer needs its cross-domain iframe (for * instance, because the creative has been removed from the DOM). * Once al
extensions/amp-analytics/0.1/iframe-transport.js:225
↓ 8 callers
Function
maybeCreateSlotElementLtwh
(left, top, width, height)
extensions/amp-video-docking/0.1/test/test-amp-video-docking.js:1325
↓ 8 callers
Method
measureRootElement_
* Gets the layout rectangle of the root element * @return {!Promise<!../../../src/layout-rect.LayoutRectDef>}
extensions/amp-analytics/0.1/scroll-manager.js:196
↓ 8 callers
Method
method_
* @param {string} method * @private
extensions/amp-video-iframe/0.1/amp-video-iframe.js:416
↓ 8 callers
Function
mockExternalMessages
(messageTemplates)
test/unit/utils/test-log.js:676
↓ 8 callers
Function
mockLoadedSignal
(element, isLoadedSuccessfully)
extensions/amp-auto-lightbox/0.1/test/test-amp-auto-lightbox.js:95
↓ 8 callers
Function
mockSendXhrRequest
* @param {{width: number, height: number}} size * @param {boolean} isAmpCreative
extensions/amp-ad-network-doubleclick-impl/0.1/test/test-amp-ad-network-doubleclick-impl.js:1523
↓ 8 callers
Function
msg
* Gets a message for a given language code, from a map of messages. * @param {!Object<string, string>} map * @param {?string|?Element} languageCodeO
third_party/subscriptions-project/swg-gaa.js:938
↓ 8 callers
Method
next
* Navigates to the next page in the story. * @param {boolean=} isAutomaticAdvance Whether this navigation was caused * by an automatic advan
extensions/amp-story/1.0/amp-story-page.js:1598
↓ 8 callers
Method
normalizeBoundaries_
* Rounds the boundaries for scroll trigger to nearest * SCROLL_PRECISION_PERCENT and returns an object with normalized boundaries * as keys and
extensions/amp-analytics/0.1/events.js:786
↓ 8 callers
Method
observe
(element)
test/unit/test-ini-load.js:106
↓ 8 callers
Method
observe
@param {function(boolean)} handler Takes whether the element is shown.
extensions/amp-fx-collection/0.1/scroll-toggle.js:52
↓ 8 callers
Function
observeBorderBoxSize
(element, callback)
src/core/dom/layout/size-observer.js:81
↓ 8 callers
Method
onClick_
* A click (left or right) on an anchor has happened, * fire NA clicks if needed. * @param {!{linkRewriterId: ?string, anchor: !HTMLElement, clic
extensions/amp-skimlinks/0.1/amp-skimlinks.js:198
↓ 8 callers
Function
onDocumentReady
(doc, callback)
src/core/document/ready.js:30
↓ 8 callers
Method
onEnd
* Sets the callback that will be called when the DOM has been fully * constructed. * @param {function()} unusedCallback
src/utils/dom-writer.js:48
↓ 8 callers
Method
onLayoutMeasure
* @override
extensions/amp-ad/0.1/amp-ad-3p-impl.js:273
↓ 8 callers
Method
onMessage
* @param {string} eventType * @param {function(!JsonObject)} handler * @return {!UnlistenDef}
extensions/amp-story/1.0/amp-story-viewer-messaging-handler.js:133
↓ 8 callers
Method
onMouseDetected
* Registers an event handle in case if the mouse is detected. * @param {function(boolean)} handler * @param {boolean=} opt_fireImmediately *
src/input.js:132
↓ 8 callers
Method
onPageScanned_
* Called only on the first page scan. * Make a fallback call to beacon if no links were founds on the page. * Send the impression tracking once
extensions/amp-skimlinks/0.1/amp-skimlinks.js:128
↓ 8 callers
Method
onVariableUpdate
* Updates a variable with a new value * @param {string} name * @param {*} update
extensions/amp-story/1.0/variable-service.js:141
↓ 8 callers
Method
open
* Opens the dialog with the specified content. * @param {!Element} content * @param {boolean=} showCloseAction * @return {!Promise}
extensions/amp-subscriptions/0.1/dialog.js:87
↓ 8 callers
Method
open_
* Open the specified submenu. * @param {!Element} submenu * @private
extensions/amp-nested-menu/0.1/amp-nested-menu.js:170
↓ 8 callers
Function
p
(e)
third_party/inputmask/bundle.js:5
↓ 8 callers
Function
parse
* @param {string} url * @return {!URL}
src/preact/utils/url.js:29
↓ 8 callers
Function
parseMessage
(message)
extensions/amp-viewer-integration/0.1/messaging/messaging.js:23
↓ 8 callers
Method
parseOptions_
* Reads the element attributes prefixed with option- and returns them as a list. * eg: [ * {optionIndex: 0, text: 'Koala'}, * {opti
extensions/amp-story-interactive/0.1/amp-story-interactive-abstract.js:323
↓ 8 callers
Function
parseQueryString
* Parses and builds Object of URL query string. * @param {string} query The URL query string. * @return {!Object<string, string>}
third_party/subscriptions-project/swg.js:5359
← previous
next →
1,901–2,000 of 18,703, ranked by callers