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
↓ 2 callers
Method
removeResource_
* @param {!Resource} resource * @private
src/service/resources-impl.js:475
↓ 2 callers
Method
removeShadowRoot_
* @param {!ShadowRoot} shadowRoot * @private
src/multidoc-manager.js:530
↓ 2 callers
Function
removeTab
* Remove the URL from storage when the tab is closed.
validator/js/chromeextension/worker.js:315
↓ 2 callers
Method
removeTouchReadonly_
* Remove the behavior added by `addTouchReadonly`. * @param {!Event} e * @private
extensions/amp-date-picker/0.1/amp-date-picker.js:1015
↓ 2 callers
Method
removeTracker_
* @param {number} timerId * @private
extensions/amp-analytics/0.1/events.js:1344
↓ 2 callers
Method
removeViewportOnChangedListener_
* Function to remove the viewport onChanged listener * @private
extensions/amp-analytics/0.1/scroll-manager.js:165
↓ 2 callers
Method
removeWorker_
* @param {number} index * @private
src/service/position-observer/position-observer-impl.js:111
↓ 2 callers
Function
rename
* @param {!Node} id * @param {!Node} root * @param {!Node} old
build-system/eslint-rules/enums.js:165
↓ 2 callers
Method
renderAsString
* To be implemented by subclasses. * @param {!JsonObject|string} unusedData * @return {string} * @abstract
src/base-template.js:60
↓ 2 callers
Function
renderColorMask
(input, caretPos, clear)
third_party/inputmask/inputmask.js:2423
↓ 2 callers
Method
renderCompleted
* Signal that indicates that all DOM elements have been transferred to live * embed DOM.
src/friendly-iframe-embed.js:474
↓ 2 callers
Function
renderElements
* @param {Document} elementOrDoc * @return {!{[key: string]: !Element}}
ads/google/ima/ima-video.js:219
↓ 2 callers
Method
renderHorizontalLayout
* This method should only be called inside of a mutate() callback. * * @protected
extensions/amp-access-scroll/0.1/scroll-component.js:135
↓ 2 callers
Method
renderInitialPosition_
@private
extensions/amp-story-360/0.1/amp-story-360.js:767
↓ 2 callers
Method
renderNonAmpCreative
* Render non-AMP creative within cross domain iframe. * @param {boolean=} throttleApplied Whether incrementLoadingAds has already * been call
extensions/amp-a4a/0.1/amp-a4a.js:1783
↓ 2 callers
Function
renderOutlinkLinkIconElement
()
extensions/amp-story-page-attachment/0.1/amp-story-open-page-attachment.js:58
↓ 2 callers
Method
renderPromiseIntoReact_
* Render asynchronous HTML into a React component. * @param {!Promise<string>} promise * @param {string=} opt_initial * @return {React.Compon
extensions/amp-date-picker/0.1/amp-date-picker.js:1824
↓ 2 callers
Function
renderShadowViewer
({baseHref, src})
build-system/server/shadow-viewer.js:131
↓ 2 callers
Method
renderTemplateArray
* Renders the specified template element using the supplied array of data * and returns an array of resulting elements. * @param {!Element} temp
src/service/template-impl.js:118
↓ 2 callers
Method
renderTemplateAsString_
* @param {!JsonObject} data * @return {!Promise<!Element>} * @private
extensions/amp-render/1.0/amp-render.js:228
↓ 2 callers
Method
renderTemplateElement_
* Render the given template into an element with the given data. * @param {!Element} template * @param {!JsonObject=} opt_data * @return {!Pr
extensions/amp-date-picker/0.1/amp-date-picker.js:1759
↓ 2 callers
Method
renderViaIframeGet_
@override
extensions/amp-ad-network-smartadserver-impl/0.1/amp-ad-network-smartadserver-impl.js:69
↓ 2 callers
Method
renderWithHrefAndTarget_
* Resolves 'href' and 'target' from data-param attributes using AMP URL services. * Then triggers render on the Component with updated props. *
extensions/amp-social-share/1.0/amp-social-share.js:174
↓ 2 callers
Method
render_
* @param {!../base-template.BaseTemplate} impl * @param {!JsonObject} data * @return {!Element} * @private
src/service/template-impl.js:325
↓ 2 callers
Method
render_
@private
extensions/amp-access-scroll/0.1/scroll-bar.js:24
↓ 2 callers
Method
render_
* @param {!JsonObject|string} data * @return {!Element} * @private
extensions/amp-mustache/0.2/amp-mustache.js:125
↓ 2 callers
Method
render_
* @param {!JsonObject|string} data * @return {string} * @private
extensions/amp-mustache/0.1/amp-mustache.js:125
↓ 2 callers
Function
replace
(inputText, replacements)
build-system/tasks/make-extension/index.js:61
↓ 2 callers
Function
replaceCDNURLPath
( url: URL, pathnames: [string | null, string | null] = [null, null], extension: string = '.js', useMa
build-system/server/new-server/transforms/utilities/cdn.ts:49
↓ 2 callers
Function
replaceChildren
* * @param {!Element} el * @param {number} childCount
extensions/amp-base-carousel/0.1/test/test-child-layout-manager.js:117
↓ 2 callers
Function
replaceExpression
* @param {Path} importDeclaration * @param {Path} callExpressionOrIdentifier * @return {boolean}
build-system/babel-plugins/babel-plugin-transform-jss/index.js:222
↓ 2 callers
Function
replaceOutputFile
* @param {Array<import('esbuild').OutputFile>} outputFiles * @param {import('esbuild').OutputFile} original * @param {string} text
build-system/common/esbuild-babel.js:192
↓ 2 callers
Function
replaceUrls
* @param {string} filePath * @return {Promise<void>}
build-system/tasks/firebase.js:77
↓ 2 callers
Function
replaceWithFirstArgument
@param {import('@babel/core').NodePath<import('@babel/types').CallExpression>} path
build-system/babel-plugins/babel-plugin-deep-pure/index.js:58
↓ 2 callers
Method
report3pError
* Send 3p error to parent iframe * @param {!Error} e
3p/ampcontext.js:430
↓ 2 callers
Method
reportWhenViewed_
* @param {time} timeToView * @return {!Promise} * @private
extensions/amp-subscriptions/0.1/viewer-tracker.js:53
↓ 2 callers
Method
requestForFormFetch
* Builds fetch request data for amp-form elements. * @param {string} url * @param {string} method * @param {!{[key: string]: string}=} opt_ex
extensions/amp-form/0.1/amp-form.js:293
↓ 2 callers
Method
requestMacroTask_
* Requests executing of a macro task. Yields to the event queue * before executing the task. * Places task on browser message queue which then r
src/chunk.js:512
↓ 2 callers
Method
requireLayout
* @param {!Element} target * @protected
extensions/amp-animation/0.1/web-animations.js:238
↓ 2 callers
Function
requirePreact
* @param {*} node
build-system/eslint-rules/preact.js:24
↓ 2 callers
Function
rescanVsDiffTest
()
extensions/amp-list/0.1/test/test-amp-list.js:1409
↓ 2 callers
Function
rescope
* Prevents collisions with outer scope * @param {babel.NodePath} path * @param {string} id * @return {string}
build-system/compile/json-schema/index.js:360
↓ 2 callers
Method
reset
* Resets the image viewer to the initial state.
extensions/amp-image-lightbox/0.1/amp-image-lightbox.js:182
↓ 2 callers
Method
reset
@override
extensions/amp-subscriptions-google/0.1/amp-subscriptions-google.js:823
↓ 2 callers
Method
resetAdUrl
* Resets ad url state to null, used to prevent frame get fallback if error * is thrown after url construction but prior to layoutCallback.
extensions/amp-a4a/0.1/amp-a4a.js:1607
↓ 2 callers
Function
resetBodyForOverlay
(win, bodyElement)
src/inabox/inabox-viewport.js:72
↓ 2 callers
Function
resetBootstrapBaseUrlForTesting
(win)
src/3p-frame.js:241
↓ 2 callers
Method
resetCallback_
* @param {!CallbackId} id * @private
third_party/subscriptions-project/swg.js:9319
↓ 2 callers
Function
resetCountForTesting
()
src/3p-frame.js:420
↓ 2 callers
Function
resetIsAutoplaySupported
(win)
src/core/dom/video/index.js:69
↓ 2 callers
Method
resetOnDomChange
* Resets the component if the underlying <video> was changed. * This should only be used in cases when a higher-level component manages * this e
extensions/amp-video/0.1/amp-video.js:742
↓ 2 callers
Method
resetOnUndock_
* @param {!VideoOrBaseElementDef} video * @return {!Promise} * @private
extensions/amp-video-docking/0.1/amp-video-docking.js:1618
↓ 2 callers
Function
resetPage
* Resets the size of a tab and loads about:blank. * * @param {!puppeteer.Page} page a Puppeteer control browser tab/page. * @param {?puppeteer.View
build-system/tasks/visual-diff/browser.js:133
↓ 2 callers
Function
resetPassiveSupportedForTesting
()
src/core/dom/event-helper-listen.js:169
↓ 2 callers
Method
resetPlatform
* Resets a given platform. * @param {string} platformKey
extensions/amp-subscriptions/0.1/platform-store.js:131
↓ 2 callers
Method
resetPlatformStore
* Reset the platformStore via a factory that returns a * new PlatformStore with the same platforms as this one. * @return {PlatformStore}
extensions/amp-subscriptions/0.1/platform-store.js:111
↓ 2 callers
Method
resetPoolMediaElementSource_
* @param {!PoolBoundElementDef} poolMediaEl The element whose source should * be reset. * @param {!Sources=} sources Optional sources for th
extensions/amp-story/1.0/media-pool.js:565
↓ 2 callers
Method
resetScroll
@override
src/service/viewport/viewport-impl.js:783
↓ 2 callers
Method
resetStoryStyles_
* Resets styles for the currently swiped story. * @private
src/amp-story-player/amp-story-player-impl.js:1913
↓ 2 callers
Function
resetTestingState
* Resets the window's testing state. Used at the start by initializeTests() and * before each test case by setupTestcase().
testing/init-tests-helpers.js:145
↓ 2 callers
Function
resetTrackImpressionPromiseForTesting
()
src/impression.js:49
↓ 2 callers
Function
resetWindowState
* Resets AMP-specific state in the global window object.
testing/init-tests-helpers.js:130
↓ 2 callers
Method
reset_
@private
extensions/amp-image-lightbox/0.1/amp-image-lightbox.js:1012
↓ 2 callers
Function
resolveAlias
(aliasStr, options, opts)
third_party/inputmask/inputmask.js:643
↓ 2 callers
Method
resolveCssMap
* @param {!{[key: string]: *}} input * @return {!{[key: string]: string|number}}
extensions/amp-animation/0.1/web-animations.js:1025
↓ 2 callers
Method
resolveCss_
* @param {*} input * @param {string|undefined} def * @param {boolean} normalize * @return {string|undefined} * @private
extensions/amp-animation/0.1/web-animations.js:1089
↓ 2 callers
Function
resolveDoc
* @param {!Document|!Window|!Doc} input * @return {!Doc}
third_party/subscriptions-project/swg.js:10725
↓ 2 callers
Function
resolveEnum
* @param {babel.NodePath} path * @param {string} filename * @return {!EvaluationDef}
build-system/babel-plugins/babel-plugin-transform-inline-isenumvalue/index.js:120
↓ 2 callers
Function
resolveImageUrlAttr
* Non-HTTPs image URLs are rewritten via proxy. * @param {string} attrValue * @param {!Location} baseUrl * @param {boolean} isProxyHost * @return
src/url-rewrite.js:154
↓ 2 callers
Function
resolvePercentageToNumber
(val)
extensions/amp-fx-collection/0.1/providers/amp-fx-presets-utils.js:47
↓ 2 callers
Function
resolveRelativeUrlFallback_
(relativeUrlString, baseUrl)
src/url.js:573
↓ 2 callers
Function
resolvingIdleCallbackWithTimeRemaining
(timeRemaining)
test/unit/test-chunk.js:17
↓ 2 callers
Function
restoreAsyncErrorThrows
* Resets async error behavior to its default.
testing/async-errors.js:38
↓ 2 callers
Method
restoreOriginalTouchZoom
@override
src/service/viewport/viewport-impl.js:827
↓ 2 callers
Method
restoreOriginalTouchZoom
@override
src/inabox/inabox-viewport.js:336
↓ 2 callers
Method
restorePausedState_
@private
extensions/amp-story/1.0/amp-story.js:560
↓ 2 callers
Method
resume
* Resumes the auto advance as long as it is not stopped. This clears the * `paused_` flag, which is checked in `shouldAutoAdvance_`. * * This
extensions/amp-base-carousel/0.1/auto-advance.js:119
↓ 2 callers
Method
resume
* Removes the placeholder and re-renders the page after its shadow * root has been removed * @return {!Promise}
extensions/amp-next-page/1.0/page.js:195
↓ 2 callers
Method
resumePausedPages_
* Makes sure that all pages that are a few pages away from the * currently visible page are re-inserted (if paused) and * ready to become visibl
extensions/amp-next-page/1.0/service.js:430
↓ 2 callers
Method
returnFixedElements_
* Returns fixed elements from the transfer layer. * @param {!Array<ElementDef>} fes * @private
src/service/fixed-layer.js:356
↓ 2 callers
Method
returnFrom
* Return the element from the transfer layer back to the body. * @param {!ElementDef} unusedFe
src/service/fixed-layer.js:968
↓ 2 callers
Method
reverse
()
extensions/amp-animation/0.1/test/test-web-animations.js:2093
↓ 2 callers
Method
rewriteStyles_
* @private
extensions/amp-story/1.0/amp-story.js:603
↓ 2 callers
Function
rn
(n)
third_party/d3/d3.js:1
↓ 2 callers
Function
ro
(e,t)
examples/amp-script/vue-todomvc.js:7
↓ 2 callers
Function
ro
(n,t,e)
third_party/d3/d3.js:3
↓ 2 callers
Function
rollbackRelease
* Roll back a GitHub release * @param {string} tag * @param {Object|undefined} octokitRest * @param {Object|undefined} octokitGraphQl * @return {P
build-system/release-tagger/update-release.js:35
↓ 2 callers
Method
rootUpdated
* The callback called by the `ContextNode` to notify values of the context * root changes. It's possible that a context node is connected, disconne
src/core/context/values.js:263
↓ 2 callers
Function
rotate
(value)
src/core/dom/style.js:276
↓ 2 callers
Function
rotateAndTranslate
(startX, startY, endX, endY, direction)
extensions/amp-story/1.0/animation-presets-utils.js:34
↓ 2 callers
Function
rt
(e,n,i,o,a,s)
examples/amp-script/vue-todomvc.js:7
↓ 2 callers
Function
run
(id, win, data)
3p/3p.js:53
↓ 2 callers
Function
runChunksForTesting
(elementOrAmpDoc)
src/chunk.js:129
↓ 2 callers
Method
runForStartup
* Run a fn that's part of AMP's startup sequence as a "chunk". * @param {function(?IdleDeadline)} fn
src/chunk.js:355
↓ 2 callers
Function
runMutate
* @param {function()} cb * @return {!Promise<undefined>}
extensions/amp-base-carousel/0.1/test/test-carousel.js:22
↓ 2 callers
Function
runPreBuildSteps
* Perform the prerequisite steps before starting the unminified build. * Used by `amp` and `amp build`. * * @param {!Object} options * @return {Pr
build-system/tasks/build.js:30
↓ 2 callers
Function
runPreDistSteps
* Perform the prerequisite steps before starting the minified build. * Used by `amp` and `amp dist`. * * @param {!Object} options * @return {Promi
build-system/tasks/dist.js:91
↓ 2 callers
Function
runSubs
()
test/unit/test-chunk.js:365
↓ 2 callers
Function
runSync
* @param {!Window} global * @param {function()} cb
ads/vendors/adocean.js:107
↓ 2 callers
Function
runTests
@param {!Object} env
test/unit/test-describes.js:4
← previous
next →
6,701–6,800 of 18,703, ranked by callers