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
Function
onDocumentState
* Calls the callback once when document's state satisfies the condition. * @param {!Document} doc * @param {function(!Document):boolean} condition
third_party/subscriptions-project/swg.js:10614
↓ 1 callers
Function
onDocumentState
* Calls the callback once when document's state satisfies the condition. * @param {!Document} doc * @param {function(!Document):boolean} condition
third_party/subscriptions-project/swg-gaa.js:1290
↓ 1 callers
Function
onDocumentState
* Calls the callback once when document's state satisfies the condition. * @param {!Document} doc * @param {function(!Document):boolean} condition
third_party/subscriptions-project/config.js:66
↓ 1 callers
Method
onDocumentStateUpdate_
* React to documentStateUpdate events. * @param {!DocumentStateTypeDef} data * @param {Messaging} messaging * @private
src/amp-story-player/amp-story-player-impl.js:1585
↓ 1 callers
Method
onDomUpdate_
* @param {!Event} event
extensions/amp-bind/0.1/bind-impl.js:1553
↓ 1 callers
Method
onDoubletapZoom_
* @param {number} clientX * @param {number} clientY * @return {*} TODO(#23582): Specify return type
extensions/amp-pan-zoom/0.1/amp-pan-zoom.js:826
↓ 1 callers
Method
onDragEnd_
* @param {!Array<!UnlistenDef>} unlisteners * @private
extensions/amp-video-docking/0.1/amp-video-docking.js:1354
↓ 1 callers
Method
onDragMove_
* @param {!MouseEvent|!TouchEvent} e * @param {!DirectionX} directionX * @param {number} startX * @private
extensions/amp-video-docking/0.1/amp-video-docking.js:1309
↓ 1 callers
Method
onEnd
* Callback passed into DetachedDomStream constructor. Called with complete * doc when stream is closed. * Schedules final transfer, then resolve
src/utils/dom-transform-stream.js:89
↓ 1 callers
Method
onEntitlementsFetched_
* @param {!Entitlements} entitlements * @private
third_party/subscriptions-project/swg.js:13001
↓ 1 callers
Method
onFocus
* Add a listener for focus events. * @param {function(!Element)} handler * @return {!UnlistenDef}
src/focus-history.js:70
↓ 1 callers
Method
onFocusChange
* Select the given input to be focused. * @param {?string} focusedInput The currently focused input.
extensions/amp-date-picker/0.1/amp-date-picker.js:1457
↓ 1 callers
Method
onFontLoadError_
* @private
extensions/amp-font/0.1/amp-font.js:135
↓ 1 callers
Method
onFontLoadSuccess_
* @private
extensions/amp-font/0.1/amp-font.js:126
↓ 1 callers
Function
onFullscreenChange
* Called when the fullscreen mode of the browser or content player changes. * @param {object} global
ads/google/ima/ima-video.js:1267
↓ 1 callers
Method
onFullscreenExit_
@private
src/service/video-manager-impl.js:1164
↓ 1 callers
Method
onGetDocumentState_
* Handles 'getDocumentState' viewer messages. * @param {!Object=} data * @return {!Promise} * @private
extensions/amp-story/1.0/amp-story-viewer-messaging-handler.js:143
↓ 1 callers
Method
onGoToSlide_
* @param {!Event} event * @private
extensions/amp-inline-gallery/0.1/amp-inline-gallery.js:135
↓ 1 callers
Method
onHideSubscriptionsDialog_
@private
extensions/amp-story/1.0/amp-story.js:1652
↓ 1 callers
Method
onHistoryEvent_
@private
src/service/history-impl.js:593
↓ 1 callers
Method
onHistoryPopped_
* `historyPopped` (from viewer) * * Request: {'newStackIndex': number} | {'stackIndex': number} * Response: undefined * * @param {
src/service/history-impl.js:1039
↓ 1 callers
Function
onImaLoadFail
* Handler for on fail.
ads/google/ima/ima-video.js:567
↓ 1 callers
Function
onImaLoadSuccess
* @param {!Object} global * @param {!Object} data
ads/google/ima/ima-video.js:492
↓ 1 callers
Method
onIndexChange_
* @param {!Event} event * @private
extensions/amp-inline-gallery/0.1/amp-inline-gallery.js:108
↓ 1 callers
Method
onIndexChanged_
* @param {!Event} event * @private
extensions/amp-stream-gallery/0.1/amp-stream-gallery.js:769
↓ 1 callers
Method
onIndexChanged_
* @private * @param {!Event} event
extensions/amp-base-carousel/0.1/amp-base-carousel.js:622
↓ 1 callers
Method
onIndexChanged_
* @param {!Event} event * @private
extensions/amp-base-carousel/0.1/carousel-accessibility.js:154
↓ 1 callers
Method
onIndexChanged_
* @private * @param {!Event} event
extensions/amp-carousel/0.2/amp-carousel.js:695
↓ 1 callers
Method
onInfoClick_
* Handles click events on the info button and toggles the info dialog. * @private
extensions/amp-story/1.0/amp-story-system-layer.js:877
↓ 1 callers
Function
onInsert
* Returns a promise for when an element has been added to the given * window. This is for use in tests to wait until after the * attachment of an el
testing/iframe.js:599
↓ 1 callers
Method
onInteraction
@override
extensions/amp-form/0.1/form-validators.js:493
↓ 1 callers
Method
onInteractiveReactStateUpdate
* Receives state updates and fills up DOM with the result * @param {!Map<string, InteractiveStateEntryType>} interactiveState * @protected
extensions/amp-story-interactive/0.1/amp-story-interactive-results.js:235
↓ 1 callers
Method
onIntersectionChange_
* @param {!Element} target * @param {number} intersectionRatio * @param {!../../../src/layout-rect.LayoutRectDef} intersectionRect * @param {
extensions/amp-analytics/0.1/visibility-manager.js:804
↓ 1 callers
Method
onKeyDown_
* Handles all key presses within the story. * @param {!Event} e The keydown event. * @private
extensions/amp-story/1.0/amp-story.js:1744
↓ 1 callers
Method
onKeyboardActiveUpdate_
* Reacts to keyboard updates and updates the UI. * @param {boolean} keyboardActive * @private
extensions/amp-story/1.0/amp-story-system-layer.js:815
↓ 1 callers
Method
onKeydown_
* Handle a keyup, potentially going to the next/previous set of slides, * depending on the carousel configuration. * @param {!Event} event
extensions/amp-base-carousel/0.1/amp-base-carousel.js:576
↓ 1 callers
Method
onKeyframeAnimation
* @param {!WebKeyframeAnimationDef} unusedSpec * @abstract
extensions/amp-animation/0.1/web-animations.js:141
↓ 1 callers
Method
onLayoutMeasure
* Called when we just measured the layout rect of this element. Doing * more expensive style reads should now be cheap. * This may currently not
src/base-element.js:1032
↓ 1 callers
Method
onLoginRequest_
* @param {boolean} linkRequested * @private
extensions/amp-subscriptions-google/0.1/amp-subscriptions-google.js:361
↓ 1 callers
Method
onMeasure
* Calls onLayoutMeasure() on the BaseElement implementation. * Should only be called by Resources.
src/custom-element.js:968
↓ 1 callers
Function
onMessage
* Handles messages from the top window. * @param {!Object} global * @param {!Event} event
ads/google/ima/ima-video.js:1375
↓ 1 callers
Function
onMessageReceivedSubscribe
Subscribes the visitor to push. The broadcast value is null (not used in the AMP page).
extensions/amp-web-push/0.1/amp-web-push.service-worker.js:121
↓ 1 callers
Function
onMessageReceivedSubscriptionState
Broadcasts a single boolean describing whether the user is subscribed.
extensions/amp-web-push/0.1/amp-web-push.service-worker.js:88
↓ 1 callers
Function
onMessageReceivedUnsubscribe
Unsubscribes the subscriber from push. The broadcast value is null (not used in the AMP page).
extensions/amp-web-push/0.1/amp-web-push.service-worker.js:150
↓ 1 callers
Function
onMessage_
* * @param {Oject} event * @param {{adCustParams: string, adMacros: Object, config: Object, onLoad: OnLoadCb, onPlayingState: OnPlayingStateCb, play
src/bento/components/bento-jwplayer/1.0/component.js:173
↓ 1 callers
Method
onMessage_
* @param {!JsonObject} data * @private
src/video-iframe-integration.js:132
↓ 1 callers
Method
onMessage_
* @param {!Event} event * @private
extensions/amp-vimeo/0.1/amp-vimeo.js:167
↓ 1 callers
Method
onMouseDown_
* Mouse down handler for panning in desktop mode * @param {Event} e * @private
extensions/amp-pan-zoom/0.1/amp-pan-zoom.js:487
↓ 1 callers
Method
onMouseMove_
* @param {Event} e * @private
extensions/amp-pan-zoom/0.1/amp-pan-zoom.js:514
↓ 1 callers
Method
onMouseUp_
* Handler on mouse button up * @param {Event} e * @private
extensions/amp-pan-zoom/0.1/amp-pan-zoom.js:528
↓ 1 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-viewer/0.1/amp-image-viewer.js:672
↓ 1 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-pan-zoom/0.1/amp-pan-zoom.js:791
↓ 1 callers
Method
onMove_
* Performs a one-step or an animated motion (panning). * @param {number} deltaX * @param {number} deltaY * @param {boolean} animate * @pri
extensions/amp-image-viewer/0.1/amp-image-viewer.js:659
↓ 1 callers
Method
onMultiAnimation
* @param {!WebMultiAnimationDef} unusedSpec * @abstract
extensions/amp-animation/0.1/web-animations.js:123
↓ 1 callers
Method
onMute_
@private
extensions/amp-video-docking/0.1/controls.js:338
↓ 1 callers
Method
onMutedStateUpdate_
* Reacts to mute/unmute events coming from the story. * @param {string} muted * @private
src/amp-story-player/amp-story-player-impl.js:1668
↓ 1 callers
Method
onMutedStateUpdate_
* Reacts to muted state updates. * @param {boolean} isMuted * @private
extensions/amp-story/1.0/amp-story-system-layer.js:688
↓ 1 callers
Method
onMutedStateUpdate_
* Reacts to muted state updates. * @param {boolean} isMuted Whether the story just got muted. * @private
extensions/amp-story/1.0/amp-story.js:2369
↓ 1 callers
Method
onNativeSubscribeRequest_
@private
extensions/amp-subscriptions-google/0.1/amp-subscriptions-google.js:399
↓ 1 callers
Method
onNetworkFailure
* Called on network failure sending XHR CORS ad request allowing for * modification of ad url and prevent frame GET request on layoutCallback. *
extensions/amp-a4a/0.1/amp-a4a.js:1764
↓ 1 callers
Method
onNetworkFailure
@override
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:1061
↓ 1 callers
Method
onNetworkFailure
@override
extensions/amp-ad-network-adsense-impl/0.1/amp-ad-network-adsense-impl.js:446
↓ 1 callers
Method
onNewPageAvailable_
* Shows the "story updated" label when a new page was added to the story. * @private
extensions/amp-story/1.0/amp-story-system-layer.js:886
↓ 1 callers
Method
onNoNextPage_
* Handles EventType.NO_NEXT_PAGE events. * @private
extensions/amp-story/1.0/amp-story.js:1365
↓ 1 callers
Method
onNoPreviousPage_
* Handles EventType.NO_PREVIOUS_PAGE events. * @private
extensions/amp-story/1.0/amp-story.js:1394
↓ 1 callers
Function
onNontrivialWait
* Calls the callback if the video goes into waiting state and does not * emerge from it within a short amount of time. * @param {!Element} video *
extensions/amp-video/0.1/flexible-bitrate.js:289
↓ 1 callers
Method
onOffsetChange_
* @param {!Event} event * @private
extensions/amp-inline-gallery/0.1/amp-inline-gallery.js:121
↓ 1 callers
Method
onOnDocumentState_
* Handles 'onDocumentState' viewer messages. * @param {!Object=} data * @private
extensions/amp-story/1.0/amp-story-viewer-messaging-handler.js:173
↓ 1 callers
Method
onOpenIframeResponse_
* @param {!../components/activities.ActivityIframePort} port * @param {!../components/dialog.Dialog} dialog * @return {!Promise}
third_party/subscriptions-project/swg.js:3960
↓ 1 callers
Function
onOverlayButtonInteract
(global)
ads/google/ima/ima-video.js:583
↓ 1 callers
Method
onPageAttachmentStateUpdate_
* React to page attachment update events. * @param {boolean} pageAttachmentOpen * @private
src/amp-story-player/amp-story-player-impl.js:1702
↓ 1 callers
Method
onPageHasAudioStateUpdate_
* Reacts to the presence of audio on a page to determine which audio messages * to display. * @param {boolean} pageHasAudio * @private
extensions/amp-story/1.0/amp-story-system-layer.js:634
↓ 1 callers
Method
onPageHasCaptionsState_
* Toggles whether the active page has captions or not. * @param {boolean} pageHasCaptions
extensions/amp-story/1.0/amp-story-system-layer.js:654
↓ 1 callers
Method
onPageHasElementsWithPlaybackStateUpdate_
* Reacts to the presence of elements with playback on the page. * @param {boolean} pageHasElementsWithPlayback * @private
extensions/amp-story/1.0/amp-story-system-layer.js:671
↓ 1 callers
Method
onPageIndexUpdate_
* Reacts to the active page index changing. * @param {number} index
extensions/amp-story/1.0/amp-story-system-layer.js:782
↓ 1 callers
Method
onPageNavigation_
@private
extensions/amp-story-360/0.1/amp-story-360.js:411
↓ 1 callers
Method
onPageVisibilityChange
* Listen to page visibility changes. * @param {function({hidden: boolean})} callback Function to call every time * we receive a page visibi
3p/ampcontext.js:159
↓ 1 callers
Method
onPanningMediaStateChange_
* @private * @param {!{[key: string]: string}} panningMediaState
extensions/amp-story-panning-media/0.1/amp-story-panning-media.js:320
↓ 1 callers
Method
onPause_
@private
extensions/amp-video-docking/0.1/controls.js:331
↓ 1 callers
Method
onPausedStateUpdate_
* Reacts to paused state updates. * @param {boolean} isPaused * @private
extensions/amp-story/1.0/amp-story-system-layer.js:701
↓ 1 callers
Method
onPausedStateUpdate_
* Reacts to paused state updates. * @param {boolean} isPaused * @private
extensions/amp-story/1.0/amp-story.js:2030
↓ 1 callers
Method
onPermissionDenied_
@private
extensions/amp-web-push/0.1/amp-web-push-permission-dialog.js:146
↓ 1 callers
Method
onPermissionDialogInteracted
* Returns a Promise that resolves when the user dismisses, grants, or denies * notification permissions when subscribing. * * @return {Promis
extensions/amp-web-push/0.1/web-push-service.js:865
↓ 1 callers
Method
onPermissionState_
* @param {string} permissionState * @private
extensions/amp-story-360/0.1/amp-story-360.js:424
↓ 1 callers
Method
onPinchZoom_
* Performs a one-step pinch zoom action. * @param {number} centerClientX * @param {number} centerClientY * @param {number} deltaX * @param
extensions/amp-image-viewer/0.1/amp-image-viewer.js:711
↓ 1 callers
Method
onPinchZoom_
* Performs a one-step pinch zoom action. * @param {number} centerClientX * @param {number} centerClientY * @param {number} deltaX * @param
extensions/amp-pan-zoom/0.1/amp-pan-zoom.js:844
↓ 1 callers
Method
onPlay_
@private
extensions/amp-video-docking/0.1/controls.js:324
↓ 1 callers
Method
onPlayerEvent_
* Reacts to events coming from the story. * @private * @param {string} value
src/amp-story-player/amp-story-player-impl.js:1619
↓ 1 callers
Method
onPlayerNavigation_
* Triggered when a player emits a storyNavigationEvent. * * A navigation event from a player can come from a user interaction or a previous prog
extensions/amp-story-dev-tools/0.1/amp-story-dev-tools-tab-preview.js:584
↓ 1 callers
Method
onPosterLoaded_
* Sets a callback when the poster is loaded. * @param {function()} callback The function that executes when the poster is * loaded. * @privat
extensions/amp-video/0.1/amp-video.js:1031
↓ 1 callers
Function
onProgressMove
* Detects when the user clicks and drags on the progress bar. * @param {!Event} event
ads/google/ima/ima-video.js:1067
↓ 1 callers
Function
onReady
* @param {object} currentTarget * @param {{muted: boolean, playlistItem: Object}} readyOptions * @param {OnLoadCallback} onLoad
src/bento/components/bento-jwplayer/1.0/component.js:262
↓ 1 callers
Method
onReady_
* @param {{playlistItem: Object, muted: boolean}} detail * @private
extensions/amp-jwplayer/0.1/amp-jwplayer.js:434
↓ 1 callers
Method
onReady_
@private
extensions/amp-vimeo/0.1/amp-vimeo.js:153
↓ 1 callers
Method
onReady_
* @param {!JsonObject} data * @private
extensions/amp-powr-player/0.1/amp-powr-player.js:196
↓ 1 callers
Method
onReady_
@private
extensions/amp-slikeplayer/0.1/amp-slikeplayer.js:245
↓ 1 callers
Method
onReady_
@private
extensions/amp-video-iframe/0.1/amp-video-iframe.js:186
↓ 1 callers
Method
onReady_
* @param {!JsonObject} data * @private
extensions/amp-brightcove/0.1/amp-brightcove.js:273
↓ 1 callers
Method
onReauthorize_
* @param {!Promise} authorization * @private
extensions/amp-access/0.1/amp-access.js:354
↓ 1 callers
Method
onRedirectError
* @param {function(!Error)} handler
third_party/subscriptions-project/swg.js:7080
← previous
next →
10,501–10,600 of 18,703, ranked by callers