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
↓ 26 callers
Method
norm
@override
extensions/amp-animation/0.1/parsers/css-expr-ast.js:541
↓ 26 callers
Method
onTouchMove
* The Gestures instance calls this method for each "touchmove" event. If * the recognizer wants to continue receiving touch events in the series,
src/gesture.js:683
↓ 26 callers
Method
parse
* Given a SAX-like `HtmlSaxHandler` parses a * `htmlText` and lets the `handler` know the structure while * visiting the nodes. If the provided
validator/js/engine/htmlparser.js:514
↓ 26 callers
Method
preloadExtension
* Returns the promise that will be resolved when the extension has been * loaded. If necessary, adds the extension script to the page. * @param
src/service/extensions-impl.js:214
↓ 26 callers
Function
r
(e)
examples/amp-script/vue-todomvc.js:7
↓ 26 callers
Method
register
* Registers the specified element to be usable by the media pool. Elements * should be registered as early as possible, in order to prevent them f
extensions/amp-story/1.0/media-pool.js:701
↓ 26 callers
Function
serializeQueryString
(params)
src/url.js:269
↓ 26 callers
Method
tickDelta
* Tick a very specific value for the label. Use this method if you * measure the time it took to do something yourself. * @param {TickLabel_Enum
src/service/performance-impl.js:853
↓ 26 callers
Method
url
* Preconnects to a URL. Always also does a dns-prefetch because * browser support for that is better. * * It is safe to call this method duri
src/preconnect.js:118
↓ 26 callers
Method
wait
(duration)
testing/helpers/service.js:242
↓ 26 callers
Method
whenReady
* Function to return a promise for when * it is finished delaying render, and is ready. * Implemented from RenderDelayingService * @return {!
extensions/amp-experiment/1.0/variant.js:51
↓ 25 callers
Function
allocateVariant
(ampdoc, experimentName, config)
extensions/amp-experiment/0.1/variant.js:64
↓ 25 callers
Function
arrayBinarySearch
* @param {!Array<number>} arr * @param {number} target * @param {BinarySearchStop=} stop * @param {BinarySearchPreference=} preference
extensions/amp-truncate-text/0.1/test/test-binary-search.js:17
↓ 25 callers
Function
assertConfig
(context, config, documentUrl)
extensions/amp-next-page/0.1/config.js:40
↓ 25 callers
Method
buildCallback
()
test/unit/test-custom-element.js:55
↓ 25 callers
Method
close
* Closes the toast. * @return {!Promise}
third_party/subscriptions-project/swg.js:12020
↓ 25 callers
Function
createElement
( content, {container = doc.body, height, layout = 'fixed', width} )
extensions/amp-truncate-text/0.1/test/test-amp-truncate-text.js:49
↓ 25 callers
Function
createFormDataWrapper
(win, opt_form)
src/form-data-wrapper.js:16
↓ 25 callers
Method
current
* The currently-being-upgraded custom element. * * When an already created (through the DOM parsing APIs, or innerHTML) * custom element node
src/polyfills/custom-elements.js:231
↓ 25 callers
Function
expandTemplate
(template, getter, opt_maxIterations)
src/core/types/string/index.js:88
↓ 25 callers
Method
findElements
* This waits for elements to become available similar to Selenium's * until.js#elementsLocated * {@link https://github.com/SeleniumHQ/selenium/b
build-system/tasks/e2e/selenium-webdriver-controller.js:145
↓ 25 callers
Method
getLayoutRect
@override
src/inabox/inabox-viewport.js:227
↓ 25 callers
Method
getPublicationId
* @return {string}
third_party/subscriptions-project/config.js:297
↓ 25 callers
Method
getScopedCid
* @param {string} apiKey * @param {string} scope * @return {!Promise<?string>}
src/service/cid-api.js:62
↓ 25 callers
Function
getShadowRoot
(hostElement)
test/unit/test-runtime.js:1939
↓ 25 callers
Function
installFriendlyIframeEmbed
( iframe, container, spec, opt_preinstallCallback // TODO(#22733): remove "window" argument. )
src/friendly-iframe-embed.js:136
↓ 25 callers
Method
json
* @return {!Object}
third_party/subscriptions-project/swg.js:4706
↓ 25 callers
Method
layoutCallback
@override
extensions/amp-story-panning-media/0.1/amp-story-panning-media.js:102
↓ 25 callers
Function
le
(e,a)
third_party/react-dates/bundle.js:1
↓ 25 callers
Method
load
* Triggers the font load. Returns promise that will complete when loading * is considered to be complete. * @param {!FontConfigDef} fontConfig C
extensions/amp-font/0.1/fontloader.js:56
↓ 25 callers
Function
logLocalDev
* Logs messages only during local development * @param {...string} messages
build-system/common/logging.js:47
↓ 25 callers
Method
onBlur
* @param {!Event} unusedEvent
extensions/amp-form/0.1/form-validators.js:97
↓ 25 callers
Function
placeElementLtwh
(ampEl, left, top, width, height)
extensions/amp-video-docking/0.1/test/test-amp-video-docking.js:106
↓ 25 callers
Function
prop
(el, name)
extensions/amp-base-carousel/1.0/test-e2e/test-component.js:27
↓ 25 callers
Method
resolvePlatform
* Resolves a platform in the store * @param {string} platformKey * @param {!./subscription-platform.SubscriptionPlatform} platform
extensions/amp-subscriptions/0.1/platform-store.js:99
↓ 25 callers
Function
runSerializeTest
( fakeEntries, resourceTimingSpec, expectedResult )
extensions/amp-analytics/0.1/test/test-resource-timing.js:90
↓ 25 callers
Method
scheduleLayout
@override
src/service/owners-impl.js:50
↓ 25 callers
Function
setImportantStyles$1
* Sets the CSS styles of the specified element with !important. The styles * are specified as a map from CSS property names to their values. * @para
third_party/subscriptions-project/swg.js:3582
↓ 25 callers
Method
verifyCreativeAndSignature
* Verifies that `signature` is the correct cryptographic signature for * `creative`, with the public key from the named signing service identified
extensions/amp-a4a/0.1/signature-verifier.js:200
↓ 24 callers
Function
T
(a)
third_party/wgxpath/wgxpath.js:55
↓ 24 callers
Function
addQueryParam
* Adds a parameter to a query string. * @param {string} url * @param {string} param * @param {string} value * @return {string}
third_party/subscriptions-project/swg.js:5388
↓ 24 callers
Method
authorize
* Authorize document. * @return {!Promise<!JsonObject>}
extensions/amp-access/0.1/iframe-api/access-controller.js:23
↓ 24 callers
Method
called
* Returns whether a particular URL specified by an earlier call to `getOnce` * was ever actually used for a GET request. * * @param {string}
extensions/amp-a4a/0.1/test/fetch-mock.js:76
↓ 24 callers
Method
closest
* Returns the closest available context node to the one specified. If the * `node` has the context node, it's returned unless `includeSelf` is set
src/core/context/node.js:88
↓ 24 callers
Function
complete
(str)
test/unit/test-chunk.js:51
↓ 24 callers
Function
el
(id)
test/unit/core/context/test-node-discover.js:45
↓ 24 callers
Method
fireEvent
* Construct an analytics event and trigger it. * @param {!Element} element amp-story-page element containing ad. * @param {number} adIndex *
extensions/amp-story-auto-ads/0.1/story-ad-analytics.js:67
↓ 24 callers
Method
get
@override
src/service/cid-impl.js:175
↓ 24 callers
Function
getAmpSidebar
(options)
extensions/amp-sidebar/0.2/test/test-amp-sidebar.js:53
↓ 24 callers
Function
getAttributeMutationDefaultStyle
(value)
extensions/amp-experiment/1.0/test/test-attribute-mutation.js:51
↓ 24 callers
Function
getContentTransform
(wrapper)
extensions/amp-pan-zoom/1.0/test/test-component.js:21
↓ 24 callers
Function
getDetail
(event)
src/utils/event-helper.js:72
↓ 24 callers
Function
getFormAsObject
(form)
src/core/dom/form.js:29
↓ 24 callers
Function
getSlide
(controller, n)
extensions/amp-base-carousel/0.1/test-e2e/helpers.js:32
↓ 24 callers
Function
installVideoManagerForDoc
(nodeOrDoc)
src/service/video-manager-impl.js:1617
↓ 24 callers
Method
maybeExpandLink
* Replaces values in the link of an anchor tag if * - the link opts into it (via data-amp-replace argument) * - the destination is the source or
src/service/url-replacements-impl.js:1060
↓ 24 callers
Function
n
(t,a)
third_party/d3-geo-projection/d3-geo-projection.js:1
↓ 24 callers
Method
numberOfBindings
* The current number of bindings. * @return {number} * @visibleForTesting
extensions/amp-bind/0.1/bind-impl.js:637
↓ 24 callers
Function
observeIntersections
(element, callback, opts)
src/core/dom/layout/viewport-observer.js:45
↓ 24 callers
Method
open
Open the sidebar
extensions/amp-sidebar/1.0/component.type.js:41
↓ 24 callers
Function
regularExtension
(fn, opt_rtvVersion)
test/unit/test-runtime.js:66
↓ 24 callers
Function
requireExternal
(module)
src/module.js:10
↓ 24 callers
Function
t
()
third_party/react-dates/bundle.js:1
↓ 24 callers
Function
u
(e,i)
third_party/react-dates/bundle.js:1
↓ 24 callers
Method
update
* @param {!JsonObject} action
extensions/amp-access-scroll/0.1/scroll-sheet.js:29
↓ 24 callers
Function
validateAllowedEmbeddingOrigins
(window, allowedHostnames)
3p/integration-lib.js:257
↓ 23 callers
Function
F
(a,b)
third_party/wgxpath/wgxpath.js:43
↓ 23 callers
Function
M
(t)
third_party/d3-geo-projection/d3-geo-projection.js:1
↓ 23 callers
Function
caret
(input, begin, end, notranslate)
third_party/inputmask/inputmask.js:2201
↓ 23 callers
Function
currentBitrates
(video)
extensions/amp-video/0.1/test/test-flexible-bitrate.js:229
↓ 23 callers
Method
evaluate
* Evaluate the given function * @param {function(): any} fn * @param {...*} args * @return {!Promise<*>}
build-system/tasks/e2e/selenium-webdriver-controller.js:596
↓ 23 callers
Method
getConsentInstanceInfo
* Get local consent instance state * @return {Promise<!ConsentInfoDef>}
extensions/amp-consent/0.1/consent-state-manager.js:186
↓ 23 callers
Method
getElements
* Searches for the element(s) that matches the selector * within the scope of the analytics root in relationship to * the specified context node
extensions/amp-analytics/0.1/analytics-root.js:328
↓ 23 callers
Function
getGallery
({ attrs = {}, customArrows = false, slideCount = 5, width, } = {})
extensions/amp-stream-gallery/0.1/test/test-amp-stream-gallery.js:114
↓ 23 callers
Function
getIframe
( parentWindow, parentElement, opt_type, opt_context, options = {} )
src/3p-frame.js:59
↓ 23 callers
Method
getPlaceholder
* Returns an optional placeholder element for this custom element. * @return {?Element} * @public @final
src/base-element.js:766
↓ 23 callers
Function
getScrollContainer
* @param {!Element} el * @return {!Element}
extensions/amp-stream-gallery/0.1/test/test-amp-stream-gallery.js:110
↓ 23 callers
Method
getVsync
* @public * @return {!./service/vsync-impl.Vsync}
src/base-element.js:355
↓ 23 callers
Method
go
* Does all the work needed to proceed to next * desired direction. * @param {number} dir -1 or 1 * @param {boolean} animate * @param {bool
extensions/amp-carousel/0.1/slidescroll.js:370
↓ 23 callers
Function
ie
(a,r,o,s)
third_party/inputmask/bundle.js:11
↓ 23 callers
Function
next
*
3p/environment.js:198
↓ 23 callers
Method
observeIntersection
* Send message to runtime to start sending intersection messages. * @param {function(Array<Object>)} callback Function to call every time we *
3p/ampcontext.js:175
↓ 23 callers
Function
open
(shouldAnimate = true)
extensions/amp-story-page-attachment/0.1/amp-story-page-attachment.js:469
↓ 23 callers
Function
renderIframely
(params)
extensions/amp-iframely/0.1/test/test-amp-iframely.js:34
↓ 23 callers
Function
runCheck
(cmd)
build-system/tasks/pr-check.js:26
↓ 23 callers
Method
scrollBy
* @param {!ElementHandle<!WebElement>} handle * @param {!ScrollToOptionsDef=} opt_scrollToOptions * @return {!Promise}
build-system/tasks/e2e/selenium-webdriver-controller.js:558
↓ 23 callers
Method
sync
* This causes a synchronous handling of all the Mutation Observer's tracked * mutations. This does nothing until the mutation observer is actually
src/polyfills/custom-elements.js:491
↓ 23 callers
Function
tryResolve
(fn)
src/core/data-structures/promise.js:65
↓ 22 callers
Method
attachShadowDocAsStream
* Implementation for `attachShadowDocAsStream` function. Attaches the shadow * doc and configures ampdoc for it. * @param {!Element} hostElement
src/multidoc-manager.js:261
↓ 22 callers
Function
cb
(el)
test/unit/core/dom/test-query.js:150
↓ 22 callers
Method
exit
* @param {!../../../src/service/action-impl.ActionInvocation} invocation
extensions/amp-ad-exit/0.1/amp-ad-exit.js:103
↓ 22 callers
Method
fire
* Fired when form is submitted. * @param {!FormSubmitEventDef} event
extensions/amp-form/0.1/form-submit-service.js:33
↓ 22 callers
Function
foo
()
build-system/babel-plugins/babel-plugin-amp-mode-transformer/test/fixtures/transform-assertions/nomodule/input.js:8
↓ 22 callers
Method
forElement
* Provides an AdvancementConfig object for the specified amp-story or * amp-story-page. * @param {!Window} win * @param {!Element} element
extensions/amp-story/1.0/page-advancement.js:240
↓ 22 callers
Method
get
* Returns the existing context node or creates a new one. * * @param {Node} node * @return {ContextNode<?>}
src/core/context/node.js:51
↓ 22 callers
Function
getAmpConsent
(doc, config)
extensions/amp-consent/0.1/test/test-amp-consent.js:1868
↓ 22 callers
Method
getConsentConfigPromise
* Read validate and return the config * @return {!Promise<!JsonObject>}
extensions/amp-consent/0.1/consent-config.js:54
↓ 22 callers
Function
getImg
(attributes, children)
test/unit/builtins/test-amp-img-v1.js:44
↓ 22 callers
Method
getMetaByName
* Returns the value of an ampdoc's meta tag content for a given name, or * `null` if the meta tag does not exist. * @param {string} name * @r
src/service/ampdoc-impl.js:382
↓ 22 callers
Method
getReferrerUrl
@override
src/service/viewer-impl.js:570
← previous
next →
601–700 of 18,703, ranked by callers