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
↓ 37 callers
Method
getPageById
* @param {string} id The ID of the page to be retrieved. * @return {!./amp-story-page.AmpStoryPage} Retrieves the page with the * specified
extensions/amp-story/1.0/amp-story.js:2276
↓ 37 callers
Function
i
(t)
third_party/d3-geo-projection/d3-geo-projection.js:1
↓ 37 callers
Method
init
* @param {function()} startTimer
extensions/amp-analytics/0.1/events.js:1035
↓ 37 callers
Function
isOpened
(sidebarElement)
extensions/amp-sidebar/1.0/test/test-component.js:8
↓ 37 callers
Method
isResultValid
* Returns true if `value` is a valid result for a (tag, property) binding. * Otherwise, returns false. * @param {string} tag * @param {string
extensions/amp-bind/0.1/bind-validator.js:91
↓ 37 callers
Method
measureMutateElement
* Runs the specified measure, then runs the mutation on the element and * ensures that remeasures and layouts are performed for the affected * e
src/base-element.js:969
↓ 37 callers
Function
tryFocus
(element)
src/core/dom/index.js:389
↓ 37 callers
Method
unmount
* Unmounts the element and makes it ready for the next mounting * operation. * @final
src/custom-element.js:728
↓ 36 callers
Function
A
(e,t)
examples/amp-script/vue-todomvc.js:7
↓ 36 callers
Method
assertNumber
* Throws an error if the first argument isn't a number. The allowed values * include `0` and `NaN`. * * For more details see `assert`. *
src/utils/log.js:453
↓ 36 callers
Method
buildCallback
@override
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:570
↓ 36 callers
Method
compileCallback
@override
extensions/amp-mustache/0.1/amp-mustache.js:42
↓ 36 callers
Method
customSnap_
* Animate and snap to the correct slide for a given scrollLeft. * @param {number} currentScrollLeft scrollLeft value of the slides container. *
extensions/amp-carousel/0.1/slidescroll.js:633
↓ 36 callers
Function
endsWith
(string, suffix)
src/core/types/string/index.js:51
↓ 36 callers
Method
get
* Creates if not yet created and returns the shared Gestures instance for * the specified element. * @param {!Element} element * @param {bool
src/gesture.js:55
↓ 36 callers
Method
getLastVisibleTime
* Returns the time when the document has become visible for the last time. * If document has not yet become visible, the returned value is `null`.
src/service/ampdoc-impl.js:717
↓ 36 callers
Method
getRootElement
* Gets the root element. * @visibleForTesting * @return {?Element}
extensions/amp-story-interactive/0.1/amp-story-interactive-abstract.js:210
↓ 36 callers
Method
getSize
(el)
extensions/amp-story/1.0/background-blur.js:267
↓ 36 callers
Method
isVisible
* @return {boolean}
extensions/amp-next-page/1.0/page.js:137
↓ 36 callers
Method
notifySync
(entryOrEntries)
testing/resize-observer-stub.js:34
↓ 36 callers
Function
resetServiceForTesting
(holder, id)
src/service-helpers.js:618
↓ 36 callers
Function
resolvedCss
(node, opt_normalize)
extensions/amp-animation/0.1/test/test-css-expr-resolve-calc.js:17
↓ 36 callers
Method
setVisibilityState_
* Sets the viewer defined visibility state. * @param {?string|undefined} state * @private
src/service/viewer-impl.js:517
↓ 36 callers
Method
subscribe
@override
third_party/subscriptions-project/swg.js:19397
↓ 36 callers
Method
tearDown
()
testing/helpers/service.js:207
↓ 36 callers
Function
toggleAttribute
(element, name, forced)
src/core/dom/index.js:457
↓ 36 callers
Function
utf8Encode
(string)
src/core/types/string/bytes.js:29
↓ 36 callers
Function
waitForCarouselImg
(controller, n)
extensions/amp-base-carousel/0.1/test-e2e/helpers.js:16
↓ 36 callers
Function
waitForNoSendRequest
(analytics)
extensions/amp-analytics/0.1/test/test-amp-analytics.js:173
↓ 35 callers
Function
a
(n)
third_party/d3/d3.js:1
↓ 35 callers
Function
el
(id)
test/unit/core/context/test-node-values.js:75
↓ 35 callers
Method
get
* Get the LINKER_PARAM(name, id) value from url and clean the value * @param {string} name * @param {string} id * @return {?string}
extensions/amp-consent/0.1/linker-reader.js:29
↓ 35 callers
Method
getHandlerCount
* Returns number of handlers. Mostly needed for tests. * @return {number}
src/core/data-structures/observable.js:71
↓ 35 callers
Method
getTracker
* Returns the tracker for the specified name and type. If the tracker * has not been requested before, it will be created. * * @param {string
extensions/amp-analytics/0.1/analytics-root.js:153
↓ 35 callers
Method
initialize_
* Returns promise that resolves when page and platform configs are processed. * @return {!Promise} * @private
extensions/amp-subscriptions/0.1/amp-subscriptions.js:350
↓ 35 callers
Method
layoutCallback
@override
extensions/amp-ad/0.1/amp-ad-3p-impl.js:347
↓ 35 callers
Function
newPerformanceResourceTiming
( url, initiatorType, startTime, duration, bodySize, cached )
extensions/amp-analytics/0.1/test/test-resource-timing.js:42
↓ 35 callers
Method
registerApiAction
* Register an action for AMP documents to execute an API handler. * * This has no effect on Bento documents, since they lack an Actions system.
src/preact/amp-base-element.js:108
↓ 35 callers
Function
removeFragment
(url)
src/url.js:354
↓ 35 callers
Method
render
@override
extensions/amp-mustache/0.1/amp-mustache.js:109
↓ 35 callers
Method
sendMessage
@override
src/service/viewer-impl.js:768
↓ 35 callers
Function
xhrServiceForTesting
(window)
src/service/xhr-impl.js:209
↓ 34 callers
Method
buildCallback
@override
extensions/amp-user-notification/0.1/amp-user-notification.js:123
↓ 34 callers
Function
format
(val, relativeTo = 0)
extensions/amp-analytics/0.1/resource-timing.js:240
↓ 34 callers
Method
getLayoutBox
* Returns a previously measured layout box adjusted to the viewport. This * mainly affects fixed-position elements that are adjusted to be always
src/base-element.js:329
↓ 34 callers
Function
getSlide
(styles, controller, n)
extensions/amp-base-carousel/1.0/test-e2e/helpers.js:20
↓ 34 callers
Function
isCiBuild
* Returns true if this is a CI build. * @return {boolean}
build-system/common/ci.js:24
↓ 34 callers
Method
isSingleDoc
* Whether the runtime in the single-doc mode. Alternative is the shadow-doc * mode that supports multiple documents per a single window. * @retu
src/service/ampdoc-impl.js:319
↓ 34 callers
Method
isVisible
* Whether the AMP document currently visible. The reasons why it might not * be visible include user switching to another tab, browser running the
src/service/ampdoc-impl.js:745
↓ 34 callers
Function
scopedQuerySelector
(root, selector)
src/core/dom/query.js:53
↓ 34 callers
Method
show
* Display the UI. * @param {boolean} isActionPromptTrigger
extensions/amp-consent/0.1/consent-ui.js:233
↓ 34 callers
Method
sign
* @param {!Uint8Array} data * @return {!Promise<!Uint8Array>}
extensions/amp-a4a/0.1/test/test-signature-verifier.js:83
↓ 34 callers
Function
snapshot
(component)
extensions/amp-list/1.0/test/test-component.js:14
↓ 34 callers
Method
then
@override
build-system/tasks/e2e/controller-promise.js:52
↓ 34 callers
Method
trigger
* @param {number} time * @param {...*} args
extensions/amp-video-docking/0.1/timeout.js:24
↓ 34 callers
Function
waitForNextPass
()
test/integration/test-visibility-states.js:76
↓ 34 callers
Method
whenBuilt
* Returns promise that resolves when the element has been built. * @return {!Promise}
src/service/resource.js:313
↓ 33 callers
Method
contains
* Whether the node is currently contained in the DOM of the root. * @param {?Node} node * @return {boolean}
src/service/ampdoc-impl.js:551
↓ 33 callers
Method
dispose
@override @abstract
extensions/amp-analytics/0.1/events.js:312
↓ 33 callers
Method
execute
* @param {!HTMLMediaElement} mediaEl The element on which this task should be * executed. * @return {!Promise} A promise that is resolved wh
extensions/amp-story/1.0/media-tasks.js:159
↓ 33 callers
Function
has
(t,e)
third_party/react-dates/bundle.js:1
↓ 33 callers
Function
installTimerService
(window)
src/service/timer-impl.js:169
↓ 33 callers
Method
isEnabled
()
extensions/amp-live-list/0.1/test/test-live-list-manager.js:70
↓ 33 callers
Function
isProxyOrigin
(url)
src/url.js:381
↓ 33 callers
Method
mutate
* Runs the mutate operation via vsync. * @param {function():undefined} mutator
src/service/vsync-impl.js:214
↓ 33 callers
Method
parseAndValidate
* Called to parse and validate the value of a mutation * @return {boolean}
extensions/amp-experiment/1.0/mutation/mutation.js:15
↓ 33 callers
Function
propagateAttributes
( attributes, sourceElement, updateElement, opt_removeMissingAttrs )
src/core/dom/propagate-attributes.js:13
↓ 33 callers
Method
register
@param {!../video-interface.VideoInterface} video
src/service/video-manager-impl.js:182
↓ 33 callers
Method
reset
* Clears the singleton variables.
third_party/subscriptions-project/swg.js:15535
↓ 33 callers
Method
resolveListQuery
* @param {string} exprString * @return {string} value
src/core/dom/media-query-props.js:58
↓ 33 callers
Method
set
* @param {string} hash * @param {Promise<T>} transformPromise
build-system/common/transform-cache.js:54
↓ 33 callers
Method
setDate
(date: Date)
extensions/amp-date-picker/1.0/types.ts:59
↓ 33 callers
Function
setUrl
@param {string} href
test/unit/test-viewer.js:45
↓ 33 callers
Function
testOrigin
(href, sourceHref)
test/unit/test-url.js:653
↓ 32 callers
Function
attachPlayerWithStories
(playerEl, numStories)
test/unit/test-amp-story-player.js:728
↓ 32 callers
Function
env
* Shorthand to extract an environment variable. * @param {string} key * @return {string}
build-system/common/ci.js:16
↓ 32 callers
Function
getExperimentBranch
(win, experimentName)
src/experiments/index.js:342
↓ 32 callers
Method
getRootVisibility
* @return {number}
extensions/amp-analytics/0.1/visibility-manager.js:216
↓ 32 callers
Function
handler
(event)
extensions/amp-analytics/0.1/test/test-events.js:2292
↓ 32 callers
Method
layoutCallback
@override
extensions/amp-autocomplete/0.1/amp-autocomplete.js:510
↓ 32 callers
Method
send
* Sends a message to all subscribed windows. * @param {string} type Type of the message. * @param {!JsonObject} data Message payload.
src/iframe-helper.js:474
↓ 32 callers
Method
sendMessageAwaitResponse
@override
src/service/viewer-impl.js:773
↓ 32 callers
Function
waitForDiscover
(...nodesOrContextNodes)
test/unit/core/context/test-node-discover.js:84
↓ 31 callers
Method
attachShadowDoc
* Implementation for `attachShadowDoc` function. Attaches the shadow doc and * configures ampdoc for it. * @param {!Element} hostElement * @p
src/multidoc-manager.js:219
↓ 31 callers
Method
attr
(name)
extensions/amp-story-360/0.1/amp-story-360.js:305
↓ 31 callers
Function
boundValue
(val, min, max, extent)
src/core/math.js:95
↓ 31 callers
Function
composeStoreValue
(consentInfo)
extensions/amp-consent/0.1/consent-info.js:173
↓ 31 callers
Function
fetchCachedSources
( videoEl, ampdoc, maxBitrate = Number.POSITIVE_INFINITY )
extensions/amp-video/0.1/video-cache.js:27
↓ 31 callers
Method
flush
* Ask the viewer to flush the ticks
src/service/performance-impl.js:879
↓ 31 callers
Function
fromIterator
(iterator)
src/core/types/array.js:111
↓ 31 callers
Function
getImplSyncForTesting
(element)
src/custom-element.js:2212
↓ 31 callers
Function
getStoreService
(win)
extensions/amp-story/1.0/amp-story-store-service.js:24
↓ 31 callers
Method
go
* @param {number} steps
testing/fake-dom.js:563
↓ 31 callers
Function
isEnumValue
(enumObj, val)
src/core/types/enum.js:11
↓ 31 callers
Method
loadConfig
* @return {!Promise<JsonObject>}
extensions/amp-analytics/0.1/config.js:61
↓ 31 callers
Method
onInput
* @param {!Event} unusedEvent
extensions/amp-form/0.1/form-validators.js:102
↓ 31 callers
Method
onTouchStart
* The Gestures instance calls this method for each "touchstart" event. If * the recognizer wants to receive other touch events in the series, it ha
src/gesture.js:672
↓ 31 callers
Function
once
(fn)
src/core/types/function/index.js:15
↓ 31 callers
Function
openWindowDialog
(win, url, target, opt_features)
src/open-window-dialog.js:18
↓ 31 callers
Method
registerLocalizedStringBundles
* @param {!{[key: string]: !LocalizedStringBundleDef}} localizedStringBundles * The localized string bundle to register. * @public
src/service/localization/index.js:121
← previous
next →
401–500 of 18,703, ranked by callers