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
initMasterFrame
* @param {!Object} data * @param {!Window} global
ads/vendors/pubmine.js:19
↓ 1 callers
Method
initMediaAttrs_
@private
src/custom-element.js:1016
↓ 1 callers
Method
initMessagingChannel_
* Initialize messaging channel with Viewer host. * This promise will resolve when communications channel has been * established or timeout in 20
src/service/viewer-impl.js:280
↓ 1 callers
Function
initPlayer
* @param {!Window} global * @param {!Object} data
ads/vendors/nativeroll.js:22
↓ 1 callers
Method
initPromptUI_
* Handle Prompt UI. * @param {boolean} isConsentRequired * @return {Promise<boolean>}
extensions/amp-consent/0.1/amp-consent.js:875
↓ 1 callers
Function
initReducer
(config: PanZoomConfig)
extensions/amp-pan-zoom/1.0/hooks/usePanZoomState.ts:120
↓ 1 callers
Method
initReportWindow_
* Initializes report window.
extensions/amp-analytics/0.1/requests.js:326
↓ 1 callers
Method
initSemanticFields_
* Init Semantic params * @private
extensions/amp-minute-media-player/0.1/amp-minute-media-player.js:137
↓ 1 callers
Function
initSlotList
(context)
ads/vendors/springAds.js:9
↓ 1 callers
Method
initTemplateString_
* @private * @return {string}
extensions/amp-mustache/0.2/amp-mustache.js:66
↓ 1 callers
Method
initTemplateString_
* @private * @return {string}
extensions/amp-mustache/0.1/amp-mustache.js:62
↓ 1 callers
Method
initThemeMode_
* Handles initializing the theme mode. * * This method needs to be called on page load to set the `amp-dark-mode` * class on the body if the
src/service/standard-actions-impl.js:122
↓ 1 callers
Method
initTouchHandler_
* @param {!Messaging} messaging * @private
extensions/amp-viewer-integration/0.1/amp-viewer-integration.js:253
↓ 1 callers
Method
initTracking_
* Initialise tracking module. * @return {!./tracking.Tracking} * @private
extensions/amp-skimlinks/0.1/amp-skimlinks.js:178
↓ 1 callers
Method
init_
* Initializes the mutation observer and observable.
src/service/hidden-observer-impl.js:62
↓ 1 callers
Method
init_
* Install event listeners for engaged singals. * `amp-analytics` waits for ampdoc to be visible first.
extensions/amp-analytics/0.1/session-manager.js:93
↓ 1 callers
Method
init_
* Parse the config and write to cookie * Config looks like * cookies: { * enabled: true/false, //Default to true * cookieNameA: { *
extensions/amp-analytics/0.1/cookie-writer.js:86
↓ 1 callers
Method
init_
* @param {!Element} sourceElement * @private
extensions/amp-image-lightbox/0.1/amp-image-lightbox.js:973
↓ 1 callers
Method
init_
* @private
extensions/amp-orientation-observer/0.1/amp-orientation-observer.js:78
↓ 1 callers
Method
init_
* Initializes the image viewer to the target image element such as * "amp-img". The target image element may or may not yet have the img * eleme
extensions/amp-image-viewer/0.1/amp-image-viewer.js:292
↓ 1 callers
Method
init_
@private
extensions/amp-fx-collection/0.1/scroll-toggle.js:58
↓ 1 callers
Method
init_
* Create localization service and register all bundles.
extensions/amp-story-auto-ads/0.1/story-ad-localization.js:105
↓ 1 callers
Method
init_
* Init the amp-consent by registering and initiate consent instance.
extensions/amp-consent/0.1/amp-consent.js:600
↓ 1 callers
Method
init_
* Helper method to register to listen to consent instance value change * and get the initial consent value
extensions/amp-consent/0.1/consent-policy-manager.js:155
↓ 1 callers
Method
init_
* Parse the config and write to cookie * Config looks like * cookies: { * enabled: true/false, //Default to true * cookieNameA: { *
extensions/amp-consent/0.1/cookie-writer.js:79
↓ 1 callers
Method
init_
* @param {!JsonObject} config * @param {string=} opt_postPromptUI
extensions/amp-consent/0.1/consent-ui.js:183
↓ 1 callers
Method
initializeActions_
* Sets up the actions supported by this element. * @private
extensions/amp-stream-gallery/0.1/amp-stream-gallery.js:194
↓ 1 callers
Method
initializeActions_
* @private
extensions/amp-base-carousel/0.1/amp-base-carousel.js:419
↓ 1 callers
Method
initializeAnchorElStories_
* Initializes stories declared inline as <a> elements. * @private
src/amp-story-player/amp-story-player-impl.js:418
↓ 1 callers
Method
initializeAttribution_
@private
src/amp-story-player/amp-story-player-impl.js:1973
↓ 1 callers
Method
initializeAutoplay_
@private
src/amp-story-player/amp-story-player-impl.js:1960
↓ 1 callers
Method
initializeButton_
* Helper to create a button. * TODO(#30031): delete this once new custom UI API is ready. * @private
src/amp-story-player/amp-story-player-impl.js:482
↓ 1 callers
Method
initializeCaptionsListener_
* Listens for changes on captions if there are tracks on videos and page is active. * @private
extensions/amp-story/1.0/amp-story-page.js:2019
↓ 1 callers
Method
initializeChildLayoutManagement_
* Setups up visibility tracking for the child elements, laying them out * when needed.
extensions/amp-stream-gallery/0.1/amp-stream-gallery.js:694
↓ 1 callers
Method
initializeChildLayoutManagement_
* Setups up visibility tracking for the child elements, laying them out * when needed.
extensions/amp-base-carousel/0.1/amp-base-carousel.js:381
↓ 1 callers
Method
initializeCircularWrapping_
* @private * @return {boolean}
src/amp-story-player/amp-story-player-impl.js:2002
↓ 1 callers
Method
initializeDesktopStoryControlUI_
* Builds panel mode "previous" and "next" story UI. * @private
src/amp-story-player/amp-story-player-impl.js:768
↓ 1 callers
Method
initializeHandshake_
* @param {!StoryDef} story * @param {!Element} iframeEl * @return {!Promise<!Messaging>} * @private
src/amp-story-player/amp-story-player-impl.js:705
↓ 1 callers
Function
initializeIframeMessagingClient
* Function to initialize our IframeMessagingClient * @param {Window} win * @param {*} grecaptcha * @param {!JsonObject} dataObject
3p/recaptcha.js:126
↓ 1 callers
Method
initializeIframe_
* @private
extensions/amp-access-poool/0.1/poool-impl.js:119
↓ 1 callers
Method
initializeImgAltTags_
* Adds an empty alt tag to amp-img elements if not present. * Prevents screen readers from announcing the img src value. * @private
extensions/amp-story/1.0/amp-story-page.js:1962
↓ 1 callers
Method
initializeInObOrFallback_
@private
src/amp-story-player/amp-story-player-viewport-observer.js:33
↓ 1 callers
Method
initializeListeners_
* @private
extensions/amp-stream-gallery/0.1/amp-stream-gallery.js:226
↓ 1 callers
Method
initializeListeners_
* @private
extensions/amp-base-carousel/0.1/amp-base-carousel.js:451
↓ 1 callers
Method
initializeListeners_
* @private
extensions/amp-story-dev-tools/0.1/amp-story-dev-tools.js:163
↓ 1 callers
Method
initializeListeners_
* @private
extensions/amp-story/1.0/amp-story-system-layer.js:395
↓ 1 callers
Method
initializeListeners_
* @private
extensions/amp-story/1.0/amp-story-consent.js:194
↓ 1 callers
Method
initializeListeners_
* @private
extensions/amp-story/1.0/amp-story-share.js:52
↓ 1 callers
Method
initializeListeners_
@private
extensions/amp-story/1.0/pagination-buttons.js:204
↓ 1 callers
Method
initializeListeners_
@private
extensions/amp-story/1.0/variable-service.js:81
↓ 1 callers
Method
initializeListeners_
@private
extensions/amp-story/1.0/story-analytics.js:104
↓ 1 callers
Method
initializeListeners_
* Initializes listeners for keydown, mousedown, focus, etc. events. * @private
extensions/amp-autocomplete/0.1/amp-autocomplete.js:330
↓ 1 callers
Method
initializeListeners_
* Attaches functions to each option to handle state transition. * @private
extensions/amp-story-interactive/0.1/amp-story-interactive-abstract.js:463
↓ 1 callers
Method
initializeListeners_
* Subscribes to all relevant state changes from the containing story. * @private
extensions/amp-story-auto-ads/0.1/amp-story-auto-ads.js:275
↓ 1 callers
Method
initializeLiveStory_
* Initialize LiveStoryManager if this is a live story. * @private
extensions/amp-story/1.0/amp-story.js:1154
↓ 1 callers
Method
initializeLoadMore
()
extensions/amp-list/0.1/service/load-more-service.js:30
↓ 1 callers
Method
initializeLoadMoreEndElement_
* @private
extensions/amp-list/0.1/service/load-more-service.js:177
↓ 1 callers
Method
initializeLoadingListeners_
* @param {!Element} iframeEl * @private
src/amp-story-player/amp-story-player-impl.js:721
↓ 1 callers
Method
initializeMediaPool_
@private
extensions/amp-story/1.0/amp-story-page.js:606
↓ 1 callers
Method
initializeMediaPool_
* Fills the media pool by creating the maximum number of media elements for * each of the types of media elements. We need to create these eagerly
extensions/amp-story/1.0/media-pool.js:232
↓ 1 callers
Method
initializePageIds_
* Initializes page ids by deduplicating them. * @private
extensions/amp-story/1.0/amp-story.js:583
↓ 1 callers
Method
initializePageQueue_
* Parses the amp-next-page element for inline or remote list of pages and * adds them to the queue * @private * @return {!Promise}
extensions/amp-next-page/1.0/service.js:809
↓ 1 callers
Method
initializePageScroll_
@private
src/amp-story-player/amp-story-player-impl.js:1986
↓ 1 callers
Method
initializePages_
* Create new page containing ad and start preloading. * @private
extensions/amp-story-auto-ads/0.1/amp-story-auto-ads.js:385
↓ 1 callers
Method
initializeShadowRoot_
@private
src/amp-story-player/amp-story-player-impl.js:451
↓ 1 callers
Method
initializeShadowRoot_
@private
src/amp-story-player/amp-story-entry-point/amp-story-entry-point-impl.js:58
↓ 1 callers
Method
initializeStandaloneStory_
* Note: runs in the buildCallback vsync mutate context. * @private
extensions/amp-story/1.0/amp-story.js:572
↓ 1 callers
Method
initializeStoryNavigationPath_
* Checks for the storyNavigationPath stack in the history. * @private
extensions/amp-story/1.0/amp-story.js:2534
↓ 1 callers
Method
initializeStoryPlayer_
* Installs amp-viewer-integration script in case story is inside an * amp-story-player. * @private
extensions/amp-story/1.0/amp-story.js:1351
↓ 1 callers
Method
initializeTabbableElements_
* Set the i-amphtml-orig-tabindex to the default tabindex of tabbable elements
extensions/amp-story/1.0/amp-story-page.js:1989
↓ 1 callers
Function
initializeTestConstructs
* Initializes the constructs with which all test cases are authored.
testing/init-tests-helpers.js:76
↓ 1 callers
Function
initializeTests
()
testing/init-tests-helpers.js:53
↓ 1 callers
Method
initializeThumbnails_
* Create thumbnails displayed in lightbox gallery. * This function only supports initialization now. * @private
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:1319
↓ 1 callers
Method
initialize_
* Scans the root node (and array of optional nodes) for bindings. * @param {!Node} root * @return {!Promise} * @private
extensions/amp-bind/0.1/bind-impl.js:587
↓ 1 callers
Method
initialize_
* Lazily builds the lightbox DOM on the first open. * @private
extensions/amp-lightbox/0.1/amp-lightbox.js:213
↓ 1 callers
Method
initialize_
* Function to create our recaptcha boostrap iframe. * Should be assigned to this.iframeLoadPromise_ * @private * @return {?Promise}
extensions/amp-recaptcha-input/0.1/amp-recaptcha-service.js:172
↓ 1 callers
Method
initialize_
* * @param {!JsonObject} validatedConfig
extensions/amp-consent/0.1/amp-consent.js:155
↓ 1 callers
Method
initiateSraRequests
* Executes SRA request via the following steps: * - create only one executor per page * - get all doubleclick amp-ad instances on the page *
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:1700
↓ 1 callers
Function
injectIframe
* Injects the pay with google iframe. * @param {string} iframeClassName The classname of the iFrame wrapper. * @return {!{container: !Element, ifram
third_party/subscriptions-project/swg.js:16292
↓ 1 callers
Function
injectWrapper
* @param {babel.NodePath<import('@babel/types').Program>} path * @param {babel.types.Statement} wrapper
build-system/babel-plugins/babel-plugin-nomodule-loader/index.js:49
↓ 1 callers
Function
inlineEnumValues
* @param {!babel.NodePath<babel.types.CallExpression>} path * @param {string} filename
build-system/babel-plugins/babel-plugin-transform-inline-isenumvalue/index.js:196
↓ 1 callers
Function
inlineIsEnumValue
* @param {!babel.NodePath<babel.types.CallExpression>} path * @param {string} filename
build-system/babel-plugins/babel-plugin-transform-inline-isenumvalue/index.js:154
↓ 1 callers
Function
inquireForTestFunction_
* Queries the user for an interactive test, or selects the base case if none. * * @param {!WebpageDef} webpage a JSON object containing details abou
build-system/tasks/visual-diff/dev-mode.js:165
↓ 1 callers
Function
inquireForWebpage_
* Queries the user for a webpage, or selects one if only one matched --grep. * * @param {!Array<!WebpageDef>} webpages an array of JSON objects cont
build-system/tasks/visual-diff/dev-mode.js:128
↓ 1 callers
Function
insert
(iframe)
test/unit/test-intersection-observer-polyfill.js:41
↓ 1 callers
Function
insertCss
* @param {!Node} parent * @param {string} css
ads/google/ima/ima-video.js:195
↓ 1 callers
Method
insertExtensionScriptIfNeeded_
* Ensures that the script has already been injected in the page. * @param {string} extensionId * @param {string} version * @param {!Extension
src/service/extensions-impl.js:599
↓ 1 callers
Method
insertIframe_
* @param {string} src * @private
extensions/amp-onetap-google/0.1/amp-onetap-google.js:257
↓ 1 callers
Method
insertIframe_
* Insert an iframe from the origin domain to install the service worker. * @return {!Promise} * @private
extensions/amp-install-serviceworker/0.1/amp-install-serviceworker.js:119
↓ 1 callers
Method
insertIntoParentStory_
* * @param {!StoryAdPage} nextAdPage * @param {string} pageBeforeAdId * @return {InsertionState}
extensions/amp-story-auto-ads/0.1/story-ad-page-manager.js:198
↓ 1 callers
Method
insertPage
* Insert a new page in navigation flow by changing the attr pointers * on amp-story-page elements * @param {string} pageBeforeId * @param {st
extensions/amp-story/1.0/amp-story.js:2610
↓ 1 callers
Method
insertPage
(unusedPageBeforeId, unusedPageToBeInsertedId)
extensions/amp-story-auto-ads/0.1/test/story-mock.js:39
↓ 1 callers
Function
insertStyleElement
* Creates the properly configured style element. * @param {!Element|!ShadowRoot} cssRoot * @param {string} cssText * @param {boolean} isRuntimeCss
src/style-installer.js:81
↓ 1 callers
Method
insert_
* Reparents the html from the server to the live DOM. * Returns the number of element insertion operations done. * * @param {!Element} parent
extensions/amp-live-list/0.1/amp-live-list.js:416
↓ 1 callers
Function
inspectString
(t,e)
third_party/react-dates/bundle.js:1
↓ 1 callers
Function
install
(win)
src/polyfills/array-includes.js:30
↓ 1 callers
Function
install
(win)
src/polyfills/abort-controller.js:64
↓ 1 callers
Function
install
* Installs the service worker at src via direct service worker installation. * @param {!Window} win * @param {string} src * @param {Element} elemen
extensions/amp-install-serviceworker/0.1/amp-install-serviceworker.js:325
↓ 1 callers
Method
installActions_
* @param {!./action-impl.ActionService} actionService * @private
src/service/standard-actions-impl.js:81
↓ 1 callers
Function
installAlpClickHandler
(win)
ads/alp/handler.js:24
← previous
next →
9,601–9,700 of 18,703, ranked by callers