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
↓ 5 callers
Function
setupElementFunctions
(div)
test/unit/3p/test-3p-frame.js:68
↓ 5 callers
Method
setupElement_
* This method records the potentially fixed or sticky element. One of a more * critical functions - it records all selectors that may apply "fixed"
src/service/fixed-layer.js:652
↓ 5 callers
Function
setupInput
(win, input, init)
src/utils/xhr-utils.js:238
↓ 5 callers
Function
setupJsonFetchInit
(init)
src/utils/xhr-utils.js:302
↓ 5 callers
Function
setupSingletonMutationObserver
(opt_cb = () => {})
test/unit/test-hidden-observer.js:14
↓ 5 callers
Function
showControls
(opt_adsForce)
ads/google/ima/ima-video.js:1331
↓ 5 callers
Method
signalEmit
* The recognizer can call this method to emit the gestures while in the * "emitting" state. Recognizer can only call this method if it has * pre
src/gesture.js:647
↓ 5 callers
Method
signalEnd
* The recognizer can call this method to communicate that it's done * emitting the gestures. It will return to the waiting state. Recognizer * c
src/gesture.js:636
↓ 5 callers
Function
signingServiceError
* Report an error caused by a signing service. Since signing services currently * don't have their own error logging URLs, we just send everything to
extensions/amp-a4a/0.1/signature-verifier.js:403
↓ 5 callers
Function
sleep
* Returns a Promise that resolves after the specified number of milliseconds. * @param {number} ms * @return {Promise<void>}
build-system/tasks/visual-diff/helpers.js:28
↓ 5 callers
Function
sleep
(ms)
extensions/amp-analytics/0.1/test-e2e/test-browser-event.js:16
↓ 5 callers
Function
sn
(n,t,e)
third_party/d3/d3.js:1
↓ 5 callers
Method
solveYValueFromXValue
* Computes the y coordinate of a point on the curve given its x coordinate. * @param {number} xVal The x coordinate of the point on the curve. *
src/core/data-structures/curve.js:46
↓ 5 callers
Method
ssr
* Proxies xhr and template rendering to the viewer. * Returns the renderable response, for use with applySsrOrCsrTemplate. * @param {!Element} e
src/ssr-template-helper.js:79
↓ 5 callers
Function
st
(e)
examples/amp-script/vue-todomvc.js:7
↓ 5 callers
Method
start
* Starts the animation and returns the AnimationPlayer object that can be * used to monitor and control the animation. * * @param {!Timestamp
src/utils/animation.js:106
↓ 5 callers
Function
startServer
* Launches a server and waits for it to fully start up * * @param {?Object} connectOptions * @param {?Object} serverOptions * @param {?Object} mod
build-system/tasks/serve.js:96
↓ 5 callers
Function
startTimer
* Starts a timer to measure the execution time of the given job / command. * @param {string} jobNameOrCmd * @return {DOMHighResTimeStamp}
build-system/pr-check/utils.js:128
↓ 5 callers
Method
storage
@override
third_party/subscriptions-project/swg.js:19108
↓ 5 callers
Function
stringifyViewportMeta
(params)
src/service/viewport/viewport-impl.js:1135
↓ 5 callers
Function
stubBuild
(resource)
test/unit/test-resources.js:1392
↓ 5 callers
Function
stubPostMessage
(videoIframe)
extensions/amp-video-iframe/0.1/test/test-amp-video-iframe.js:89
↓ 5 callers
Function
stubValidationMessage
(input)
extensions/amp-form/0.1/test/test-form-verifiers.js:8
↓ 5 callers
Method
subscribe
* Adds a subscriber for the specified property. If the property has not * yet been tracked, the tracking is started. If the used value is * alre
src/core/context/values.js:187
↓ 5 callers
Function
swipeDown
()
test/unit/test-amp-story-player.js:47
↓ 5 callers
Function
tapNavigationUntil
(pageIndex)
extensions/amp-story/1.0/test/test-amp-story.js:1434
↓ 5 callers
Function
test
* Tests trust determination by referrer. * @param {string} referrer URL under test. * @param {boolean} toBeTrusted The expected outcome.
test/unit/test-impression.js:465
↓ 5 callers
Function
test
(url, targetDomain, opt_allowProxyOrigin)
test/unit/test-cookies.js:145
↓ 5 callers
Function
testAmpComponents
()
test/integration/test-amphtml-ads.js:424
↓ 5 callers
Function
testSuiteIos
()
extensions/amp-app-banner/0.1/test/test-amp-app-banner.js:141
↓ 5 callers
Method
today
(offset?: number)
extensions/amp-date-picker/1.0/types.ts:58
↓ 5 callers
Function
translate
(transitionX, opt_transitionY)
src/core/dom/transition.js:80
↓ 5 callers
Method
triggerEvent_
* Triggers event given name * @param {string} name * @param {!Element} section * @param {!ActionTrust_Enum} trust
extensions/amp-accordion/0.1/amp-accordion.js:277
↓ 5 callers
Method
triggerLoginRequest
* @param {!../api/subscriptions.LoginRequest} request * @return {boolean} Whether the callback has been found.
third_party/subscriptions-project/swg.js:9086
↓ 5 callers
Function
trimEnd
(str)
src/core/types/string/index.js:125
↓ 5 callers
Function
ui
(n,t)
third_party/d3/d3.js:2
↓ 5 callers
Method
uniform
* Returns a uniform hash of the input string as a float number in the range * of [0, 1). * Input string cannot contain chars out of range [0,255
src/service/crypto-impl.js:122
↓ 5 callers
Function
units
* Coerces a number into a string with units. * @param {number|string} value * @param {function(number):string} fn * @return {string}
src/core/dom/style.js:237
↓ 5 callers
Function
unobserveBorderBoxSize
(element, callback)
src/core/dom/layout/size-observer.js:90
↓ 5 callers
Method
updateBoxRect_
* @param {?../layout-rect.LayoutRectDef|undefined} positionRect * @private
src/inabox/inabox-viewport.js:615
↓ 5 callers
Method
updateDimensions
* @param {number} width * @param {number} height
3p/ampcontext-integration.js:84
↓ 5 callers
Method
updateEngagedForSessions_
Sets the engaged session value for all sessions and persists.
extensions/amp-analytics/0.1/session-manager.js:126
↓ 5 callers
Method
updateFragment
* Update the page url fragment * @param {string} fragment * @return {!Promise}
src/service/history-impl.js:188
↓ 5 callers
Method
updateGeometry_
* Sends a geometry update message into the safeframe. * @private
extensions/amp-ad-network-doubleclick-impl/0.1/safeframe-host.js:351
↓ 5 callers
Method
updateSlides
* Lets the scrollable know that the slides have changed. This is needed for * various internal calculations. * @param {!Array<!Element>} slides
extensions/amp-base-carousel/0.1/carousel.js:600
↓ 5 callers
Method
updateUi_
* Updates the UI of the <amp-base-carousel> itself, but not the internal * implementation. * @private
extensions/amp-stream-gallery/0.1/amp-stream-gallery.js:669
↓ 5 callers
Function
upgradePolyfill
(win, installer)
src/polyfills/stubs/resize-observer-stub.js:43
↓ 5 callers
Function
ur
(n,t)
third_party/d3/d3.js:2
↓ 5 callers
Function
useDatePickerContext
()
extensions/amp-date-picker/1.0/component/use-date-picker-context.tsx:216
↓ 5 callers
Function
useLoading
(loadingProp?: Loading_Enum | string)
src/preact/context.tsx:88
↓ 5 callers
Method
usesLoading
* Subclasses can override this method to indicate that an element can load * network resources. * * Such elements can have their `ensureLoade
src/base-element.js:174
↓ 5 callers
Function
v
(a)
third_party/closure-library/sha384-generated.js:28
↓ 5 callers
Function
validateParentOrigin
(window, parentLocation)
3p/integration-lib.js:205
↓ 5 callers
Function
ve
(e)
examples/amp-script/vue-todomvc.js:7
↓ 5 callers
Function
verifyClockHandRect
(controller, rect)
extensions/amp-position-observer/0.1/test-e2e/test-target-id.js:60
↓ 5 callers
Function
verifyClockHandRect
(controller, rect)
extensions/amp-position-observer/0.1/test-e2e/test-scrollbound-animation.js:60
↓ 5 callers
Method
videoVisibilityChanged_
* Called when visibility of a video changes. * @private
src/service/video-manager-impl.js:764
↓ 5 callers
Function
w
(n)
third_party/d3/d3.js:1
↓ 5 callers
Function
waitForAllScannedToBeResolved
()
extensions/amp-auto-lightbox/0.1/test/test-amp-auto-lightbox.js:420
↓ 5 callers
Function
waitForCarouselLayout
()
test/integration/test-amp-carousel.js:18
↓ 5 callers
Method
waitForHandshakeFromDocument
* Waits for handshake from iframe and initializes messaging. * * Requires the `origin` viewer parameter to be specified. * @param {!Window} s
extensions/amp-viewer-integration/0.1/messaging/messaging.js:151
↓ 5 callers
Function
waitForJsInIframe
(opt_ranJs = 1, opt_timeout = 300)
extensions/amp-iframe/0.1/test/test-amp-iframe.js:93
↓ 5 callers
Function
waitForMutation
(element, callback)
test/unit/preact/test-base-element-mapping.js:50
↓ 5 callers
Function
waitForNextBodyChunk
()
test/unit/utils/test-dom-writer.js:34
↓ 5 callers
Function
waitForRender
()
extensions/amp-facebook/1.0/test/test-amp-facebook-like.js:23
↓ 5 callers
Function
we
(n,t)
third_party/d3/d3.js:2
↓ 5 callers
Method
whenMounted
* Returns the promise that's resolved when the element has been mounted. If * the mount fails, the resulting promise is rejected. * @return
src/custom-element.js:771
↓ 5 callers
Method
whenReady_
* @param {function():!Promise<RESULT>} callback * @return {!Promise<RESULT>} * @template RESULT * @private
src/service/history-impl.js:671
↓ 5 callers
Method
withVars
* @param {?{[key: string]: *}} vars * @param {function():T} callback * @return {T} * @template T * @protected
extensions/amp-animation/0.1/web-animations.js:1001
↓ 5 callers
Method
with_
* Resolves common parameters of an animation: target, timing and vars. * @param {!WebAnimationDef} spec * @param {function()} callback * @pri
extensions/amp-animation/0.1/web-animations.js:581
↓ 5 callers
Function
writeDiffOrFail
* Diffs a file against new content. * If `argv.fix` is true, the file is written with the new content, otherwise * errors out. * @param {string} ca
build-system/common/diff.js:39
↓ 5 callers
Function
writeFriendlyFrame
* Write the HTML page into the provided iframe then add it to the document.
test/integration/test-amphtml-ads.js:493
↓ 5 callers
Function
writeSafeFrame
* Write the HTML page into the provided iframe, turn it into a safe frame * then add it to the document.
test/integration/test-amphtml-ads.js:503
↓ 5 callers
Function
x
(n,t)
third_party/d3/d3.js:1
↓ 5 callers
Function
y
(e,t,r)
third_party/inputmask/bundle.js:5
↓ 5 callers
Function
y
(n,t)
third_party/react-dates/bundle.js:1
↓ 4 callers
Function
$
(e,t,r,i)
examples/amp-script/vue-todomvc.js:7
↓ 4 callers
Function
$i
(n)
third_party/d3/d3.js:2
↓ 4 callers
Function
A
(n)
third_party/d3/d3.js:1
↓ 4 callers
Function
A
(a, b)
third_party/closure-library/sha384-generated.js:71
↓ 4 callers
Function
Au
(n,t)
third_party/d3/d3.js:2
↓ 4 callers
Function
B
(a,b,c,d,e)
third_party/wgxpath/wgxpath.js:38
↓ 4 callers
Function
Cb
(a)
third_party/wgxpath/wgxpath.js:67
↓ 4 callers
Function
Cn
(n,t,e,r)
third_party/d3/d3.js:1
↓ 4 callers
Function
D
(e)
examples/amp-script/vue-todomvc.js:7
↓ 4 callers
Function
D
(e,t)
third_party/inputmask/bundle.js:11
↓ 4 callers
Function
De
(e,t,n)
examples/amp-script/vue-todomvc.js:7
↓ 4 callers
Function
Dn
()
third_party/d3/d3.js:1
↓ 4 callers
Function
E
(e,t,n,o,r)
examples/amp-script/todomvc.ssr.js:2
↓ 4 callers
Function
Ea
(a,b)
third_party/wgxpath/wgxpath.js:37
↓ 4 callers
Function
Function
(node)
build-system/eslint-rules/no-function-async.js:5
↓ 4 callers
Function
Ga
(e)
examples/amp-script/vue-todomvc.js:7
↓ 4 callers
Function
Gt
(n,t)
third_party/d3/d3.js:1
↓ 4 callers
Function
He
(e,t,n,r,i)
examples/amp-script/vue-todomvc.js:7
↓ 4 callers
Function
Hn
(e)
examples/amp-script/vue-todomvc.js:7
↓ 4 callers
Function
I
(e,a)
third_party/react-dates/bundle.js:1
↓ 4 callers
Method
InternString
Interns strings to eliminate duplicates and to refer to them as numbers. Args: a_string: the string to be interned Returns: The s
validator/validator_gen_js.py:132
↓ 4 callers
Function
M
(e,t)
third_party/inputmask/bundle.js:11
↓ 4 callers
Method
MessageReferenceForKey
A message reference is the variable name used in validator-generated.js. Args: message_key: an instance of MessageKey Returns: Th
validator/validator_gen_js.py:173
↓ 4 callers
Function
N
(n)
third_party/d3/d3.js:1
← previous
next →
3,101–3,200 of 18,703, ranked by callers