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
↓ 18 callers
Method
shouldShow
@override
extensions/amp-user-notification/0.1/amp-user-notification.js:363
↓ 18 callers
Function
sign
(x)
src/polyfills/math-sign.js:9
↓ 18 callers
Method
start
Starts or resumes the animation.
extensions/amp-story/1.0/animation.js:338
↓ 18 callers
Function
testStandalone
(userAgentString, standAloneBoolean)
test/unit/test-platform.js:49
↓ 18 callers
Function
testUserAgent
(userAgentString)
test/unit/test-platform.js:34
↓ 18 callers
Method
toggle
* @param {string|undefined} section
src/bento/components/bento-accordion/1.0/component.type.js:109
↓ 18 callers
Method
toggle
@override
extensions/amp-live-list/0.1/amp-live-list.js:261
↓ 18 callers
Method
upgrade
* Upgrades the element to the provided new implementation. If element * has already been attached, it's layout validation and attachment flows
src/custom-element.js:363
↓ 18 callers
Function
validateSrcPrefix
(prefix, src)
3p/3p.js:132
↓ 18 callers
Function
waitForChild
(parent, checkFunc, callback)
src/core/dom/index.js:35
↓ 17 callers
Function
K
(a,b)
third_party/wgxpath/wgxpath.js:43
↓ 17 callers
Function
LocalModuleName
(module_name)
validator/validator_gen_js.py:686
↓ 17 callers
Function
_classCallCheck
(e,n)
third_party/react-dates/bundle.js:1
↓ 17 callers
Function
addAd
(layoutBox)
extensions/amp-auto-ads/0.1/test/test-ad-tracker.js:30
↓ 17 callers
Method
addEnabledExperiment
* @param {string} experimentId
src/service/performance-impl.js:899
↓ 17 callers
Function
assert
* Throws an error if the first argument isn't trueish. * * Supports argument substitution into the message via %s placeholders. * * Throws an erro
third_party/subscriptions-project/swg.js:2976
↓ 17 callers
Function
base64UrlDecodeToBytes
(str)
src/core/types/string/base64.js:23
↓ 17 callers
Function
childElementByAttr
(parent, attr)
src/core/dom/query.js:273
↓ 17 callers
Function
continuationMaker
(h, parts, initial, state, param)
third_party/caja/html-sanitizer.js:1743
↓ 17 callers
Function
createCallbackCaller
()
test/unit/utils/test-display-observer.js:90
↓ 17 callers
Function
createDatePicker
* @param {!JsonObject<string, string>=} opt_attrs * @param {!Element=} opt_parent * @return {{ * element: !Element, * picker:
extensions/amp-date-picker/0.1/test/test-amp-date-picker-state.js:32
↓ 17 callers
Method
createElement_
* @param {string} name * @return {!Element} * @private
extensions/amp-access-laterpay/0.1/laterpay-impl.js:250
↓ 17 callers
Method
createExpectedError
* Creates an error object with its expected property set to true. * @param {...*} var_args * @return {!Error}
src/utils/log.js:303
↓ 17 callers
Function
createFrameFor
(video, src, opt_name, opt_sandbox)
src/iframe-video.js:67
↓ 17 callers
Function
devAssertElement
(shouldBeElement, opt_message)
src/core/assert/dev.js:84
↓ 17 callers
Function
f
(n)
third_party/d3/d3.js:1
↓ 17 callers
Function
getAmpNextPage
(options, waitForLayout = true)
extensions/amp-next-page/1.0/test/test-amp-next-page.js:85
↓ 17 callers
Method
getConsentPolicy
@override
extensions/amp-ad/0.1/amp-ad-3p-impl.js:174
↓ 17 callers
Method
getElementsForTesting
* @return {!Array<!Element>} * @visibleForTesting
extensions/amp-selector/0.1/amp-selector.js:663
↓ 17 callers
Method
getHeight
@override
src/inabox/inabox-viewport.js:185
↓ 17 callers
Method
getLoadMoreService_
* @return {!LoadMoreService} * @private
extensions/amp-list/0.1/amp-list.js:378
↓ 17 callers
Function
getServiceForDocOrNull
(elementOrAmpDoc, id)
src/service-helpers.js:216
↓ 17 callers
Function
getTrackImpressionPromise
()
src/impression.js:41
↓ 17 callers
Method
getType
* Returns the type of the tracker. * @return {string} * @abstract
extensions/amp-analytics/0.1/analytics-root.js:71
↓ 17 callers
Function
handler
(event)
src/preact/component/iframe.js:128
↓ 17 callers
Function
installViewerServiceForDoc
(ampdoc)
src/service/viewer-impl.js:945
↓ 17 callers
Function
invocation
(element, method, args = {})
extensions/amp-lightbox-gallery/1.0/test/test-amp-lightbox-gallery.js:44
↓ 17 callers
Function
invokeWebWorker
(win, method, opt_args, opt_localWin)
src/web-worker/amp-worker.js:33
↓ 17 callers
Function
layoutCallback
()
extensions/amp-date-picker/0.1/test/test-amp-date-picker-state.js:72
↓ 17 callers
Function
mergeHtmlForTesting
(spec)
src/friendly-iframe-embed.js:339
↓ 17 callers
Function
o
(n)
third_party/d3/d3.js:1
↓ 17 callers
Function
objOrParseJson
(objOrStr)
src/iframe-video.js:108
↓ 17 callers
Function
observeContentSize
(element, callback)
src/core/dom/layout/size-observer.js:49
↓ 17 callers
Function
observeDisplay
(target, callback)
src/utils/display-observer.js:49
↓ 17 callers
Method
onLayoutMeasure
@override
extensions/amp-ad-network-adsense-impl/0.1/amp-ad-network-adsense-impl.js:622
↓ 17 callers
Method
onResize
@override
src/inabox/inabox-viewport.js:293
↓ 17 callers
Function
ownProperty
(obj, key)
src/core/types/object/index.js:49
↓ 17 callers
Function
p
()
third_party/react-dates/bundle.js:1
↓ 17 callers
Function
processHead
(win, adElement, head)
extensions/amp-a4a/0.1/head-validation.js:86
↓ 17 callers
Function
redispatch
(element, event, events)
src/iframe-video.js:49
↓ 17 callers
Method
setOwner
* Assigns an owner for the specified element. This means that the resources * within this element will be managed by the owner and not Resources ma
src/service/resource.js:105
↓ 17 callers
Method
setWindowRect
* Sets width/height of the browser area. * @param {!ISize} rect * @return {!Promise}
build-system/tasks/e2e/selenium-webdriver-controller.js:469
↓ 17 callers
Method
startOrResume_
* @param {?JsonObject=} opt_args * @return {?Promise} * @private
extensions/amp-animation/0.1/amp-animation.js:390
↓ 17 callers
Function
svgFor
(nodeOrDoc)
src/core/dom/static-template.js:31
↓ 17 callers
Function
t
(t,a)
third_party/d3-geo-projection/d3-geo-projection.js:1
↓ 17 callers
Method
toArray
* @param {boolean=} includeLabel * @return {!Array<?>} * @override
third_party/subscriptions-project/swg.js:2545
↓ 17 callers
Method
toggle
* @param {*} option * @param {boolean|undefined} value
extensions/amp-selector/1.0/component.type.js:61
↓ 17 callers
Method
tokenPrefixMatch_
* Returns true if the given input string is a token-prefix match on the * given item string. Assumes toLocaleLowerCase() has been performed on both
extensions/amp-autocomplete/0.1/amp-autocomplete.js:843
↓ 17 callers
Method
update_
* @param {number} visibility * @private
extensions/amp-analytics/0.1/visibility-model.js:293
↓ 17 callers
Function
waitForOpen
(el, open)
extensions/amp-lightbox-gallery/1.0/test/test-amp-lightbox-gallery.js:38
↓ 17 callers
Method
withTarget
* @param {?Element} target * @param {?number} index * @param {function(?Element):T} callback * @return {T} * @template T * @protected
extensions/amp-animation/0.1/web-animations.js:984
↓ 16 callers
Function
E
(e,a)
third_party/react-dates/bundle.js:1
↓ 16 callers
Function
O
(e,a)
third_party/react-dates/bundle.js:1
↓ 16 callers
Method
R1
* See `BaseElement.R1()`. * * @return {boolean} * @final
src/custom-element.js:930
↓ 16 callers
Function
_inherits
(e,r)
third_party/react-dates/bundle.js:1
↓ 16 callers
Function
_possibleConstructorReturn
(e,r)
third_party/react-dates/bundle.js:1
↓ 16 callers
Method
addBindings
* Parses and stores given bindings into expression objects and returns map * of expression string to parse errors. * @param {!Array<!BindBinding
extensions/amp-bind/0.1/bind-evaluator.js:38
↓ 16 callers
Function
afterIndexUpdate
* @param {!Element} el * @param {number=} index An index to wait for. * @return {!Promise<undefined>}
extensions/amp-carousel/0.2/test/test-type-slides.js:25
↓ 16 callers
Method
applySize
* Applies a size change to the element. * * This method is called by Resources and shouldn't be called by anyone * else. This method mu
src/custom-element.js:1096
↓ 16 callers
Method
build
* Create an `amp-story-page` containing an `amp-ad`. * @return {!Element}
extensions/amp-story-auto-ads/0.1/story-ad-page.js:203
↓ 16 callers
Function
buildCreativeString
* @param {Object=} opt_additionalInfo * @return {string}
extensions/amp-a4a/0.1/test/test-amp-a4a.js:399
↓ 16 callers
Function
buildDom
(element)
extensions/amp-carousel/0.1/build-dom.js:282
↓ 16 callers
Function
buildPlayer
(attrs = {}, opts = {})
extensions/amp-slikeplayer/0.1/test/test-amp-slikeplayer.js:23
↓ 16 callers
Function
calculateFontSize_
( measurer, expectedHeight, expectedWidth, minFontSize, maxFontSize )
extensions/amp-fit-text/0.1/amp-fit-text.js:157
↓ 16 callers
Function
createResource
( config, layout, tagName = 'amp-ad', parent = doc.body )
extensions/amp-ad-network-doubleclick-impl/0.1/test/test-flexible-ad-slot-utils.js:14
↓ 16 callers
Function
createResource
( config, layout, tagName = 'amp-ad', parent = doc.body )
extensions/amp-ad-network-valueimpression-impl/0.1/test/test-flexible-ad-slot-utils.js:14
↓ 16 callers
Method
define
* Custom Elements V1 API. * @param {string} name * @param {!Function} klass
testing/fake-dom.js:708
↓ 16 callers
Function
doBuildJs
* @param {!Object} jsBundles * @param {string} name * @param {!Object} extraOptions * @return {!Promise}
build-system/tasks/helpers.js:80
↓ 16 callers
Function
exec
* Executes the provided command with the given options, returning the process * object. * * @param {string} cmd * @param {?Object=} options * @re
build-system/common/exec.js:22
↓ 16 callers
Function
extractKeyframes
(rootNode, name)
extensions/amp-animation/0.1/parsers/keyframes-extractor.js:10
↓ 16 callers
Function
fakeGetSupportedScoreFactor
* fake handler for getSupportedScoreFactor * @param {string} factor * @param {!Object} factorMap * @return {number}
extensions/amp-subscriptions/0.1/test/test-platform-store.js:36
↓ 16 callers
Method
findAction_
* @param {!Element} target * @param {string} actionEventType * @param {!Element=} opt_stopAt * @return {?{node: !Element, actionInfos: !Array
src/service/action-impl.js:745
↓ 16 callers
Function
flush
Awaits N times. Allows promises to resolve.
extensions/amp-subscriptions/0.1/test/test-amp-subscriptions.js:90
↓ 16 callers
Method
forceChangeHeight
* Requests the runtime to update the height of this element to the specified * value. The runtime will schedule this request and attempt to process
src/base-element.js:868
↓ 16 callers
Method
get
* Returns the current known value of the signal. If signal is not yet * available, `null` is returned. * @param {string} name * @return {numb
src/core/data-structures/signals.js:41
↓ 16 callers
Function
getAT
(configuration, opt_responsive, opt_beforeLayoutCallback)
extensions/amp-addthis/0.1/test/test-amp-addthis.js:43
↓ 16 callers
Method
getConsentStateManagerForTesting
* @return {?ConsentStateManager} * @visibleForTesting
extensions/amp-consent/0.1/amp-consent.js:933
↓ 16 callers
Function
getConsentStateValue
(enumState)
extensions/amp-consent/0.1/consent-info.js:390
↓ 16 callers
Method
getElement
* Unwrap the framework-specific element handle object. * @return {!T} * @package
build-system/tasks/e2e/e2e-types.js:25
↓ 16 callers
Method
getHost_
* @return {!AmpElement} * @private
extensions/amp-next-page/1.0/service.js:264
↓ 16 callers
Function
getLoader
()
test/unit/test-loading-indicator.js:60
↓ 16 callers
Function
getMode
()
build-system/babel-plugins/babel-plugin-amp-mode-transformer/test/fixtures/transform-assertions/no-transform/input.js:7
↓ 16 callers
Function
getOpacity
(win)
extensions/amp-fx-collection/0.1/test/integration/test-amp-fx-fade-in-scroll.js:183
↓ 16 callers
Function
getPanZoom
* This function takes an object of attributes and constructs and builds * an amp-pan-zoom element and attaches it to the page. Assumes the conten
extensions/amp-pan-zoom/0.1/test/test-amp-pan-zoom.js:35
↓ 16 callers
Method
getProductId
* @return {?string}
third_party/subscriptions-project/config.js:304
↓ 16 callers
Method
getSelectedElementsForTesting
* @return {!Array<!Element>} * @visibleForTesting
extensions/amp-selector/0.1/amp-selector.js:671
↓ 16 callers
Method
getTotalEngagedTime
* Get total engaged time since the page became visible. * @return {number}
extensions/amp-analytics/0.1/activity-impl.js:338
↓ 16 callers
Method
hasCapability
@override
src/service/viewer-impl.js:330
↓ 16 callers
Function
htmlRefs
(root)
src/core/dom/static-template.js:122
↓ 16 callers
Function
installLightboxGallery
(ampdoc)
extensions/amp-lightbox-gallery/1.0/amp-lightbox-gallery.js:130
← previous
next →
901–1,000 of 18,703, ranked by callers