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
↓ 1 callers
Method
loadWithPolyfill_
* Make the browsers that don't support font loading events to download the * custom font by creating an element (with text) not visible on the view
extensions/amp-font/0.1/fontloader.js:145
↓ 1 callers
Method
load_
* Triggers the font load. Returns promise that will complete when loading * is considered to be complete. * @return {!Promise} * @private
extensions/amp-font/0.1/fontloader.js:79
↓ 1 callers
Function
localizeCtaText
(ctaType, localizationService)
extensions/amp-story-auto-ads/0.1/utils.js:36
↓ 1 callers
Method
logButtonClickEvents_
* Logs button click events. * @private * @nocollapse
third_party/subscriptions-project/swg-gaa.js:2263
↓ 1 callers
Method
logCustomAnalytics_
* @param {string} eventType * @param {!{[key: string]: string}} vars
src/service/video-manager-impl.js:576
↓ 1 callers
Function
logError
* Logs a test error * * @param {string} testName * @param {Error} err
build-system/tasks/server-tests.js:132
↓ 1 callers
Function
logNpmVersion
* If npm is being run, log its version and proceed with the install.
build-system/common/check-package-manager.js:191
↓ 1 callers
Function
logServeMode
* Logs the server's mode.
build-system/server/app-utils.js:46
↓ 1 callers
Function
logTestError
* Logs a test error (regardless of where it's running). * * @param {!TestErrorDef} testError object as created by addTestError.
build-system/tasks/visual-diff/index.js:223
↓ 1 callers
Function
logValidationResult
* Log validation result to the console, distinguishing warnings and errors. * @param {!Object} validationResult * @param {string} url
validator/cpp/engine/wasm/validator.js:176
↓ 1 callers
Function
logValidationResult
* Logs a validation result to the console using process.stdout and * process.stderr as is appropriate. * @param {string} filename * @param {!Valida
validator/js/nodejs/index.js:351
↓ 1 callers
Function
lookupEntity
* Decodes an HTML entity. * * {\@updoc * $ lookupEntity('lt') * # '<' * $ lookupEntity('GT') * # '>' * $ lookupEntity('amp') *
third_party/caja/html-sanitizer.js:1532
↓ 1 callers
Method
loop_
@private
3p/3d-gltf/animation-loop.js:48
↓ 1 callers
Function
lr
(e)
examples/amp-script/vue-todomvc.js:7
↓ 1 callers
Function
lu
(n,t,e)
third_party/d3/d3.js:2
↓ 1 callers
Function
m
(n)
third_party/d3/d3.js:1
↓ 1 callers
Function
m
(o,l,d)
third_party/inputmask/bundle.js:11
↓ 1 callers
Function
ma
(e)
examples/amp-script/vue-todomvc.js:7
↓ 1 callers
Function
ma
(e,a)
third_party/react-dates/bundle.js:1
↓ 1 callers
Function
ma
(a,b,c)
third_party/wgxpath/wgxpath.js:32
↓ 1 callers
Function
main
* Runs checks for the package manager and tooling being used. * @return {Promise}
build-system/common/check-package-manager.js:255
↓ 1 callers
Function
main
* Main functions for the release tagger * @return {Promise<void>}
build-system/release-tagger/index.js:93
↓ 1 callers
Function
main
* Main entry point into the command line tool.
validator/js/nodejs/index.js:376
↓ 1 callers
Function
makeCorrelator
* @param {string} pageViewId * @param {string=} opt_clientId * @return {number}
ads/google/a4a/utils.js:516
↓ 1 callers
Function
makeCorrelator
* @param {string} pageViewId * @param {string=} opt_clientId * @return {number}
extensions/amp-ad-network-valueimpression-impl/0.1/amp-ad-network-valueimpression-impl.js:585
↓ 1 callers
Function
makeCrcTable
* Generates CRC lookup table. * @return {!Array<number>}
extensions/amp-analytics/0.1/crc32.js:38
↓ 1 callers
Function
makeCrcTable
* Generates CRC lookup table. * @return {!Array<number>}
extensions/amp-consent/0.1/crc32.js:38
↓ 1 callers
Function
makeHtmlSanitizer
* Returns a function that strips unsafe tags and attributes from html. * @param {defs.TagPolicy} tagPolicy * A function that takes (tagName,
third_party/caja/html-sanitizer.js:2080
↓ 1 callers
Function
makeIOsScrollable
* If scrolling is allowed for the iframe, wraps the element into a container * that is scrollable because iOS auto expands iframes to their size. *
extensions/amp-iframe/0.1/amp-iframe.js:837
↓ 1 callers
Method
makeIframe_
* @protected *
extensions/amp-access-scroll/0.1/scroll-bar.js:37
↓ 1 callers
Method
makeIframe_
* @private *
extensions/amp-access-scroll/0.1/scroll-sheet.js:80
↓ 1 callers
Function
makeInactiveElementSpec
(selector)
extensions/amp-ad-exit/0.1/filters/inactive-element.js:45
↓ 1 callers
Function
makeIntersectionEntry
(boundingClientRect, rootBounds)
extensions/amp-analytics/0.1/test/test-visibility-manager.js:1126
↓ 1 callers
Function
makeJwplayerIframeSrc
( playerId, playlistId, mediaId, contentSearch, contentRecency, contentBackfill, queryParams,
src/bento/apis/jwplayer-api.js:15
↓ 1 callers
Function
makeMessage
* Makes message to handle different media methods * @param {string} apiMethod * @param {*} options * @return {string} message to post to video ifra
src/bento/components/bento-jwplayer/1.0/component.js:128
↓ 1 callers
Function
makeMethodMessage
(method)
extensions/amp-video/1.0/test/test-video-iframe.js:209
↓ 1 callers
Function
makeSaxParser
* Given a SAX-like event handler, produce a function that feeds those * events and a parameter to the event handler. * * The event handler ha
third_party/caja/html-sanitizer.js:1690
↓ 1 callers
Function
makeScopeMatcher
(scopeSelector)
third_party/webcomponentsjs/ShadowCSS.js:201
↓ 1 callers
Function
makeTagPolicy
* Creates a tag policy that omits all tags marked UNSAFE in html4-defs.js * and applies the default attribute sanitizer with the supplied policy fo
third_party/caja/html-sanitizer.js:2414
↓ 1 callers
Function
manageWin_
* @param {!Window} win
3p/environment.js:43
↓ 1 callers
Method
manuallyDiffElement_
* @param {!Element} before * @param {!Element} after * @private
extensions/amp-list/0.1/amp-list.js:1247
↓ 1 callers
Function
map
* Returns a map-like object. * If initial is provided, copies its own properties into the * newly created object. * @param {Object=} initial This s
third_party/subscriptions-project/swg.js:3046
↓ 1 callers
Function
map
* Returns a map-like object. * If initial is provided, copies its own properties into the * newly created object. * @param {Object=} initial This s
third_party/subscriptions-project/swg-gaa.js:726
↓ 1 callers
Function
mapFromTokensArray
* Returns the given tokens array as a dictionary of key: token (str) and * value: number of occurrences.
src/bento/components/bento-autocomplete/1.0/component/token-prefix-match.ts:16
↓ 1 callers
Function
mapToReactBuild
* @param {string} requestPath * @return {string}
build-system/tasks/storybook/env/react/webpack.config.js:18
↓ 1 callers
Function
marginStartAsserts
* @param {!Element} element * @return {number} [data-margin-start] value
extensions/amp-fx-collection/0.1/providers/amp-fx-presets.js:74
↓ 1 callers
Method
markAsLoaded_
@private
extensions/amp-story-360/0.1/amp-story-360.js:748
↓ 1 callers
Method
markContainerForDiffing_
* @param {!Element} container * @private
extensions/amp-list/0.1/amp-list.js:1229
↓ 1 callers
Method
markDomainsAsUnknown_
* For each domain in the list, set the affiliate status to "unknown" in * the cache. This allows us to keep track of what domains have already been
extensions/amp-skimlinks/0.1/affiliate-link-resolver.js:220
↓ 1 callers
Method
markMediaElementsWithPreload_
* Marks any AMP elements that represent media elements with preload="auto". * @private
extensions/amp-story/1.0/amp-story-page.js:624
↓ 1 callers
Method
markPageAsLoaded_
@private
extensions/amp-story/1.0/amp-story-page.js:977
↓ 1 callers
Method
markStoryAsLoaded_
@private
extensions/amp-story/1.0/amp-story.js:1232
↓ 1 callers
Function
markTextRange
* @param {!Window} win * @param {!TextPosDef} start * @param {!TextPosDef} end * @param {!Array<TextRangeDef>} ranges Other ranges * @param {numbe
extensions/amp-viewer-integration/0.1/findtext.js:349
↓ 1 callers
Function
mask
(elem)
third_party/inputmask/inputmask.js:2479
↓ 1 callers
Function
massageSourcemaps
* @param {Array<Object|string>} mapChain * @param {string} destFile * @param {*} options * @return {object}
build-system/tasks/sourcemaps.js:31
↓ 1 callers
Method
master_
@return {!Window}
3p/ampcontext-integration.js:66
↓ 1 callers
Method
matchActionInfos_
* @param {!Element} node * @param {string} actionEventType * @return {?Array<!ActionInfoDef>}
src/service/action-impl.js:766
↓ 1 callers
Function
matchChild
* @param {HTMLElement} element * @param {{[key: string]: AmpElementProp}} defs * @return {string|null}
src/preact/parse-props.js:309
↓ 1 callers
Method
matchCountryGroups_
* Find matching country groups * @param {object} config
extensions/amp-geo/0.1/amp-geo.js:398
↓ 1 callers
Method
matchSubtargets_
* @param {!Element} target * @param {number} index * @param {!WebAnimationSelectorDef} spec * @return {!WebAnimationSelectorDef}
extensions/amp-animation/0.1/web-animations.js:654
↓ 1 callers
Method
matchesAttrPrefix_
* @param {null|string} attributeName * @param {string|undefined} attributePrefix * @return {boolean} * @private
extensions/amp-date-display/0.1/amp-date-display.js:203
↓ 1 callers
Method
matchesDate_
* Determines if any internal moment object matches the given date. * @param {!Date} date * @return {boolean} * @private
extensions/amp-date-picker/1.0/component/dates-list.js:119
↓ 1 callers
Method
matchesDate_
* Determines if any internal moment object matches the given date. * @param {!moment} date * @return {boolean} * @private
extensions/amp-date-picker/0.1/dates-list.js:87
↓ 1 callers
Method
matchesRrule_
* Determines if any internal RRULE object matches the given date. * @param {!Date} date * @return {boolean} * @private
extensions/amp-date-picker/1.0/component/dates-list.js:129
↓ 1 callers
Method
matchesRrule_
* Determines if any internal RRULE object matches the given date. * @param {!moment} date * @return {boolean} * @private
extensions/amp-date-picker/0.1/dates-list.js:97
↓ 1 callers
Method
matches_
* @param {!Element} element * @param {string} selector * @return {boolean} * @private
src/service/fixed-layer.js:1152
↓ 1 callers
Function
maybeAddAmpFragment
* @param {string} src * @return {string}
extensions/amp-video-iframe/0.1/amp-video-iframe.js:76
↓ 1 callers
Method
maybeAddFreeEntitlement_
* Adds entitlement on free pages. * @param {PlatformStore} platformStore * @private
extensions/amp-subscriptions/0.1/amp-subscriptions.js:866
↓ 1 callers
Method
maybeAddLoaderAnimation_
* Adds a combination of spinner/logo if element is eligible based on * certain heuristics.
extensions/amp-loader/0.1/amp-loader.js:139
↓ 1 callers
Method
maybeAddLoadingBackground_
* Add a gray loading background if needed based on the element's content * and tagName. * @private
extensions/amp-loader/0.1/amp-loader.js:227
↓ 1 callers
Method
maybeAddStoryExperimentId_
* Add a story experiment ID in order to slice the data for amp-story. * @return {!Promise} * @private
src/service/performance-impl.js:372
↓ 1 callers
Function
maybeAppendChildren
* @param {!Document} document * @param {!Element} parent * @param {?Array<Array<string|Object>>} childrenDef * an array of [tagName, attributes]
ads/google/ima/ima-video.js:305
↓ 1 callers
Method
maybeAppendLinker_
* Appends the linker param if the given url falls within rules defined in * linker configuration. * @param {string} url * @param {string} nam
extensions/amp-analytics/0.1/linker-manager.js:266
↓ 1 callers
Method
maybeApplyDesktopAspectRatioAttribute_
* Grab the desktop-aspect-ratio attribute, clamp the value * between 1/2 and 3/4 aspect ratios, and apply it to the root element. * @private
extensions/amp-story/1.0/amp-story.js:482
↓ 1 callers
Method
maybeApplyFirstAnimationFrameOrFinish
* Apply first or last frame of animations if page should play them or not. * @return {!Promise}
extensions/amp-story/1.0/amp-story-page.js:1375
↓ 1 callers
Function
maybeBuild
* Build runtime with sourcemaps if needed.
build-system/tasks/check-sourcemaps.js:23
↓ 1 callers
Method
maybeBuild
* @return {Promise<void>}
build-system/tasks/runtime-test/runtime-test-base.js:309
↓ 1 callers
Method
maybeBuildAttribution_
@private
extensions/amp-story/1.0/amp-story-system-layer.js:364
↓ 1 callers
Method
maybeCollapse_
* Collapses the component, unless the event came from an element that is * actionable. * @param {!Event} event
extensions/amp-truncate-text/0.1/amp-truncate-text.js:235
↓ 1 callers
Method
maybeConvertCtaLayerToPageOutlink_
* @private * @return {Element}
extensions/amp-story/1.0/amp-story-page.js:292
↓ 1 callers
Method
maybeCreateAnimationManager_
* @private
extensions/amp-story/1.0/amp-story-page.js:274
↓ 1 callers
Method
maybeCreateCloseButtonHeader_
* Creates a top bar with close button if the attribute close-button is set. For ads * @private
extensions/amp-lightbox/0.1/amp-lightbox.js:397
↓ 1 callers
Method
maybeDeprecationWarn_
@private
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:538
↓ 1 callers
Function
maybeEllipsizeNode
* Either clears or ellipsizes the node, depending on whether or not the * ellpsized version would still result in a given container overflowing. * @
extensions/amp-truncate-text/0.1/truncate-text.js:255
↓ 1 callers
Method
maybeEnableMetering_
* Enables metering, if a platform needs it. * @private
extensions/amp-subscriptions/0.1/amp-subscriptions.js:896
↓ 1 callers
Method
maybeExecuteRealTimeConfig
* For a given A4A Element, sends out Real Time Config requests to * any urls or vendors specified by the publisher. * @param {!Element} element
src/service/real-time-config/real-time-config-impl.js:94
↓ 1 callers
Method
maybeExecute_
* @param {string} method * @private
src/video-iframe-integration.js:159
↓ 1 callers
Method
maybeExpandMessageArgs_
* @param {!Array} args * @return {!Array} * @private
src/utils/log.js:333
↓ 1 callers
Function
maybeExpandUrlParams
* Handle click on links and replace variables in the click URL. * The function changes the actual href value and stores the * template in the ORIGIN
src/service/navigation.js:748
↓ 1 callers
Method
maybeExpand_
* Expands the component, unless the event came from an element that is * actionable. * @param {!Event} event
extensions/amp-truncate-text/0.1/amp-truncate-text.js:226
↓ 1 callers
Method
maybeFetchAndAutocomplete_
* First fetches if data is dynamic, then updates user input and * displays autocomplete suggestions against it. * @return {!Promise}
extensions/amp-autocomplete/0.1/amp-autocomplete.js:611
↓ 1 callers
Method
maybeFetchRealTimeConfig
* Fetch a real time config if appropriate. * * Note that we don't return the skuMap, instead we save it. * The creates an intentional race co
extensions/amp-subscriptions-google/0.1/amp-subscriptions-google.js:429
↓ 1 callers
Method
maybeFinishAnimations_
* Finishes playing animations instantly, if the animation manager is * available. * @private
extensions/amp-story/1.0/amp-story-page.js:1362
↓ 1 callers
Method
maybeForceAdPlacement_
* Development mode forces navigation to ad page for better dev-x. * @param {StoryAdPage} adPage
extensions/amp-story-auto-ads/0.1/amp-story-auto-ads.js:394
↓ 1 callers
Method
maybeGenerateSizes_
* This function automatically generates sizes for amp-imgs without * the sizes attribute. * @param {boolean} sync Whether to immediately make th
src/builtins/amp-img/amp-img.js:236
↓ 1 callers
Function
maybeGetCidFromCookieOrBackup
* Maybe gets the CID from cookie or, if allowed, gets backup CID * from Storage. * @param {!Cid} cid * @param {!GetCidDef} getCidStruct * @return
src/service/cid-impl.js:412
↓ 1 callers
Method
maybeGetLAAEntitlement_
* Returns a LAA entitlement for this article, if it's appropriate. * @return {!Promise<?Entitlement>} * @private
extensions/amp-subscriptions-google/0.1/amp-subscriptions-google.js:521
↓ 1 callers
Method
maybeGetMessagingOrigin
@override
src/service/viewer-impl.js:560
↓ 1 callers
Function
maybeGetUnminifiedName
* Gets the unminified name of the bundle if it can be lazily built. * * @param {!Object} bundles * @param {string} name * @return {string}
build-system/server/lazy-build.js:29
↓ 1 callers
Method
maybeHeightChanged
@override
src/service/resources-impl.js:566
← previous
next →
10,201–10,300 of 18,703, ranked by callers