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
maybeHideOverlay_
* Hides the overlay (mask element, and lock scrolling) * if the overlay is enabled * @private
extensions/amp-consent/0.1/consent-ui.js:810
↓ 1 callers
Method
maybeIncludeSubmitButton_
* If a submit button is focused (because it was used to submit the form), * or was the first submit button present, add its name and value to the
src/form-data-wrapper.js:137
↓ 1 callers
Method
maybeInitializeDefaultSticker_
@private
extensions/amp-story-audio-sticker/0.1/amp-story-audio-sticker.js:159
↓ 1 callers
Method
maybeInitializeFromUrl_
* Initialize form fields from query parameter values if attribute * 'data-initialize-from-url' is present on the form and attribute * 'data-allo
extensions/amp-form/0.1/amp-form.js:1329
↓ 1 callers
Method
maybeInstallPositionObserver_
* @private
extensions/amp-position-observer/0.1/amp-position-observer.js:461
↓ 1 callers
Method
maybeLoadStoryDevTools_
* Loads amp-story-dev-tools if it is enabled. * @private * @return {boolean}
extensions/amp-story/1.0/amp-story.js:2708
↓ 1 callers
Method
maybeLoadStoryEducation_
* Loads amp-story-education if the viewer capability is provided. * @private
extensions/amp-story/1.0/amp-story.js:2239
↓ 1 callers
Method
maybeLockScreenOrientation_
@private
extensions/amp-story/1.0/amp-story.js:986
↓ 1 callers
Function
maybeModifyCdnUrl
( node: posthtml.Node, options: OptionSet )
build-system/server/new-server/transforms/cdn/cdn-transform.ts:13
↓ 1 callers
Function
maybeMutate
(root)
extensions/amp-auto-lightbox/0.1/test/test-amp-auto-lightbox.js:127
↓ 1 callers
Method
maybeOpenOffersFlow_
* @param {SubscribeResponse} response * @private
third_party/subscriptions-project/swg.js:6634
↓ 1 callers
Function
maybeOverridePercyEnvironmentVariables
* Override PERCY_* environment variables if passed via amp task parameters.
build-system/tasks/visual-diff/index.js:103
↓ 1 callers
Function
maybeParallelizeCommand
* Splits command execution using a glob string on parallelized CircleCI builds. * * If no parallelization is detected, simply returns the command as
build-system/pr-check/parallelization.js:30
↓ 1 callers
Method
maybeParseQueryString_
* Maybe parse the url if the key is found. Return the value * if found, null otherwise. Do no remove LINKER_PARAM from * window location. * @
extensions/amp-consent/0.1/linker-reader.js:53
↓ 1 callers
Function
maybePrefixExampleDocHref
(basepath, name, htmlEnvelopePrefix)
build-system/server/app-index/file-list.js:41
↓ 1 callers
Function
maybePumpEarlyFrame
* If it makes sense, let the browser paint the current frame before * executing the callback. * @param {!Window} win * @param {function()} cb Callb
src/runtime.js:510
↓ 1 callers
Method
maybeRegisterInlineLocalizationStrings_
* If there are inline localization strings, register as current document language. * @param {string} languageCode * @return {boolean} * @priv
extensions/amp-story/1.0/amp-story.js:2765
↓ 1 callers
Function
maybeRemoveResizeBehavior
* Remove the resize behavior if a user drags the resize handle and changes * the height of the textarea. * @param {!Element} element * @param {numb
extensions/amp-form/0.1/amp-form-textarea.js:223
↓ 1 callers
Method
maybeRemoveSrAlert_
* Remove the SR alert from the DOM once it has been shown once
extensions/amp-consent/0.1/consent-ui.js:743
↓ 1 callers
Method
maybeRenderCloseButtonHeader_
* Renders close button header. For ads * @private
extensions/amp-lightbox/0.1/amp-lightbox.js:411
↓ 1 callers
Function
maybeRenderInaboxAsStoryAd
(ampdoc)
src/inabox/inabox-story-ad.js:18
↓ 1 callers
Method
maybeRenderLoadMoreTemplates_
* @param {!JsonObject} data * @return {!Promise} * @private
extensions/amp-list/0.1/amp-list.js:967
↓ 1 callers
Method
maybeRenderSeparatorTemplate_
* Renders the template inside the separator element using * data from the current article (if a template is present) * otherwise rehydrates the
extensions/amp-next-page/1.0/service.js:996
↓ 1 callers
Function
maybeReplaceSrcWithSourceElement
* If present, moves the src attribute to a source element to enable playing * from multiple sources: the cached ones and the fallback initial src. *
extensions/amp-video/0.1/video-cache.js:212
↓ 1 callers
Method
maybeReportErrorOnBuildFailure
* @param {*} reason * @visibleForTesting
src/service/resource.js:348
↓ 1 callers
Function
maybeReportErrorToViewer
(win, data)
src/error-reporting.js:415
↓ 1 callers
Method
maybeSelectExperiment
* @param {!Window} win * @param {!Element} element * @param {!Array<string>} selectionBranches * @param {string} experimentName * @return
ads/google/a4a/experiment-utils.js:49
↓ 1 callers
Method
maybeSetConsentPurposeDefaults_
* Maybe set the consent purpose map with default values. * If not, resolve instantly. * @param {string} action * @param {../../../src/service
extensions/amp-consent/0.1/amp-consent.js:532
↓ 1 callers
Method
maybeSetLoadMore_
* @return {!Promise} * @private
extensions/amp-list/0.1/amp-list.js:1484
↓ 1 callers
Method
maybeSetSrcFromInput_
* Update value of "src" attribute if the "query" attribute is provided.
extensions/amp-autocomplete/0.1/amp-autocomplete.js:472
↓ 1 callers
Method
maybeSetStoryNextUp_
* Reads the storyNextUp param if provided and sets the auto-advance-after * attribute to the given value if there isn't one set by the publisher. T
extensions/amp-story/1.0/amp-story-page.js:526
↓ 1 callers
Method
maybeSetTransparentBody_
* Sets the document body to transparent to allow for frame "merging" if the * element is under FIE. * The module-level execution of setTranspare
extensions/amp-lightbox/0.1/amp-lightbox.js:847
↓ 1 callers
Method
maybeSetUpTcfPostMessageProxy_
* Maybe set up the __tfcApiLocator window and listeners. * * The window is a dummy iframe that signals to 3p iframes * that the document supp
extensions/amp-consent/0.1/amp-consent.js:1022
↓ 1 callers
Method
maybeShowScreen_
* Asks the viewer whether the navigation screen should be shown. * Viewer responses should be treated right away, and not cached. * @param {!Scr
extensions/amp-story-education/0.1/amp-story-education.js:290
↓ 1 callers
Method
maybeShowSrAlert_
* If this is the first time viewing the iframe, create * an 'invisible' alert dialog with a title and a button. * Clicking on the button will tr
extensions/amp-consent/0.1/consent-ui.js:704
↓ 1 callers
Method
maybeShowToast_
* @param {!Entitlement} entitlement * @return {!Promise} * @private
third_party/subscriptions-project/swg.js:13045
↓ 1 callers
Method
maybeStartAnimations_
* Starts playing animations, if the animation manager is available. * @private
extensions/amp-story/1.0/amp-story-page.js:1350
↓ 1 callers
Function
maybeStubConsoleInfoLogWarn
()
testing/console-logging-setup.js:156
↓ 1 callers
Method
maybeSyncSourceCarousel_
* If the currently lightbox-ed element is bound to a carousel, then sync * the carousel so that it is showing the currently lightbox-ed element.
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:1085
↓ 1 callers
Function
maybeTimeoutFonts
* @param {!Window} win
src/font-stylesheet-timeout.js:28
↓ 1 callers
Method
maybeToggleSubscriptionsDialog_
* Show paywall dialog after delay or hide paywall dialog if tapping back to unlocked pages. * @param {string} targetPageId * @param {number} pag
extensions/amp-story/1.0/amp-story.js:1713
↓ 1 callers
Function
maybeTransform
* Applies a transformer to the CSS text if it has been registered. * @param {!Element|!ShadowRoot} cssRoot * @param {string} cssText * @return {str
src/style-installer.js:174
↓ 1 callers
Method
maybeUpdated_
* @param {IContextPropUsed<T, ?>} used * @param {T} value * @private * @template T
src/core/context/values.js:525
↓ 1 callers
Function
maybeWrap
(root)
extensions/amp-auto-lightbox/0.1/test/test-amp-auto-lightbox.js:125
↓ 1 callers
Function
maybeWrapNativeSuper
* @param {T} klass * @return {T} * @template {Function} T
src/preact/bento-ce.js:9
↓ 1 callers
Function
measure
(cb)
extensions/amp-live-list/0.1/test/test-amp-live-list.js:53
↓ 1 callers
Method
measure
()
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:892
↓ 1 callers
Function
measureCLS
()
testing/amp-performance-extension/measure.js:18
↓ 1 callers
Function
measureContentSize
(element)
src/core/dom/layout/size-observer.js:65
↓ 1 callers
Method
measureElement
@override
src/service/mutator-impl.js:136
↓ 1 callers
Function
measureLargestContentfulPaint
()
testing/amp-performance-extension/measure.js:33
↓ 1 callers
Function
measureLongTasks
()
testing/amp-performance-extension/measure.js:50
↓ 1 callers
Method
measureMutateElement
@override
src/inabox/inabox-mutator.js:71
↓ 1 callers
Function
measureMutateElementStub
(measure, mutate)
extensions/amp-pan-zoom/0.1/test/test-amp-pan-zoom.js:25
↓ 1 callers
Method
measureResource_
* Always returns true unless the resource was previously displayed but is * not displayed now (i.e. the resource should be unloaded). * @param {
src/service/resources-impl.js:1013
↓ 1 callers
Function
measureTimeToInteractive
()
testing/amp-performance-extension/measure.js:62
↓ 1 callers
Method
measureUserPerceivedVisualCompletenessTime_
* Measure the delay the user perceives of how long it takes * to load the initial viewport. * @private
src/service/performance-impl.js:728
↓ 1 callers
Method
measure_
* Measures the image viewer and image sizes and positioning. * This must be called AFTER the source element has already been * laid out. * @p
extensions/amp-image-viewer/0.1/amp-image-viewer.js:347
↓ 1 callers
Method
measure_
* Measures the content viewer and content sizes and positioning. * This must be called AFTER the source element has already been * laid out.
extensions/amp-pan-zoom/0.1/amp-pan-zoom.js:351
↓ 1 callers
Function
medyanetAds
* @param {!Window} global * @param {!Object} data
ads/vendors/medyanet.js:23
↓ 1 callers
Method
meetsAll
* @param {!Element} element * @param {!../../../src/service/ampdoc-impl.AmpDoc} ampdoc * @param {number} renderWidth * @param {number} render
extensions/amp-auto-lightbox/0.1/amp-auto-lightbox.js:112
↓ 1 callers
Method
meetsSizingCriteria
* @param {!Element} element * @param {!../../../src/service/ampdoc-impl.AmpDoc} ampdoc * @param {number} renderWidth * @param {number} render
extensions/amp-auto-lightbox/0.1/amp-auto-lightbox.js:156
↓ 1 callers
Function
meetsTreeShapeCriteriaMsg
({outerHtml})
extensions/amp-auto-lightbox/0.1/test/test-amp-auto-lightbox.js:120
↓ 1 callers
Function
mergeBinaryConcat
* @param {(babel.Node|null)[]} props * @return {?babel.Node}
build-system/babel-plugins/babel-plugin-jsx-style-object/index.js:111
↓ 1 callers
Function
mergeDataVars
* Expand the event variables to include default data-vars * eventVars value will override data-vars value * @param {!Element} target * @param {!Jso
extensions/amp-analytics/0.1/events.js:241
↓ 1 callers
Function
mergeFallbacks
* Retrieves the fallback language codes for each current locale * and merges any strings from the fallback language. * @param {object} languages
build-system/tasks/build-story-localization.js:62
↓ 1 callers
Function
mergeFilesTxt_
* Merge the files.txt files for the flavor's module/nomodule outputs. * @param {string} flavor
build-system/release-workflows/upload-release.js:44
↓ 1 callers
Method
mergeGeoOverride_
* Merge correct geoOverride object into toplevel config. * @param {!JsonObject} config * @return {!Promise<!JsonObject>}
extensions/amp-consent/0.1/consent-config.js:180
↓ 1 callers
Method
mergeLegacyConsents_
* Merge legacy `consents` policy object from * amp-consent config into top level. * @private
extensions/amp-story/1.0/amp-story-consent.js:323
↓ 1 callers
Function
mergeLocators
(pos, tests)
third_party/inputmask/inputmask.js:1071
↓ 1 callers
Function
mergeObject
(e,r,t)
third_party/react-dates/bundle.js:1
↓ 1 callers
Function
mergeOutputs_
* Merge the outputs of the flavor (both module/nomodule) into the dest dir. * @param {string} flavor
build-system/release-workflows/upload-release.js:30
↓ 1 callers
Method
mergeQueryParams
* Merges query params from multiple sources into 1 string * @param {object} playerParams * @param {string} playerQueryString * @return {strin
src/bento/components/bento-jwplayer/1.0/base-element.js:49
↓ 1 callers
Method
mergeTiming_
* Merges timing by defaulting values from the previous timing. * @param {!WebAnimationTimingDef} newTiming * @param {!WebAnimationTimingDef} pre
extensions/amp-animation/0.1/web-animations.js:738
↓ 1 callers
Method
mergeVars_
* Merges vars by defaulting values from the previous vars. * @param {!{[key: string]: *}} newVars * @param {!{[key: string]: *}} prevVars * @
extensions/amp-animation/0.1/web-animations.js:711
↓ 1 callers
Function
messageArgToEncodedComponent
(arg)
src/utils/log.js:93
↓ 1 callers
Function
messageHandler
(ev)
src/bento/components/bento-imgur/1.0/component.js:27
↓ 1 callers
Method
messageListener
(event)
extensions/amp-ad-network-smartadserver-impl/0.1/amp-ad-network-smartadserver-impl.js:226
↓ 1 callers
Method
messageServiceWorker
* @param {ServiceWorkerMessage} message
extensions/amp-web-push/0.1/amp-web-push-helper-frame.js:259
↓ 1 callers
Method
millis
* @param {!CssNode} node * @return {number|undefined}
extensions/amp-animation/0.1/parsers/css-expr-ast.js:566
↓ 1 callers
Function
minTime
* Calculates the minimum time that a timeout should have right now. * @param {number|undefined} time * @return {number|undefined}
3p/environment.js:247
↓ 1 callers
Function
mn
(n,t,e)
third_party/d3/d3.js:1
↓ 1 callers
Function
mockInvalidAreaWidth
()
extensions/amp-video-docking/0.1/test/test-amp-video-docking.js:87
↓ 1 callers
Function
mockVideoJsPlayer
()
test/unit/test-video-iframe-integration.js:244
↓ 1 callers
Function
moduleAliases
* Remap external modules that rely on React if building for Preact. * @param {'preact' | 'react'} buildFor * @return {object}
build-system/babel-config/import-resolver.js:49
↓ 1 callers
Method
mountCallback
* Load heavy elements, perform expensive operations, add global * listeners/observers, etc. The mount and unmount can be called multiple * times
src/base-element.js:563
↓ 1 callers
Method
mountCallback
()
src/preact/bento-ce.js:60
↓ 1 callers
Method
mouseCanceled_
@private
src/input.js:261
↓ 1 callers
Method
mouseConfirmed_
@private
src/input.js:254
↓ 1 callers
Method
moveSlide
* Proceeds to the next slide in the desired direction. * @param {number} dir -1 or 1 * @param {boolean} animate * @param {ActionTrust_Enum} t
extensions/amp-carousel/0.1/slidescroll.js:534
↓ 1 callers
Method
mraidLoadSuccess_
* Runs if mraid.js was loaded successfully.
extensions/amp-mraid/0.1/amp-mraid.js:144
↓ 1 callers
Function
mustacheFactory
(mustache)
third_party/mustache/mustache.js:8
↓ 1 callers
Method
mutate
()
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:922
↓ 1 callers
Method
mutateOrInvoke_
* Mutates the element using resources if available. * * @param {function()} mutator * @param {?Element=} opt_element * @param {boo
src/custom-element.js:2138
↓ 1 callers
Method
mutateSegment_
* @param {!SegmentRuntimeDef} segment * @param {number} totalLinearTime
src/utils/animation.js:325
↓ 1 callers
Method
mutatedAttributesCallback
@override
extensions/amp-powr-player/0.1/amp-powr-player.js:276
↓ 1 callers
Method
mutatedAttributesCallback
@override
extensions/amp-youtube/0.1/amp-youtube.js:315
↓ 1 callers
Method
mutatedAttributesCallback
@override
extensions/amp-twitter/0.1/amp-twitter.js:182
↓ 1 callers
Method
mutatedAttributesCallback
@override
extensions/amp-video-iframe/0.1/amp-video-iframe.js:150
↓ 1 callers
Method
mutatedAttributesCallback
@override
extensions/amp-brightcove/0.1/amp-brightcove.js:347
← previous
next →
10,301–10,400 of 18,703, ranked by callers