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
handleClick_
* @param {!Element} element * @param {!Event} e * @private
src/service/navigation.js:348
↓ 1 callers
Method
handleClick_
* Handler for click event on any element inside the component. * @param {!Event} e * @private
extensions/amp-nested-menu/0.1/amp-nested-menu.js:119
↓ 1 callers
Method
handleClick_
* @param {!Event} event * @private
extensions/amp-lightbox-gallery/0.1/lightbox-controls.js:115
↓ 1 callers
Method
handleClientEvent_
* Listens for new events from the events manager and handles logging * @param {!../api/client-event-manager-api.ClientEvent} event
third_party/subscriptions-project/swg.js:8050
↓ 1 callers
Method
handleCloseOrNavigateTo_
* Handles the `handleCloseOrNavigateTo_` action. * This action tries to close the requesting window if allowed, otherwise * navigates the window
src/service/standard-actions-impl.js:368
↓ 1 callers
Method
handleCollapseRequest_
* @private
extensions/amp-ad-network-doubleclick-impl/0.1/safeframe-host.js:533
↓ 1 callers
Function
handleCompanionDisplay
(media, apesterElement)
extensions/amp-apester-media/0.1/monetization/companion/display.js:11
↓ 1 callers
Function
handleCompanionVideo
(media, apesterElement, consentObj)
extensions/amp-apester-media/0.1/monetization/companion/video.js:11
↓ 1 callers
Method
handleConfigRewriter_
* Handles logic if configRewriter is enabled. * @param {!JsonObject} config * @param {string} configRewriterUrl * @return {!Promise<undefined
extensions/amp-analytics/0.1/config.js:197
↓ 1 callers
Method
handleConfig_
* Sets config and installs additional extensions if necessary. * @private * @return {Promise}
extensions/amp-story-auto-ads/0.1/amp-story-auto-ads.js:245
↓ 1 callers
Method
handleConsentExtension_
* Handles the story consent extension. * @private
extensions/amp-story/1.0/amp-story.js:1255
↓ 1 callers
Method
handleConsentResponse_
* @param {!Object} data * @return {!DeferredAccountCreationResponse} * @private
third_party/subscriptions-project/swg.js:10149
↓ 1 callers
Method
handleContextMenuClick_
* Handles "contextmenu" event e.g. right mouse button click. * @param {!Element} element * @param {!Event} e * @private
src/service/navigation.js:383
↓ 1 callers
Method
handleCustomProtocolClick_
* Handles clicking on a custom protocol link. * Returns true if the navigation was handled. Otherwise, returns false. * @param {!Event} e * @
src/service/navigation.js:437
↓ 1 callers
Method
handleDocumentKeydown_
* Close the date picker overlay when the escape key is pressed. * @param {!Event} e * @private * @return {*} TODO(#23582): Specify return typ
extensions/amp-date-picker/0.1/amp-date-picker.js:1119
↓ 1 callers
Method
handleEvent_
* Callback for events that are registered by the config's triggers. This * method generates requests and sends them out. * * @param {!JsonObj
extensions/amp-analytics/0.1/amp-analytics.js:620
↓ 1 callers
Method
handleEvent_
* Handles Iframely events: widget sizing, cancel, decorate cards * @param {window.event} event - Iframely message with a method to apply *
extensions/amp-iframely/0.1/amp-iframely.js:153
↓ 1 callers
Method
handleExpandRequest_
* @param {!JsonObject} payload * @private
extensions/amp-ad-network-doubleclick-impl/0.1/safeframe-host.js:491
↓ 1 callers
Method
handleGetTcData_
* Create minimal PingReturn object. Send to original iframe * once object has been filled. * @param {!Object} payload * @param {!Window} win
extensions/amp-consent/0.1/tcf-api-command-manager.js:194
↓ 1 callers
Method
handleGfycatMessages_
* @param {!Event} event * @private
extensions/amp-gfycat/0.1/amp-gfycat.js:188
↓ 1 callers
Method
handleHashNavigation_
* Handles clicking on an internal link * @param {!Event} e * @param {!Location} toLocation * @param {!Location} fromLocation * @private
src/service/navigation.js:597
↓ 1 callers
Method
handleHeadingKeyDown_
* Handler for key presses on an item heading. * @param {!Event} event keydown event. * @private
extensions/amp-mega-menu/0.1/amp-mega-menu.js:282
↓ 1 callers
Method
handleImgurMessages_
* @param {!Event} event * @private *
extensions/amp-imgur/0.1/amp-imgur.js:135
↓ 1 callers
Function
handleInUnitVideo
(media, apesterElement, consentObj)
extensions/amp-apester-media/0.1/monetization/inUnit/video.js:12
↓ 1 callers
Method
handleInactive_
@private
extensions/amp-analytics/0.1/activity-impl.js:273
↓ 1 callers
Method
handleIndexChange_
* @param {!Event} event
extensions/amp-base-carousel/0.1/auto-advance.js:223
↓ 1 callers
Method
handleInputKeydown_
* Handle the states for keyboard input. * @param {!Event} e * @private
extensions/amp-date-picker/0.1/amp-date-picker.js:1135
↓ 1 callers
Method
handleInstagramMessages_
* @param {!Event} event * @private
extensions/amp-instagram/0.1/amp-instagram.js:141
↓ 1 callers
Function
handleKeyPress
* @param {!Event} event * @param {?string} finalEndpoint * @param {string} target
src/bento/components/bento-social-share/1.0/component.js:261
↓ 1 callers
Function
handleLink
* Collect links that are from allowed font providers or used for image * preloading. Remove other <link> elements. * @param {!Array<string>} fonts
extensions/amp-a4a/0.1/head-validation.js:190
↓ 1 callers
Method
handleLinkSaveResponse_
* @param {!Object} result * @return {!Promise<boolean>} * @private
third_party/subscriptions-project/swg.js:14364
↓ 1 callers
Method
handleLoadMoreFailed_
* @private
extensions/amp-list/0.1/amp-list.js:1569
↓ 1 callers
Function
handleMatch
(match, loopNdx, quantifierRecurse)
third_party/inputmask/inputmask.js:851
↓ 1 callers
Method
handleMediaError_
* Gracefully handle media errors if possible. * @param {!Event} event
extensions/amp-video/0.1/amp-video.js:448
↓ 1 callers
Method
handleMenuItemNavigation_
* Handle up/down/home/end key down event to navigate between items; * this requires each menu item to be under a li element and focusable. * @pa
extensions/amp-nested-menu/0.1/amp-nested-menu.js:310
↓ 1 callers
Method
handleMenuNavigation_
* Handle left/right arrow key down event to navigate between menus. * @param {!Event} e * @private
extensions/amp-nested-menu/0.1/amp-nested-menu.js:288
↓ 1 callers
Method
handleMessageEvent_
* @param {!Event} e postMessage event from the AMP page. * @private
third_party/subscriptions-project/swg.js:17722
↓ 1 callers
Method
handleMessage_
* Fake docs for testing * @param {*} e
extensions/amp-viewer-integration/0.1/webview-viewer-for-testing.js:226
↓ 1 callers
Method
handleMinuteMediaPlayerMessage_
* @param {!Event} event * @private
extensions/amp-minute-media-player/0.1/amp-minute-media-player.js:152
↓ 1 callers
Method
handleNavigationKeyDown_
* Handler for arrow key presses to navigate between menu items. * @param {!Event} event keydown event. * @private
extensions/amp-mega-menu/0.1/amp-mega-menu.js:306
↓ 1 callers
Method
handleNavigation_
* Handles click-navigation on a non-A2A, standard-protocol link. * @param {!Event} e * @param {!Element} element * @param {!Location} toLocat
src/service/navigation.js:508
↓ 1 callers
Method
handleNonXhrPost_
@private
extensions/amp-form/0.1/amp-form.js:1068
↓ 1 callers
Method
handleOnError
* Default handler for onError event * Displays Fallback / Placeholder. Override to customize. * @protected
src/preact/amp-base-element.js:86
↓ 1 callers
Method
handleOnLoad
* Default handler for onLoad event * Displays loader. Override to customize. * @protected
src/preact/amp-base-element.js:66
↓ 1 callers
Method
handleOnLoading
* Default handler for onLoading event * Reveals loader. Override to customize. * @protected
src/preact/amp-base-element.js:77
↓ 1 callers
Method
handleOoyalaMessage_
* @param {!Event} event * @private
extensions/amp-ooyala-player/0.1/amp-ooyala-player.js:179
↓ 1 callers
Method
handlePermissionDialogInteraction
* Processes the result of a user dismissing, granting, or denying * notification permissions when subscribing. * * @param {Array<?>} result
extensions/amp-web-push/0.1/web-push-service.js:771
↓ 1 callers
Method
handlePingEvent_
* Create minimal PingReturn object. Send to original iframe * once object has been filled. * @param {!Object} payload * @param {!Window} win
extensions/amp-consent/0.1/tcf-api-command-manager.js:254
↓ 1 callers
Function
handlePlaybuzzItemEvent
* @param {!Event} event * @param {string} eventName * @param {Function} handler
extensions/amp-playbuzz/0.1/utils.js:86
↓ 1 callers
Method
handlePlayerMessage_
* @param {!Event} event * @private
extensions/amp-ima-video/0.1/amp-ima-video.js:307
↓ 1 callers
Method
handlePostPromptUI_
* Handles the display of postPromptUI
extensions/amp-consent/0.1/amp-consent.js:909
↓ 1 callers
Method
handlePresubmitSuccess_
* Handle successful presubmit tasks * @param {!ActionTrust_Enum} trust * @return {!Promise}
extensions/amp-form/0.1/amp-form.js:696
↓ 1 callers
Method
handlePreviewToVisibleTransition_
* Handles the transition between the `preview` and `visible` visibility * states by reinitializing this page's advancement config. * * As lon
extensions/amp-story/1.0/amp-story-page.js:462
↓ 1 callers
Method
handlePropagationInViewer_
* Attach singal onto touchmove event to stop propagation to viewer * to be handled at the viewer integration layer in bubble phase.
extensions/amp-carousel/0.2/amp-carousel.js:651
↓ 1 callers
Method
handleReady_
* Handle the ready event from the CMP iframe * @param {!JsonObject} data
extensions/amp-consent/0.1/consent-ui.js:389
↓ 1 callers
Method
handleRemoveEventListner_
* @param {!Object} payload * @param {!Window} win
extensions/amp-consent/0.1/tcf-api-command-manager.js:119
↓ 1 callers
Function
handleReplaceUrl
* Handle the getReplaceUrl and return a promise when url is replaced Only * handles replaceUrl when viewer indicates AMP to do so. Viewer should indi
src/impression.js:120
↓ 1 callers
Method
handleRequestForEvent_
* Processes a request for an event callback and sends it out. * * @param {string} requestName The requestName to process. * @param {!JsonObje
extensions/amp-analytics/0.1/amp-analytics.js:642
↓ 1 callers
Function
handleResizeDenied
* Helper function for handling denied resize requests. Creates an overflow element if one does not exist * @param {!Window} global * @param {!Elemen
ads/vendors/revcontent.js:111
↓ 1 callers
Method
handleResizeRequest_
* @param {!JsonObject} payload * @private
extensions/amp-ad-network-doubleclick-impl/0.1/safeframe-host.js:612
↓ 1 callers
Function
handleResizeSuccess
* Helper function for handling successful resize requests * @param {!Window} global
ads/vendors/revcontent.js:125
↓ 1 callers
Method
handleResizeToContentsAction_
@private
extensions/amp-render/1.0/amp-render.js:103
↓ 1 callers
Method
handleResize_
* Force remeasure inside FIE doc when iframe is resized. * @private
src/friendly-iframe-embed.js:558
↓ 1 callers
Method
handleResponse_
* @param {number} id * @param {!JsonObject} args * @private
src/video-iframe-integration.js:149
↓ 1 callers
Method
handleResponse_
* @param {!JsonObject} res * @return {?string}
src/service/cid-api.js:155
↓ 1 callers
Method
handleResponse_
* I sent out a request to Bob. He responded. And now I'm handling that * response. * @param {!AmpViewerMessage} message * @private
extensions/amp-viewer-integration/0.1/messaging/messaging.js:444
↓ 1 callers
Method
handleRtcForCustomUrls
* Manages sending the RTC callouts for the Custom URLs. * @param {!{[key: string]: !../../../src/service/variable-source.AsyncResolverDef}} customM
src/service/real-time-config/real-time-config-impl.js:310
↓ 1 callers
Method
handleRtcForVendorUrls
* Manages sending the RTC callouts for all specified vendors. * @param {!{[key: string]: !../../../src/service/variable-source.AsyncResolverDef}} c
src/service/real-time-config/real-time-config-impl.js:339
↓ 1 callers
Method
handleSafariStandalone_
* Force iOS PWAs to load internal domain documents in the original tab. * By default, iOS PWAs will load all links in the Safari app with the *
extensions/amp-standalone/0.1/amp-standalone.js:88
↓ 1 callers
Function
handleScript
* Allows json scripts and allowlisted amp elements while removing others. * @param {!Array<{extensionId: string, extensionVersion: string}>} extensio
extensions/amp-a4a/0.1/head-validation.js:162
↓ 1 callers
Method
handleScrollEnd_
* For browsers that support the scrollend event, reset the reference point * immediately. This prevents users from hitting the wrapping point while
extensions/amp-base-carousel/0.1/carousel.js:831
↓ 1 callers
Method
handleScroll_
* Handles a scroll event, updating the current index as well as moving * slides around as needed. * @private
extensions/amp-base-carousel/0.1/carousel.js:814
↓ 1 callers
Method
handleScroll_
* Handles scroll, resetting the auto advance.
extensions/amp-base-carousel/0.1/auto-advance.js:216
↓ 1 callers
Method
handleSsrTemplateResponse_
* Transition the form to the submit-success or submit-error state depending on the response status. * @param {!JsonObject} response * @param {!A
extensions/amp-form/0.1/amp-form.js:831
↓ 1 callers
Method
handleSsrTemplate_
* Handles the server side proxying and then rendering of the template. * @param {ActionTrust_Enum} trust * @return {!Promise} * @private
extensions/amp-form/0.1/amp-form.js:756
↓ 1 callers
Function
handleStyle
* Remove any non `amp-custom` or `amp-keyframe` styles. * @param {!Element} style
extensions/amp-a4a/0.1/head-validation.js:209
↓ 1 callers
Method
handleSubmenuCloseClick_
* Handles click on the given element to close the submenu. * @param {!Element} closeElement * @private
extensions/amp-nested-menu/0.1/amp-nested-menu.js:208
↓ 1 callers
Method
handleSwipe_
* Handles a swipe gesture, updating the current swipe to dismiss state. * @param {!SwipeDef} data
extensions/amp-sidebar/0.2/amp-sidebar.js:607
↓ 1 callers
Method
handleTap_
* @private * @param {!Element} targetElement
extensions/amp-story-dev-tools/0.1/amp-story-dev-tools-tab-preview.js:511
↓ 1 callers
Method
handleTap_
* Handles a tap event on the quiz element. * @param {Event} e * @protected
extensions/amp-story-interactive/0.1/amp-story-interactive-abstract.js:494
↓ 1 callers
Method
handleTap_
* @param {!../../../src/gesture-recognizers.TapDef} data
extensions/amp-pan-zoom/0.1/amp-pan-zoom.js:620
↓ 1 callers
Method
handleTcfMessage_
* Listen to iframe messages and handle events. * * The listeners will listen for post messages from 3p * iframes that have the following stru
extensions/amp-consent/0.1/amp-consent.js:1060
↓ 1 callers
Function
handleTextareaDrag
* This makes no assumptions about the location of the resize handle, and it * assumes that if the user drags the mouse at any position and the height
extensions/amp-form/0.1/amp-form-textarea.js:194
↓ 1 callers
Method
handleThumbnailClick_
* @param {Event} event * @param {number} id * @private
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:1344
↓ 1 callers
Method
handleTiktokMessages_
* @param {!Event} event * @private
extensions/amp-tiktok/0.1/amp-tiktok.js:232
↓ 1 callers
Method
handleToggleTheme_
* Handles the `toggleTheme` action. * * This action sets the `amp-dark-mode` class on the body element and stores the the preference for dark mo
src/service/standard-actions-impl.js:338
↓ 1 callers
Function
handleTopLevelAttributes_
* Handles top level fields in the given config * @param {!JsonObject} config * @return {JsonObject}
extensions/amp-analytics/0.1/config.js:568
↓ 1 callers
Method
handleTouchStart_
* Handles a touch start, preventing `resetScrollReferencePoint_` from * running until the user stops touching. * @private
extensions/amp-base-carousel/0.1/carousel.js:779
↓ 1 callers
Method
handleTouchStart_
* Handles touchstart, pausing the autoadvance until the user lets go.
extensions/amp-base-carousel/0.1/auto-advance.js:186
↓ 1 callers
Method
handleUnload_
* Notifies the viewer when this document is unloaded. * @param {!Messaging} messaging * @return {Promise<*>|undefined} * @private
extensions/amp-viewer-integration/0.1/amp-viewer-integration.js:237
↓ 1 callers
Function
handleValidatorNotPresent
(tabId)
validator/js/chromeextension/worker.js:180
↓ 1 callers
Method
handleVarGroups_
* Check to see which varGroups are enabled, resolve and merge them into * vars object. * @param {!JsonObject} pubConfig * @return {!Promise}
extensions/amp-analytics/0.1/config.js:268
↓ 1 callers
Method
handleViewportPlayPause
* Handle auto play/pause based on viewport visibility. * * @param {boolean} inViewport
extensions/amp-slikeplayer/0.1/amp-slikeplayer.js:346
↓ 1 callers
Method
handleViqeoMessages_
* @param {!Event|{data: !JsonObject}} event * @return {?JsonObject|string|undefined} * @private *
extensions/amp-viqeo-player/0.1/amp-viqeo-player.js:164
↓ 1 callers
Method
handleVkIframeMessage_
* @param {!Event} e * @private
extensions/amp-vk/0.1/amp-vk.js:225
↓ 1 callers
Method
handleWheel_
* Handles a wheel event. * @private
extensions/amp-base-carousel/0.1/carousel.js:803
↓ 1 callers
Method
handleXhrSubmitFailure_
* @param {*} e * @param {!ActionTrust_Enum} incomingTrust Trust of the originating submit action. * @return {!Promise} * @private
extensions/amp-form/0.1/amp-form.js:1024
↓ 1 callers
Method
handleXhrSubmitSuccess_
* @param {!Response} response * @param {!ActionTrust_Enum} incomingTrust Trust of the originating submit action. * @return {!Promise} * @priv
extensions/amp-form/0.1/amp-form.js:977
↓ 1 callers
Method
handleXhrSubmit_
* @param {ActionTrust_Enum} trust * @return {!Promise} * @private
extensions/amp-form/0.1/amp-form.js:733
↓ 1 callers
Method
handleXhrVerify_
* Send the verify request and control the VERIFYING state. * @return {!Promise} * @private
extensions/amp-form/0.1/amp-form.js:712
← previous
next →
9,401–9,500 of 18,703, ranked by callers