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
↓ 3 callers
Method
reportWorkerError_
* @param {{message: string, stack:string}} e * @param {string} message * @param {!Element=} opt_element * @return {!Error} * @private
extensions/amp-bind/0.1/bind-impl.js:1613
↓ 3 callers
Method
repositionDevices_
* Recalculate the positions of the devices to keep them spaced and scaled evenly. * @private *
extensions/amp-story-dev-tools/0.1/amp-story-dev-tools-tab-preview.js:684
↓ 3 callers
Function
requestAds
()
ads/google/ima/ima-video.js:630
↓ 3 callers
Function
requestForBatchFetch
(element, url, replacement, refresh)
src/batched-json.js:85
↓ 3 callers
Function
requestGithub
* @param {string} token * @param {string} path * @param {Object=} data * @param {Object=} options * @return {!Promise<Object>}
build-system/common/update-session-issues/index.js:120
↓ 3 callers
Function
resetAllElements
()
extensions/amp-consent/0.1/test-e2e/common.js:11
↓ 3 callers
Method
resetAnimationStyles_
* Reset transition and transform styles * Set by the fixed layer, and us
extensions/amp-consent/0.1/consent-ui.js:754
↓ 3 callers
Method
resetContentDimensions_
* Measures and resets the content dimensions, after the element * dimensions changes. * @return {!Promise} * @private
extensions/amp-pan-zoom/0.1/amp-pan-zoom.js:374
↓ 3 callers
Method
resetIfNecessary_
* Removes any previously rendered children and displays placeholder, loading * indicator, etc. depending on the value of `reset-on-refresh` attribu
extensions/amp-list/0.1/amp-list.js:611
↓ 3 callers
Method
resetPendingChangeSize
reset pending change sizes
src/service/resource.js:397
↓ 3 callers
Method
resetScroll
@override
src/inabox/inabox-viewport.js:325
↓ 3 callers
Function
resetTokensToInstancesMap
()
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:2101
↓ 3 callers
Function
resize
* @param {!Element} container
3p/twitter.js:97
↓ 3 callers
Function
resizeCsa
* Helper function to resize the height of a CSA container and its child iframe * @param {!Element} container HTML element of the CSA container * @pa
ads/vendors/csa.js:376
↓ 3 callers
Method
resizeSafeframe
* @param {number} height * @param {number} width * @param {string} messageType
extensions/amp-ad-network-doubleclick-impl/0.1/safeframe-host.js:552
↓ 3 callers
Method
resized
* Resizes the content.
third_party/subscriptions-project/swg.js:2847
↓ 3 callers
Function
resolveArray
* @param {!CssContext} context * @param {boolean} normalize * @param {!Array<!CssNode>} array * @param {?Array<string>} dimensions * @return {?Arr
extensions/amp-animation/0.1/parsers/css-expr-ast.js:1390
↓ 3 callers
Method
resolveIdent
* @param {*} input * @param {string|undefined} def * @return {string|undefined}
extensions/amp-animation/0.1/web-animations.js:1042
↓ 3 callers
Method
resolveRelativeUrl
* Returns absolute URL resolved based on the relative URL and the base. * @param {string} relativeUrlString * @param {string|!Location} baseUrl
src/service/url-impl.js:101
↓ 3 callers
Function
resolveTestFromToken
(maskToken, ndxInitializer, loopNdx, quantifierRecurse)
third_party/inputmask/inputmask.js:850
↓ 3 callers
Function
restoreAttributeValue
* * @param {HTMLElement} element The Element top operate on. * @param {string} attribute The name of the attribute. * @param {?string=} value The
src/core/dom/modal.js:140
↓ 3 callers
Method
resume
()
extensions/amp-consent/0.1/consent-ui.js:369
↓ 3 callers
Method
resumeLayout
* Resumes layout of the component. This will update the UI to the correct * state if there were changes since pausing layout.
extensions/amp-base-carousel/0.1/carousel.js:435
↓ 3 callers
Method
rewind
* Rewinds the given story. * @param {string} storyUrl
src/amp-story-player/amp-story-player-impl.js:1533
↓ 3 callers
Function
rewriteAttributeValue
(tagName, attrName, attrValue)
src/url-rewrite.js:78
↓ 3 callers
Function
rn
(t)
third_party/d3-geo-projection/d3-geo-projection.js:1
↓ 3 callers
Method
rotation
* @return {!Float32Array}
extensions/amp-story-360/0.1/amp-story-360.js:150
↓ 3 callers
Method
rotation
(n, i, j, arg)
third_party/zuho/zuho.js:97
↓ 3 callers
Method
rulesForTagAndProperty_
* Returns the property rules object for (tag, property), if it exists. * Returns null if binding is allowed without constraints. * Returns undef
extensions/amp-bind/0.1/bind-validator.js:176
↓ 3 callers
Method
run
* Run fn as a "chunk". * @param {function(?IdleDeadline)} fn * @param {number} priority
src/chunk.js:346
↓ 3 callers
Method
runAnimMutateSeries
* Runs the series of mutates until the mutator returns a false value. * @param {!Node} contextNode * @param {function(time, time, !VsyncStateDef
src/service/vsync-impl.js:342
↓ 3 callers
Method
runAuthorization
* Returns the promise that resolves when authorization call has completed. * Note that this promise never fails. * @param {boolean=} opt_disable
extensions/amp-access/0.1/amp-access-source.js:340
↓ 3 callers
Function
runCandidates
(ampdoc, candidates)
extensions/amp-auto-lightbox/0.1/amp-auto-lightbox.js:438
↓ 3 callers
Function
runNpmChecks
* Ensures that the package files in the given directory were generated with a * compatible version of npm and do not have any missing changes. Defaul
build-system/common/npm-checks.js:23
↓ 3 callers
Method
runQueryInBatches
* Queries the GitHub GraphQL API in batches. * @param {string} queryType * @param {Array<string>} queries * @return {Promise<Array<GraphQlQue
build-system/release-tagger/utils.js:57
↓ 3 callers
Function
runReleaseJob
* Helper used by release related CI job scripts. * @param {string} jobName * @param {Function} workflow * @return {Promise<void>}
build-system/release-workflows/release-job.js:18
↓ 3 callers
Function
safeLayoutRectFromDomRect
* @param {?} rect * @return {?import('./rect').LayoutRectDef}
src/core/dom/layout/intersection.js:95
↓ 3 callers
Method
sanitize
* This is called by worker-dom on node creation, so all invocations are on * super-simple nodes like <p></p>. * * @param {!Node} node * @r
extensions/amp-script/0.1/amp-script.js:769
↓ 3 callers
Function
sanitizeFxTypes
(types)
extensions/amp-fx-collection/0.1/fx-type.js:215
↓ 3 callers
Function
sanitizeHtml
(html, doc)
src/sanitizer.js:67
↓ 3 callers
Function
scan
(ampdoc, opt_root)
extensions/amp-auto-lightbox/0.1/amp-auto-lightbox.js:470
↓ 3 callers
Method
scheduleRender_
* Schedules a fetch result to be rendered in the near future. * @param {!Array|!JsonObject|undefined} data * @param {boolean=} opt_append * @
extensions/amp-list/0.1/amp-list.js:895
↓ 3 callers
Method
scheduleView
* @param {time} timeToView * @return {!Promise}
extensions/amp-subscriptions/0.1/viewer-tracker.js:32
↓ 3 callers
Method
scrollBack_
@private
extensions/amp-video-docking/0.1/amp-video-docking.js:1672
↓ 3 callers
Method
scrollIntoView
@override
src/service/viewport/viewport-impl.js:451
↓ 3 callers
Method
scrollLockHandler_
* Handles scrollLock requests from the viewer to change the scrollLock state. * @param {string} type Unused. * @param {*} payload True to disabl
extensions/amp-viewer-integration/0.1/touch-handler.js:196
↓ 3 callers
Function
se
(n,t,e)
third_party/d3/d3.js:2
↓ 3 callers
Method
send
(url)
src/service/real-time-config/real-time-config-impl.js:414
↓ 3 callers
Method
send
* Sends a message with the given topic, and data. * * @param {string} topic A string, but this must match the receiving end that * expects
extensions/amp-web-push/0.1/window-messenger.js:480
↓ 3 callers
Method
sendElementIntersection_
* Sends 'intersection' message to ad/iframe with intersection change records * if this has been activated and we measured the layout box of the ifr
extensions/amp-ad/0.1/legacy-ad-intersection-observer-host.js:166
↓ 3 callers
Method
sendEmbedInfo_
* @param {boolean} inViewport * @private
extensions/amp-ad/0.1/amp-ad-xorigin-iframe-handler.js:521
↓ 3 callers
Method
sendMessageInternal_
* Sends the message to the viewer. * * @param {string} eventType * @param {?JsonObject|string|undefined} data * @param {boolean} cancelUns
src/service/viewer-impl.js:786
↓ 3 callers
Method
sendMessage_
* Handles serializing and sending messages to the safeframe. * @param {!Object} payload * @param {string} serviceName * @private
extensions/amp-ad-network-doubleclick-impl/0.1/safeframe-host.js:443
↓ 3 callers
Method
sendMessage_
* @param {!AmpViewerMessage} message * @private
extensions/amp-viewer-integration/0.1/messaging/messaging.js:384
↓ 3 callers
Function
sendRequestUsingIframe
(win, url)
extensions/amp-analytics/0.1/test/test-transport.js:374
↓ 3 callers
Method
sendResponseError_
* @param {number} requestId * @param {string} messageName * @param {*} reason !Error most of time, string sometimes, * rarely. * @private
extensions/amp-viewer-integration/0.1/messaging/messaging.js:362
↓ 3 callers
Function
sendSetupMessage
* Sends the intitial connection message that sets up the * safeframe channel.
extensions/amp-ad-network-doubleclick-impl/0.1/test/test-doubleclick-safeframe.js:81
↓ 3 callers
Function
serializeTargeting
( targeting, categoryExclusions, commonTargeting )
extensions/amp-ad-network-doubleclick-impl/0.1/sra-utils.js:345
↓ 3 callers
Method
setActions
* Resets a node's actions with those defined in the given actions string. * @param {!Element} node * @param {string} actionsStr
src/service/action-impl.js:801
↓ 3 callers
Function
setAllResourceState
(state)
test/unit/test-owners.js:66
↓ 3 callers
Function
setAmpOptInCookie_
* Opts in to / out of the pre-release channels or a specific RTV by setting the * __Host-AMP_OPT_IN cookie. * @param {string} cookieState One of the
tools/experiments/experiments.js:281
↓ 3 callers
Function
setButtonState
(button, enabled)
extensions/amp-carousel/0.1/build-dom.js:75
↓ 3 callers
Function
setCheckValiditySupportedForTesting
(isSupported)
extensions/amp-form/0.1/form-validators.js:49
↓ 3 callers
Function
setCidCookie
* Sets a new CID cookie for expire 1 year from now. * @param {!Window} win * @param {string} scope * @param {string} cookie
src/service/cid-impl.js:374
↓ 3 callers
Method
setControlsState
* Sets the previous and next button visual states. * @param {{prev: boolean, next: boolean}} param0
extensions/amp-carousel/0.1/carousel-controls.js:94
↓ 3 callers
Method
setCurrentPage
* Handles a page switch by resetting animations and goto counters on the * currently-active page and starting animations on the new page. * @par
extensions/amp-gwd-animation/0.1/amp-gwd-animation-impl.js:209
↓ 3 callers
Function
setData
* Set the xpath test id data param * @param {!HTMLElement} node * @param {number} value
build-system/tasks/e2e/driver/query-xpath.js:99
↓ 3 callers
Method
setDistance
* @param {number} distance The distance from the current page to the active * page.
extensions/amp-story/1.0/amp-story-page.js:1390
↓ 3 callers
Function
setElementRect
(el, {height, left, top, width})
extensions/amp-ad-network-doubleclick-impl/0.1/test/test-doubleclick-sra.js:80
↓ 3 callers
Method
setElementScrollTop_
* @param {!Element} element * @param {number} scrollTop
src/service/viewport/viewport-impl.js:599
↓ 3 callers
Method
setEnabled
@param {boolean} isEnabled
extensions/amp-story/1.0/pagination-buttons.js:126
↓ 3 callers
Function
setEntry
(entry)
third_party/inputmask/inputmask.js:2425
↓ 3 callers
Method
setFuzzyTimestampValue_
@private
extensions/amp-timeago/0.1/amp-timeago.js:100
↓ 3 callers
Method
setInViewport
* Updates the inViewport state of the element. * @param {boolean} inViewport
src/service/resource.js:981
↓ 3 callers
Method
setIsReady
* Indicate that a cross-domain frame is ready to receive messages, and * send all messages that were previously queued for it. * @visibleForTest
extensions/amp-analytics/0.1/iframe-transport-message-queue.js:60
↓ 3 callers
Method
setLastFetchedPage
* @param {!Page} page
extensions/amp-next-page/1.0/service.js:453
↓ 3 callers
Function
setLoggingPrefix
* Sets the logging prefix for the ongoing PR check job * @param {string} prefix
build-system/common/logging.js:31
↓ 3 callers
Function
setNode
* @private * @description * Updates a specific htmlNode and does whatever it takes to convert it to another one. * * @param {Node} oldNode - The p
third_party/set-dom/set-dom.js:60
↓ 3 callers
Function
setNode
* @private * @description * Updates a specific htmlNode and does whatever it takes to convert it to another one. * * @param {Node} oldNode - The p
third_party/set-dom/original.js:58
↓ 3 callers
Method
setOnPolicyChange
* Sets the handler that will be called when a consent change * has been fired. * @param {function()} callback
extensions/amp-consent/0.1/consent-policy-manager.js:236
↓ 3 callers
Method
setOnStateUpdated
@override
src/service/history-impl.js:516
↓ 3 callers
Function
setOverflowStyle
(measurer, maxHeight, fontSize)
extensions/amp-fit-text/1.0/component.js:115
↓ 3 callers
Function
setPreconnectFeaturesForTesting
(features)
src/preconnect.js:56
↓ 3 callers
Method
setReportReady
* Sets that the model needs to wait on extra report ready promise * after all visibility conditions have been met to call report handler * @para
extensions/amp-analytics/0.1/visibility-model.js:245
↓ 3 callers
Function
setScopeSelectorSupportedForTesting
(val)
src/core/dom/css-selectors.js:15
↓ 3 callers
Method
setSeconds
* @param {number} value
third_party/subscriptions-project/swg.js:2522
↓ 3 callers
Method
setSession_
* Set the session in localStorage, updating * its access time if it did not exist before. * @param {string} type * @param {SessionInfoDef} se
extensions/amp-analytics/0.1/session-manager.js:267
↓ 3 callers
Method
setStatePromiseForTesting
* Wait for bindings to evaluate and apply for testing. Should * be called once for each event that changes bindings. * * @return {?Promise}
extensions/amp-bind/0.1/bind-impl.js:1754
↓ 3 callers
Method
setStateWithExpression
* Parses and evaluates an expression with a given scope and merges the * resulting object into current state. * @param {string} expression *
extensions/amp-bind/0.1/bind-impl.js:326
↓ 3 callers
Function
setStyle
* Sets the CSS style of the specified element with optional units, e.g. "px". * @param {Element} element * @param {string} property * @param {?stri
third_party/subscriptions-project/swg.js:3600
↓ 3 callers
Function
setStyles
* Sets the CSS styles of the specified element. The styles * a specified as a map from CSS property names to their values. * @param {!Element} eleme
third_party/subscriptions-project/swg.js:3619
↓ 3 callers
Method
setToastShown
* @param {boolean} value
third_party/subscriptions-project/swg.js:12849
↓ 3 callers
Method
setTransportConfig
* @param {!JsonObject} transportConfig
src/extension-analytics.js:140
↓ 3 callers
Function
setUpShoppingData
()
extensions/amp-story-shopping/0.1/test/test-amp-story-shopping-tag.js:74
↓ 3 callers
Function
setUpVideoWithCaptions
()
extensions/amp-story-captions/0.1/test/test-amp-story-captions.js:48
↓ 3 callers
Method
setUrl
* @param {string} value
third_party/subscriptions-project/swg.js:611
↓ 3 callers
Method
setVisible_
* @param {boolean} visible * @private
extensions/amp-animation/0.1/amp-animation.js:348
↓ 3 callers
Function
setup
* @param {Array<string>} externals * @param {object} remaps * @return {*}
build-system/tasks/remap-dependencies-plugin/test-remap-dependencies.js:52
↓ 3 callers
Function
setup
(slotHeight, slotWidth, creativeHeight, creativeWidth)
extensions/amp-ad-network-doubleclick-impl/0.1/test/test-doubleclick-safeframe.js:56
↓ 3 callers
Function
setup
(embeded, userAgent, referrer)
extensions/amp-dynamic-css-classes/0.1/test/test-runtime-classes.js:29
← previous
next →
4,701–4,800 of 18,703, ranked by callers