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
restore_
* @return {?JsonObject} data * @private
extensions/amp-access/0.1/amp-access-iframe.js:203
↓ 1 callers
Method
resume
Resumes the animation.
extensions/amp-story/1.0/animation.js:400
↓ 1 callers
Method
resume
* Plays the bodymovin animation.
extensions/amp-story/1.0/animation.js:910
↓ 1 callers
Method
resume
* @override
extensions/amp-animation/0.1/runners/native-web-animation-runner.js:118
↓ 1 callers
Method
resumeAll
Resumes all animations in the page.
extensions/amp-story/1.0/animation.js:637
↓ 1 callers
Method
resumeCallback
* Requests the element to resume its activity when the document returns from * an inactive state. The scope is up to the actual component. Among ot
src/base-element.js:624
↓ 1 callers
Method
resumeCallback
@override
extensions/amp-analytics/0.1/amp-analytics.js:175
↓ 1 callers
Method
resumeCallback
@override
extensions/amp-ad-exit/0.1/amp-ad-exit.js:477
↓ 1 callers
Method
resumeCallback
@override
extensions/amp-google-read-aloud-player/0.1/amp-google-read-aloud-player.js:91
↓ 1 callers
Method
resumeSubscribingForPushNotifications_
* If this page is loaded with a special URL query parameter indicating we * were just redirected from the permission dialog, then continue subscrib
extensions/amp-web-push/0.1/web-push-service.js:945
↓ 1 callers
Method
resume_
* @private
extensions/amp-story/1.0/amp-story-page.js:697
↓ 1 callers
Method
resume_
* Resumes the whole story on viewer visibilityState updates, or tab * visibility updates. * @private
extensions/amp-story/1.0/amp-story.js:540
↓ 1 callers
Method
retrieveInteractiveData_
* Get the Interactive data from the datastore * * @return {?Promise<?InteractiveResponseType|?JsonObject|undefined>} * @private
extensions/amp-story-interactive/0.1/amp-story-interactive-abstract.js:693
↓ 1 callers
Method
returnFrom
@override
src/service/fixed-layer.js:1127
↓ 1 callers
Function
reverseStatic
(st)
third_party/inputmask/inputmask.js:390
↓ 1 callers
Function
reverseTokens
(maskToken)
third_party/inputmask/inputmask.js:389
↓ 1 callers
Method
rewind_
@private
extensions/amp-story-360/0.1/amp-story-360.js:851
↓ 1 callers
Method
rewriteAttributes_
* Performs CDN rewrites for the given mutation and updates the element. * @see amp-cache-modifications.md#url-rewrites * @param {!Element} eleme
extensions/amp-bind/0.1/bind-impl.js:1447
↓ 1 callers
Function
ri
(n,t,e)
third_party/d3/d3.js:2
↓ 1 callers
Method
riddleHeightChanged_
* @param {number} height
extensions/amp-riddle-quiz/0.1/amp-riddle-quiz.js:102
↓ 1 callers
Function
rot13
(input)
extensions/amp-addthis/0.1/addthis-utils/rot13.js:14
↓ 1 callers
Function
ru
(n,t,e,r)
third_party/d3/d3.js:2
↓ 1 callers
Method
run
* Runs the task * @return {boolean}
3p/3d-gltf/animation-loop.js:27
↓ 1 callers
Method
run
* Requests notification permissions and reports the result back to the AMP * * page. * * If this dialog was redirected instead of opened a
extensions/amp-web-push/0.1/amp-web-push-permission-dialog.js:101
↓ 1 callers
Function
runCheck
* Runs amphtml-validator on the given list of files and prints results. * * @param {Array<string>} filesToCheck * @return {Promise<void>}
build-system/tasks/validate-html-fixtures.js:107
↓ 1 callers
Function
runCheck
* Runs the check on the given list of files and prints results. Uses the * built-in functionality of `git diff --check` to generate results. Checks
build-system/tasks/check-invalid-whitespaces.js:16
↓ 1 callers
Method
runContinuing_
* @return {!Promise} * @private
src/motion.js:199
↓ 1 callers
Function
runDisablingSmoothScroll
* Runs a callback while disabling smooth scrolling by temporarily setting * the `scrollBehavior` to `auto`. * @param {!Element} el * @param {Functi
extensions/amp-base-carousel/0.1/carousel.js:49
↓ 1 callers
Function
runExperimentTests
* Runs tests for the given configuration and reports results for push builds. * @param {!Object} config
build-system/pr-check/experiment-e2e-tests.js:25
↓ 1 callers
Function
runExperimentTests
* Runs tests for the given configuration and reports results. * @param {!Object} config
build-system/pr-check/experiment-integration-tests.js:19
↓ 1 callers
Function
runExtensionTests
* Generates an extension with the given name and runs all unit tests located in * the generated extension directory. * @param {string} name * @retu
build-system/tasks/make-extension/index.js:336
↓ 1 callers
Method
runImgTransition_
* Runs an img transition, both transitioning the `<img>` itself as well as * the lightbox background. * @param {!HTMLImageElement} srcImg The im
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:884
↓ 1 callers
Function
runLinter
* Runs the linter on the given set of files. * @param {Array<string>} filesToLint * @return {Promise<void>}
build-system/tasks/lint.js:27
↓ 1 callers
Method
runOneAuthorization_
* Make a single authorization call. * @param {AccessSource} source * @return {Promise} * @private
extensions/amp-access/0.1/amp-access.js:416
↓ 1 callers
Function
runPrettify
* Prettifies on the given list of files. * @param {!Array<string>} filesToCheck * @return {Promise<void>}
build-system/tasks/prettify.js:110
↓ 1 callers
Function
runRules
* Run Module dependency graph against the rules. * * @param {!ModuleDef} moduleGraph * @return {boolean} true if violations were discovered.
build-system/tasks/dep-check.js:247
↓ 1 callers
Function
runSanitizerTests
()
test/unit/test-sanitizer.js:74
↓ 1 callers
Method
runSmartlinks_
* Wait for the config promise to resolve and then proceed to functionality * @private
extensions/amp-smartlinks/0.1/amp-smartlinks.js:75
↓ 1 callers
Function
runTask
* Runs an AMP task with logging and timing after installing its subpackages. * @param {string} taskName * @param {TaskFuncDef} taskFunc * @return {
build-system/task-runner/amp-task-runner.js:89
↓ 1 callers
Function
runTask
(task, state)
extensions/amp-app-banner/0.1/test/test-amp-app-banner.js:48
↓ 1 callers
Method
runTask_
* Executes the wrapped function. * @param {?IdleDeadline} idleDeadline * @throws {Error} * @protected
src/chunk.js:184
↓ 1 callers
Function
runTest
* Runs the test in a single input file * * @param {string} inputFile * @return {Promise<void>}
build-system/tasks/server-tests.js:163
↓ 1 callers
Function
runTestsForDatasource
* This function runs generic tests for components based on * data-videoid or data-live-channelid. * @param {string} datasource
extensions/amp-mowplayer/0.1/test/test-amp-mowplayer.js:67
↓ 1 callers
Function
runTests_
* Runs e2e tests on all files under test. * @return {!Promise<void>}
build-system/tasks/e2e/index.js:140
↓ 1 callers
Function
runTruncation
* Runs text truncation for an Element, finding the last node that needs * truncation and truncating it. * @param {!Element} container The Element to
extensions/amp-truncate-text/0.1/truncate-text.js:206
↓ 1 callers
Function
runVisualTests
* Sets the AMP config, launches a server, and generates Percy snapshots for a * set of given webpages. * * @param {!puppeteer.Browser} browser a Pu
build-system/tasks/visual-diff/index.js:253
↓ 1 callers
Function
runWatch_
* Watches files a under test, running affected e2e tests on changes. * @return {!Promise<void>}
build-system/tasks/e2e/index.js:172
↓ 1 callers
Method
run_
@private
src/core/context/subscriber.js:201
↓ 1 callers
Function
s
(e,t,n)
examples/amp-script/todomvc.ssr.js:2
↓ 1 callers
Method
safePlayOrPause_
* @param {function()} callback * @return {!Promise} * @private
src/video-iframe-integration.js:326
↓ 1 callers
Function
safeframeListener
(event)
extensions/amp-ad-network-doubleclick-impl/0.1/safeframe-host.js:58
↓ 1 callers
Method
sameOrigin_
* Returns true iff `url` has the same origin as the AMP document. * @param {string} url * @return {boolean}
extensions/amp-script/0.1/amp-script.js:479
↓ 1 callers
Method
sandboxHTMLCreativeFrame
@return {boolean} whether html creatives should be sandboxed.
extensions/amp-a4a/0.1/amp-a4a.js:1706
↓ 1 callers
Method
sandboxHTMLCreativeFrame
@override
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:1181
↓ 1 callers
Method
sandboxHTMLCreativeFrame
@override
extensions/amp-ad-network-adsense-impl/0.1/amp-ad-network-adsense-impl.js:520
↓ 1 callers
Function
sanitizeAttribs
* Sanitizes attributes on an HTML tag. * @param {string} tagName An HTML tag name in lowercase. * @param {Array.<?string>} attribs An array of a
third_party/caja/html-sanitizer.js:2283
↓ 1 callers
Method
sanitizeDoc
* Removes redundancies and unauthorized extensions and elements * @param {!Document} doc Document to attach.
extensions/amp-next-page/1.0/service.js:696
↓ 1 callers
Function
sanitizeId
* Ensures the imgurId is properly encoded * @param {string} imgurId * @return {string}
src/bento/components/bento-imgur/1.0/component.js:86
↓ 1 callers
Function
sanitizeMediaQuery
* @param {!Window} win * @param {string|undefined} query * @return {string}
extensions/amp-sidebar/1.0/sidebar-toolbar-hook.js:62
↓ 1 callers
Function
sanitizeUrl
* Satizes URL * * @param {*} localtion * @return {string}
extensions/amp-playbuzz/0.1/utils.js:149
↓ 1 callers
Function
sanitizeWithPolicy
* Sanitizes HTML tags and attributes according to a given policy. * @param {string} inputHtml The HTML to sanitize. * @param {function(string, A
third_party/caja/html-sanitizer.js:2438
↓ 1 callers
Method
sanitizedUrlsAreEquals_
* Compares href from the story with the href in the iframe. * @param {string} storyHref * @param {string} iframeHref * @return {boolean} *
src/amp-story-player/amp-story-player-impl.js:1357
↓ 1 callers
Method
saveSwgUserToken_
* Persist swgUserToken in local storage if entitlements and swgUserToken exist * @param {?string|undefined} swgUserToken * @private
third_party/subscriptions-project/swg.js:12927
↓ 1 callers
Function
scale
(transition)
src/core/dom/transition.js:89
↓ 1 callers
Method
scan
* Used for `deepScan` scanner to notify the subtree that the specified * property has changed and needs to be recalculated. * * Scans are rel
src/core/context/values.js:297
↓ 1 callers
Method
scanAll
* Used for `deepScan` scanner to notify the subtree to recalculate all * properties. * * Scans are relatively common and this method exists (
src/core/context/values.js:321
↓ 1 callers
Method
scanForTokens_
* Scan the page for origin experiment tokens, verifies them, and enables * the corresponding experiments for verified tokens. * @param {!webCryp
src/service/origin-experiments-impl.js:75
↓ 1 callers
Method
scanNode_
* Scans `node` for attributes that conform to bind syntax and returns * a tuple containing bound elements and binding data for the evaluator. *
extensions/amp-bind/0.1/bind-impl.js:872
↓ 1 callers
Function
scanRules
* @param {!Window} win * @param {!CSSRuleList} rules * @param {string} name * @return {?../web-animation-types.WebKeyframesDef}
extensions/amp-animation/0.1/parsers/keyframes-extractor.js:63
↓ 1 callers
Function
scanStyle
* @param {!Window} win * @param {!CSSStyleSheet} styleSheet * @param {string} name * @return {?../web-animation-types.WebKeyframesDef}
extensions/amp-animation/0.1/parsers/keyframes-extractor.js:36
↓ 1 callers
Method
schedulePassVsync
@override
src/service/resources-impl.js:541
↓ 1 callers
Method
schedulePass_
* Update all entries during scroll * @private
src/service/position-observer/position-observer-impl.js:185
↓ 1 callers
Method
schedule_
@private
src/service/vsync-impl.js:368
↓ 1 callers
Method
scopeCid_
* Returns scoped CID extracted from the fetched publisherCid. * @param {string} publisherCid * @param {string} scope * @return {!Promise<stri
src/service/cache-cid-api.js:141
↓ 1 callers
Function
scopeRequire
* Changes global `require` calls to be referenced from a given global * namespace. e.g. if scopeName is `AMP`, calls will be transformed to * `AMP.r
third_party/react-dates/scope-require.js:22
↓ 1 callers
Method
scopedQuerySelectorAll_
* @param {string} selector * @return {!NodeList} * @private
extensions/amp-animation/0.1/web-animations.js:1326
↓ 1 callers
Method
scoreBackgroundIsTransparent_
* Check score background has a color with alpha 0, used to adjust layout * @return {boolean} * @private
extensions/amp-story-interactive/0.1/amp-story-interactive-results.js:302
↓ 1 callers
Function
scriptLoader
(...args)
test/unit/ads/test-unruly.js:29
↓ 1 callers
Function
scrollContainerToElement
( axis, alignment, container, el, offset = 0 )
extensions/amp-base-carousel/0.1/dimensions.js:228
↓ 1 callers
Method
scrollHandler_
* Handles scroll on the amp-lightbox. * The scroll throttling and visibility calculation is similar to * the implementation in scrollable-carous
extensions/amp-lightbox/0.1/amp-lightbox.js:715
↓ 1 callers
Method
scrollIntoViewInternal_
* @param {!Element} element * @param {!Element} parent
src/service/viewport/viewport-impl.js:466
↓ 1 callers
Method
scrollOnNextTick_
* Calculates scrolling position at each frame. Stops once durationMs is met * or scrollState stops running. * @param {number} timeStamp * @pr
src/amp-story-player/page-scroller.js:179
↓ 1 callers
Method
scrollSlideIntoView_
* Scrolls a slide into view based on its alignment. * @param {!Element} slide * @param {{ * smoothScroll: boolean, * }} options * @pr
extensions/amp-base-carousel/0.1/carousel.js:1270
↓ 1 callers
Method
scrollTo
* @param {!ElementHandle<!WebElement>} handle * @param {!ScrollToOptionsDef=} opt_scrollToOptions * @return {!Promise}
build-system/tasks/e2e/selenium-webdriver-controller.js:572
↓ 1 callers
Function
scrollToggle
* @param {!Element} element * @param {boolean} isShown * @param {!ScrollTogglePosition} position
extensions/amp-fx-collection/0.1/providers/fx-provider.js:93
↓ 1 callers
Function
scrollToggleFloatIn
(element, offset)
extensions/amp-fx-collection/0.1/scroll-toggle.js:122
↓ 1 callers
Method
scrolled_
* Listens for scroll events on elements (not the root scroller), and marks * them for invalidating all child layout boxes. This is to support nativ
src/service/resources-impl.js:1786
↓ 1 callers
Function
secondWindowFromTop
* @param {!Window} win * @return {!Window}
extensions/amp-ad-network-valueimpression-impl/0.1/amp-ad-network-valueimpression-impl.js:643
↓ 1 callers
Method
secondsPlaying_
* Each second, trigger video-seconds-played for videos that are playing * at trigger time. * @private
src/service/video-manager-impl.js:139
↓ 1 callers
Method
seekTo
* @param {number} timeSeconds * @override
extensions/amp-jwplayer/0.1/amp-jwplayer.js:251
↓ 1 callers
Method
seekTo
* Seeks Bar to specified percentage in slider. * 0-49 for right side image, 50 for both image (as half) and 51-100 for left side image. * @param
extensions/amp-image-slider/1.0/component.type.js:22
↓ 1 callers
Method
seekTo
@override
extensions/amp-slikeplayer/0.1/amp-slikeplayer.js:414
↓ 1 callers
Method
seekTo
@override
extensions/amp-video/0.1/amp-video.js:1044
↓ 1 callers
Method
seekTo
* @override * @param {time} time
extensions/amp-animation/0.1/runners/native-web-animation-runner.js:161
↓ 1 callers
Method
seekTo_
* @param {object} args * @private
extensions/amp-bodymovin-animation/0.1/amp-bodymovin-animation.js:233
↓ 1 callers
Method
selectApplicablePlatformForFactor_
* Returns most qualified platform for the specified factor. * * In the end candidate with max weight is selected. However if candidate's * we
extensions/amp-subscriptions/0.1/platform-store.js:622
↓ 1 callers
Method
selectByDpr_
* @param {number} dpr * @return {number} * @private
src/core/dom/srcset.js:201
↓ 1 callers
Method
selectByWidth_
* @param {number} width * @return {number} * @private
src/core/dom/srcset.js:172
↓ 1 callers
Method
selectPage_
* Sends a message to the current story to navigate delta pages. * @param {number} delta * @private
src/amp-story-player/amp-story-player-impl.js:1559
↓ 1 callers
Function
selectRandomItem
* Selects, uniformly at random, a single item from the array. * @param {string[]} arr Object to select from. * @return {?string} Single item from ar
src/experiments/index.js:278
← previous
next →
11,201–11,300 of 18,703, ranked by callers