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
↓ 68 callers
Method
expandUrlAsync
* Expands the provided URL by replacing all known variables with their * resolved values. Optional `opt_bindings` can be used to add new variables
src/service/url-replacements-impl.js:921
↓ 68 callers
Method
getViewport
* Returns the viewport within which the element operates. * @return {!./service/viewport/viewport-interface.ViewportInterface}
src/base-element.js:829
↓ 68 callers
Method
scrollTo
(px)
testing/helpers/service.js:346
↓ 67 callers
Function
e
(n,t)
third_party/d3/d3.js:1
↓ 67 callers
Method
layoutCallback
@override
extensions/amp-story-interactive/0.1/amp-story-interactive-poll.js:72
↓ 67 callers
Method
renderStart
* @param {!JsonObject=} opt_data Fields: width, height
3p/ampcontext-integration.js:99
↓ 67 callers
Method
updatePlaying
* @param {boolean} isPlaying
src/core/dom/video/pause-helper.js:30
↓ 66 callers
Method
getBody
@override
extensions/amp-subscriptions/0.1/doc-impl.js:45
↓ 66 callers
Function
matches
(context, target, selector, selectionMethod)
extensions/amp-analytics/0.1/test/test-analytics-root.js:434
↓ 66 callers
Method
schedule
* Tries to schedule a new pass optionally with specified delay. If the new * requested pass is requested before the pending pass, the pending pass
src/pass.js:64
↓ 65 callers
Function
getValueForExpr
(obj, expr)
src/core/types/object/index.js:225
↓ 65 callers
Method
json
* Drains the response and returns the JSON object. * @return {!Promise<!JsonObject>}
src/polyfills/fetch.js:171
↓ 65 callers
Function
scanTiming
(spec)
extensions/amp-animation/0.1/test/test-web-animations.js:91
↓ 65 callers
Function
whenCalled
(spy, opt_callCount = 1)
testing/helpers/service.js:69
↓ 64 callers
Method
delay
* Runs the provided callback after the specified delay. This uses a micro * task for 0 or no specified time. This means that the delay will actuall
src/service/timer-impl.js:53
↓ 64 callers
Method
getState
* Returns the resource's state. See {@link ResourceState_Enum} for details. * @return {!ResourceState_Enum}
src/service/resource.js:289
↓ 64 callers
Method
install
* Install, monitor and cleanup the document as `textarea[autoexpand]` * elements are added and removed. * @param {!../../../src/service/ampdoc-i
extensions/amp-form/0.1/amp-form-textarea.js:35
↓ 64 callers
Method
loadPromise
* Returns a promise that will resolve or fail based on the element's 'load' * and 'error' events. * @param {T} element * @return {!Promise<T>
src/base-element.js:675
↓ 63 callers
Function
callback
* @param {string} id * @param {!Object} ns
ads/vendors/adventive.js:100
↓ 63 callers
Method
createError
* Creates an error object. * @param {...*} var_args * @return {!Error}
src/utils/log.js:294
↓ 63 callers
Method
restore
* Unstubs the window object and restores the real `window.fetch`.
extensions/amp-a4a/0.1/test/fetch-mock.js:45
↓ 63 callers
Function
useStyles
()
build-system/babel-plugins/babel-plugin-transform-jss/test/fixtures/transform-assertions/should-transform-literal/output.mjs:8
↓ 62 callers
Function
fn
(e,t,n,r,i)
examples/amp-script/vue-todomvc.js:7
↓ 62 callers
Function
getForm
(button1 = true, button2 = false, button3 = false)
extensions/amp-form/0.1/test/test-amp-form.js:98
↓ 62 callers
Method
getParam
* Returns the value of a ampdoc's startup parameter with the specified * name or `null` if the parameter wasn't defined at startup time. * @para
src/service/ampdoc-impl.js:342
↓ 62 callers
Function
getWin
(node)
src/core/window/index.js:21
↓ 62 callers
Method
next
* Returns the next token and advances the position. * @param {boolean=} opt_convertValues * @return {!TokenDef}
src/service/action-impl.js:1257
↓ 62 callers
Function
px
(value)
src/core/dom/style.js:218
↓ 61 callers
Method
getOnce
* Specifies that up to one GET request may be made to the given URL during * the current test, and defines the response to return. * * @param
extensions/amp-a4a/0.1/test/fetch-mock.js:59
↓ 61 callers
Function
parseJson
(json)
src/core/types/object/json.js:50
↓ 61 callers
Method
run
* Runs tests after configuration is complete. Variable args because describe * and it use (name, function) while describes uses (name, spec, functi
testing/test-config.js:136
↓ 60 callers
Method
contains
()
test/unit/polyfills/test-document-contains.js:16
↓ 60 callers
Method
json
* Returns json format of entitlements * @return {!JsonObject}
extensions/amp-subscriptions/0.1/entitlement.js:73
↓ 60 callers
Method
mutate
* Called to apply the changes to the selected * element(s)
extensions/amp-experiment/1.0/mutation/mutation.js:21
↓ 60 callers
Function
n
(n)
third_party/d3/d3.js:1
↓ 60 callers
Method
push
* Add one element to the end. * @param {T} item
extensions/amp-viewer-integration/0.1/findtext.js:25
↓ 60 callers
Function
t
(e)
examples/amp-script/vue-todomvc.js:7
↓ 59 callers
Method
fire
* @param {!Event} event
testing/fake-dom.js:393
↓ 59 callers
Function
whenUpgradedToCustomElement
(element)
src/core/dom/amp-element-helpers.js:29
↓ 58 callers
Method
buildCallback
@override
extensions/amp-consent/0.1/amp-consent.js:123
↓ 58 callers
Method
create
* @param {!Element} page * @param {!StoryAnimationConfigDef} config * @param {!Promise<!../../amp-animation/0.1/web-animations.Builder>} webAnim
extensions/amp-story/1.0/animation.js:191
↓ 58 callers
Method
getOptionElements
* Gets the options. * @protected * @return {!Array<!Element>}
extensions/amp-story-interactive/0.1/amp-story-interactive-abstract.js:219
↓ 58 callers
Method
receiveMessage
@override
src/service/viewer-impl.js:693
↓ 58 callers
Method
scheduleChangeSize_
* Schedules change of the element's height. * @param {!Resource} resource * @param {number|undefined} newHeight * @param {number|undefined} n
src/service/mutator-impl.js:304
↓ 58 callers
Function
setCookie
(win, name, value, expirationTime, options = {})
src/cookies.js:88
↓ 58 callers
Method
user
* @return {./log.Log}
src/base-element.js:1037
↓ 57 callers
Function
F
(e)
third_party/inputmask/bundle.js:11
↓ 57 callers
Function
addParamsToUrl
(url, params)
src/url.js:239
↓ 57 callers
Function
func
()
test/unit/core/data-structures/test-curve.js:22
↓ 57 callers
Function
getBuffer
(noCache)
third_party/inputmask/inputmask.js:1143
↓ 57 callers
Method
getShadowRoot
* @return {!Element}
extensions/amp-story/1.0/amp-story-system-layer.js:557
↓ 57 callers
Function
ie
(e,a,t)
third_party/react-dates/bundle.js:1
↓ 57 callers
Function
log
* Logs messages with a timestamp. The timezone suffix is dropped. * @param {...any} messages
build-system/common/logging.js:21
↓ 57 callers
Function
test
(name, cb)
build-system/tasks/make-extension/test/test.js:20
↓ 56 callers
Function
e
(e,n)
third_party/react-dates/bundle.js:1
↓ 56 callers
Function
escapeCssSelectorIdent
(ident)
src/core/dom/css-selectors.js:82
↓ 56 callers
Method
notify
(entries)
test/unit/utils/test-display-observer.js:52
↓ 56 callers
Method
start
* @param {!PaymentDataRequest} paymentRequest * @param {!PayOptionsDef=} options
third_party/subscriptions-project/swg.js:18027
↓ 56 callers
Function
verifySelectorsVisible
* Verifies that all CSS elements are as expected before taking a snapshot. * * @param {!puppeteer.Page} page a Puppeteer control browser tab/page.
build-system/tasks/visual-diff/verifiers.js:62
↓ 56 callers
Function
waitForSendRequest
(analytics, opt_max)
extensions/amp-analytics/0.1/test/test-amp-analytics.js:150
↓ 55 callers
Function
callback
(records)
extensions/amp-a4a/0.1/within-viewport.js:45
↓ 55 callers
Function
closestAncestorElementBySelector
(element, selector)
src/core/dom/query.js:150
↓ 54 callers
Function
callback
()
test/unit/polyfills/test-resize-observer.js:135
↓ 54 callers
Method
getItem
* @param {string} name * @return {?string}
testing/fake-dom.js:644
↓ 54 callers
Function
getPlacementsFromConfigObj
(ampdoc, configObj)
extensions/amp-auto-ads/0.1/placement.js:327
↓ 54 callers
Method
send
* Exposed method to send a request on event. * Real ping may be batched and send out later. * @param {?JsonObject} configParams * @param {!Js
extensions/amp-analytics/0.1/requests.js:104
↓ 54 callers
Method
showSlide_
* Makes the slide corresponding to the given index and the slides surrounding * it available for display. * Note: Element must be laid out.
extensions/amp-carousel/0.1/slidescroll.js:808
↓ 54 callers
Function
startupChunk
(doc, fn, opt_makesBodyVisible)
src/chunk.js:53
↓ 54 callers
Method
trigger
* Triggers a custom event for the associated root. * @param {!AnalyticsEvent} event
extensions/amp-analytics/0.1/events.js:511
↓ 53 callers
Function
Sa
(a)
third_party/wgxpath/wgxpath.js:43
↓ 53 callers
Function
buildTargetsInclude
* Returns true if a PR affects one or more of the given build targets. * * @param {...string} targets * @return {boolean}
build-system/pr-check/build-targets.js:377
↓ 53 callers
Method
declaresExtension
* Returns whether the specified extension has been declared on this ampdoc. * @param {string} extensionId * @param {string=} opt_version * @r
src/service/ampdoc-impl.js:411
↓ 53 callers
Method
postMessage
* Posts a message to the iframe with the given data. * * @param {!Object} data
third_party/subscriptions-project/swg.js:15480
↓ 53 callers
Method
update
* Update the local consent state list * @param {!CONSENT_ITEM_STATE} state * @param {string=} consentString * @param {{[key: string]: PURPOSE
extensions/amp-consent/0.1/consent-state-manager.js:374
↓ 52 callers
Method
handle_
* Intercept any click on the current document and prevent any * linking to an identifier from pushing into the history stack. * * This also h
src/service/navigation.js:325
↓ 52 callers
Function
onBindReadyAndSetState
* @param {!Object} env * @param {!Bind} bind * @param {!Object} state * @param {boolean=} skipAmpState * @return {!Promise}
extensions/amp-bind/0.1/test/integration/test-bind-impl.js:102
↓ 52 callers
Function
r
(n)
third_party/d3/d3.js:1
↓ 52 callers
Method
replace
* Replaces the current state, optionally specifying updates to the state * object to be associated with the replacement. * @param {!HistoryState
src/service/history-impl.js:119
↓ 52 callers
Function
scan
(spec)
extensions/amp-animation/0.1/test/test-web-animations.js:73
↓ 51 callers
Function
callback
(stub)
extensions/amp-subscriptions-google/0.1/test/test-amp-subscriptions-google.js:211
↓ 51 callers
Function
cb
()
ads/vendors/appvador.js:29
↓ 51 callers
Method
getSingleDoc
* Returns the document in the single-doc mode. In a multi-doc mode, an * error will be thrown. * @return {!AmpDoc}
src/service/ampdoc-impl.js:100
↓ 51 callers
Method
loadPlayers
* Builds and layouts the players when appropriate. * @public
src/amp-story-player/amp-story-component-manager.js:39
↓ 50 callers
Function
addConfigToInteractive
( interactive, options = 4, correct = undefined, attributes = ['text', 'results-category', 'image'] )
extensions/amp-story-interactive/0.1/test/helpers.js:153
↓ 50 callers
Function
buildStoryPlayer
( numStories = 1, url = DEFAULT_CACHE_URL, cache = null )
test/unit/test-amp-story-player.js:28
↓ 50 callers
Function
createA4aElement
* @param {!Document} doc * @param {Rect=} opt_rect * @param {Element=} opt_body
extensions/amp-a4a/0.1/test/test-amp-a4a.js:361
↓ 50 callers
Function
deepEquals
(a, b, depth = 5)
src/core/types/object/json.js:83
↓ 50 callers
Method
getAdUrl
@override
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:783
↓ 50 callers
Function
getAmpSlideScroll
* @param {boolean=} opt_hasLooping * @param {number=} opt_slideCount * @param {boolean=} opt_attachToDom * @param {boolean=} opt_hasAut
extensions/amp-carousel/0.1/test/test-slidescroll.js:48
↓ 50 callers
Function
getServicePromiseForDoc
(elementOrAmpDoc, id)
src/service-helpers.js:234
↓ 50 callers
Method
mountInternal
* Mounts the element by calling the `BaseElement.mountCallback` method. * * Can only be called on a upgraded element. May only be called fro
src/custom-element.js:638
↓ 50 callers
Function
resolve
()
test/unit/preact/component/test-renderer.js:39
↓ 50 callers
Method
resolveEntitlement
* This resolves the entitlement to a platformKey * @param {string} platformKey * @param {!./entitlement.Entitlement} entitlement
extensions/amp-subscriptions/0.1/platform-store.js:226
↓ 50 callers
Method
trigger
* Triggers the specified event on the target element. * @param {!Element} target * @param {string} eventType * @param {?ActionEventDef} event
src/service/action-impl.js:414
↓ 49 callers
Function
buildElement
(elem, attrs)
extensions/amp-live-list/0.1/test/test-amp-live-list.js:43
↓ 49 callers
Function
getAmpForm
(form, canonical = 'https://example.com/amps.html')
extensions/amp-form/0.1/test/test-amp-form.js:84
↓ 49 callers
Function
parseAction
(s)
test/unit/test-action.js:87
↓ 49 callers
Method
run
* @return {!Promise<StrategyResult>} Resolves when the strategy is complete.
extensions/amp-auto-ads/0.1/ad-strategy.js:57
↓ 49 callers
Function
sleep
(ms, setTimeoutFunc = setTimeout)
testing/helpers/index.js:25
↓ 49 callers
Method
switchToShadowRoot
* Switch controller to shadowRoot hosted by given element. * @param {!ElementHandle<!WebElement>} handle * @return {!Promise<void>}
build-system/tasks/e2e/selenium-webdriver-controller.js:658
← previous
next →
201–300 of 18,703, ranked by callers