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
↓ 2 callers
Method
setReadyToPay
* @param {boolean} value
third_party/subscriptions-project/swg.js:569
↓ 2 callers
Method
setRoleAttribute_
* Adds the 'role' attribute to the element. * For amp-lists with 'single-item' enabled, we should not specify the * role of 'list' on the contai
extensions/amp-list/0.1/amp-list.js:578
↓ 2 callers
Method
setService
* @param {!AmpScriptService} service * @visibleForTesting
extensions/amp-script/0.1/amp-script.js:213
↓ 2 callers
Function
setSlides
* @param {number} count * @return {!Array<!Element>}
extensions/amp-base-carousel/0.1/test/test-carousel.js:30
↓ 2 callers
Method
setStateAndUpdateHistory_
* Merges a state object into the current global state. * @param {!JsonObject} state * @return {!Promise} * @private
extensions/amp-bind/0.1/bind-impl.js:353
↓ 2 callers
Method
setStateWithObject
* Sanitizes a state object and merges the resulting object into the current * state. * @param {!JsonObject} state * @return {!Promise}
extensions/amp-bind/0.1/bind-impl.js:338
↓ 2 callers
Function
setStruct
* * @param {Map<K, V>} map * @param {K} key * @param {CompilerNode} node * @param {*} declaration * @return {string[]}
build-system/eslint-rules/prefer-destructuring.js:66
↓ 2 callers
Method
setSubscriptionTimestamp
* @param {!Timestamp} value
third_party/subscriptions-project/swg.js:1500
↓ 2 callers
Method
setTrackingInfo
* Setter to update the tracking data from outside the class. * This is mainly used for setting the guid that we receive from beaconAPI. * @param
extensions/amp-skimlinks/0.1/tracking.js:66
↓ 2 callers
Function
setTransparentBody
* Sets the document body to transparent to allow for frame "merging". * @param {!Window} win * @param {!HTMLBodyElement} body * @private
extensions/amp-lightbox/0.1/amp-lightbox.js:875
↓ 2 callers
Method
setUpAdvancementConfig_
* Sets up the advancement config depending upon the * @param {boolean=} handlePreviewToVisibleTransition * @private
extensions/amp-story/1.0/amp-story-page.js:356
↓ 2 callers
Method
setUpCaptions_
* Connects to amp-story-captions component. * @private
extensions/amp-video/0.1/amp-video.js:769
↓ 2 callers
Function
setUpInlinedVideoResponse
()
extensions/amp-video/0.1/test/test-video-cache.js:697
↓ 2 callers
Method
setUpListenersFromArray_
* @private * @param {!EventTarget} target * @param {Array<string>} events * @param {function()} listener
extensions/amp-analytics/0.1/activity-impl.js:255
↓ 2 callers
Method
setVideoElement
* Attaches caption rendering to a video element. Called from amp-video. * @param {!HTMLVideoElement} video
extensions/amp-story-captions/0.1/amp-story-captions.js:63
↓ 2 callers
Method
setViewportMetaString_
* Updates touch zoom meta data. Returns `true` if any actual * changes have been done. * @param {string} viewportMetaString * @return {boolea
src/service/viewport/viewport-impl.js:876
↓ 2 callers
Method
setVolume_
* Updates the volume of the provided media element. * @param {!DomElementDef} domMediaEl The media element whose volume will be set. * @param {n
extensions/amp-story/1.0/media-pool.js:929
↓ 2 callers
Method
set_
* @param {string} href
testing/fake-dom.js:465
↓ 2 callers
Function
setupAutocomplete
( attributes, json = '{ "items" : ["apple", "banana", "orange"] }', wantInlineData = true
extensions/amp-autocomplete/0.1/test/test-amp-autocomplete-init.js:18
↓ 2 callers
Method
setupButtonInteraction
* @param {!HTMLDivElement} button * @param {*} onInteraction
extensions/amp-carousel/0.2/amp-carousel.js:218
↓ 2 callers
Method
setupButtonInteraction
* @param {HTMLDivElement} button * @param {*} onInteraction
extensions/amp-carousel/0.1/carousel-controls.js:76
↓ 2 callers
Method
setupEvents_
* @private
extensions/amp-pan-zoom/0.1/amp-pan-zoom.js:451
↓ 2 callers
Method
setupGestures_
@private
extensions/amp-image-viewer/0.1/amp-image-viewer.js:451
↓ 2 callers
Method
setupGestures_
* Set up gestures for the specified element. * @param {!Element} element * @private
extensions/amp-sidebar/0.2/amp-sidebar.js:590
↓ 2 callers
Method
setupGestures_
* Set up gestures for the specified element. * @param {!Element} element * @private
extensions/amp-sidebar/0.1/amp-sidebar.js:595
↓ 2 callers
Method
setupMessaging
* @param {!./messaging/messaging.Messaging} messaging
extensions/amp-viewer-integration/0.1/highlight-handler.js:433
↓ 2 callers
Method
setupMetadataFromContext_
* Set the metadata attributes from the "context" instance directly. * @param {!Object} context * @private
3p/ampcontext.js:359
↓ 2 callers
Method
setupMetadata_
* Parse the metadata attributes from the name and add them to * the class instance. * @param {string} data * @private
3p/ampcontext.js:332
↓ 2 callers
Function
setupMockXhr
()
test/unit/test-xhr-document-fetcher.js:11
↓ 2 callers
Function
setupPDP
()
extensions/amp-story-shopping/0.1/test/test-amp-story-shopping-attachment.js:237
↓ 2 callers
Method
setupTemplates_
* Fetch and parse any templates specified via the `src` attribute. * @return {!Promise} * @private
extensions/amp-date-picker/0.1/amp-date-picker.js:1187
↓ 2 callers
Function
shallowDiffers
* Duplicated from Preact PureComponent implementation. * https://github.com/developit/preact-compat/blob/ae018abb/src/index.js#L402 * Shallow compar
extensions/amp-date-picker/0.1/react-utils.js:70
↓ 2 callers
Function
shallowEqual
(t,e)
third_party/react-dates/bundle.js:1
↓ 2 callers
Method
shift_
* Move the slider by a given amount. * @param {number} delta
extensions/amp-story-interactive/0.1/amp-story-interactive-slider.js:262
↓ 2 callers
Method
shouldAllowScroll
* Returns whether scrolling on main page should be allowed when * subscription or contribution dialog is displayed. * @return {boolean}
third_party/subscriptions-project/swg.js:9698
↓ 2 callers
Method
shouldAutoAdvance_
* @return {boolean} Whether or not autodadvancing should occur. * @private
extensions/amp-base-carousel/0.1/auto-advance.js:203
↓ 2 callers
Function
shouldBuildVendorConfigs
* Returns true when the CLI flags indicate that vendor configs should be built. * @return {boolean}
build-system/tasks/3p-vendor-helpers.js:18
↓ 2 callers
Method
shouldFadeBody
* @return {boolean} * @abstract
third_party/subscriptions-project/swg.js:2862
↓ 2 callers
Function
shouldFail
(id)
test/integration/test-errors.js:50
↓ 2 callers
Method
shouldInitializePromiseChain_
* @return {boolean} whether environment/element should initialize ad request * promise chain. * @private
extensions/amp-a4a/0.1/amp-a4a.js:602
↓ 2 callers
Function
shouldMutationForNodeListBeRerendered
* @param {NodeList} nodeList * @return {boolean}
src/preact/base-element.js:943
↓ 2 callers
Method
shouldPreferentialRenderWithoutCrypto
* Whether preferential render should still be utilized if web crypto is * unavailable, and crypto signature header is present. * @return {boolea
extensions/amp-a4a/0.1/amp-a4a.js:2471
↓ 2 callers
Method
shouldRenderAbove_
* Returns true if the input is in the bottom half of the viewport. * Should be called in a measureMutate context. * @return {boolean} * @priv
extensions/amp-autocomplete/0.1/amp-autocomplete.js:1015
↓ 2 callers
Method
showCloseAction
* Renders or hides the "Close" action button. For some flows, this button * should be hidden. * @param {boolean} show
extensions/amp-subscriptions/0.1/dialog.js:188
↓ 2 callers
Method
showContributionOptions
@override
third_party/subscriptions-project/swg.js:19315
↓ 2 callers
Method
showControls
@override
extensions/amp-jwplayer/0.1/amp-jwplayer.js:183
↓ 2 callers
Method
showControls
@override
extensions/amp-3q-player/0.1/amp-3q-player.js:251
↓ 2 callers
Method
showControls
@override
extensions/amp-delight-player/0.1/amp-delight-player.js:605
↓ 2 callers
Method
showControls
@override
extensions/amp-ima-video/0.1/amp-ima-video.js:399
↓ 2 callers
Method
showFirstPageHintOverlay
* Show navigation overlay DOM.
extensions/amp-story/1.0/amp-story-hint.js:191
↓ 2 callers
Method
showHint_
* Shows the given hint, only if not desktop. * @param {string} hintClass * @private
extensions/amp-story/1.0/amp-story-hint.js:150
↓ 2 callers
Method
showOverlay_
* Show the lightbox overlay (description and controls). * @private
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:578
↓ 2 callers
Method
showPostloadSection_
@private
extensions/amp-web-push/0.1/amp-web-push-permission-dialog.js:196
↓ 2 callers
Method
showSubscriptionsDialog_
* @private
extensions/amp-story/1.0/amp-story.js:1690
↓ 2 callers
Method
showTargetPermissionSection_
@private
extensions/amp-web-push/0.1/amp-web-push-permission-dialog.js:175
↓ 2 callers
Method
showTemplate_
* @param {!Element} template * @private
extensions/amp-story-education/0.1/amp-story-education.js:259
↓ 2 callers
Function
showVideoAd
* @param {!AmpElement} adWrap * @param {!AmpElement} progressBar * @param {!JsonObject} idleOptions
extensions/amp-apester-media/0.1/monetization/inUnit/video.js:54
↓ 2 callers
Method
show_
@private
extensions/amp-video-docking/0.1/controls.js:387
↓ 2 callers
Method
show_
* Show the iframe. * @private
third_party/subscriptions-project/swg.js:11128
↓ 2 callers
Method
signalPending
* The recognizer can call this method to communicate that it needs more * time (timeLeft) to match the gesture. By the end of this time the * re
src/gesture.js:626
↓ 2 callers
Method
signals
* See `BaseElement`. * @return {!./utils/signals.Signals}
src/video-interface.js:31
↓ 2 callers
Method
singleValue_
* @param {!Object} json * @param {string} name * @return {*}
third_party/subscriptions-project/config.js:966
↓ 2 callers
Method
size
* The current buffer size. * @return {number}
extensions/amp-viewer-integration/0.1/findtext.js:45
↓ 2 callers
Method
skipEdge
()
testing/test-config.js:56
↓ 2 callers
Function
skipMicro
()
test/unit/test-runtime.js:362
↓ 2 callers
Function
skipMicroTask
()
test/unit/test-custom-element.js:157
↓ 2 callers
Method
skipViewerDemo
* @return {ItConfig}
build-system/tasks/e2e/describes-e2e.js:312
↓ 2 callers
Function
slideChangeEventAfterClicking
* Attach an event listener to page to capture the 'slideChange' event. * If given a selector, click on it to fire the event being listened for.
extensions/amp-base-carousel/0.1/test-e2e/test-mixed-length-arrows.js:20
↓ 2 callers
Method
slowScan_
* Removes bindings for nodes in `remove`, then scans for bindings in `add`. * Return promise that resolves upon completion with struct containing n
extensions/amp-bind/0.1/bind-impl.js:1578
↓ 2 callers
Method
sortInDomOrder_
* @private
src/service/fixed-layer.js:768
↓ 2 callers
Function
sourceIncludes
* Returns `true` if the class's source contains the given substring. * * @param {typeof BaseElement} implClass * @param {string} substring * @retu
testing/element-v1.js:143
↓ 2 callers
Function
sources
* Returns the source element for which the callback returns true. * @param {!Element} video * @param {function(!HTMLSourceElement):boolean} fn * @r
extensions/amp-video/0.1/flexible-bitrate.js:312
↓ 2 callers
Function
spawnProcess
* Spawns the given command in a child process with the given options. * Special-cases the AMP task runner so that it is correctly spawned on all * p
build-system/common/process.js:21
↓ 2 callers
Function
squaredCompare
(set, callback)
extensions/amp-auto-lightbox/0.1/test/test-amp-auto-lightbox.js:74
↓ 2 callers
Function
st
(n,t,e)
third_party/d3/d3.js:1
↓ 2 callers
Method
start
* Do some initial setup.
extensions/amp-access/0.1/amp-access-source.js:276
↓ 2 callers
Method
start
* Invoked when the advancement configuration should begin taking effect. * @param {number=} unusedProgressStartVal An optional value at which to
extensions/amp-story/1.0/page-advancement.js:163
↓ 2 callers
Method
start
* Starts the payments completion flow. * @param {{ * productType: string, * oldSku: ?string, * paymentRecurrence: ?number, * }} r
third_party/subscriptions-project/swg.js:5921
↓ 2 callers
Method
startDoc
* Handler called when the parser is starting to parse the document.
validator/js/engine/htmlparser-interface.js:425
↓ 2 callers
Method
startInternal_
@private
extensions/amp-access/0.1/amp-access.js:317
↓ 2 callers
Method
startListening
* @public
extensions/amp-story/1.0/amp-story-viewer-messaging-handler.js:104
↓ 2 callers
Method
startMeasuringAllVideoPerformance_
* Starts measuring video performance metrics, if performance tracking is on. * Has to be called directly before playing the video. * @private
extensions/amp-story/1.0/amp-story-page.js:1711
↓ 2 callers
Function
startObserver
(target, cb, opt_errorMessage)
extensions/amp-image-slider/0.1/test/integration/test-amp-image-slider.js:1023
↓ 2 callers
Method
startTag
* Handler called when the parser found a new tag. * @param {!ParsedHtmlTag} tag
validator/js/engine/htmlparser-interface.js:401
↓ 2 callers
Method
start_
* @return {!AccessService} * @private * @restricted
extensions/amp-access/0.1/amp-access.js:307
↓ 2 callers
Method
start_
* Starts the payments flow for the given version. * @param {!string=} paySwgVersion * @return {!Promise}
third_party/subscriptions-project/swg.js:5745
↓ 2 callers
Method
statesToTransition_
* Transforms the state transition into a key which identifies a callback. * @private * @param {STATE} oldState * @param {STATE} newState *
src/core/data-structures/finite-state-machine.js:63
↓ 2 callers
Function
step
(method, result)
testing/yield.js:23
↓ 2 callers
Method
stepLeft_
* One step left * @param {boolean=} opt_toEnd * @private
extensions/amp-image-slider/0.1/amp-image-slider.js:569
↓ 2 callers
Method
stepRight_
* One step right * @param {boolean=} opt_toEnd * @private
extensions/amp-image-slider/0.1/amp-image-slider.js:605
↓ 2 callers
Method
stop
@public
src/service/video-manager-impl.js:1480
↓ 2 callers
Method
stop
* Stops the auto advance. Once stopped, auto advance cannot be started * again. This sets the `stopped_` flag, which is checked in * `shouldAut
extensions/amp-base-carousel/0.1/auto-advance.js:96
↓ 2 callers
Method
stopMeasuringAllVideoPerformance_
* Stops measuring video performance metrics, if performance tracking is on. * Computes and sends the metrics. * @param {boolean=} sendMetrics
extensions/amp-story/1.0/amp-story-page.js:1743
↓ 2 callers
Method
stopTimer_
* @param {number} timerId * @private
extensions/amp-analytics/0.1/events.js:1321
↓ 2 callers
Method
storageFor_
* @param {!StorageLocation} location * @return {?Storage} * @private
extensions/amp-script/0.1/amp-script.js:941
↓ 2 callers
Method
storeAndMaybeUpdateAspectRatio_
* Store aspect ratio of the loaded story and and maybe update the active aspect ratio. * @param {!StoryDef} story * @private
src/amp-story-player/amp-story-player-impl.js:1160
↓ 2 callers
Function
storeShoppingConfig
(pageElement, config)
extensions/amp-story-shopping/0.1/amp-story-shopping-config.js:83
↓ 2 callers
Method
store_
* @param {?JsonObject} data * @private
extensions/amp-access/0.1/amp-access-iframe.js:237
↓ 2 callers
Function
streamer
* @param {string} text * @param {boolean} done
ads/google/a4a/line-delimited-response-handler.js:16
↓ 2 callers
Function
stringifyValue
* Transforms a statically computable sourcetext path (aka an AST node) into * a JSON stringified value. * * Special "includes" may be used jo
build-system/babel-plugins/babel-plugin-transform-json-configuration/index.js:33
← previous
next →
6,901–7,000 of 18,703, ranked by callers