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
installAmpAdStylesPromise
* @param {!Window} win
testing/describes.js:935
↓ 1 callers
Function
installAmpTaskRunner
* Installs the `amp` task runner to the npm bin directory if it hasn't already * been installed. Ensures that the binary exists and is a node runner
build-system/task-runner/install-amp-task-runner.js:22
↓ 1 callers
Function
installAmpdocServicesForEmbed
(ampdoc)
src/service/core-services.js:83
↓ 1 callers
Function
installAutoLightboxExtension
(ampdoc)
src/auto-lightbox.js:27
↓ 1 callers
Method
installAutoplayElements_
* Installs autoplay animation and interaction mask when interactive. * The animated icon is appended always, but only displayed by CSS when * `c
src/service/video-manager-impl.js:824
↓ 1 callers
Function
installAutoplayStylesForDoc
(ampdoc)
src/service/video/install-autoplay-styles.js:8
↓ 1 callers
Function
installBrowserAssertions
* @param {*} _networkLogger
build-system/tasks/e2e/expect.js:261
↓ 1 callers
Method
installControls_
* @return {!Controls} * @private
extensions/amp-video-docking/0.1/amp-video-docking.js:542
↓ 1 callers
Function
installCssTransformer
(cssRoot, transformer)
src/style-installer.js:164
↓ 1 callers
Method
installDomUpdateEventListener_
* Listen for DOM updated messages sent to the document. * @param {!Document|!ShadowRoot} doc * @private
extensions/amp-form/0.1/amp-form.js:1644
↓ 1 callers
Method
installElement_
* Installs the specified element implementation in the ampdoc. * @param {!./ampdoc-impl.AmpDoc} ampdoc * @param {string} name * @param {typeo
src/service/extensions-impl.js:366
↓ 1 callers
Function
installEmbedStateListener
()
3p/environment.js:262
↓ 1 callers
Method
installEventHandlers_
* @private
extensions/amp-form/0.1/form-dirtiness.js:118
↓ 1 callers
Method
installEventHandlers_
@private
extensions/amp-form/0.1/amp-form.js:394
↓ 1 callers
Method
installExitServiceForDoc
* @param {!Element|!../service/ampdoc-impl.AmpDoc} elementOrAmpDoc * @param {function(new:Object, !../service/ampdoc-impl.AmpDoc)} impl
src/inabox/host-services.js:128
↓ 1 callers
Method
installFormSubmissionShortcutForTextarea_
* Listen for Ctrl/Cmd + Enter in textarea elements * to trigger form submission when relevant. * @param {!Document|!ShadowRoot} doc
extensions/amp-form/0.1/amp-form.js:1655
↓ 1 callers
Method
installFullscreenListener_
@private
src/service/video-manager-impl.js:1123
↓ 1 callers
Method
installFullscreenServiceForDoc
* @param {!Element|!../service/ampdoc-impl.AmpDoc} elementOrAmpDoc * @param {function(new:Object, !../service/ampdoc-impl.AmpDoc)} impl
src/inabox/host-services.js:97
↓ 1 callers
Method
installGestureRecognizers_
@private
extensions/amp-story/1.0/amp-story.js:916
↓ 1 callers
Method
installGlobalEventListener_
* Listen for DOM_UPDATE event. * @param {!Document|!ShadowRoot} rootNode * @private
extensions/amp-skimlinks/0.1/link-rewriter/link-rewriter-manager.js:182
↓ 1 callers
Method
installHandlers_
* Install the event handlers * @param {!../../../src/service/ampdoc-impl.AmpDoc} ampdoc * @return {!Promise} * @private
extensions/amp-form/0.1/amp-form.js:1610
↓ 1 callers
Function
installInaboxCidService
(ampdoc)
src/inabox/inabox-cid.js:25
↓ 1 callers
Function
installInaboxMutatorServiceForDoc
(ampdoc)
src/inabox/inabox-mutator.js:89
↓ 1 callers
Function
installInaboxViewerServiceForDoc
(ampdoc)
src/inabox/inabox-viewer.js:158
↓ 1 callers
Function
installInaboxViewportService
(ampdoc)
src/inabox/inabox-viewport.js:855
↓ 1 callers
Method
installInputMasking_
@private
extensions/amp-form/0.1/amp-form.js:462
↓ 1 callers
Function
installIntersectionObserverStub
(sandbox, win)
testing/intersection-observer-stub.js:8
↓ 1 callers
Function
installLayout
(win)
src/builtins/amp-layout/amp-layout.js:29
↓ 1 callers
Function
installLightboxGallery
(ampdoc)
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:1409
↓ 1 callers
Function
installLoadingIndicatorForDoc
(nodeOrDoc)
src/service/loading-indicator.js:23
↓ 1 callers
Method
installLocalizationStrings_
* Adds the localization string bundles to the localization service. * @private
extensions/amp-story/1.0/amp-story.js:2748
↓ 1 callers
Function
installMutatorServiceForDoc
(ampdoc)
src/service/mutator-impl.js:421
↓ 1 callers
Function
installNativeValueSetFallback
(npt)
third_party/inputmask/inputmask.js:2527
↓ 1 callers
Function
installObserver
* Installs a mutation observer in a window to look for iframes. * @param {!Window} win
3p/environment.js:148
↓ 1 callers
Method
installOrientationObserver_
@private
src/service/video-manager-impl.js:1169
↓ 1 callers
Function
installOriginExperimentsForDoc
(ampdoc)
src/service/origin-experiments-impl.js:278
↓ 1 callers
Method
installPageAttachmentExtension_
* Installs the page attachment extension. * @private
extensions/amp-story/1.0/amp-story-page.js:1901
↓ 1 callers
Function
installPatches
* Patches the DOM APIs to support synchronous Custom Elements. * @param {!Window} win * @param {!Registry} registry
src/polyfills/custom-elements.js:536
↓ 1 callers
Function
installPixel
(win)
src/builtins/amp-pixel/amp-pixel.js:116
↓ 1 callers
Function
installPolyfillsInChildWindow
* Install polyfills in the child window (friendly iframe). * @param {!Window} parentWin * @param {!Window} childWin
src/friendly-iframe-embed.js:686
↓ 1 callers
Function
installPositionBoundFx
(ampdoc, element, type)
extensions/amp-fx-collection/0.1/providers/fx-provider.js:116
↓ 1 callers
Function
installPullToRefreshBlocker
(win)
src/pull-to-refresh.js:9
↓ 1 callers
Function
installRepl
* Adds a REPL-like debugging experience to E2E tests. * Usage: * 1. In a test, add `await repl(this);` where `this` is mocha's this context. * T
build-system/tasks/e2e/repl.js:24
↓ 1 callers
Function
installResourcesServiceForDoc
(ampdoc)
src/service/resources-impl.js:1822
↓ 1 callers
Method
installScript_
* @param {string} src * @param {string=} fallbackSrc * @param {string=} customElement * @param {string=} customTemplate
examples/pwa/pwa.js:314
↓ 1 callers
Function
installScrollToggleStyles
(element)
extensions/amp-fx-collection/0.1/scroll-toggle.js:191
↓ 1 callers
Function
installScrollToggledFx
(ampdoc, element, type)
extensions/amp-fx-collection/0.1/providers/fx-provider.js:44
↓ 1 callers
Function
installStandaloneExtension
(ampdoc)
src/standalone.js:10
↓ 1 callers
Method
installStandardServicesInEmbed
* Adopt predefined core services for the embedded ampdoc (friendly iframe). * @param {!./service/ampdoc-impl.AmpDoc} ampdoc
src/friendly-iframe-embed.js:814
↓ 1 callers
Function
installStorageServiceForDoc
(ampdoc)
src/service/storage-impl.js:420
↓ 1 callers
Function
installStyles
(element, fxType)
extensions/amp-fx-collection/0.1/providers/amp-fx-presets-utils.js:62
↓ 1 callers
Function
installStylesLegacy
* @param {!Document} doc * @param {string} cssText * @param {function()} cb
testing/iframe.js:301
↓ 1 callers
Method
installStyles_
* Install the amp-form CSS * @param {!../../../src/service/ampdoc-impl.AmpDoc} ampdoc * @return {!Promise} * @private
extensions/amp-form/0.1/amp-form.js:1598
↓ 1 callers
Function
installTimerInEmbedWindow
(embedWin)
src/service/timer-impl.js:176
↓ 1 callers
Function
installUserNotificationManagerForTesting
(ampdoc)
extensions/amp-user-notification/0.1/amp-user-notification.js:557
↓ 1 callers
Method
installVisibilityServiceForDoc
* @param {!Element|!../service/ampdoc-impl.AmpDoc} elementOrAmpDoc * @param {function(new:Object, !../service/ampdoc-impl.AmpDoc)} impl
src/inabox/host-services.js:66
↓ 1 callers
Function
installYieldIt
(realIt)
testing/yield.js:7
↓ 1 callers
Function
instanceSort
* Needs to be wrapped to avoid a duplicate name conflict with the deprecated * sort function above. * @return {!Function}
extensions/amp-bind/0.1/bind-expression.js:92
↓ 1 callers
Function
instanceSplice
* Needs to be wrapped to avoid a duplicate name conflict with the deprecated * splice function above. * @return {!Function}
extensions/amp-bind/0.1/bind-expression.js:57
↓ 1 callers
Function
instrumentDocWrite
* Add instrumentation code to doc.write. * @param {!Window} parent * @param {!Window} win
3p/environment.js:63
↓ 1 callers
Function
instrumentEntryPoints
* Replace timers with variants that can be throttled. * @param {!Window} win
3p/environment.js:167
↓ 1 callers
Function
instrumentSrcdoc
* Add instrumentation code to iframe's srcdoc. * @param {!Window} parent * @param {!Element} iframe
3p/environment.js:84
↓ 1 callers
Function
instrumentationServiceForDocForTesting
(elementOrAmpDoc)
extensions/amp-analytics/0.1/instrumentation.js:149
↓ 1 callers
Function
instrumentationServicePromiseForDoc
(elementOrAmpDoc)
extensions/amp-analytics/0.1/instrumentation.js:139
↓ 1 callers
Method
interactionNext
* Goes to the next slide. This should be called from a user interaction.
extensions/amp-base-carousel/0.1/amp-base-carousel.js:242
↓ 1 callers
Method
interactionPrev
* Goes to the previous slide. This should be called from a user interaction.
extensions/amp-base-carousel/0.1/amp-base-carousel.js:249
↓ 1 callers
Method
interpolateScrollIntoView_
* @param {!Element} parent * @param {number} curScrollTop * @param {number} newScrollTop * @param {number=} opt_duration * @param {string=
src/service/viewport/viewport-impl.js:557
↓ 1 callers
Function
interpolatedBoxesTransform
(from, to, step = 1)
extensions/amp-video-docking/0.1/math.js:73
↓ 1 callers
Function
invalidVoidTag
* @param {*} string * @return {{ * tag: string, * offset: number, * length: number, * }[]}
build-system/eslint-rules/html-template.js:136
↓ 1 callers
Function
invocation
(method, args = {})
extensions/amp-inline-gallery/1.0/test/test-amp-inline-gallery.js:114
↓ 1 callers
Function
invoke
* Send the url to ad server and wait for its response * @param {!Window} win * @param {string} clickUrl * @return {!Promise<?JsonObject>}
src/impression.js:219
↓ 1 callers
Function
invokeAmpTaskRunner
* Invokes the repo-local `amp` task runner if we are inside a git repository.
build-system/task-runner/amp-cli-runner.js:31
↓ 1 callers
Method
invokeRenderer_
* @param {!./amp-ad-type-defs.ValidatorOutput} validatorOutput * @return {!Promise} * @private
extensions/amp-a4a/0.1/amp-ad-network-base.js:178
↓ 1 callers
Method
invokeValidator_
* Processes the ad response as soon as the XHR request returns. * @param {?Response} response * @return {!Promise} * @private
extensions/amp-a4a/0.1/amp-ad-network-base.js:152
↓ 1 callers
Function
irtpStringToBoolean
* Convert String value of isReadyToPay * (from JSON or Cache) to a boolean value. * @param {string} value * @return {boolean|undefined} * @private
third_party/subscriptions-project/swg.js:13353
↓ 1 callers
Method
isAbstractImplementation_
* @return {boolean} * @protected
3p/ampcontext.js:125
↓ 1 callers
Function
isActionAllowlisted
* Returns `true` if the given action invocation is allowlisted in the given * allowlist. Default actions' alias, 'activate', are automatically * all
src/service/action-impl.js:872
↓ 1 callers
Function
isActionableByTap
(element)
src/auto-lightbox.js:61
↓ 1 callers
Function
isAddthisFragment
(url)
extensions/amp-addthis/0.1/addthis-utils/fragment.js:29
↓ 1 callers
Method
isAllocatedMediaElement_
* @param {!MediaType_Enum} mediaType The media type to check. * @param {!DomElementDef} domMediaEl The element to check. * @return {boolean} tru
extensions/amp-story/1.0/media-pool.js:485
↓ 1 callers
Function
isAllowed
* @param {*} node * @return {boolean}
build-system/eslint-rules/no-array-destructuring.js:19
↓ 1 callers
Method
isAllowedOrigin_
* Returns whether variable substitution is allowed for given url. * @param {!Location} url * @return {boolean}
src/service/url-replacements-impl.js:1030
↓ 1 callers
Method
isAllowedOrigin_
* Determine if a postMessage message came from a trusted origin. * * Messages can arrive from any origin asking for information, so we want to
extensions/amp-web-push/0.1/window-messenger.js:161
↓ 1 callers
Function
isAllowlistedProp
(prop)
extensions/amp-animation/0.1/web-animation-types.js:205
↓ 1 callers
Method
isAlwaysFixed
* Intended to be implemented by subclasses. Tests whether the element * requires fixed positioning. * @return {boolean} * @public
src/base-element.js:393
↓ 1 callers
Function
isAmpCache
* Determine if the page is from an AMP Cache. * * @return {boolean} * @private
validator/js/chromeextension/content_script.js:73
↓ 1 callers
Function
isAmpCacheUrl
* Checks if the given URL is an AMP cache URL * @param {string} url * @return {boolean}
validator/cpp/engine/wasm/validator.js:150
↓ 1 callers
Function
isAmpDocument
* Determine if the page is an AMP page. * * @return {boolean} * @private
validator/js/chromeextension/content_script.js:89
↓ 1 callers
Method
isAmpPageHttps_
* Both the AMP page and the helper iframe must be HTTPS. * * It's possible for the AMP page to be HTTP; our extension should not * initialize
extensions/amp-web-push/0.1/web-push-service.js:1025
↓ 1 callers
Function
isAmpSrc
* @param {*} state * @return {boolean}
build-system/babel-plugins/babel-plugin-transform-rename-privates/index.js:58
↓ 1 callers
Method
isAmpStateSrc_
* Returns true if element's src points to amp-state. * * @param {string} src * @return {boolean} * @private
extensions/amp-list/0.1/amp-list.js:419
↓ 1 callers
Function
isAmpStoryTriggerType
* @param {string} triggerType * @return {boolean}
extensions/amp-analytics/0.1/events.js:155
↓ 1 callers
Method
isAnchorAdEnabled_
* @return {boolean} * @private
extensions/amp-auto-ads/0.1/anchor-ad-strategy.js:78
↓ 1 callers
Method
isAnimationWorkletSupported_
* @return {boolean} Whether animationWorklet can be used. * @private
extensions/amp-animation/0.1/web-animations.js:270
↓ 1 callers
Function
isApplicableNode
* Returns true for allowed AMP tags and non-AMP tags except <script>/<style> * @param {Element} node * @return {boolean}
src/core/dom/get-html.js:90
↓ 1 callers
Function
isArraylike
(obj)
third_party/inputmask/inputmask.dependencyLib.js:22
↓ 1 callers
Method
isAuthorizationEnabled
* @return {boolean}
extensions/amp-access/0.1/amp-access-source.js:566
↓ 1 callers
Method
isAutoplaySupported_
* @return {!Promise<boolean>} * @private
extensions/amp-story/1.0/amp-story-page.js:1051
↓ 1 callers
Method
isAutoplay_
* @return {!Promise<boolean>} * @private
extensions/amp-vimeo/0.1/amp-vimeo.js:145
↓ 1 callers
Method
isAvailable
* @param {!Element|!../service/ampdoc-impl.AmpDoc} elementOrAmpDoc * @return {boolean}
src/inabox/host-services.js:47
← previous
next →
9,701–9,800 of 18,703, ranked by callers