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
↓ 22 callers
Method
getRoot
* @return {!Element}
extensions/amp-subscriptions/0.1/dialog.js:70
↓ 22 callers
Function
includes
(string, substring, start)
src/core/types/string/index.js:63
↓ 22 callers
Function
init
(ratios = '0', margins = '0', runOnce = false)
extensions/amp-position-observer/0.1/test/test-amp-position-observer.js:22
↓ 22 callers
Method
isBuilding
* Returns whether the resource is currently being built. * @return {boolean}
src/service/resource.js:305
↓ 22 callers
Function
isModelResolved
(model)
extensions/amp-analytics/0.1/test/test-visibility-manager.js:1142
↓ 22 callers
Function
maybeTrackImpression
(win)
src/impression.js:58
↓ 22 callers
Method
mutatePromise
* Runs `mutate` wrapped in a promise. * @param {function():undefined} mutator * @return {!Promise}
src/service/vsync-impl.js:226
↓ 22 callers
Function
n
(e)
third_party/react-dates/bundle.js:1
↓ 22 callers
Function
parseLength
(s)
src/core/dom/layout/index.js:135
↓ 22 callers
Method
placeAt_
* @param {!VideoOrBaseElementDef} video * @param {number} x * @param {number} y * @param {number} scale * @param {number} step in [0..1]
extensions/amp-video-docking/0.1/amp-video-docking.js:902
↓ 22 callers
Function
postMessage
(iframe, type, object, targetOrigin, opt_is3P)
src/iframe-helper.js:353
↓ 22 callers
Function
randomlySelectUnsetExperiments
(win, experiments)
src/experiments/index.js:299
↓ 22 callers
Method
remove
* @param {string} key * @param {boolean=} useLocalStorage * @return {!Promise}
third_party/subscriptions-project/swg.js:18786
↓ 22 callers
Method
setAsync
* Sets an async value resolver for the variable with the specified name. * The value resolver may optionally take an extra parameter. * Can be c
src/service/variable-source.js:236
↓ 22 callers
Method
setProperty
* @param {!Node} node * @param {string} property * @param {string} value * @return {boolean}
extensions/amp-script/0.1/amp-script.js:842
↓ 22 callers
Method
sortSources_
* Sorts the sources of the given video element by their bitrates such that * the sources closest matching the acceptable bitrate are in front. *
extensions/amp-video/0.1/flexible-bitrate.js:167
↓ 22 callers
Function
waitForData
(component, callCount = 1)
extensions/amp-list/1.0/test/test-component.js:26
↓ 22 callers
Method
whenPolicyResolved
* Used to wait for policy to resolve; * @param {string} policyId * @return {!Promise<CONSENT_POLICY_STATE>}
extensions/amp-consent/0.1/consent-policy-manager.js:247
↓ 21 callers
Function
a
(n)
third_party/react-dates/bundle.js:1
↓ 21 callers
Function
ba
(e,a,t,s)
third_party/react-dates/bundle.js:1
↓ 21 callers
Method
buildCallback
@override
extensions/amp-story-panning-media/0.1/amp-story-panning-media.js:95
↓ 21 callers
Function
createCarousel
* * @param {{ * slideCount: number, * loop: boolean, * forwards: boolean, * }} options
extensions/amp-base-carousel/0.1/test/test-carousel.js:59
↓ 21 callers
Function
forceExperimentBranch
(win, experimentName, branchId)
src/experiments/index.js:373
↓ 21 callers
Function
getDataParamsFromAttributes
( element, opt_computeParamNameFunc, opt_paramPattern )
src/core/dom/index.js:252
↓ 21 callers
Method
getElementRect
* Returns the specified element's rectangle. * @param {string} unusedSelector * @param {?string} unusedSelectionMethod * @return {!../../../.
extensions/amp-animation/0.1/parsers/css-expr-ast.js:86
↓ 21 callers
Function
getHistoryState
(win, stateName)
extensions/amp-story/1.0/history.js:45
↓ 21 callers
Function
getImg
(attributes, children)
test/unit/builtins/test-amp-img.js:42
↓ 21 callers
Method
getRect
@override
src/inabox/inabox-viewport.js:213
↓ 21 callers
Method
getResourceForElement
@override
src/service/resources-impl.js:280
↓ 21 callers
Function
keyframesCss
(name, css)
extensions/amp-animation/0.1/test/test-keyframes-extractor.js:30
↓ 21 callers
Method
listenElement
* Listens to the visibility events for the specified element and the given * visibility spec. The visibility tracking can be deferred until * `r
extensions/amp-analytics/0.1/visibility-manager.js:293
↓ 21 callers
Function
p
(e,t)
examples/amp-script/vue-todomvc.js:7
↓ 21 callers
Function
ready
()
build-system/tasks/e2e/amp-driver.js:20
↓ 21 callers
Function
resetStyles
(element, properties)
src/core/dom/style.js:312
↓ 21 callers
Method
resolveCss
* @param {*} input * @return {string} * @protected
extensions/amp-animation/0.1/web-animations.js:1014
↓ 21 callers
Function
runChunks
(elementOrAmpDoc)
test/unit/test-runtime.js:37
↓ 21 callers
Function
runVsync
()
test/unit/utils/test-animation.js:29
↓ 21 callers
Method
scheduleLayoutOrPreload
@override
src/service/resources-impl.js:1537
↓ 21 callers
Method
schedulePass
@override
src/service/resources-impl.js:515
↓ 21 callers
Function
setGeoOverrideHash
(hashValue)
extensions/amp-geo/0.1/test/test-amp-geo.js:96
↓ 21 callers
Method
setReadyStateInternal
* Update the internal ready state. * * @param {!ReadyState_Enum} state * @param {*=} opt_failure * @protected * @final
src/custom-element.js:858
↓ 21 callers
Method
setScrollTop
@override
src/inabox/inabox-viewport.js:174
↓ 21 callers
Function
stringToBytes
(str)
src/core/types/string/bytes.js:43
↓ 21 callers
Method
submit_
* Helper method that actual handles the different cases (post, get, xhr...). * @param {ActionTrust_Enum} trust * @param {?Event} event * @ret
extensions/amp-form/0.1/amp-form.js:582
↓ 21 callers
Function
svg
* A tagged template literal helper to generate static SVG trees. * This must be used as a tagged template, ie * * ``` * const circle = svg`<circle
src/core/dom/static-template.js:54
↓ 21 callers
Function
utf8Decode
(bytes)
src/core/types/string/bytes.js:11
↓ 21 callers
Method
whenDocReady_
* Returns a promise that is resolved when the document is ready. * @return {!Promise} * @private
extensions/amp-live-list/0.1/live-list-manager.js:275
↓ 20 callers
Function
Fr
(e,t,n)
examples/amp-script/vue-todomvc.js:7
↓ 20 callers
Function
S
(a,b)
third_party/wgxpath/wgxpath.js:55
↓ 20 callers
Function
_defineProperty
(e,t,n)
third_party/react-dates/bundle.js:1
↓ 20 callers
Function
afterRenderPromise
(win = env_?.win)
testing/helpers/index.js:49
↓ 20 callers
Function
assertLength
(length)
src/core/dom/layout/index.js:157
↓ 20 callers
Method
count
* @param {string} type * @return {number}
testing/fake-dom.js:386
↓ 20 callers
Method
error
* @param {...*} var_args * @return {!Promise}
third_party/subscriptions-project/swg.js:13994
↓ 20 callers
Method
expectedError
* Reports an error message and marks with an expected property. If the * logging is disabled, the error is rethrown asynchronously. * @param {st
src/utils/log.js:283
↓ 20 callers
Function
fetchDocuments
( service, result = MOCK_NEXT_PAGE, urlOrNumber = 1 )
extensions/amp-next-page/1.0/test/test-amp-next-page.js:127
↓ 20 callers
Method
forElementOptional
* @param {!Element} element * @return {Resource}
src/service/resource.js:95
↓ 20 callers
Function
getAdPositions
(storyLength, numberOfAds)
extensions/amp-story-auto-ads/0.1/algorithm-predetermined.js:22
↓ 20 callers
Method
getEntitlements
@override
extensions/amp-subscriptions-google/0.1/amp-subscriptions-google.js:609
↓ 20 callers
Method
getExpr
* Returns a Regular expression that can be used to detect all the variables * in a template. * @param {!{[key: string]: *}=} opt_bindings * @
src/service/variable-source.js:265
↓ 20 callers
Function
getFlexibleAdSlotData
(win, element)
extensions/amp-ad-network-doubleclick-impl/0.1/flexible-ad-slot-utils.js:108
↓ 20 callers
Function
getFlexibleAdSlotData
(win, element)
extensions/amp-ad-network-valueimpression-impl/0.1/flexible-ad-slot-utils.js:108
↓ 20 callers
Function
getScrollingElement
(styles, controller)
extensions/amp-base-carousel/1.0/test-e2e/helpers.js:24
↓ 20 callers
Function
getSlides
(controller, opt_carouselId = '')
extensions/amp-base-carousel/0.1/test-e2e/helpers.js:26
↓ 20 callers
Function
getVideo
(rates, opt_types)
extensions/amp-video/0.1/test/test-flexible-bitrate.js:253
↓ 20 callers
Function
getWinOrigin
(win)
src/url.js:57
↓ 20 callers
Function
getYt
(attributes, opt_responsive, opt_beforeLayoutCallback)
extensions/amp-youtube/0.1/test/test-amp-youtube.js:36
↓ 20 callers
Function
getjwplayer
(attributes)
extensions/amp-jwplayer/0.1/test/test-amp-jwplayer.js:24
↓ 20 callers
Function
handler
()
test/unit/test-timer.js:24
↓ 20 callers
Function
installStylesAsPromise
* @param {!Document} doc * @param {string} cssText * @param {boolean} isRuntimeCss * @param {string=} opt_ext * @r
test/unit/test-style-installer.js:130
↓ 20 callers
Function
invocation
(method, args = {})
extensions/amp-accordion/1.0/test/test-amp-accordion.js:82
↓ 20 callers
Method
isActive
* Whether the element is currently considered to be active. * @return {boolean}
extensions/amp-script/0.1/user-activation-tracker.js:65
↓ 20 callers
Method
isChrome
* Whether the current browser is a Chrome browser. * @return {boolean}
src/service/platform-impl.js:53
↓ 20 callers
Function
isMounted
(win, container)
extensions/amp-sidebar/1.0/test/test-amp-sidebar.js:26
↓ 20 callers
Function
isUserErrorMessage
(message)
src/core/error/message-helpers.js:36
↓ 20 callers
Function
log
()
examples/pwa/pwa.js:3
↓ 20 callers
Function
o
(e)
examples/amp-script/vue-todomvc.js:7
↓ 20 callers
Function
objectsEqualDeep
(o1, o2)
src/core/types/object/index.js:155
↓ 20 callers
Method
observe
* Adds the shadow tree to be observed by the polyfill. * * @param {!Node} tree
src/polyfills/custom-elements.js:479
↓ 20 callers
Method
pause
* Calls element's pauseCallback callback.
src/service/resource.js:1022
↓ 20 callers
Method
placeAd
* @param {!JsonObject<string, string>} baseAttributes Any attributes to add to * injected <amp-ad>. Specific attributes will override defaults,
extensions/amp-auto-ads/0.1/placement.js:179
↓ 20 callers
Function
realChildElements
(element)
src/core/dom/query.js:355
↓ 20 callers
Method
requestResize
* Send message to runtime requesting to resize ad to height and width. * This is not guaranteed to succeed. All this does is make the request.
3p/ampcontext.js:220
↓ 20 callers
Function
setModalAsClosed
(element)
src/core/dom/modal.js:214
↓ 20 callers
Function
setModalAsOpen
(element)
src/core/dom/modal.js:161
↓ 20 callers
Function
setupStubs
(beacon, xhr)
extensions/amp-analytics/0.1/test/test-transport.js:541
↓ 20 callers
Function
testHasRoughlySameOrigin
* Tests whether two URLs have the same origin according to our * simple heuristic. * @param {string} first The first URL. * @param {str
test/unit/test-viewer.js:1286
↓ 20 callers
Method
text
* Drains the response and returns a promise that resolves with the response * text. * @return {!Promise<string>}
third_party/subscriptions-project/swg.js:13657
↓ 20 callers
Method
toggleLoading
* @param {boolean} loading
extensions/amp-subscriptions/0.1/renderer.js:102
↓ 20 callers
Function
waitForExpanded
(el, expanded)
extensions/amp-accordion/1.0/test/test-amp-accordion.js:23
↓ 20 callers
Method
whenReady
* Resolved when document has been fully constructed. * @return {!Promise}
third_party/subscriptions-project/config.js:157
↓ 20 callers
Method
win
@override
third_party/subscriptions-project/swg.js:19068
↓ 19 callers
Function
Qa
(a,b)
third_party/wgxpath/wgxpath.js:42
↓ 19 callers
Function
T
(e,t)
third_party/inputmask/bundle.js:11
↓ 19 callers
Method
activities
@override
third_party/subscriptions-project/swg.js:19083
↓ 19 callers
Method
buildUrl
* @param {string} url * @param {boolean} useAuthData Allows `AUTH(field)` URL var substitutions. * @return {!Promise<string>}
extensions/amp-access/0.1/amp-access-source.js:294
↓ 19 callers
Function
c
()
third_party/d3/d3.js:1
↓ 19 callers
Function
cancellation
()
src/error-reporting.js:246
↓ 19 callers
Function
childElementsByTag
(parent, tagName)
src/core/dom/query.js:319
↓ 19 callers
Method
close
Close the sidebar
extensions/amp-sidebar/1.0/component.type.js:44
← previous
next →
701–800 of 18,703, ranked by callers