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
↓ 4 callers
Function
requirePrimitiveKey
(e)
third_party/react-dates/bundle.js:1
↓ 4 callers
Method
resetImageDimensions_
* Measures and resets the image dimensions, after the element * dimensions changes. * @return {!Promise}
extensions/amp-image-viewer/0.1/amp-image-viewer.js:397
↓ 4 callers
Method
resetScrollReferencePoint_
* Resets the frame of reference for scrolling, centering things around the * current index and moving things as appropriate. * @param {boolean}
extensions/amp-base-carousel/0.1/carousel.js:1167
↓ 4 callers
Method
reset_
@private
src/custom-element.js:1750
↓ 4 callers
Method
reset_
* Reset batching status * @private
extensions/amp-analytics/0.1/requests.js:281
↓ 4 callers
Method
resizeAmpAdAndSafeframe
* Attempts to resize both the amp-ad and the Safeframe. * If the amp-ad can not be resized, then if it was a collapse request, * we will still c
extensions/amp-ad-network-doubleclick-impl/0.1/safeframe-host.js:676
↓ 4 callers
Method
resolveAsNode_
* @param {*} input * @param {boolean} normalize * @return {?./parsers/css-expr-ast.CssNode} * @private
extensions/amp-animation/0.1/web-animations.js:1112
↓ 4 callers
Function
resolveDoc
* @param {!Document|!Window|!Doc} input * @return {!Doc}
third_party/subscriptions-project/swg-gaa.js:1401
↓ 4 callers
Method
resolveEntitlementsToStore_
* @param {string} platformKey * @param {!./entitlement.Entitlement} entitlement * @private
extensions/amp-subscriptions/0.1/amp-subscriptions.js:431
↓ 4 callers
Method
resolveUrl
* Returns a resolved URL. The result must be an allowed URL for execution, * with HTTPS restrictions. * @param {string} unusedUrl * @return {
extensions/amp-animation/0.1/parsers/css-expr-ast.js:34
↓ 4 callers
Function
restrictedVsync
(win, task, opt_state)
ads/inabox/util.js:17
↓ 4 callers
Method
resumeCallback
@override
extensions/amp-a4a/0.1/amp-a4a.js:551
↓ 4 callers
Function
revalidateMask
(pos, validTest, fromSetValid, validatedPos)
third_party/inputmask/inputmask.js:1437
↓ 4 callers
Function
rewriteAttributesForElement
( element, attrName, attrValue, opt_location, opt_updateProperty )
src/url-rewrite.js:29
↓ 4 callers
Method
rewriteRtcKeys_
* Appends the callout value to the keys of response to prevent a collision * case caused by multiple vendors returning the same keys. * @param {
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:1048
↓ 4 callers
Function
rot13Array
(input)
extensions/amp-addthis/0.1/addthis-utils/rot13.js:33
↓ 4 callers
Function
rr
(n)
third_party/d3/d3.js:2
↓ 4 callers
Function
runConfiguredDescribe
()
test/unit/test-describes.js:29
↓ 4 callers
Function
s
(e,t,o)
third_party/inputmask/bundle.js:5
↓ 4 callers
Function
safelySetStyles
* @param {!Element} element * @param {!{[key: string]: *}} styles
extensions/amp-sidebar/1.0/sidebar-animations-hook.js:31
↓ 4 callers
Function
scaleAndTranslate
(startX, startY, endX, endY, scalingFactor)
extensions/amp-story/1.0/animation-presets-utils.js:121
↓ 4 callers
Method
scrollHandler_
* Handles scroll events from the viewport and appends the next document when * the user comes within {@code PRERENDER_VIEWPORT_COUNT} viewports of
extensions/amp-next-page/0.1/next-page-service.js:433
↓ 4 callers
Function
scrollParentWindowYBy
(controller, px)
extensions/amp-position-observer/0.1/test-e2e/test-target-id.js:51
↓ 4 callers
Function
scrollParentWindowYBy
(controller, px)
extensions/amp-position-observer/0.1/test-e2e/test-scrollbound-animation.js:51
↓ 4 callers
Function
selectContentDiv
(id)
extensions/amp-fit-text/1.0/test-e2e/test-amp-fit-text.js:47
↓ 4 callers
Function
selectContentDiv
(id)
extensions/amp-fit-text/0.1/test-e2e/test-amp-fit-text.js:33
↓ 4 callers
Method
selectHandler_
* Handle selecting items on user mousedown. * @param {!Event} event * @return {!Promise} * @private
extensions/amp-autocomplete/0.1/amp-autocomplete.js:658
↓ 4 callers
Method
selectPlatform
* Returns platform after all platforms fetch entitlements. * @return {!Promise<!./subscription-platform.SubscriptionPlatform>}
extensions/amp-subscriptions/0.1/platform-store.js:482
↓ 4 callers
Function
sendCollapseMessage
()
extensions/amp-ad-network-doubleclick-impl/0.1/test/test-doubleclick-safeframe.js:913
↓ 4 callers
Method
sendCommand_
* @param {string|undefined} rsvpId * @param {string} cmd * @param {?Object=} opt_payload * @private
extensions/amp-access/0.1/iframe-api/messenger.js:153
↓ 4 callers
Method
sendCommand_
* Sends a command to the player through postMessage. * @param {string} message * @private
extensions/amp-minute-media-player/0.1/amp-minute-media-player.js:250
↓ 4 callers
Method
sendCommand_
* Sends a command to the player through postMessage. * @param {string} command * @private
extensions/amp-ooyala-player/0.1/amp-ooyala-player.js:200
↓ 4 callers
Method
sendCommand_
* @param {string} command * @private
extensions/amp-nexxtv-player/0.1/amp-nexxtv-player.js:190
↓ 4 callers
Method
sendCommand_
* Sends a command to the player * @param {string|JsonObject} command * @private
extensions/amp-viqeo-player/0.1/amp-viqeo-player.js:331
↓ 4 callers
Function
sendFakeMessage
(nexxtv, iframe, command)
extensions/amp-nexxtv-player/0.1/test/test-amp-nexxtv-player.js:116
↓ 4 callers
Function
sendFakeMessage
(impl, iframe, command)
extensions/amp-brid-player/0.1/test/test-amp-brid-player.js:245
↓ 4 callers
Function
sendMessage
(eventName, value = null)
3p/viqeoplayer.js:59
↓ 4 callers
Method
sendResponse_
* I'm responding to a request that Bob made earlier. * @param {number} requestId * @param {string} messageName * @param {*} messageData *
extensions/amp-viewer-integration/0.1/messaging/messaging.js:344
↓ 4 callers
Method
sendScrollMessage_
* Send scroll message via the viewer per animation frame * @private
src/service/viewport/viewport-impl.js:1061
↓ 4 callers
Method
sendTcfApiReturn_
* * @param {!Window} win * @param {!JsonObject} returnValue * @param {string} callId * @param {boolean=} opt_success
extensions/amp-consent/0.1/tcf-api-command-manager.js:294
↓ 4 callers
Method
setAllowlist
* Sets the action allowlist. Can be used to clear it. * @param {!Array<{tagOrTarget: string, method: string}>} allowlist
src/service/action-impl.js:557
↓ 4 callers
Method
setBuyFlowActivityMode
* Sets the activity mode. * * @param {!BuyFlowActivityMode} mode
third_party/subscriptions-project/swg.js:15501
↓ 4 callers
Method
setCamera
(rot, scale)
third_party/zuho/zuho.js:197
↓ 4 callers
Function
setDefaultConfigParams_
()
extensions/amp-web-push/0.1/test/test-web-push-service.js:177
↓ 4 callers
Method
setDefaultHandler
* @param {?RequestHandler} requestHandler
extensions/amp-viewer-integration/0.1/messaging/messaging.js:278
↓ 4 callers
Method
setDomElementVisibility_
* Toggles a predefined visiblity class name on the specified DOM element. * * @param {HtmlElement} domElement * @param {boolean} isVisible
extensions/amp-web-push/0.1/amp-web-push-permission-dialog.js:215
↓ 4 callers
Method
setElementTransform_
* @param {!Element} el The slide or spacer to move. * @param {number} revolutions How many revolutions forwards (or backwards) * the slide or
extensions/amp-base-carousel/0.1/carousel.js:871
↓ 4 callers
Method
setGrantState
* @param {?boolean} state
extensions/amp-subscriptions/0.1/renderer.js:95
↓ 4 callers
Function
setInViewportForTesting
(inV)
3p/environment.js:14
↓ 4 callers
Function
setIsRoot
(node, isRoot)
src/core/context/index.js:61
↓ 4 callers
Method
setIsRoot
* Designates (or undesignates) the node as a root node. If the node is * designated as a root, it will no longer discover itself. * * @param
src/core/context/node.js:322
↓ 4 callers
Method
setMessageDeliverer
* This is only used for a unit test.
extensions/amp-viewer-integration/0.1/viewer-for-testing.js:152
↓ 4 callers
Method
setNonBoolean
* Saves the value of the specified property. Returns the promise that's * resolved when the operation completes. * Note: More restrict privacy r
src/service/storage-impl.js:95
↓ 4 callers
Function
setProp
(node, prop, setter, value)
src/core/context/index.js:94
↓ 4 callers
Method
setScrollTop
@override
src/service/viewport/viewport-impl.js:308
↓ 4 callers
Function
setServeMode
* * @param {string} serveMode
build-system/server/app.js:117
↓ 4 callers
Function
setShadowCssSupportedForTesting
(val)
src/core/dom/web-components.js:35
↓ 4 callers
Method
setTransactionId
* @param {string} value
third_party/subscriptions-project/swg.js:485
↓ 4 callers
Method
setUpdateFn_
* Sets a function to update the state of the sidebar. If another one has * been set before the function takes effect, it is ignored. * @param {f
extensions/amp-sidebar/0.2/amp-sidebar.js:394
↓ 4 callers
Method
setUpdateFn_
* Sets a function to update the state of the sidebar. If another one has * been set before the function takes effect, it is ignored. * @param {f
extensions/amp-sidebar/0.1/amp-sidebar.js:396
↓ 4 callers
Function
setValue
(dateObj, value, opts)
third_party/inputmask/inputmask.date.extensions.js:155
↓ 4 callers
Method
set_
* Sets or animates pan/zoom parameters. * @param {number} newScale * @param {number} newPosX * @param {number} newPosY * @param {boolean}
extensions/amp-image-lightbox/0.1/amp-image-lightbox.js:659
↓ 4 callers
Method
set_
* Sets or animates pan/zoom parameters. * @param {number} newScale * @param {number} newPosX * @param {number} newPosY * @param {boolean}
extensions/amp-image-viewer/0.1/amp-image-viewer.js:849
↓ 4 callers
Function
setup
()
ads/google/a4a/test/test-line-delimited-response-handler.js:125
↓ 4 callers
Method
setupButtonAndGetParams_
* @param {!Element} button * @param {AnalyticsEvent} clickEvent * @param {../api/subscriptions.SmartButtonOptions|function()|../api/subscription
third_party/subscriptions-project/swg.js:8969
↓ 4 callers
Function
setupMetaTagWith
(token)
test/unit/test-origin-experiments.js:31
↓ 4 callers
Function
setupMockXhr
()
test/unit/test-xhr.js:49
↓ 4 callers
Function
setupShoppingTagAndData
()
extensions/amp-story-shopping/0.1/test/test-amp-story-shopping-tag.js:81
↓ 4 callers
Method
shouldForceLangInIframes
* Returns whether iframes should also use the language specified in the * client options, rather than the default of letting the iframes decide the
third_party/subscriptions-project/swg.js:9709
↓ 4 callers
Function
shouldLoadPolyfill
(win)
src/polyfills/stubs/resize-observer-stub.js:21
↓ 4 callers
Method
show
* @param {!Element} storyEl * @param {!Node|string} childNodeOrText
extensions/amp-story/1.0/toast.js:28
↓ 4 callers
Method
showControls
@override
extensions/amp-video-iframe/0.1/amp-video-iframe.js:505
↓ 4 callers
Method
signalEnd_
* Callback for a gesture recognizer to communicate that it's done * emitting gestures. * @param {!GestureRecognizer} recognizer * @private
src/gesture.js:399
↓ 4 callers
Function
simulateClickWithPropagation
(wrapper)
extensions/amp-list/1.0/test/test-component.js:445
↓ 4 callers
Function
simulateViewportVisible
(component, isInViewport)
extensions/amp-list/1.0/test/test-component.js:310
↓ 4 callers
Method
snapshotPos
* Snapshots the previous internal position so that getLine / getCol will * return it. These snapshots happen as the parser enter / exits a tag.
validator/js/engine/htmlparser.js:1070
↓ 4 callers
Function
sraBlockCallbackHandler
( creative, headersObj, done, sraRequestAdUrlResolvers, sraUrl, isNoSigning )
extensions/amp-ad-network-doubleclick-impl/0.1/sra-utils.js:388
↓ 4 callers
Method
start
* Starts the sending of messages queued on the port.
extensions/amp-viewer-integration/0.1/messaging/messaging.js:85
↓ 4 callers
Method
start
* Occurs when the config element loads. * @param {!AmpWebPushConfig} configJson * @return {!Promise}
extensions/amp-web-push/0.1/web-push-service.js:168
↓ 4 callers
Method
startSendingIntersectionChanges_
* Called via postMessage from the child iframe when the ad/iframe starts * observing its position in the viewport. * Sets a flag, measures the i
extensions/amp-ad/0.1/legacy-ad-intersection-observer-host.js:111
↓ 4 callers
Method
startTag
* Enter a tag, opening a scope for child tags. Entering a tag can close the * previous tag or enter other tags (such as opening a <body> tag when
validator/js/engine/htmlparser.js:227
↓ 4 callers
Function
stopServer
* Stops the currently running server * @return {Promise<void>}
build-system/tasks/serve.js:170
↓ 4 callers
Method
stopTracking_
@private
src/pull-to-refresh.js:95
↓ 4 callers
Function
storeBuildOutputToWorkspace
* Stores build files to the CI workspace.
build-system/pr-check/utils.js:218
↓ 4 callers
Method
storeNotificationPermission_
* Stores the notification permission in local storage for the helper frame to * access later. * @private
extensions/amp-web-push/0.1/amp-web-push-permission-dialog.js:167
↓ 4 callers
Function
stubComputedStyleElementOnly
(element, style)
test/unit/test-viewport.js:896
↓ 4 callers
Function
stubMutateNoop
()
test/unit/test-standard-actions.js:41
↓ 4 callers
Function
stubPlatformIsIos
(isIos = true)
test/unit/test-standard-actions.js:107
↓ 4 callers
Function
stubServiceMethods
(serviceGetterName, methods)
extensions/amp-onetap-google/0.1/test/test-amp-onetap-google.js:41
↓ 4 callers
Function
stubUserAsserts
()
extensions/amp-iframe/0.1/test/test-amp-iframe.js:74
↓ 4 callers
Function
stubViewportScrollTop
(scrollTop)
test/unit/test-friendly-iframe-embed.js:87
↓ 4 callers
Function
submitForm
(doc)
test/integration/test-amp-recaptcha-input.js:300
↓ 4 callers
Function
swap
* @param {!Element} a * @param {!Element} b * @private
extensions/amp-video-docking/0.1/controls.js:66
↓ 4 callers
Function
tabindexFromProps
(props, fallback = 0)
src/preact/utils.js:73
↓ 4 callers
Function
te
(t,n,a,r,o)
third_party/inputmask/bundle.js:11
↓ 4 callers
Method
teardown
@override
testing/describes.js:889
↓ 4 callers
Function
templateFunc
(suiteName, spec, fn, describeFunc)
build-system/tasks/e2e/describes-e2e.js:381
↓ 4 callers
Function
testAmpComponentsBTF
(win)
test/integration/test-amphtml-ads.js:444
↓ 4 callers
Function
testBounds
({bounds, scale = 1})
extensions/amp-pan-zoom/1.0/test/test-component.js:208
↓ 4 callers
Function
testContinuation
(maxVelocity, haltAfterTime)
test/unit/test-motion.js:55
← previous
next →
3,701–3,800 of 18,703, ranked by callers