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
Method
onScroll
@override
src/inabox/inabox-viewport.js:569
Function
onShoppingDataUpdate_
* Handles template changes when there is activeProductData. * This happens when a product tag or PLP card is clicked. * @param {!{[key: string]:
extensions/amp-story-shopping/0.1/amp-story-shopping-attachment.js:165
Function
onSize
(size)
src/core/dom/layout/size-observer.js:68
Method
onSubscribe_
* @param {!../../../src/service/action-impl.ActionInvocation} invocation * @private
extensions/amp-web-push/0.1/amp-web-push-config.js:205
Function
onSubscriptionsDialogClick_
* @param {!Event} event * @private
extensions/amp-story-subscriptions/0.1/amp-story-subscriptions.js:228
Function
onSubscriptionsDialogUiStateChange_
* @param {boolean} showDialog * @return {?Promise} * @private
extensions/amp-story-subscriptions/0.1/amp-story-subscriptions.js:192
Method
onSwitchAnimation
@override
extensions/amp-animation/0.1/web-animations.js:379
Method
onTaskError_
@override
src/chunk.js:254
Method
onToggleCaption
@override
extensions/amp-lightbox-gallery/1.0/amp-lightbox-gallery.js:112
Method
onToggleOverlay_
* Toggle lightbox overlay (description and controls). * @param {!Event} e * @private
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:563
Method
onTouchCancel_
* Handles all "touchcancel" events. Cancels all tracking/emitting * recognizers. * @param {!Event} event * @private
src/gesture.js:329
Method
onTouchCancel_
* @param {!Event} unusedEvent * @private
src/pull-to-refresh.js:137
Method
onTouchEnd
@override
src/gesture-recognizers.js:71
Method
onTouchEnd
@override
src/gesture-recognizers.js:165
Method
onTouchEnd
@override
src/gesture-recognizers.js:320
Method
onTouchEnd
@override
src/gesture-recognizers.js:558
Method
onTouchEnd
@override
src/gesture-recognizers.js:824
Method
onTouchEnd_
* Handles all "touchend" events and dispatches them to the tracking * recognizers. * @param {!Event} event * @private
src/gesture.js:295
Method
onTouchEnd_
* @param {!Event} unusedEvent * @private
src/pull-to-refresh.js:129
Method
onTouchMove
@override
src/gesture-recognizers.js:56
Method
onTouchMove
@override
src/gesture-recognizers.js:147
Method
onTouchMove
@override
src/gesture-recognizers.js:278
Method
onTouchMove
@override
src/gesture-recognizers.js:532
Method
onTouchMove
@override
src/gesture-recognizers.js:756
Method
onTouchMove_
* Handles all "touchmove" events and dispatches them to the tracking * recognizers. * @param {!Event} event * @private
src/gesture.js:267
Method
onTouchMove_
* @param {!Event} event * @private
src/pull-to-refresh.js:107
Method
onTouchStart
@override
src/gesture-recognizers.js:43
Method
onTouchStart
@override
src/gesture-recognizers.js:130
Method
onTouchStart
@override
src/gesture-recognizers.js:261
Method
onTouchStart
@override
src/gesture-recognizers.js:517
Method
onTouchStart
@override
src/gesture-recognizers.js:729
Method
onTouchStart_
* Handles all "touchstart" events and dispatches them to the tracking * recognizers. * @param {!Event} event * @private
src/gesture.js:232
Method
onTouchStart_
* @param {!Event} event * @private
src/pull-to-refresh.js:68
Method
onTouchend_
* TouchEvent touchend events handler. * @param {!Event} event * @private
extensions/amp-story/1.0/page-advancement.js:403
Function
onUIStateUpdate_
* Reacts to desktop state updates and hides navigation buttons since we * already have in the desktop UI. * @param {!UIType_Enum} uiState * @
extensions/amp-story/1.0/amp-story-embedded-component.js:395
Method
onUnknownAnimation
@override
extensions/amp-animation/0.1/web-animations.js:553
Method
onUnsubscribe_
* @param {!../../../src/service/action-impl.ActionInvocation} invocation * @private
extensions/amp-web-push/0.1/amp-web-push-config.js:240
Method
onViewGrid
@override
extensions/amp-lightbox-gallery/1.0/amp-lightbox-gallery.js:106
Method
onVisibilityChange
* Register a callback for visibility change events. * * @param {function(!VisibilityDataDef)} unusedCallback
src/inabox/host-services.js:158
Method
onVisibilityChange
* Register a callback for visibility change events. * * @param {function(!VisibilityDataDef)} callback
extensions/amp-mraid/0.1/mraid-service.js:34
Method
onVisibilityChanged
* Passthrough for ampdoc visibility state. Only to be used by viewer * integration. * @restricted * TODO(#22733): remove if no longer used by
src/service/viewer-impl.js:508
Method
onVisibilityChanged_
@private
src/service/vsync-impl.js:155
Method
onWaiting_
* @param {!Event} event * @private
extensions/amp-story/1.0/media-performance-metrics-service.js:394
Method
onabort
@return {?function(!Event)}
src/polyfills/abort-controller.js:50
Function
onchange
(cb)
extensions/amp-base-carousel/0.1/test/test-responsive-attributes.js:93
Function
onead
(global, data)
ads/vendors/onead.js:7
Function
onnetwork
(global, data)
ads/vendors/onnetwork.js:31
Function
oo
(e)
examples/amp-script/vue-todomvc.js:7
Function
oo
(n)
third_party/d3/d3.js:3
Method
open
* Opens the dialog. Returns the promise that will yield with the dialog's * result or will be rejected if dialog fails. The dialog's result is *
extensions/amp-access/0.1/login-dialog.js:90
Method
open
* Start an activity in a separate window. The result will be delivered * to the `onResult` callback. * * The activity can be opened in two mo
third_party/subscriptions-project/swg.js:7033
Method
open
* Opens the dialog and builds the iframe container. * @param {boolean=} hidden * @return {!Promise<!Dialog>}
third_party/subscriptions-project/swg.js:10887
Method
openButtonClicked
@override
extensions/amp-app-banner/0.1/amp-app-banner.js:279
Method
openButtonClicked
@override
extensions/amp-app-banner/0.1/amp-app-banner.js:455
Method
openIframe_
* Use WebActivitiy to open iframe that's in given container. * * @param {!Element} container * @param {!HTMLIFrameElement} iframe * @param
third_party/subscriptions-project/swg.js:16857
Method
openInContainer
* Opens the iframe embedded in the given container element. * @param {!Element} containerEl
third_party/subscriptions-project/swg.js:10918
Function
openRemote_
()
extensions/amp-story-page-attachment/0.1/amp-story-page-attachment.js:529
Method
openUrl
* Request to navigate to URL. * * @param {string} unusedUrl * @return {!Promise<boolean>} promise resolves to a boolean * indicating i
src/inabox/host-services.js:211
Method
openView
* @param {!./view.View} view * @param {boolean=} hidden * @param {!./dialog.DialogConfig=} dialogConfig Configuration options for the * di
third_party/subscriptions-project/swg.js:11435
Function
openadstream
(global, data)
ads/vendors/openadstream.js:7
Function
openx
(global, data)
ads/vendors/openx.js:29
Function
opinary
(global, data)
ads/vendors/opinary.js:39
Function
optOut
()
extensions/amp-user-notification/0.1/test/test-amp-user-notification.js:823
Method
optOut
* User will be opted out of Cid issuance for all scopes. * When opted-out Cid service will reject all `get` requests. * * @return {!Promise}
src/service/cid-impl.js:130
Method
optOut
@override
src/inabox/inabox-cid.js:18
Function
opt_navigate
(val)
test/unit/test-alp-handler.js:179
Function
orientationChangeHandler
* Resize the AMP iframe if the CSA container changes in size upon rotation. * This is needed for an iOS bug found in versions 10.0.1 and below that
ads/vendors/csa.js:104
Method
orientationWarning
(e)
extensions/amp-story/1.0/amp-story.js:992
Function
originalScrollTo
()
test/unit/test-viewport.js:1371
Function
ot
(n,t,e)
third_party/d3/d3.js:1
Function
other
()
build-system/babel-plugins/babel-plugin-transform-inline-isenumvalue/test/fixtures/transform-assertions/enumvalues/input.mjs:25
Function
other
()
build-system/babel-plugins/babel-plugin-transform-inline-isenumvalue/test/fixtures/transform-assertions/enumvalues/output.mjs:21
Function
other
()
build-system/babel-plugins/babel-plugin-transform-inline-isenumvalue/test/fixtures/transform-assertions/isenumvalue/input.mjs:25
Function
other
()
build-system/babel-plugins/babel-plugin-transform-inline-isenumvalue/test/fixtures/transform-assertions/isenumvalue/output.mjs:28
Function
otherAttributesAreUnmodified
()
build-system/babel-plugins/babel-plugin-jsx-style-object/test/fixtures/transform/transformed/input.mjs:16
Function
outbrain
(global, data)
ads/vendors/outbrain.js:7
Method
overflowCallback
* Hides or shows the overflow, if available. This function must only * be called inside a mutate context. * @param {boolean} overflown
src/custom-element.js:2100
Method
overrideGlobalScrollTo
@override
src/service/viewport/viewport-binding-natural.js:88
Method
overrideGlobalScrollTo
@override
src/service/viewport/viewport-binding-ios-embed-wrapper.js:146
Function
overrideLogLevel
(level)
src/utils/log.js:57
Function
overrideSkipTest
* Overrides skipTest() with a more robust version of `this.skip()`. See #17245.
testing/init-tests-helpers.js:105
Function
overwriteUnsupported
* @param {Chai.AssertionStatic} _super * @return {function(): *}
build-system/tasks/e2e/expect.js:243
Function
pageViewId64
()
extensions/amp-ad/0.1/test/test-amp-ad-3p-impl.js:192
Method
pageViewId64
()
src/service/document-info-impl.js:88
Method
parseAndValidate
@override
extensions/amp-experiment/1.0/mutation/character-data-mutation.js:20
Method
parseAndValidate
@override
extensions/amp-experiment/1.0/mutation/attribute-mutation-default-style.js:65
Method
parseAndValidate
@override
extensions/amp-experiment/1.0/mutation/attribute-mutation-default-class.js:20
Method
parseAndValidate
@override
extensions/amp-experiment/1.0/mutation/attribute-mutation-default-url.js:32
Function
parseAttrs
(element)
src/bento/components/bento-brightcove/1.0/base-element.js:19
Function
parseAttrs
(element)
src/preact/parse-props.js:333
Method
parseDate
(value: string)
extensions/amp-date-picker/1.0/component/use-date-picker-context.tsx:30
Function
parseDateAttrs
(element, dateAttrs)
src/core/dom/parse-date-attributes.js:32
Function
parseDateAttrs
(element)
extensions/amp-date-countdown/1.0/base-element.js:47
Function
parseDateAttrs
(element)
extensions/amp-date-display/1.0/base-element.js:41
Function
parseDateAttrs
(element)
extensions/amp-timeago/1.0/base-element.js:40
Function
parseEmbed
* Checks for valid data-embed-as attribute when given. * @param {!Element} element * @return {string}
src/bento/components/bento-facebook/1.0/base-element.js:68
Function
parseManifest
* @param {object} manifestJson * @return {{installAppUrl: string, openInAppUrl: string}|null}
extensions/amp-app-banner/1.0/utils/android.js:65
Function
parseMediaQueryListExpr
* @param {Window} win * @param {string} exprString * @return {ExprDef}
src/core/dom/media-query-props.js:127
Function
parseMediaQueryMatchExpr
* @param {Window} win * @param {string} queryString * @return {ExprDef}
src/core/dom/media-query-props.js:114
Function
parseMessage
* Parse events data for viqeo * @param {!Event|{data: !JsonObject}} event
3p/viqeoplayer.js:73
← previous
next →
17,101–17,200 of 18,703, ranked by callers