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
↓ 2 callers
Function
maybePrintArgvMessages
* Prints help messages for args if tests are being run for local development.
build-system/tasks/runtime-test/helpers.js:58
↓ 2 callers
Function
maybePrintCoverageMessage
* @param {string=} covPath * @return {!Promise}
build-system/tasks/helpers.js:632
↓ 2 callers
Method
maybeRenderLoadMoreElement_
* @param {?Element} elem * @param {!JsonObject} data * @return {!Promise} * @private
extensions/amp-list/0.1/amp-list.js:994
↓ 2 callers
Method
maybeResetAmpMedia_
* @param {?Element} componentEl * @return {!Promise} * @private
extensions/amp-story/1.0/media-pool.js:537
↓ 2 callers
Method
maybeResizeListToFitItems_
* @private * @return {?Promise<boolean>}
extensions/amp-list/0.1/amp-list.js:366
↓ 2 callers
Method
maybeShowDiscoveryAnimation_
* Only show once per story on first instance of 360 component. * @private
extensions/amp-story-360/0.1/amp-story-360.js:519
↓ 2 callers
Method
maybeShowOverlay_
* Shows the overlay (mask element, and lock scrolling) * if the overlay is enabled * @private
extensions/amp-consent/0.1/consent-ui.js:790
↓ 2 callers
Method
maybeSlideCarousel_
* @param {number} direction 1 for forward or -1 for backwards. * @private
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:1200
↓ 2 callers
Function
maybeSwitchToMinifiedJs
(html)
testing/iframe.js:618
↓ 2 callers
Function
maybeThrow
* Checks for security error.
3p/environment.js:221
↓ 2 callers
Method
maybeToggle_
* Expand/collapses the component unless the element already has an * associated action or will navigate. * @param {!Event} event * @param {bo
extensions/amp-truncate-text/0.1/amp-truncate-text.js:245
↓ 2 callers
Method
maybeTransitionWithFocusChange_
* Switch between selecting the start and end dates, * and when to open and close the date picker. * @param {!Element} target
extensions/amp-date-picker/0.1/amp-date-picker.js:1050
↓ 2 callers
Method
maybeTrigger_
* @param {number} normalizedPercentage * @private
src/service/video-manager-impl.js:1574
↓ 2 callers
Method
maybeUpdateAspectRatio_
* Update player aspect ratio based on the active story aspect ratio. * @private
src/amp-story-player/amp-story-player-impl.js:1179
↓ 2 callers
Method
maybeUpdateAutoAdvanceTime_
* If advancement_ is a TimeBasedConfig, this updates the 'auto-advance-after' * attribute and updates the time delay used by the page's Advancement
extensions/amp-story/1.0/amp-story-page.js:571
↓ 2 callers
Method
maybeUpdateFragmentForCct
@override
src/service/viewer-impl.js:370
↓ 2 callers
Method
maybeUpdateReadyState_
@private
src/preact/base-element.js:576
↓ 2 callers
Function
me
(n,t,e)
third_party/d3/d3.js:2
↓ 2 callers
Function
measure
(state)
ads/inabox/frame-overlay-helper.js:25
↓ 2 callers
Method
measure
* Measures the resource's boundaries. An upgraded element will be * transitioned to the "ready for layout" state.
src/service/resource.js:421
↓ 2 callers
Method
measureIframeLayoutBox_
* Measure the layout box of the iframe if we rendered it already. * @private
extensions/amp-ad/0.1/amp-ad-3p-impl.js:315
↓ 2 callers
Method
measureMutateElementResources_
* Handles element mutation (and measurement) APIs in the Resources system. * * @param {!Element} element * @param {?function()} measurer *
src/service/mutator-impl.js:180
↓ 2 callers
Function
measureMutateElementStub
(measure, mutate)
testing/helpers/service.js:413
↓ 2 callers
Method
measureMutate_
* Runs a measure/mutate cycle ensuring that the iframe change is propagated * to the resource manager. * @param {{measure: (function()|undefined
src/friendly-iframe-embed.js:580
↓ 2 callers
Function
measurePageLayoutBox
(element)
extensions/amp-auto-ads/0.1/measure-page-layout-box.js:10
↓ 2 callers
Function
meetsSizingCriteria
( renderWidth, renderHeight, naturalWidth, naturalHeight, vw, vh )
extensions/amp-auto-lightbox/0.1/amp-auto-lightbox.js:236
↓ 2 callers
Method
meetsTreeShapeCriteria
* @param {!Element} element * @param {!../../../src/service/ampdoc-impl.AmpDoc} ampdoc * @return {boolean}
extensions/amp-auto-lightbox/0.1/amp-auto-lightbox.js:128
↓ 2 callers
Function
memo
(c, comparer)
src/preact/compat/memo.js:39
↓ 2 callers
Method
mergeConfigs_
* Merges various sources of configs and stores them in a member variable. * * Order of precedence for configs from highest to lowest: * - Rem
extensions/amp-analytics/0.1/config.js:338
↓ 2 callers
Function
mergeHtml
* Merges base and fonts into html document. * @param {!FriendlyIframeSpec} spec * @return {string}
src/friendly-iframe-embed.js:277
↓ 2 callers
Method
mergeShadowHead_
* Processes the contents of the shadow document's head. * @param {!./service/ampdoc-impl.AmpDoc} ampdoc * @param {!ShadowRoot} shadowRoot * @
src/multidoc-manager.js:317
↓ 2 callers
Function
messageUrlRtv
()
src/utils/log.js:67
↓ 2 callers
Function
metaJsonCreativeGrouper
(callback)
ads/google/a4a/line-delimited-response-handler.js:61
↓ 2 callers
Method
millis_
* @return {number} * @private
extensions/amp-animation/0.1/parsers/css-expr-ast.js:552
↓ 2 callers
Function
minify
* Minify the code with Terser. Only used by the ESBuild. * * @param {string} code * @param {terser.MinifyOptions} options * @return {!Promise<{cod
build-system/tasks/helpers.js:477
↓ 2 callers
Function
mirrorNode
(from, to)
extensions/amp-fit-text/0.1/build-dom.js:70
↓ 2 callers
Function
mn
(e,t,n)
examples/amp-script/vue-todomvc.js:7
↓ 2 callers
Function
mockAreaHeight
(height)
extensions/amp-video-docking/0.1/test/test-amp-video-docking.js:101
↓ 2 callers
Function
mockCenteredVideo
(element)
test/unit/test-video-rotate-to-fullscreen.js:21
↓ 2 callers
Function
mockLandscape
(isLandscape)
test/integration/test-video-players-helper.js:504
↓ 2 callers
Function
mockMacrosBinding
* CLIENT_ID(_ga) -> _client_id(_ga)_ * $NOT(true) -> _not(true)_ * @param {string} macroName * @param {!Array<string>} argumentsList
extensions/amp-analytics/0.1/test/test-vendors.js:235
↓ 2 callers
Function
mockRootNodeContent
(els)
extensions/amp-auto-lightbox/0.1/test/test-amp-auto-lightbox.js:591
↓ 2 callers
Function
mockVisible
(callback, ratio, time)
examples/mraid/mraid.js:44
↓ 2 callers
Function
mountElement
(element)
extensions/amp-list/1.0/test/test-amp-list.js:39
↓ 2 callers
Method
moveScrollOneViewport_
* Moves the scroll position by one viewport, either forwards or backwards. * This reverses the actual scroll position moved based on directionality
extensions/amp-carousel/0.2/amp-carousel.js:321
↓ 2 callers
Method
moveSlidesBeforeOrAfter__
* Moves slides before or after the current index by setting setting a * translate. * @param {number} totalLength The total length of all the sli
extensions/amp-base-carousel/0.1/carousel.js:1291
↓ 2 callers
Method
moveSlides_
* Moves slides that are not at the current index before or after by * translating them if necessary. * @param {number} totalLength The total len
extensions/amp-base-carousel/0.1/carousel.js:1322
↓ 2 callers
Method
mraidReady_
* Runs when MRAID reports that it is ready.
extensions/amp-mraid/0.1/amp-mraid.js:108
↓ 2 callers
Function
mutate
(cb)
extensions/amp-live-list/0.1/test/test-amp-live-list.js:50
↓ 2 callers
Method
mutateElement
@override
src/inabox/inabox-mutator.js:66
↓ 2 callers
Method
mutatedAttributesCallback
@override
extensions/amp-date-picker/0.1/amp-date-picker.js:512
↓ 2 callers
Method
mutatedAttributesCallback
@override
extensions/amp-timeago/0.1/amp-timeago.js:86
↓ 2 callers
Method
mutatedAttributesCallback
@override
extensions/amp-iframe/0.1/amp-iframe.js:559
↓ 2 callers
Function
muteVideo
()
ads/google/ima/ima-video.js:1174
↓ 2 callers
Method
navigateToEnvironment
* Navigate the browser to a URL that will display the given url in the * given environment. * @param {!AmpdocEnvironment} environment * @para
build-system/tasks/e2e/amp-driver.js:181
↓ 2 callers
Function
ne
(t)
third_party/inputmask/bundle.js:11
↓ 2 callers
Function
newSlide
(id)
extensions/amp-inline-gallery/1.0/test/test-amp-inline-gallery.js:88
↓ 2 callers
Function
nextMicroTask
()
test/unit/polyfills/test-resize-observer.js:114
↓ 2 callers
Method
nextPos_
* @param {number} pos * @param {number} dir * @return {number} * @private
extensions/amp-carousel/0.1/scrollable-carousel.js:312
↓ 2 callers
Method
nextTask_
* Returns the next task that hasn't been run yet. * If `opt_dequeue` is true, remove the returned task from the queue. * @param {boolean=} opt_d
src/chunk.js:378
↓ 2 callers
Function
nextTick
(win, fn)
3p/3p.js:105
↓ 2 callers
Method
next_
* @param {boolean} convertValues * @return {!{type: TokenType_Enum, value: *, index: number}}
src/service/action-impl.js:1276
↓ 2 callers
Function
nn
(n)
third_party/d3/d3.js:1
↓ 2 callers
Function
no
(e)
examples/amp-script/vue-todomvc.js:7
↓ 2 callers
Method
noContent_
* Cleans up listeners on the ad, and apply the default UI for ad. * @private
extensions/amp-ad/0.1/amp-ad-xorigin-iframe-handler.js:407
↓ 2 callers
Method
notifyFinish_
@private
extensions/amp-story/1.0/animation.js:526
↓ 2 callers
Function
numConfigs
* Returns the number of AMP_CONFIG matches in the given config string. * * @param {string} str * @return {number}
build-system/tasks/prepend-global/index.js:39
↓ 2 callers
Method
observe
* Start to observe the target element's position change and trigger callback. * TODO: maybe take DOM mutation into consideration * @param {!Elem
ads/inabox/position-observer.js:47
↓ 2 callers
Function
observeSize
* @param {Element} element * @param {Type_Enum} type * @param {SizeCallback<TargetSize>} callback
src/core/dom/layout/size-observer.js:115
↓ 2 callers
Method
observed_
* @param {!Array<!IntersectionObserverEntry>} entries * @private
src/service/scheduler.js:239
↓ 2 callers
Function
on
(n)
third_party/d3/d3.js:1
↓ 2 callers
Method
on
* Adds event listener. * @param {string} eventType * @param {!Function} listener
extensions/amp-addthis/0.1/post-message-dispatcher.js:21
↓ 2 callers
Method
onAdLoaded_
* Things that need to happen after the created ad is "loaded". * @private
extensions/amp-story-auto-ads/0.1/story-ad-page.js:413
↓ 2 callers
Method
onAdvance
@override
extensions/amp-story/1.0/page-advancement.js:1191
↓ 2 callers
Method
onAmpDocVisibilityChange_
* When the viewer visibility state of the document changes to inactive or hidden, * send the layout score. * @private
src/service/performance-impl.js:550
↓ 2 callers
Method
onAudioIconClick_
* Handles click events on the mute and unmute buttons. * @param {boolean} mute Specifies if the audio is being muted or unmuted. * @private
extensions/amp-story/1.0/amp-story-system-layer.js:829
↓ 2 callers
Function
onBindReadyAndSetStateWithObject
* @param {!Object} env * @param {!Bind} bind * @param {!JsonObject} state * @return {!Promise}
extensions/amp-bind/0.1/test/integration/test-bind-impl.js:139
↓ 2 callers
Method
onCaptionsClick_
* Toggles the captions. * @param {boolean} captions * @private
extensions/amp-story/1.0/amp-story-system-layer.js:624
↓ 2 callers
Method
onCloseIconClick_
@private
extensions/amp-web-push/0.1/amp-web-push-permission-dialog.js:116
↓ 2 callers
Method
onCurrentPageIndexUpdate_
* @param {number} pageIndex * @private
extensions/amp-story/1.0/pagination-buttons.js:233
↓ 2 callers
Method
onDataRetrieved_
* Handles incoming interactive data response * * RESPONSE FORMAT * { * options: [ * { * index: * count: * s
extensions/amp-story-interactive/0.1/amp-story-interactive-abstract.js:752
↓ 2 callers
Method
onDatesChange
* Respond to user interactions that change a DateRangePicker's dates. * @param {!JsonObject} param
extensions/amp-date-picker/0.1/amp-date-picker.js:1368
↓ 2 callers
Function
onDocumentState
* Calls the callback when document's state satisfies the stateFn. * @param {Document} doc * @param {function(Document):boolean} stateFn * @param {f
src/core/document/ready.js:40
↓ 2 callers
Method
onFluidResize_
* Fires a delayed impression and notifies the Fluid creative that its * container has been resized. * @param {number} newHeight The height expan
extensions/amp-ad-network-doubleclick-impl/0.1/safeframe-host.js:750
↓ 2 callers
Method
onFontLoadFinish_
* @param {?string} addClassName css class to be added to the * document-element. * @param {?string} removeClassName css class to be removed f
extensions/amp-font/0.1/amp-font.js:148
↓ 2 callers
Method
onImgLoadingError_
* If the image fails to load, show a fallback or placeholder instead. * @private
src/builtins/amp-img/amp-img.js:425
↓ 2 callers
Method
onInteraction
* @param {!Event} event
extensions/amp-form/0.1/form-validators.js:413
↓ 2 callers
Method
onLayoutMeasure
* This function is expected to be called in the onLayoutMeasure function of * AmpAdExit element to do any measure work for the filter.
extensions/amp-ad-exit/0.1/filters/filter.js:30
↓ 2 callers
Method
onLinkComplete_
@private
extensions/amp-subscriptions-google/0.1/amp-subscriptions-google.js:393
↓ 2 callers
Function
onMessage
({currentTarget, data})
src/bento/components/bento-youtube/1.0/component.js:130
↓ 2 callers
Method
onMoveRelease_
* Performs actions once the motion gesture has been complete. The motion * may continue based on the final velocity. * @param {number} veloX
extensions/amp-image-lightbox/0.1/amp-image-lightbox.js:521
↓ 2 callers
Method
onMove_
* Performs a one-step or an animated motion (panning). * @param {number} deltaX * @param {number} deltaY * @param {boolean} animate * @ret
extensions/amp-pan-zoom/0.1/amp-pan-zoom.js:777
↓ 2 callers
Method
onNextPass
@override
src/service/resources-impl.js:571
↓ 2 callers
Method
onPausedClick_
* Handles click events on the paused and play buttons. * @param {boolean} paused Specifies if the story is being paused or not. * @private
extensions/amp-story/1.0/amp-story-system-layer.js:838
↓ 2 callers
Method
onPermissionDefaultOrGranted_
* @private * @return {*} TODO(#23582): Specify return type
extensions/amp-web-push/0.1/amp-web-push-permission-dialog.js:233
↓ 2 callers
Method
onPlayerResize_
* @param {number} height * @param {number} width * @private
src/amp-story-player/amp-story-player-impl.js:808
↓ 2 callers
Method
onQueueEmpty
* Register handler to be called when UI queue becomes empty * @param {function()} handler
src/service/notification-ui-manager.js:25
↓ 2 callers
Method
onQueueNotEmpty
* Register handler to be called when UI queue becomes not empty * @param {function()} handler
src/service/notification-ui-manager.js:36
↓ 2 callers
Method
onReadyState_
* @param {ReadyState_Enum} state * @param {*=} opt_failure * @private
src/preact/base-element.js:590
↓ 2 callers
Method
onResize
@override
src/service/viewport/viewport-impl.js:647
← previous
next →
6,401–6,500 of 18,703, ranked by callers