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
↓ 6 callers
Function
nd
(e)
third_party/react-dates/bundle.js:1
↓ 6 callers
Function
networkFailure
()
extensions/amp-a4a/0.1/test/fetch-mock.js:122
↓ 6 callers
Function
noNavigation
()
test/unit/test-alp-handler.js:100
↓ 6 callers
Method
notify
(entries)
test/unit/test-ini-load.js:120
↓ 6 callers
Method
notifyFinish
* Notifies dependent elements that animation has finished. * @param {string} id
extensions/amp-story/1.0/animation.js:868
↓ 6 callers
Function
oblivkiIsA4AEnabled
(win, element, useRemoteHtml)
extensions/amp-ad-network-oblivki-impl/0.1/oblivki-a4a-config.js:13
↓ 6 callers
Method
on
* Subscribes a callback to be fired anytime a new message is received on the * topic. Replies to an existing message fire on the existing message p
extensions/amp-web-push/0.1/window-messenger.js:411
↓ 6 callers
Method
onChange
* This registers a callback which is called whenever a platform key is resolved * with an entitlement. * @param {function(!EntitlementChangeEven
extensions/amp-subscriptions/0.1/platform-store.js:208
↓ 6 callers
Method
onConsentStateChange
* Register the handler for every consent state change. * @param {function(!ConsentInfoDef)} handler
extensions/amp-consent/0.1/consent-state-manager.js:200
↓ 6 callers
Method
onDomUpdated
* Scan the page to find links and send "page_scanned" event when scan * is completed and we know the replacement url of all the links * currentl
extensions/amp-skimlinks/0.1/link-rewriter/link-rewriter.js:137
↓ 6 callers
Function
onIdle
(win, minimumTimeRemaining, timeout, fn)
src/chunk.js:528
↓ 6 callers
Method
onPointerDown
* Subscribes to pointer down events, such as "touchstart" or "mousedown". * @param {!Function} handler * @return {!UnlistenDef}
src/gesture.js:222
↓ 6 callers
Method
onProgressUpdate
* @param {number=} progressOverride * @protected
extensions/amp-story/1.0/page-advancement.js:202
↓ 6 callers
Method
onScroll_
* @param {!../../../src/service/viewport/viewport-interface.ViewportChangedEventDef} e * @return {!Promise} * @private
extensions/amp-analytics/0.1/scroll-manager.js:121
↓ 6 callers
Method
open
* @param {!Element} element The element to open a lightbox for. * @param {boolean=} expandDescription Whether or not the description should *
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:681
↓ 6 callers
Function
openLightbox
(document)
extensions/amp-lightbox-gallery/0.1/test/integration/test-amp-lightbox-gallery.js:228
↓ 6 callers
Method
pause
* Pauses the specified media element in the DOM. * @param {!DomElementDef} domMediaEl The media element to be paused. * @param {boolean=} rewind
extensions/amp-story/1.0/media-pool.js:796
↓ 6 callers
Method
pause
* Pauses the audio
extensions/amp-audio/1.0/component.type.js:37
↓ 6 callers
Method
peek
* Returns the task with the minimal score based on the provided scoring * callback. * @param {function(!TaskDef):number} scorer * @return {?T
src/service/task-queue.js:108
↓ 6 callers
Method
performPingback_
* Performs pingback on configured platforms. * @return {?Promise} * @private
extensions/amp-subscriptions/0.1/amp-subscriptions.js:732
↓ 6 callers
Method
pingback
* Performs the pingback to the subscription platform. * @param {./entitlement.Entitlement|Array<./entitlement.Entitlement>} unusedEntitlement *
extensions/amp-subscriptions/0.1/subscription-platform.js:67
↓ 6 callers
Method
play
* @override
test/integration/test-video-manager.js:522
↓ 6 callers
Method
poll
* Returns a promise that resolves after `predicate` returns true. * Polls with interval `delay` * @param {number} delay * @param {function():
src/service/timer-impl.js:154
↓ 6 callers
Method
postMessage_
* @param {string} method * @param {string} [optParams] * @private
extensions/amp-slikeplayer/0.1/amp-slikeplayer.js:422
↓ 6 callers
Function
prependSelectorsWith
(selector, distribute)
src/core/dom/css-selectors.js:69
↓ 6 callers
Function
protectFunctionWrapper
( fn, inThis = undefined, onError = undefined )
extensions/amp-a4a/0.1/amp-a4a.js:199
↓ 6 callers
Method
pushStateWithExpression
* Same as setStateWithExpression() except also pushes new history. * Popping the new history stack entry will restore the values of variables *
extensions/amp-bind/0.1/bind-impl.js:374
↓ 6 callers
Method
put
* @param {number|string} key * @param {T} payload The payload to cache.
src/core/data-structures/lru-cache.js:54
↓ 6 callers
Function
qa
(e,t,n,r,i)
examples/amp-script/vue-todomvc.js:7
↓ 6 callers
Function
qn
(n,t,e)
third_party/d3/d3.js:1
↓ 6 callers
Method
queryHelperFrame_
* Waits until the helper iframe has loaded, and then sends the message to the * helper iframe and awaits a reply. Errors that are returned are thro
extensions/amp-web-push/0.1/web-push-service.js:286
↓ 6 callers
Function
re
(e)
examples/amp-script/vue-todomvc.js:7
↓ 6 callers
Function
receiveMessage
(messageData, source)
extensions/amp-ad-network-doubleclick-impl/0.1/test/test-doubleclick-safeframe.js:102
↓ 6 callers
Function
referrers_
(referrer)
extensions/amp-dynamic-css-classes/0.1/amp-dynamic-css-classes.js:33
↓ 6 callers
Function
registerServiceInternal
* @param {!Object} holder Object holding the service instance. * @param {!Window|!./service/ampdoc-impl.AmpDoc} context Win or AmpDoc. * @param {str
src/service-helpers.js:370
↓ 6 callers
Method
registerUserNotification
* Register an instance of `amp-user-notification`. * @param {string} id * @param {!NotificationInterface} userNotification * @return {!Promis
extensions/amp-user-notification/0.1/amp-user-notification.js:508
↓ 6 callers
Method
removeItem
* @param {string} name
testing/fake-dom.js:663
↓ 6 callers
Function
renderWrapper
()
extensions/amp-app-banner/1.0/test/test-component.js:52
↓ 6 callers
Function
reportErrorToServerOrViewer
(win, data)
src/error-reporting.js:383
↓ 6 callers
Method
reportRenderedEntityIdentifier
* Reports the "entity" that was rendered to this frame to the parent for * reporting purposes. * The entityId MUST NOT contain user data or pers
3p/ampcontext-integration.js:114
↓ 6 callers
Method
requireLayout
@override
src/service/owners-impl.js:89
↓ 6 callers
Method
rescan
* Removes bindings from `removedElements` and adds new bindings in * `addedElements`. * * If `options.update` is true, evaluates and applies
extensions/amp-bind/0.1/bind-impl.js:435
↓ 6 callers
Method
reset
()
extensions/amp-list/0.1/amp-list.js:616
↓ 6 callers
Method
reset
* Clears the grant status
extensions/amp-subscriptions/0.1/platform-store.js:428
↓ 6 callers
Method
reset
* Resets to initial state. Currently used only in testing. * @visibleForTesting
extensions/amp-ad-network-adsense-impl/0.1/adsense-shared-state.js:59
↓ 6 callers
Method
resetActiveElement_
* Resets the activeIndex_, activeElement_ and removes its 'active' class. * Should be called in a measureMutate context. * @private
extensions/amp-autocomplete/0.1/amp-autocomplete.js:1262
↓ 6 callers
Function
resizeIframe
(global, containerName)
ads/vendors/csa.js:265
↓ 6 callers
Method
resume
()
extensions/amp-animation/0.1/runners/animation-runner.js:44
↓ 6 callers
Function
rt
(e,a)
third_party/react-dates/bundle.js:1
↓ 6 callers
Method
runScheduledTasks_
* Runs all scheduled tasks. This is typically called in an RAF * callback. Tests may call this method to force execution of * tasks without wait
src/service/vsync-impl.js:393
↓ 6 callers
Method
schedulePass
@override
src/inabox/inabox-resources.js:155
↓ 6 callers
Method
scheduleView_
* @param {time} timeToView * @private
extensions/amp-access/0.1/amp-access.js:568
↓ 6 callers
Method
sdnPostMessage_
* * @private * @param {string} message
extensions/amp-3q-player/0.1/amp-3q-player.js:208
↓ 6 callers
Function
seekPrevious
(pos, newBlock)
third_party/inputmask/inputmask.js:1530
↓ 6 callers
Method
selectAndActivatePlatform_
* @return {!Promise} * @private
extensions/amp-subscriptions/0.1/amp-subscriptions.js:683
↓ 6 callers
Method
selectBestCenteredInPortrait_
* @private * @return {!Promise<?../video-interface.VideoOrBaseElementDef>}
src/service/video-manager-impl.js:1284
↓ 6 callers
Method
selectItem_
* Finish item selection with the selected value. * @param {?string} selectedText Textual representation of the selected value * @param {?JsonObj
extensions/amp-autocomplete/0.1/amp-autocomplete.js:1118
↓ 6 callers
Function
selectOption
(option, selected)
extensions/amp-form/0.1/test/test-form-dirtiness.js:36
↓ 6 callers
Method
selectPlatformForLogin
* Evaluates platforms and select the one to be selected for login. * @return {!./subscription-platform.SubscriptionPlatform}
extensions/amp-subscriptions/0.1/platform-store.js:662
↓ 6 callers
Method
sendCommand_
* Sends a command to the player through postMessage. * @param {string} command * @param {*=} arg * @private *
extensions/amp-powr-player/0.1/amp-powr-player.js:124
↓ 6 callers
Method
sendCommand_
* Sends a command to the player through postMessage. * @param {string} command * @param {Array=} opt_args * @private
extensions/amp-mowplayer/0.1/amp-mowplayer.js:185
↓ 6 callers
Method
sendCommand_
* Sends a command to the player through postMessage. * @param {string} command * @param {*=} arg * @private *
extensions/amp-brightcove/0.1/amp-brightcove.js:182
↓ 6 callers
Function
sendFakeInfoDeliveryMessage
(mp, iframe, info)
extensions/amp-mowplayer/0.1/test/test-amp-mowplayer.js:130
↓ 6 callers
Method
sendRequest
* I'm sending Bob a new outgoing request. * @param {string} messageName * @param {?JsonObject|string|undefined} messageData * @param {boolean
extensions/amp-viewer-integration/0.1/messaging/messaging.js:316
↓ 6 callers
Function
sequentialIdGenerator
()
src/core/data-structures/id-generator.js:5
↓ 6 callers
Method
setAuthResponse
* @param {!JsonObject} authResponse
extensions/amp-subscriptions/0.1/url-builder.js:26
↓ 6 callers
Function
setContainerHeight
(height)
test/unit/ads/test-csa.js:136
↓ 6 callers
Function
setContextHeight
(h)
test/unit/ads/test-csa.js:143
↓ 6 callers
Function
setDimensions
* @param {number} pageW * @param {number} pageH * @param {number} targetW * @param {number} targetH * @return {!StoryAnimationDims
extensions/amp-story/1.0/test/test-full-bleed-animations.js:198
↓ 6 callers
Method
setDirtyBit
* Set dirtyBit to current consent info. Refresh stored consent value with * dirtyBit * @param {boolean=} dirty * @return {Promise<void>} *
extensions/amp-consent/0.1/consent-state-manager.js:345
↓ 6 callers
Method
setHtml
@override
extensions/amp-mustache/0.2/amp-mustache.js:104
↓ 6 callers
Method
setHtml
@override
extensions/amp-mustache/0.1/amp-mustache.js:102
↓ 6 callers
Method
setObservation_
* @param {!Element} target * @param {number} index * @param {?boolean} value * @param {?Array<!ObserverCallbackDef>} callbacks * @private
src/utils/display-observer.js:378
↓ 6 callers
Method
setRelayoutTop
@override
src/service/resources-impl.js:557
↓ 6 callers
Method
setSentinel
* @param {string} sentinel
3p/iframe-messaging-client.js:205
↓ 6 callers
Function
setUpStorySubscriptions
()
extensions/amp-story/1.0/test/test-amp-story.js:1425
↓ 6 callers
Function
setValidAreaHeight
(videoHeight = 400)
extensions/amp-video-docking/0.1/test/test-amp-video-docking.js:97
↓ 6 callers
Function
setValidAreaWidth
()
extensions/amp-video-docking/0.1/test/test-amp-video-docking.js:83
↓ 6 callers
Function
setupSpys
()
test/integration/test-visibility-states.js:88
↓ 6 callers
Method
shouldAutocomplete
(inputEl: InputElement)
src/bento/components/bento-autocomplete/1.0/types.ts:61
↓ 6 callers
Function
shouldBlockOnConsentByMeta
(element)
src/consent.js:118
↓ 6 callers
Function
shouldIgnoreFile
* @return {boolean}
build-system/eslint-rules/unused-private-field.js:28
↓ 6 callers
Method
shouldPositionCenter_
* Returns whether or not the dialog should have position 'CENTER'. * @return {boolean} * @private
third_party/subscriptions-project/swg.js:11319
↓ 6 callers
Method
shouldSuggestFirst
* Whether or not the autocomplete can abide by the "suggest-first" attribute * @return {boolean}
extensions/amp-autocomplete/0.1/autocomplete-binding-def.js:46
↓ 6 callers
Function
simpleSuccess
()
test/unit/test-alp-handler.js:72
↓ 6 callers
Method
skipIfPropertiesObfuscated
()
testing/test-config.js:72
↓ 6 callers
Function
smartAdsIsA4AEnabled
(win, element, useRemoteHtml)
extensions/amp-ad-network-smartads-impl/0.1/smartads-a4a-config.js:13
↓ 6 callers
Function
srcsetFromElement
(element)
src/core/dom/srcset.js:24
↓ 6 callers
Method
start
()
src/motion.js:149
↓ 6 callers
Function
stopTimer
* Stops the timer for the given job / command and prints the execution time. * @param {string} jobNameOrCmd * @param {DOMHighResTimeStamp} startTime
build-system/pr-check/utils.js:144
↓ 6 callers
Function
stringHash32
(str)
src/core/types/string/index.js:110
↓ 6 callers
Function
stubDockInTransferLayerStep
()
extensions/amp-video-docking/0.1/test/test-amp-video-docking.js:120
↓ 6 callers
Function
stubIframeClientMakeRequest
( requestType, responseType, callback, opt_sync, opt_once )
test/unit/inabox/test-inabox-viewport.js:32
↓ 6 callers
Function
stubPlatform
(isSafari, version)
extensions/amp-analytics/0.1/test/test-linker-manager.js:851
↓ 6 callers
Function
succeed
()
extensions/amp-access/0.1/test/test-login-dialog.js:210
↓ 6 callers
Function
testElementForSrcAndBitrate
* Tests that the element contains the {srcContains} in the [src], and the [data-bitrate] is {bitrateEquals}
extensions/amp-video/0.1/test-e2e/test-amp-video-flexible-bitrate.js:268
↓ 6 callers
Function
testIframe
(iframe, itemSrcUrl)
extensions/amp-playbuzz/0.1/test/test-amp-playbuzz.js:83
↓ 6 callers
Function
testLoadOrderFixture
* Check all elements in the fixture are upgraded correctly. * @param {string} fixtureName * @param {!Array} testElements
test/integration/test-extensions-loading.js:21
↓ 6 callers
Function
testLocalhostOrigin
(href, bool)
test/unit/test-url.js:604
↓ 6 callers
Function
testVisibilityPings
(visibleDelay, activeViewDelay)
test/integration/test-amphtml-ads.js:282
← previous
next →
2,601–2,700 of 18,703, ranked by callers