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
↓ 19 callers
Method
consentStateChangeHandler_
* Handle initial consent instance value and following consent value change * @param {!ConsentInfoDef} info
extensions/amp-consent/0.1/consent-policy-manager.js:182
↓ 19 callers
Method
createAdPage
* Creates a StoryAdPage, appends the element to DOM, and adds it to * parent story pages Array. * @return {!StoryAdPage}
extensions/amp-story-auto-ads/0.1/story-ad-page-manager.js:111
↓ 19 callers
Method
createElement_
* @param {string} name * @return {!Element} * @private
extensions/amp-access-laterpay/0.2/laterpay-impl.js:309
↓ 19 callers
Method
createSameUnits
@override
extensions/amp-animation/0.1/parsers/css-expr-ast.js:531
↓ 19 callers
Function
createShadowRoot
(hostElement)
src/shadow-embed.js:37
↓ 19 callers
Function
createVideoIframe
(attrs = {}, opt_size)
extensions/amp-video-iframe/0.1/test/test-amp-video-iframe.js:59
↓ 19 callers
Function
debounce
(win, callback, minInterval)
src/core/types/function/index.js:92
↓ 19 callers
Function
e
()
examples/amp-script/vue-todomvc.js:7
↓ 19 callers
Method
expandUrlSync
* Synchronously expands the provided URL by replacing all known variables * with their resolved values. Optional `opt_bindings` can be used to add
src/service/url-replacements-impl.js:895
↓ 19 callers
Function
feUrl
* @param {string} url Relative URL, e.g. "/offersiframe". * @param {string=} prefix * @param {Object<string, string>=} params List of extra params t
third_party/subscriptions-project/swg.js:5577
↓ 19 callers
Function
fireIntersect
(intersectPercent)
extensions/amp-analytics/0.1/test/test-visibility-manager.js:1117
↓ 19 callers
Function
getAutocomplete
( attributes, json, wantInlineData, formAutocompleteValue = null )
extensions/amp-autocomplete/0.1/test/test-amp-autocomplete-init.js:43
↓ 19 callers
Method
getEntry_
* Returns the entry in the video manager corresponding to the video or * element provided * @param {!../video-interface.VideoOrBaseElementDef|!E
src/service/video-manager-impl.js:308
↓ 19 callers
Function
getItems
* @param {!Element} el * @return {!Array<!Element>}
extensions/amp-stream-gallery/0.1/test/test-amp-stream-gallery.js:102
↓ 19 callers
Function
getLengthNumeral
(length)
src/core/dom/layout/index.js:201
↓ 19 callers
Function
getLocalizationService
(element)
extensions/amp-story/1.0/amp-story-localization-service.js:22
↓ 19 callers
Function
getManager
(effectiveType)
extensions/amp-video/0.1/test/test-flexible-bitrate.js:235
↓ 19 callers
Function
getReplacements
(opt_options)
test/unit/test-url-replacements.js:42
↓ 19 callers
Method
getResolvedViewerUrl
@override
src/service/viewer-impl.js:544
↓ 19 callers
Method
getResource_
* Returns the resource of the element. * @return {!./service/resource.Resource} * @private
src/custom-element.js:1541
↓ 19 callers
Function
getTest
(pos, tests)
third_party/inputmask/inputmask.js:832
↓ 19 callers
Method
getWin
@override
third_party/subscriptions-project/swg.js:10680
↓ 19 callers
Method
hasBeenMeasured
* Checks if the current resource has been measured. * @return {boolean}
src/service/resource.js:577
↓ 19 callers
Function
initLogConstructor
()
src/utils/log.js:521
↓ 19 callers
Function
jwkSet
(keys)
extensions/amp-a4a/0.1/test/test-signature-verifier.js:112
↓ 19 callers
Function
localSubscriptionPlatformFactory
( ampdoc, platformConfig, serviceAdapter )
extensions/amp-subscriptions/0.1/local-subscription-platform.js:11
↓ 19 callers
Function
magnitude
(deltaX, deltaY)
src/core/math.js:106
↓ 19 callers
Method
matchMedia
* @param {string} mediaQuery * @return {boolean}
extensions/amp-animation/0.1/web-animations.js:905
↓ 19 callers
Method
navigateTo
* @param {string} path * @return {!Promise}
examples/pwa/pwa.js:128
↓ 19 callers
Function
onDocumentFormSubmit_
(e)
src/document-submit.js:36
↓ 19 callers
Method
onScroll
@override
src/inabox/inabox-viewport.js:288
↓ 19 callers
Method
open
* Opens the notification toast. * @return {!Promise}
third_party/subscriptions-project/swg.js:11957
↓ 19 callers
Function
parseDateAttrs
(element)
test/unit/core/dom/test-parse-date-attributes.js:8
↓ 19 callers
Function
populateQuiz
( quiz, numOptions = 4, prompt = undefined, correctOption = 1 )
extensions/amp-story-interactive/0.1/test/helpers.js:180
↓ 19 callers
Function
postAmpMessage
(data, source)
test/unit/core/3p/test-iframe-messaging-client.js:426
↓ 19 callers
Function
r
(e,n,t)
third_party/react-dates/bundle.js:1
↓ 19 callers
Method
register_
* TODO (micajuineho): If we add new synchronous macros, we * will need to split this method and getMacros into sync and * async version (current
extensions/amp-analytics/0.1/variables.js:386
↓ 19 callers
Function
removeChildren
(parent)
src/core/dom/index.js:104
↓ 19 callers
Function
sendEvent
(event)
test/unit/test-gesture.js:66
↓ 19 callers
Function
setInterval
()
test/unit/core/dom/test-dom.js:311
↓ 19 callers
Method
start
* Initalize any work needed to start polling. * @param {boolean=} opt_immediate execute current work instead of queueing * it in a timeout.
extensions/amp-live-list/0.1/poller.js:69
↓ 19 callers
Method
start
* Starts the `amp-subscriptions` extension. * @return {SubscriptionService}
extensions/amp-subscriptions/0.1/amp-subscriptions.js:132
↓ 19 callers
Method
startLayout
* Starts the layout of the resource. Returns the promise that will yield * once layout is complete. Only allowed to be called on a upgraded, built
src/service/resource.js:841
↓ 19 callers
Method
supports
* @param {string} query * @return {boolean}
extensions/amp-animation/0.1/web-animations.js:913
↓ 19 callers
Method
switchToFrame
* @param {!ElementHandle<!WebElement>} handle * @return {!Promise}
build-system/tasks/e2e/selenium-webdriver-controller.js:625
↓ 19 callers
Method
toggle_
* Toggles section between expanded or collapsed. * @param {!Element} section * @param {!ActionTrust_Enum} trust * @param {(boolean|undefined)
extensions/amp-accordion/0.1/amp-accordion.js:291
↓ 19 callers
Method
track
* The #track() method takes in a unique custom-event name, and the * corresponding request url (or an array of request urls). One can call * #tr
src/extension-analytics.js:160
↓ 19 callers
Method
update
* Performs fixed/sticky actions. * 1. Updates `top` styling if necessary. * 2. On iOS/Iframe moves elements between fixed layer and BODY dependi
src/service/fixed-layer.js:396
↓ 19 callers
Function
validateAllowedTypes
(window, type, allowedTypes)
3p/integration-lib.js:228
↓ 19 callers
Function
verifyAdElement
(adElement)
extensions/amp-auto-ads/0.1/test/test-amp-auto-ads.js:177
↓ 19 callers
Function
y
(e,t)
examples/amp-script/vue-todomvc.js:7
↓ 18 callers
Function
C
()
examples/amp-script/vue-todomvc.js:7
↓ 18 callers
Function
I
(a)
third_party/wgxpath/wgxpath.js:43
↓ 18 callers
Function
J
(a)
third_party/wgxpath/wgxpath.js:43
↓ 18 callers
Function
L
(a,b)
third_party/wgxpath/wgxpath.js:43
↓ 18 callers
Function
act
(callback)
extensions/amp-pan-zoom/1.0/test/test-component.js:591
↓ 18 callers
Method
addTrigger
* Adds a trigger with the specified config and listener. The config must * contain `on` property specifying the type of the event. * * Trigge
extensions/amp-analytics/0.1/analytics-group.js:66
↓ 18 callers
Function
afterRenderPromise
* @return {!Promise<undefined>} A Promise that resolves after the browser has * rendered.
extensions/amp-base-carousel/0.1/test/test-child-layout-manager.js:13
↓ 18 callers
Method
animate
* Creates and starts animation with a single segment. Returns AnimationPlayer * object that can be used to monitor or control animation. * *
src/utils/animation.js:34
↓ 18 callers
Method
buildCallback
@override
extensions/amp-story-education/0.1/amp-story-education.js:85
↓ 18 callers
Method
buildCallback
@override @return {!Promise|undefined}.
extensions/amp-ad-network-adsense-impl/0.1/amp-ad-network-adsense-impl.js:174
↓ 18 callers
Method
buildCallback
@override
extensions/amp-story-auto-ads/0.1/amp-story-auto-ads.js:103
↓ 18 callers
Function
cidServiceForDocForTesting
(ampdoc)
src/service/cid-impl.js:738
↓ 18 callers
Function
clearInterval
()
test/unit/core/dom/test-dom.js:314
↓ 18 callers
Method
collapse
* Collapses the element, setting it to `display: none`, and notifies its * owner (if there is one) through {@link collapsedCallback} that the eleme
src/base-element.js:847
↓ 18 callers
Function
createFixtureIframe
( fixture, initialIframeHeight, opt_beforeLoad )
testing/iframe.js:52
↓ 18 callers
Function
createVideo
()
extensions/amp-video-docking/0.1/test/test-amp-video-docking.js:48
↓ 18 callers
Function
d
(n,t)
third_party/react-dates/bundle.js:1
↓ 18 callers
Method
discoverWork_
* Discovers work that needs to be done since the last pass. If viewport * has changed, it will try to build new elements, measure changed elements,
src/service/resources-impl.js:1048
↓ 18 callers
Function
distance
(x1, y1, x2, y2)
src/core/math.js:118
↓ 18 callers
Function
elementByTag
(element, tagName)
src/core/dom/query.js:330
↓ 18 callers
Function
expectNoXhr
()
extensions/amp-analytics/0.1/test/test-transport.js:576
↓ 18 callers
Function
findIndex
(array, predicate)
src/core/types/array.js:95
↓ 18 callers
Method
getAmpAdMetadata
* * Throws {@code SyntaxError} if the metadata block delimiters are missing * or corrupted or if the metadata content doesn't parse as JSON.
extensions/amp-a4a/0.1/amp-a4a.js:2244
↓ 18 callers
Method
getDataForTemplate_
* @return {!EnhancedVariablesDef} * @private
extensions/amp-date-display/0.1/amp-date-display.js:156
↓ 18 callers
Method
getElement
* Gets the iframe element. * @return {!Element} * @abstract
third_party/subscriptions-project/swg.js:2835
↓ 18 callers
Function
getHighestAvailableDomain
(win)
src/cookies.js:113
↓ 18 callers
Method
getIncrementalEngagedTime
* Get the incremental engaged time since the last push and reset it if asked. * @param {string} name * @param {boolean=} reset * @return {num
extensions/amp-analytics/0.1/activity-impl.js:349
↓ 18 callers
Method
getPlayingState
* Returns whether the video is paused or playing after the user interacted * with it or playing through autoplay * @return {!../video-interface.
src/service/video-manager-impl.js:959
↓ 18 callers
Function
getScrollingElement
(controller)
extensions/amp-base-carousel/0.1/test-e2e/helpers.js:48
↓ 18 callers
Method
hasCapability
* This is only used for a unit test. * @return {*} TODO(#23582): Specify return type
extensions/amp-viewer-integration/0.1/viewer-for-testing.js:145
↓ 18 callers
Method
listenRoot
* Listens to the visibility events on the root as the whole and the given * visibility spec. The visibility tracking can be deferred until * `re
extensions/amp-analytics/0.1/visibility-manager.js:271
↓ 18 callers
Function
listener
(event)
examples/amphtml-ads/ads-tag-integration.js:32
↓ 18 callers
Function
measureIntersection
(el)
src/core/dom/layout/intersection.js:61
↓ 18 callers
Method
method
* @param {string} name * @param {function()} callback
src/video-iframe-integration.js:116
↓ 18 callers
Method
observe
()
test/unit/polyfills/test-resize-observer.js:15
↓ 18 callers
Function
onBindReady
* @param {!Object} env * @param {!Bind} bind * @return {!Promise}
extensions/amp-bind/0.1/test/integration/test-bind-impl.js:89
↓ 18 callers
Function
openLoginDialog
(ampdoc, urlOrPromise)
extensions/amp-access/0.1/login-dialog.js:39
↓ 18 callers
Method
pause
* @override
test/integration/test-video-manager.js:535
↓ 18 callers
Method
processMessage
* Process a single post message. * * A valid message has to be formatted as a string starting with "amp-". The * rest part should be a string
ads/inabox/inabox-messaging-host.js:114
↓ 18 callers
Function
prop
(el, name)
extensions/amp-base-carousel/1.0/test-e2e/test-vertical.js:24
↓ 18 callers
Function
pure
(v)
build-system/babel-plugins/babel-plugin-deep-pure/test/fixtures/transform/ignored-not-import/input.mjs:1
↓ 18 callers
Function
rediscover
(...nodesOrContextNodes)
test/unit/core/context/test-node-discover.js:95
↓ 18 callers
Method
registerCallback
* Register callback function for message with type messageType. * @param {string} messageType The type of the message. * @param {function(?JsonO
3p/iframe-messaging-client.js:105
↓ 18 callers
Function
resetSpies
()
extensions/amp-position-observer/0.1/test/test-amp-position-observer.js:45
↓ 18 callers
Function
runCiJob
* Helper used by all CI job scripts. Runs the PR / push build workflow. * @param {string} jobName * @param {function} pushBuildWorkflow * @param {f
build-system/pr-check/ci-job.js:26
↓ 18 callers
Method
scan
* @param {!WebAnimationDef|!Array<!WebAnimationDef>} spec * @return {boolean}
extensions/amp-animation/0.1/web-animations.js:83
↓ 18 callers
Method
schedulePause
@override
src/service/owners-impl.js:59
↓ 18 callers
Method
serviceEvent
* @param {!SubscriptionAnalyticsEvents|string} eventType * @param {string} platformKey * @param {!JsonObject=} opt_vars * @param {!JsonObject
extensions/amp-subscriptions/0.1/analytics.js:86
↓ 18 callers
Function
setReportError
(fn)
src/utils/log.js:33
← previous
next →
801–900 of 18,703, ranked by callers