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
↓ 16 callers
Function
isCalendarVisible
(wrapper)
extensions/amp-date-picker/1.0/test/test-helpers.js:41
↓ 16 callers
Function
isCancellation
(errorOrMessage)
src/error-reporting.js:254
↓ 16 callers
Method
isCctEmbedded
@override
src/service/viewer-impl.js:350
↓ 16 callers
Method
isDisplayed
* Whether the resource is displayed, i.e. if it has non-zero width and * height. * @return {boolean}
src/service/resource.js:633
↓ 16 callers
Function
isFieldDefault
(field)
src/core/dom/form.js:146
↓ 16 callers
Function
isIframed
(win)
src/core/dom/index.js:402
↓ 16 callers
Function
isOwnersFile
* Checks if the given file is an OWNERS file. * * @param {string} file * @return {boolean}
build-system/pr-check/build-targets.js:90
↓ 16 callers
Method
isReady
* Whether the document has been fully constructed. * @return {boolean}
third_party/subscriptions-project/config.js:151
↓ 16 callers
Function
keyPress
(ampSelector, key, opt_target)
extensions/amp-selector/0.1/test/test-amp-selector.js:91
↓ 16 callers
Method
layoutCallback
@override
extensions/amp-pan-zoom/0.1/amp-pan-zoom.js:209
↓ 16 callers
Function
log
* Logs the given messages to the console when --verbose is specified. * @param {*} messages
build-system/server/amp4test.js:19
↓ 16 callers
Method
measureElement
* Runs the specified measure, which is called in the "measure" vsync phase. * This is simply a proxy to the privileged vsync service. * * @pa
src/base-element.js:931
↓ 16 callers
Function
mergeObjects
(from, to, opt_predefinedVendorConfig)
extensions/amp-analytics/0.1/config.js:480
↓ 16 callers
Function
numberOfBindings
@return {number}
extensions/amp-bind/0.1/test/test-bind-evaluator.js:12
↓ 16 callers
Method
rejectSignal
* Rejects the signal. Indicates that the signal will never succeed. The * associated signal is rejected. * @param {string} name * @param {Err
src/core/data-structures/signals.js:104
↓ 16 callers
Function
reportError
(error, opt_associatedElement)
src/error-reporting.js:154
↓ 16 callers
Method
scheduleResume
@override
src/service/owners-impl.js:69
↓ 16 callers
Method
setCurrentlyDocked_
* @param {!VideoOrBaseElementDef} video * @param {!DockTargetDef} target * @param {number} step
extensions/amp-video-docking/0.1/amp-video-docking.js:1154
↓ 16 callers
Function
setSlides
* @param {number} count * @return {!Array<!Element>}
extensions/amp-base-carousel/1.0/test/test-amp-base-carousel.js:62
↓ 16 callers
Method
setState_
* Merge the supplied state object with the existing state and re-render the * React tree. * @param {!JsonObject} newState * @return {*} TODO(
extensions/amp-date-picker/0.1/amp-date-picker.js:848
↓ 16 callers
Method
signals
* The signals for the root. * * @return {!../../../src/utils/signals.Signals} * @abstract
extensions/amp-analytics/0.1/analytics-root.js:109
↓ 16 callers
Function
testProxyOrigin
(href, bool)
test/unit/test-url.js:553
↓ 16 callers
Method
triggerEvent
* @param {!StoryAnalyticsEvent} eventType * @param {Element=} element
extensions/amp-story/1.0/story-analytics.js:131
↓ 16 callers
Method
updateChildren
* Updates the children that should have their layout managed. Should be * called whenever the children change. * @param {!IArrayLike<!Element>}
extensions/amp-base-carousel/0.1/child-layout-manager.js:386
↓ 16 callers
Method
updateUi
* Updates the UI of the carousel. Since screen rotation can change scroll * position, this should be called to restore the scroll position (i.e. wh
extensions/amp-base-carousel/0.1/carousel.js:649
↓ 16 callers
Method
validate
* @param {!Object} unusedContext * @param {!Element} unusedContainerElement * @param {!ArrayBuffer} unusedUnvalidatedBytes * @param {!Headers
extensions/amp-a4a/0.1/amp-ad-type-defs.js:77
↓ 16 callers
Function
w
(a, b)
third_party/closure-library/sha384-generated.js:159
↓ 15 callers
Function
Zn
(n,t,e)
third_party/d3/d3.js:1
↓ 15 callers
Method
add
* Adds stories to the player. Additionally, creates or assigns * iframes to those that are close to the current playing story. * @param {!Array<
src/amp-story-player/amp-story-player-impl.js:321
↓ 15 callers
Function
addAttributesToElement
(element, attributes)
src/core/dom/index.js:157
↓ 15 callers
Function
adopt
(global)
src/runtime.js:336
↓ 15 callers
Function
assertDoesNotContainDisplay
(styles)
src/core/dom/style.js:372
↓ 15 callers
Function
b
(e)
examples/amp-script/vue-todomvc.js:7
↓ 15 callers
Method
buildCallback
@override
extensions/amp-carousel/0.1/slidescroll.js:431
↓ 15 callers
Function
changeVisibility
* Change the current visibility state. * @param {string} vis The visibility state.
test/unit/test-viewer.js:31
↓ 15 callers
Function
cleanupTweetId_
(tweetid)
3p/twitter.js:126
↓ 15 callers
Function
createShadowRootWithStyle
(container, element, css)
extensions/amp-story/1.0/utils.js:87
↓ 15 callers
Method
dialogManager
@override
third_party/subscriptions-project/swg.js:19093
↓ 15 callers
Method
disconnect
* Disconnect the resource. Mainly intended for embed resources that do not * receive `disconnectedCallback` naturally via CE API.
src/service/resource.js:1051
↓ 15 callers
Method
empty
* @param {string} service * @return {!Entitlement}
extensions/amp-subscriptions/0.1/entitlement.js:31
↓ 15 callers
Function
endBuildStep
* Stops the timer for the given build step and prints the execution time. * @param {string} stepName Name of the action, like 'Compiled' or 'Minified
build-system/tasks/helpers.js:570
↓ 15 callers
Method
evaluate
* Evaluate the incoming consent state and determine if the policy instance * should be resolved and what the policy state should be. * @param {C
extensions/amp-consent/0.1/consent-policy-manager.js:467
↓ 15 callers
Function
expectSourceType
(ampdoc, config, type, adapter)
extensions/amp-access/0.1/test/test-amp-access-source.js:49
↓ 15 callers
Function
flush
()
test/unit/utils/test-dom-transform-stream.js:6
↓ 15 callers
Method
forElement
* @param {!Element} element * @return {!Resource}
src/service/resource.js:81
↓ 15 callers
Function
forceEventOnVideo
(videoEvent, videoId)
extensions/amp-video/0.1/test-e2e/test-amp-video-flexible-bitrate.js:258
↓ 15 callers
Function
fullscreenEnter
(element)
src/core/dom/fullscreen.js:6
↓ 15 callers
Function
fullscreenExit
(element)
src/core/dom/fullscreen.js:24
↓ 15 callers
Function
g
(e,a)
third_party/react-dates/bundle.js:1
↓ 15 callers
Method
getAdUrl
@override
extensions/amp-ad-network-mgid-impl/0.1/amp-ad-network-mgid-impl.js:49
↓ 15 callers
Function
getAmpAutoAds
(type)
extensions/amp-auto-ads/0.1/test/test-amp-auto-ads.js:166
↓ 15 callers
Function
getAppBanner
(config = {})
extensions/amp-app-banner/0.1/test/test-amp-app-banner.js:57
↓ 15 callers
Function
getConsentPolicyInfo
(element, policyId = 'default')
src/consent.js:46
↓ 15 callers
Function
getConsentPolicyState
(element, policyId = 'default')
src/consent.js:10
↓ 15 callers
Function
getCurve
(curve)
src/core/data-structures/curve.js:265
↓ 15 callers
Function
getElement
(options)
extensions/amp-carousel/0.1/test/test-slidescroll-slides.js:35
↓ 15 callers
Method
getElement
* Returns the root element of the image viewer. * @return {!Element}
extensions/amp-image-lightbox/0.1/amp-image-lightbox.js:139
↓ 15 callers
Method
getEntitlements
* Requests entitlement for a subscription platform. * @return {!Promise<?./entitlement.Entitlement>}
extensions/amp-subscriptions/0.1/subscription-platform.js:18
↓ 15 callers
Method
getFormattedDate_
* Formats a date in the page's locale and the element's configured format. * @param {?moment} date * @param {string=} opt_format * @param {st
extensions/amp-date-picker/0.1/amp-date-picker.js:1637
↓ 15 callers
Method
getLayoutPriority
* This is the priority of loading elements (layoutCallback). Used only to * determine layout timing and preloading priority. Does not affect build
src/base-element.js:296
↓ 15 callers
Function
getProp
(element, prop)
test/unit/preact/test-slot.js:28
↓ 15 callers
Method
getRootNode
* The `Document` node or analog. * @return {!Node}
third_party/subscriptions-project/config.js:125
↓ 15 callers
Function
getSourceUrl
(url)
src/url.js:493
↓ 15 callers
Function
getStoredConsentInfo
(value)
extensions/amp-consent/0.1/consent-info.js:109
↓ 15 callers
Function
getVideoPlayerMock
()
extensions/amp-ima-video/0.1/test/test-ima-video-internal.js:25
↓ 15 callers
Method
goToSlide
* Moves the carousel to a given index. If the index is out of range, the * carousel is not moved. * @param {number} index * @param {{ *
extensions/amp-base-carousel/0.1/carousel.js:473
↓ 15 callers
Method
handleShow_
* Handles "show" action. This is a very simple action where "display: none" * is removed from the target element. * @param {!./action-impl.Actio
src/service/standard-actions-impl.js:476
↓ 15 callers
Method
handleTcfCommand
* @param {!Object} data * @param {!Window} win
extensions/amp-consent/0.1/tcf-api-command-manager.js:70
↓ 15 callers
Function
isFullscreenElement
(element)
src/core/dom/fullscreen.js:58
↓ 15 callers
Function
isInExperiment
(element, id)
ads/google/a4a/traffic-experiments.js:90
↓ 15 callers
Function
l
(n,t)
third_party/d3/d3.js:1
↓ 15 callers
Function
layoutAndLoad
(element)
extensions/amp-video-iframe/0.1/test/test-amp-video-iframe.js:75
↓ 15 callers
Method
loginWithType_
* Runs the login flow using one of the predefined urls in the amp-access * config * * @private * @param {string} type Type of login define
extensions/amp-access/0.1/amp-access.js:741
↓ 15 callers
Function
mockWindowInterface
(sandbox)
testing/helpers/service.js:52
↓ 15 callers
Function
moveLayoutRect
(rect, dx, dy)
src/core/dom/layout/rect.js:221
↓ 15 callers
Method
mutate
* Enqueues a DOM mutation managed by the window's Vsync * @param {function():undefined} mutator * @protected
extensions/amp-access-scroll/0.1/scroll-component.js:76
↓ 15 callers
Function
mutedOrUnmutedEvent
(isMuted)
src/iframe-video.js:119
↓ 15 callers
Method
observe
()
test/unit/polyfills/test-intersection-observer.js:34
↓ 15 callers
Method
observe
()
testing/fake-dom.js:731
↓ 15 callers
Function
parseViewportMeta
(content)
src/service/viewport/viewport-impl.js:1105
↓ 15 callers
Method
resolveUnknownAnchors
* This is the function used by the Skimlinks LinkRewriter to determine * which URLs should be replaced. * * For each anchor in the list, retu
extensions/amp-skimlinks/0.1/affiliate-link-resolver.js:113
↓ 15 callers
Function
resolveUrlAttr
(tagName, attrName, attrValue, windowLocation)
src/url-rewrite.js:113
↓ 15 callers
Function
s
(e)
examples/amp-script/vue-todomvc.js:7
↓ 15 callers
Function
sendEvent
(event, opt_prevetDefault)
test/unit/test-pull-to-refresh.js:34
↓ 15 callers
Method
sendMessage
* Send a postMessage to Host Window, or all parent windows if host window is * not set. * @param {string} type The type of message to send. *
3p/iframe-messaging-client.js:118
↓ 15 callers
Function
setParentWindow
(win, parentWin)
src/service-helpers.js:257
↓ 15 callers
Function
skipDependentJobs
* Prints a message indicating why a job was skipped and mark its dependent jobs * for skipping. * @param {string} jobName * @param {string} skipRea
build-system/pr-check/utils.js:113
↓ 15 callers
Function
stubServiceForDoc
(sandbox, ampdoc, serviceId, method)
testing/helpers/service.js:25
↓ 15 callers
Function
test
(name, argsOrFunc, css, results)
extensions/amp-animation/0.1/test/test-css-expr-resolve-calc.js:396
↓ 15 callers
Function
testWindow
(win)
test/unit/test-3p-environment.js:192
↓ 15 callers
Method
thenAlways
* Callback for regardless whether the motion succeeds or fails. * @param {function()=} opt_callback * @return {!Promise}
src/motion.js:190
↓ 15 callers
Function
throttle
(win, callback, minInterval)
src/core/types/function/index.js:43
↓ 15 callers
Method
toggle
(value)
extensions/amp-live-list/0.1/test/test-live-list-manager.js:74
↓ 15 callers
Method
transform
* * @param {number} x * @param {number} y * @param {number} scale * @return {*} TODO(#23582): Specify return type
extensions/amp-pan-zoom/0.1/amp-pan-zoom.js:199
↓ 15 callers
Function
tryPlay
(element, isAutoplay)
src/core/dom/video/index.js:98
↓ 15 callers
Function
u
(t)
third_party/d3-geo-projection/d3-geo-projection.js:1
↓ 15 callers
Method
undock_
* @param {!VideoOrBaseElementDef} video * @param {boolean=} opt_reconciled * @param {!RectDef=} opt_inlineRect * @return {!Promise} * @pri
extensions/amp-video-docking/0.1/amp-video-docking.js:1553
↓ 15 callers
Method
updateLinkList
* Reset the list of anchors to the new provided list but keep * the replacement values associated with pre-existing anchors. * @param {!Array<!H
extensions/amp-skimlinks/0.1/link-rewriter/link-replacement-cache.js:24
↓ 15 callers
Function
waitForRender
()
extensions/amp-social-share/1.0/test/test-amp-social-share.js:24
↓ 15 callers
Method
whenNextVisible
* Returns a Promise that resolve when current doc becomes visible. * The promise resolves immediately if doc is already visible. * @return {!Pro
src/service/ampdoc-impl.js:695
← previous
next →
1,001–1,100 of 18,703, ranked by callers