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
↓ 5 callers
Function
compileJison
* Builds parsers for extensions with *.jison files. * Uses jison file path to name the parser to export. * For example, css-expr-impl.jison creates
build-system/tasks/compile-jison.js:30
↓ 5 callers
Function
compileJs
* Bundles (max) or compiles (min) a given JavaScript file entry point. * * @param {string} srcDir Path to the src directory * @param {string} srcFi
build-system/tasks/helpers.js:532
↓ 5 callers
Function
composeMetadataStoreValue
(consentInfoMetadata)
extensions/amp-consent/0.1/consent-info.js:410
↓ 5 callers
Function
concat
(transitions, opt_delimiter = ' ')
src/core/dom/transition.js:31
↓ 5 callers
Function
connectHostname
(config)
extensions/amp-access-scroll/0.1/scroll-url.js:23
↓ 5 callers
Function
convertStorageMetadata
(storageMetadata)
extensions/amp-consent/0.1/consent-info.js:443
↓ 5 callers
Function
countIntervals
()
extensions/amp-analytics/0.1/test/test-events.js:1166
↓ 5 callers
Function
createAmpElementMock
(tag = 'div', attrs = {})
extensions/amp-video-docking/0.1/test/test-amp-video-docking.js:37
↓ 5 callers
Function
createCUID
()
extensions/amp-addthis/0.1/addthis-utils/cuid.js:62
↓ 5 callers
Method
createCacheUrl
* * @param {string} url * @param {string=} cacheDomain the cache domain name (eg: cdn.approject.org) * @return {!Promise<string>}
extensions/amp-cache-url/0.1/amp-cache-url.js:17
↓ 5 callers
Function
createContainer
* Create DOM element for all Facebook embeds. * @param {!Window} global * @param {string} classNameSuffix The suffix for the `fb-` class. * @param
3p/facebook.js:48
↓ 5 callers
Function
createElement
()
test/unit/test-owners.js:42
↓ 5 callers
Function
createElementWithResource
( id, state = ResourceState_Enum.LAYOUT_COMPLETE )
test/unit/test-owners.js:48
↓ 5 callers
Function
createFileStub
(name)
validator/js/gulpjs/test/validate.js:174
↓ 5 callers
Function
createForm
()
extensions/amp-analytics/0.1/test/test-linker-manager.js:1077
↓ 5 callers
Function
createImplTag
* Instantiates element and impl, adding the former to the document of the * iframe. * @param {!{width, height, type}} config
extensions/amp-ad-network-adsense-impl/0.1/test/test-amp-ad-network-adsense-impl.js:107
↓ 5 callers
Function
createLdJsonTag
(content)
extensions/amp-auto-lightbox/0.1/test/test-amp-auto-lightbox.js:622
↓ 5 callers
Function
createShadowDomWriter
(win)
src/shadow-embed.js:341
↓ 5 callers
Function
debug
* Output debugging information when developing changes in this functionality. * * @param {string} lifecycle * @param {string} fullpath * @param {?
build-system/compile/debug-compilation-lifecycle.js:24
↓ 5 callers
Function
dedupe
* Remove duplicates from the given array. * @param {!Array<string>} arr * @return {!Array<string>}
build-system/tasks/extension-helpers.js:318
↓ 5 callers
Function
deg2rad
* @param {number} deg * @return {number} *
extensions/amp-story-360/0.1/amp-story-360.js:113
↓ 5 callers
Method
delegateActionToLocal
* Delegates actions to local platform. * @param {string} action * @param {?string} sourceId * @return {!Promise<boolean>}
extensions/amp-subscriptions/0.1/service-adapter.js:67
↓ 5 callers
Function
dependsOnStoryServices
(klass)
extensions/amp-story/1.0/utils.js:336
↓ 5 callers
Method
deref
@return {Element|undefined}
src/core/data-structures/dom-based-weakref.js:40
↓ 5 callers
Function
disableScrollingOnIframe
(iframe)
src/iframe-helper.js:547
↓ 5 callers
Method
disconnect
()
test/unit/polyfills/test-intersection-observer.js:38
↓ 5 callers
Function
displayWarning
* Display warning in browser console * @param {?string} message Warning to be displayed
extensions/amp-embedly-card/1.0/component.js:94
↓ 5 callers
Method
doPass_
* The pass that decides which recognizers can start emitting and which * are canceled. * @private
src/gesture.js:465
↓ 5 callers
Function
domFingerprintPlain
(element)
src/core/dom/fingerprint.js:34
↓ 5 callers
Function
el
(id)
test/unit/core/context/test-node-subscribers.js:55
↓ 5 callers
Function
elements
* @param {!Element|!Array<!Element>} elements * @return {!Array<!Element>}
src/service/owners-impl.js:16
↓ 5 callers
Method
enqueue_
* @param {function():!Promise<RESULT>} callback * @param {string} name * @return {!Promise<RESULT>} * @template RESULT * @private
src/service/history-impl.js:238
↓ 5 callers
Method
enterFullOverlayMode
* @return {!Promise}
src/friendly-iframe-embed.js:591
↓ 5 callers
Method
enterFullscreen_
* Enter the fullscreen state for the UI
extensions/amp-consent/0.1/consent-ui.js:442
↓ 5 callers
Method
enterLightboxMode
@override
src/inabox/inabox-viewport.js:298
↓ 5 callers
Method
enterOverlayMode
@override
src/inabox/inabox-viewport.js:310
↓ 5 callers
Method
execute_
* Invoke the action defined on the macro. * @param {!../../../src/service/action-impl.ActionInvocation} invocation * @private
extensions/amp-action-macro/0.1/amp-action-macro.js:50
↓ 5 callers
Method
expandFrame
* Expands an iframe to full overlay. * @param {!HTMLIFrameElement} iframe * @param {!Function} callback Gets executed when expanded with the new
ads/inabox/frame-overlay-manager.js:48
↓ 5 callers
Method
expandMessageArgs_
* Either redirects a pair of (errorId, ...args) to a URL where the full * message is displayed, or displays it from a fetched table. * * This
src/utils/log.js:351
↓ 5 callers
Method
expandStringSync
* Synchronously expands the provided source by replacing all known variables * with their resolved values. Optional `opt_bindings` can be used to a
src/service/url-replacements-impl.js:850
↓ 5 callers
Method
expansionOptions_
* @param {!JsonObject|!./events.AnalyticsEvent} source1 * @param {!JsonObject} source2 * @param {number=} opt_iterations * @param {boolean=}
extensions/amp-analytics/0.1/amp-analytics.js:849
↓ 5 callers
Function
expectFe
(actual, expected)
test/unit/test-fixed-layer.js:438
↓ 5 callers
Function
expectPostMessage
(sourceWin, targetwin, msg)
testing/iframe.js:434
↓ 5 callers
Function
extractTitle
(root)
extensions/amp-apester-media/0.1/utils.js:95
↓ 5 callers
Function
f
(e,t)
examples/amp-script/todomvc.ssr.js:2
↓ 5 callers
Method
fireDelayedImpressions
* @param {string} impressions * @param {boolean=} scrubReferer * @visibleForTesting
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:1643
↓ 5 callers
Method
firstLayoutCompleted
* Called when video is first loaded. * @override
extensions/amp-video/0.1/amp-video.js:983
↓ 5 callers
Function
flush
Awaits N times. Allows promises to resolve.
extensions/amp-subscriptions-google/0.1/test/test-amp-subscriptions-google.js:205
↓ 5 callers
Function
fn
()
build-system/babel-plugins/babel-plugin-nomodule-loader/test/fixtures/transform/export-default/input.mjs:1
↓ 5 callers
Method
forceChangeSize
@override
src/service/mutator-impl.js:53
↓ 5 callers
Method
forceCollapse
* Forces the UI Handler to collapse this slot. * @visibleForTesting
extensions/amp-a4a/0.1/amp-a4a.js:1655
↓ 5 callers
Function
format
* @param {Array<string>} files * @return {object}
build-system/tasks/make-extension/format.js:7
↓ 5 callers
Function
fr
(e,t,n,r,i)
examples/amp-script/vue-todomvc.js:7
↓ 5 callers
Function
ge
(e)
third_party/react-dates/bundle.js:1
↓ 5 callers
Method
generate
* Calculates ad slot DOM fingerprint. This key is intended to * identify "same" ad unit across many page views. This is * based on where the ad
src/core/dom/fingerprint.js:61
↓ 5 callers
Function
generateCircleCiShardTestFileList
* Generates a file with a comma-separated list of test file paths that CircleCI * should execute in a parallelized job shard. * * @param {!Array<st
build-system/pr-check/utils.js:240
↓ 5 callers
Function
generateSentinel
(parentWindow)
src/3p-frame.js:408
↓ 5 callers
Function
getAdCid
(adElement)
src/ad-cid.js:13
↓ 5 callers
Method
getAdCount
* @return {number}
extensions/amp-auto-ads/0.1/ad-tracker.js:77
↓ 5 callers
Function
getAliasDefinition
()
extensions/amp-inputmask/0.1/inputmask-custom-alias.js:19
↓ 5 callers
Method
getAmpElement
* Searches the AMP element that matches the selector within the scope of the * analytics root in relationship to the specified context node. *
extensions/amp-analytics/0.1/analytics-root.js:306
↓ 5 callers
Function
getAttributeMutationDefaultUrl
(value)
extensions/amp-experiment/1.0/test/test-attribute-mutation.js:63
↓ 5 callers
Method
getAuthdataField
@override from AccessVars
extensions/amp-subscriptions/0.1/amp-subscriptions.js:197
↓ 5 callers
Method
getAuthorizationUrl
* @return {string}
extensions/amp-access/0.1/amp-access-client.js:89
↓ 5 callers
Method
getBestRtcCallout_
* Chooses RTC callout with highest bid price * @param {Array<Object>} rtcResponseArray * @return {object}
extensions/amp-ad-network-smartadserver-impl/0.1/amp-ad-network-smartadserver-impl.js:243
↓ 5 callers
Method
getBodyElement_
* @return {!Element} * @private
extensions/amp-subscriptions/0.1/renderer.js:31
↓ 5 callers
Function
getContextMetadata
( parentWindow, element, sentinel, attributes )
src/iframe-attributes.js:21
↓ 5 callers
Function
getCorsUrl
(win, url)
src/url.js:607
↓ 5 callers
Function
getDelightPlayer
(attributes)
extensions/amp-delight-player/0.1/test/test-amp-delight-player.js:30
↓ 5 callers
Function
getDetailsForMeta
(meta)
extensions/amp-addthis/0.1/addthis-utils/meta.js:8
↓ 5 callers
Method
getDialog
* Returns the singleton Dialog instance * @return {!./dialog.Dialog}
extensions/amp-subscriptions/0.1/service-adapter.js:23
↓ 5 callers
Method
getDimension
* Returns the dimension: "w" for width or "h" for height. * @return {?string}
extensions/amp-animation/0.1/parsers/css-expr-ast.js:92
↓ 5 callers
Method
getDoc_
* @return {!Document} * @private
extensions/amp-video-docking/0.1/amp-video-docking.js:509
↓ 5 callers
Function
getDots
()
extensions/amp-inline-gallery/1.0/test/test-amp-inline-gallery.js:100
↓ 5 callers
Method
getDuration
@override
extensions/amp-slikeplayer/0.1/amp-slikeplayer.js:404
↓ 5 callers
Function
getElementId
* @param {!Element} element * @return {number}
extensions/amp-analytics/0.1/visibility-manager.js:37
↓ 5 callers
Function
getElementsToAriaHide
(element)
src/core/dom/modal.js:44
↓ 5 callers
Method
getEntitlementPromiseFor
* Returns entitlement for a platform once it's resolved. * @param {string} platformKey * @return {!Promise<!./entitlement.Entitlement>} entitlem
extensions/amp-subscriptions/0.1/platform-store.js:274
↓ 5 callers
Method
getEntitlements_
* Internal function to wrap SwG decryption handling * @param {!SubscriptionPlatformInterface} platform * @return {!Promise<?./entitlement.Entitl
extensions/amp-subscriptions/0.1/amp-subscriptions.js:450
↓ 5 callers
Method
getEstimatedPosition
* An estimate of the y-position of the placement based on the position of its * anchor. This is known to not be completely reliable, since the posi
extensions/amp-auto-ads/0.1/placement.js:144
↓ 5 callers
Function
getEventParams$1
* @param {string} sku * @param {?string=} subscriptionFlow * @return {!EventParams}
third_party/subscriptions-project/swg.js:5682
↓ 5 callers
Function
getExtendedElements
* @param {!Window} win * @return {!{[key: string]: typeof ../base-element.BaseElement}}
src/service/custom-element-registry.js:22
↓ 5 callers
Function
getFilesFromArgv
* Extracts the list of files from argv.files. Throws an error if no matching * files were found. * * @return {Array<string>}
build-system/common/utils.js:78
↓ 5 callers
Function
getFormattedDate
( date: Date, dateFormat = ISO_8601, locale = DEFAULT_LOCALE )
extensions/amp-date-picker/1.0/date-helpers.ts:15
↓ 5 callers
Method
getGrantStatus
* @return {!Promise<boolean>}
extensions/amp-subscriptions/0.1/platform-store.js:335
↓ 5 callers
Function
getHelperIframe
* Returns the iframe in this testing AMP iframe that partially matches the * URL set in the test config. Partial matches are possible only since
extensions/amp-web-push/0.1/test/test-web-push-service.js:211
↓ 5 callers
Function
getIOSAppInfo
()
extensions/amp-app-banner/1.0/utils/ios.js:17
↓ 5 callers
Function
getIframeSrc
(fixture = null)
extensions/amp-video-iframe/0.1/test/test-amp-video-iframe.js:43
↓ 5 callers
Function
getImportResolver
* Import map configuration. * @param {'preact' | 'react' | null} buildFor determines whether to include preact or react aliases or neither. By defaul
build-system/babel-config/import-resolver.js:64
↓ 5 callers
Function
getInObEntry
()
extensions/amp-ad/0.1/test/test-legacy-ad-intersection-observer-host.js:26
↓ 5 callers
Method
getIndexById
* @param {string} pageId * @return {number}
extensions/amp-story-auto-ads/0.1/story-ad-page-manager.js:155
↓ 5 callers
Function
getInternalVideoElementFor
(element)
src/core/dom/video/index.js:77
↓ 5 callers
Function
getIntersectionChangeEntry
(element, owner, hostViewport)
src/utils/intersection-observer-3p-host.js:50
↓ 5 callers
Method
getLastActivationTime
* The time of the last activation. * @return {time}
extensions/amp-script/0.1/user-activation-tracker.js:77
↓ 5 callers
Method
getLastDequeueTime
* Last time a task was dequeued. * @return {!time}
src/service/task-queue.js:61
↓ 5 callers
Method
getLoginUrl
* @return {!Promise<string>}
extensions/amp-access/0.1/login-dialog.js:191
↓ 5 callers
Method
getMatchingMediaElementFromPool_
* Retrieves the media element from the pool that matches the specified * element, if one exists. * @param {!MediaType_Enum} mediaType The type o
extensions/amp-story/1.0/media-pool.js:366
↓ 5 callers
Method
getMeasureableFrame
* Returns whichever window in win's parent hierarchy is the deepest window * that is measurable from the perspective of the current window. * Fo
ads/inabox/inabox-messaging-host.js:310
↓ 5 callers
Method
getMediaBySelector_
* Gets media on page by given selector. Finds elements through friendly * iframe (if one exists). * @param {string} selector * @return {!Arra
extensions/amp-story/1.0/amp-story-page.js:1024
↓ 5 callers
Function
getMegaphone
(mediaid, isPlaylist, opt_attrs)
extensions/amp-megaphone/0.1/test/test-amp-megaphone.js:29
← previous
next →
2,801–2,900 of 18,703, ranked by callers