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
testIframe
(iframe, id)
extensions/amp-imgur/0.1/test/test-amp-imgur.js:55
↓ 4 callers
Function
testSuite
(description, win, expectedError)
test/unit/test-crypto.js:27
↓ 4 callers
Function
textPosChar
(pos)
extensions/amp-viewer-integration/0.1/findtext.js:61
↓ 4 callers
Method
throwAsync
* @param {!Error} error
third_party/subscriptions-project/swg.js:3832
↓ 4 callers
Function
timeBase
* Calculates the specified time based on the given `baseTime`. * @param {time} time * @param {time} baseTime * @return {time}
extensions/amp-analytics/0.1/visibility-model.js:506
↓ 4 callers
Function
timedExecFn
* Wraps an exec helper in a timer. Returns the result of the helper. * @param {function(string, string=): ?} execFn * @return {function(string, stri
build-system/pr-check/utils.js:174
↓ 4 callers
Function
timeout
* @param {number} ms * @return {!Promise}
test/e2e/test-amp-story-player-navigation.js:10
↓ 4 callers
Function
timeout
(ms)
extensions/amp-image-slider/0.1/test/integration/test-amp-image-slider.js:845
↓ 4 callers
Function
timeout
(ms)
extensions/amp-fx-collection/0.1/test/integration/test-amp-fx-fade-in.js:139
↓ 4 callers
Function
tn
(t,n,a)
third_party/d3-geo-projection/d3-geo-projection.js:1
↓ 4 callers
Function
toFloat
* Converts provided string to a number. * * @param {number|string} value * @returns {number}
third_party/resize-observer-polyfill/ResizeObserver.js:177
↓ 4 callers
Function
toFloat
* Converts provided string to a number. * * @param {number|string} value * @returns {number}
third_party/resize-observer-polyfill/ResizeObserver.install.js:176
↓ 4 callers
Method
toggleDateFieldClass_
* Toggle the provided class on the given input * @param {?Element} field An input field * @param {string} className A css classname * @param
extensions/amp-date-picker/0.1/amp-date-picker.js:1534
↓ 4 callers
Method
toggleErrorMessage_
* Toggles the visibility of the "Play video" fallback message. * @param {boolean} isActive * @private
extensions/amp-story/1.0/amp-story-page.js:1879
↓ 4 callers
Method
toggleOverflow
* Toggles the description overflow state. * @param {boolean=} requestExpansion If specified, whether the * description should be expanded or
extensions/amp-lightbox-gallery/0.1/lightbox-caption.js:130
↓ 4 callers
Method
toggleResultsHandler_
* Disables or re-enables the browser autofill on the autocomplete input. * Then handles showing or hiding results on user focus/blur. * @param {
extensions/amp-autocomplete/0.1/amp-autocomplete.js:944
↓ 4 callers
Method
toggleRuntime
@override
src/service/viewer-impl.js:416
↓ 4 callers
Function
topFromPosObsEntryOrNull
* @param {?PositionObserverEntryDef} entry * @return {?number}
extensions/amp-fx-collection/0.1/providers/amp-fx-presets.js:91
↓ 4 callers
Function
transition
* Returns a promise which is resolved after the given duration of animation * @param {!Element} el - Element to be observed. * @param {!Object<strin
third_party/subscriptions-project/swg.js:15909
↓ 4 callers
Method
translateBy_
* Builds a string for the transform property that translates by given amount. * @param {number} value * @param {string} unit * @return {strin
extensions/amp-sidebar/0.2/swipe-to-dismiss.js:123
↓ 4 callers
Method
translateBy_
* Builds a string for the transform property that translates by given amount. * @param {number} value * @param {string} unit * @return {strin
extensions/amp-sidebar/0.1/swipe-to-dismiss.js:123
↓ 4 callers
Function
translatePosition
(pos)
third_party/inputmask/inputmask.js:2202
↓ 4 callers
Method
triggerAction_
* Triggers an action e.g. submit success/error with response data. * @param {!FormEvents} name * @param {?JsonObject|!Array<{message: string, na
extensions/amp-form/0.1/amp-form.js:1189
↓ 4 callers
Method
triggerEvent
(eventName, eventResult, invocation)
src/service/standard-actions-impl.js:255
↓ 4 callers
Method
triggerFormSubmitInAnalytics_
* Triggers 'amp-form-submit' event in 'amp-analytics' and * generates variables for form fields to be accessible in analytics * * @param {str
extensions/amp-form/0.1/amp-form.js:479
↓ 4 callers
Method
triggerLayout_
* @param {!Element} target * @param {boolean} isIntersecting
extensions/amp-base-carousel/0.1/child-layout-manager.js:170
↓ 4 callers
Method
tryExecuteRealTimeConfig_
* Attempts to execute Real Time Config, if the ad network has enabled it. * If it is not supported by the network, but the publisher has included
extensions/amp-a4a/0.1/amp-a4a.js:2427
↓ 4 callers
Method
tryToDecryptDocument
* @param {string} decryptedDocumentKey * @return {!Promise}
extensions/amp-subscriptions/0.1/crypto-handler.js:80
↓ 4 callers
Function
tu
(n)
third_party/d3/d3.js:2
↓ 4 callers
Function
twitter
(global, data)
3p/twitter.js:36
↓ 4 callers
Method
unlayoutCallback
@override
extensions/amp-carousel/0.1/slidescroll.js:505
↓ 4 callers
Method
unmute
Sends a message unmuting the current story.
src/amp-story-player/amp-story-player-impl.js:898
↓ 4 callers
Method
unobserve
(element)
testing/resize-observer-stub.js:65
↓ 4 callers
Method
unregisterIframe
* Removes an iframe from the set of iframes we watch, along with executing * any necessary cleanup. Available at win.AMP.inaboxUnregisterIframe().
ads/inabox/inabox-messaging-host.js:352
↓ 4 callers
Method
unschedule
* @param {!AmpElement} target
src/service/scheduler.js:104
↓ 4 callers
Function
unsubscribe
(node, callback)
src/core/context/subscriber.js:50
↓ 4 callers
Method
unsubscribe
* Unsubscribes a previously added handler. If there are no other subscribers * the property tracking is stopped and the used value is removed. *
src/core/context/values.js:210
↓ 4 callers
Method
update
@override
extensions/amp-live-list/0.1/amp-live-list.js:270
↓ 4 callers
Method
updateDescriptionBox_
* Update description box text. * @param {boolean=} expandDescription Whether the description should be * expanded. * @private
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:494
↓ 4 callers
Method
updateForwards
* @param {boolean} forwards Whether or not the advancement direction is * forwards (e.g. ltr) or reverse (e.g. rtl).
extensions/amp-base-carousel/0.1/carousel.js:553
↓ 4 callers
Method
updateHistoryState_
* @param {!HistoryStateDef} historyState * @private
src/service/history-impl.js:791
↓ 4 callers
Method
updateHistoryState_
* @param {!HistoryStateDef} state * @private
src/service/history-impl.js:1054
↓ 4 callers
Method
updateLayoutPriority
()
extensions/amp-a4a/0.1/test/utils.js:14
↓ 4 callers
Method
updateLoop
* @param {boolean} loop Whether or not the scrollable should loop when * reaching the last slide.
extensions/amp-base-carousel/0.1/carousel.js:580
↓ 4 callers
Method
updatePanZoom_
* Updates pan/zoom of the image based on the current values. * @private
extensions/amp-image-lightbox/0.1/amp-image-lightbox.js:491
↓ 4 callers
Method
updatePanZoom_
* Updates pan/zoom of the image based on the current values. * @private
extensions/amp-image-viewer/0.1/amp-image-viewer.js:645
↓ 4 callers
Method
updatePanZoom_
* Updates pan/zoom of the content based on the current values. * @return {!Promise} * @private
extensions/amp-pan-zoom/0.1/amp-pan-zoom.js:739
↓ 4 callers
Method
updateSnap
* @param {boolean} snap Whether or not to snap.
extensions/amp-base-carousel/0.1/carousel.js:619
↓ 4 callers
Method
updateUi_
* Updates the UI of the <amp-base-carousel> itself, but not the internal * implementation. * @private
extensions/amp-base-carousel/0.1/amp-base-carousel.js:526
↓ 4 callers
Method
updateUi_
* Updates the UI of the <amp-carousel> itself, but not the internal * implementation. * @private
extensions/amp-carousel/0.2/amp-carousel.js:504
↓ 4 callers
Function
updateView
( state: State, newState: Partial<PickState<'posX' | 'posY' | 'scale'>> )
extensions/amp-pan-zoom/1.0/hooks/usePanZoomState.ts:78
↓ 4 callers
Method
updateVisibility
* Loops through pages and updates their visibility according * to their relative position to the viewport
extensions/amp-next-page/1.0/service.js:331
↓ 4 callers
Method
upgradeOrSchedule_
* Upgrade or schedule element based on R1. * @param {boolean=} opt_disablePreload * @private @final
src/custom-element.js:1248
↓ 4 callers
Function
useAnalyticsInSandbox
(element, promise)
src/extension-analytics.js:203
↓ 4 callers
Function
useEvent
( callback: TCallback )
src/preact/hooks/useEvent.ts:12
↓ 4 callers
Function
useIntersectionObserver
(callback, ioOptions)
src/preact/component/intersection-observer.js:12
↓ 4 callers
Function
useRenderer
(renderer, data)
src/preact/component/renderer.js:17
↓ 4 callers
Function
uu
(n)
third_party/d3/d3.js:2
↓ 4 callers
Method
validateActionMap
* Validates the action map * @param {!JsonObject<string, string>} actionMap * @return {!JsonObject<string, string>}
extensions/amp-subscriptions/0.1/local-subscription-platform-base.js:86
↓ 4 callers
Function
validateCurrencyCode
(data, schemaName = "currency-code")
build-system/babel-plugins/babel-plugin-transform-json-import/test/fixtures/transform-assertions/schema-currency-code/output.mjs:26
↓ 4 callers
Function
validateFormat
(data, schemaName = "format")
build-system/babel-plugins/babel-plugin-transform-json-import/test/fixtures/transform-assertions/schema-format/output.mjs:51
↓ 4 callers
Function
validateFormatDate
(data, schemaName = "format-date")
build-system/babel-plugins/babel-plugin-transform-json-import/test/fixtures/transform-assertions/schema-format-date/output.mjs:70
↓ 4 callers
Function
validateRefs
(data, schemaName = "refs")
build-system/babel-plugins/babel-plugin-transform-json-import/test/fixtures/transform-assertions/schema-refs/output.mjs:73
↓ 4 callers
Function
validateSrcContains
(string, src)
3p/3p.js:152
↓ 4 callers
Function
value
(message)
extensions/amp-form/0.1/test/test-form-verifiers.js:20
↓ 4 callers
Function
verifyCss
(iframe)
extensions/amp-ad-network-adsense-impl/0.1/test/test-amp-ad-network-adsense-impl.js:572
↓ 4 callers
Function
verifyElementStyles
(element, styles)
extensions/amp-fit-text/1.0/test-e2e/test-amp-fit-text.js:53
↓ 4 callers
Function
verifyElementStyles
(element, styles)
extensions/amp-fit-text/0.1/test-e2e/test-amp-fit-text.js:39
↓ 4 callers
Function
wa
(e)
third_party/react-dates/bundle.js:1
↓ 4 callers
Function
waitForOpacity
(win, comparison, factor)
test/integration/test-position-observer.js:175
↓ 4 callers
Function
waitForParentPostMessage
(opt_max)
extensions/amp-analytics/0.1/test/test-amp-analytics.js:1987
↓ 4 callers
Function
waitForProp
(element, prop, targetValue)
test/unit/preact/test-base-element-runtime.js:72
↓ 4 callers
Function
waitForTypeChange
(el, type)
extensions/amp-social-share/1.0/test/test-amp-social-share.js:34
↓ 4 callers
Function
warn
* @param {...*} var_args [description]
third_party/subscriptions-project/swg-gaa.js:248
↓ 4 callers
Method
wasUnlaidOut
* This should be called from the `unlayoutCallback` of the AMP element that * constructed this manager.
extensions/amp-base-carousel/0.1/child-layout-manager.js:416
↓ 4 callers
Function
we
(e)
third_party/react-dates/bundle.js:1
↓ 4 callers
Function
whenContentIniLoadInOb
(elementOrAmpDoc, opt_prerenderableOnly)
src/ini-load.js:88
↓ 4 callers
Method
whenViewed_
* The promise will be resolved when a view of this document has occurred. It * will be rejected if the current impression should not be counted as
extensions/amp-subscriptions/0.1/viewer-tracker.js:76
↓ 4 callers
Method
whenWithinViewport
* @param {number|boolean} viewport derived from renderOutsideViewport. * @return {!Promise} resolves when underlying element is built and within th
src/service/resource.js:691
↓ 4 callers
Method
withinWindow_
* @param {number} pos * @param {function(Element):void} callback * @private
extensions/amp-carousel/0.1/scrollable-carousel.js:330
↓ 4 callers
Function
writeIfUpdated
* Writes the given contents to the patched file if updated * @param {string} patchedName Name of patched file * @param {string} file Contents to wri
build-system/common/update-packages.js:18
↓ 4 callers
Function
wt
(n,t)
third_party/d3/d3.js:1
↓ 4 callers
Function
x
()
third_party/react-dates/bundle.js:1
↓ 4 callers
Function
xe
(e,a)
third_party/react-dates/bundle.js:1
↓ 4 callers
Function
xt
(n,t)
third_party/d3/d3.js:1
↓ 4 callers
Function
yt
(n,t)
third_party/d3/d3.js:1
↓ 4 callers
Function
yu
(n,t,e,r)
third_party/d3/d3.js:2
↓ 3 callers
Function
$a
(a,b,c)
third_party/wgxpath/wgxpath.js:59
↓ 3 callers
Function
AmpDoc
({body, canonical, css, head})
build-system/server/app-index/amphtml-helpers.js:47
↓ 3 callers
Function
An
(n)
third_party/d3/d3.js:1
↓ 3 callers
Function
Ar
(e)
examples/amp-script/vue-todomvc.js:7
↓ 3 callers
Function
Bt
(e,t)
examples/amp-script/vue-todomvc.js:7
↓ 3 callers
Function
Cu
(n,t)
third_party/d3/d3.js:2
↓ 3 callers
Function
D
(e,a,t)
third_party/react-dates/bundle.js:1
↓ 3 callers
Function
Die
Prints error and exits with status 1. Args: msg: The error message to emit
validator/js/webui/build.py:21
↓ 3 callers
Function
Dt
(e,a,t,s)
third_party/react-dates/bundle.js:1
↓ 3 callers
Function
Du
(n,t,e)
third_party/d3/d3.js:2
↓ 3 callers
Function
Ea
(e)
third_party/react-dates/bundle.js:1
↓ 3 callers
Function
Eb
(a,b)
third_party/wgxpath/wgxpath.js:67
↓ 3 callers
Function
F
(t,n,a)
third_party/d3-geo-projection/d3-geo-projection.js:1
← previous
next →
3,801–3,900 of 18,703, ranked by callers