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
↓ 13 callers
Function
e
(t,n)
third_party/d3-geo-projection/d3-geo-projection.js:1
↓ 13 callers
Function
enableComputedStyle
(el)
extensions/amp-video-docking/0.1/test/test-amp-video-docking.js:124
↓ 13 callers
Method
enqueueMediaElementTask_
* @param {!PoolBoundElementDef} mediaEl The element for which the specified * task should be executed. * @param {!./media-tasks.MediaTask} t
extensions/amp-story/1.0/media-pool.js:1025
↓ 13 callers
Method
entitlementsManager
@override
third_party/subscriptions-project/swg.js:19098
↓ 13 callers
Function
env
(key)
src/config/urls.js:10
↓ 13 callers
Function
executeTest
(args)
test/unit/test-real-time-config.js:113
↓ 13 callers
Function
executeTest
* Tests SRA behavior by creating multiple doubleclick instances with the * following dimensions: networkId, number of instances, number of *
extensions/amp-ad-network-doubleclick-impl/0.1/test/test-doubleclick-sra.js:544
↓ 13 callers
Function
expectNoImagePixel
()
extensions/amp-analytics/0.1/test/test-transport.js:586
↓ 13 callers
Function
feArgs
* @param {!Object<string, ?>} args * @return {!Object<string, ?>}
third_party/subscriptions-project/swg.js:5614
↓ 13 callers
Method
findAndRenderTemplate
* Discovers the template for the specified parent and renders it using the * supplied data. The template can be specified either via "template"
src/service/template-impl.js:139
↓ 13 callers
Function
g
(e)
examples/amp-script/vue-todomvc.js:7
↓ 13 callers
Method
getAdUrl
@override
extensions/amp-ad-network-smartadserver-impl/0.1/amp-ad-network-smartadserver-impl.js:92
↓ 13 callers
Method
getAffiliateUrl
* Creates the go.skimresources.com version of the anchor's url. * @param {?HTMLElement} anchor * @return {?string} * @public
extensions/amp-skimlinks/0.1/waypoint.js:41
↓ 13 callers
Function
getAmpFacebook
(href, opt_embedAs, opt_locale)
extensions/amp-facebook/0.1/test/test-amp-facebook.js:34
↓ 13 callers
Function
getBootstrapBaseUrl
( parentWindow, ampdoc, opt_strictForUnitTest )
src/3p-frame.js:220
↓ 13 callers
Function
getBridPlayer
(attributes, opt_responsive, config, alias = false)
extensions/amp-brid-player/0.1/test/test-amp-brid-player.js:25
↓ 13 callers
Function
getBufferTemplate
()
third_party/inputmask/inputmask.js:1136
↓ 13 callers
Function
getCarousel
(controller)
extensions/amp-base-carousel/1.0/test-e2e/helpers.js:12
↓ 13 callers
Method
getConfig
* Validate and sanitize config. * @return {!JsonObject}
extensions/amp-story-auto-ads/0.1/story-ad-config.js:45
↓ 13 callers
Method
getDocumentElement
* @return {!Promise<!ElementHandle<!WebElement>>}
build-system/tasks/e2e/selenium-webdriver-controller.js:256
↓ 13 callers
Function
getElementServiceForDoc
(element, id, extension, opt_element)
src/element-service.js:63
↓ 13 callers
Function
getElementServiceIfAvailableForDoc
( element, id, extension, opt_element )
src/element-service.js:83
↓ 13 callers
Method
getLocalPlatform_
* Returns the local platform * @private * @return {!./subscription-platform.SubscriptionPlatform}
extensions/amp-subscriptions/0.1/platform-store.js:182
↓ 13 callers
Function
getMultiSizeDimensions
( multiSizeDataStr, primaryWidth, primaryHeight, multiSizeValidation, isFluidPrimary = false )
ads/google/utils.js:41
↓ 13 callers
Function
getPromiseObject
()
test/unit/core/data-structures/test-promise.js:4
↓ 13 callers
Method
getReadyPromise
* @param {string|undefined} waitForSpec * @param {Element=} opt_element * @return {?Promise} * @visibleForTesting
extensions/amp-analytics/0.1/events.js:1751
↓ 13 callers
Method
getResources
* Returns Resources manager. Only available after attachment. It throws * exception before the element is attached. * @return {!./service/re
src/custom-element.js:329
↓ 13 callers
Function
getShare
(type, opt_endpoint, opt_params, opt_target)
extensions/amp-social-share/0.1/test/test-amp-social-share.js:59
↓ 13 callers
Function
getViewportHeight
(win)
extensions/amp-fx-collection/0.1/test/integration/test-amp-fx-fade-in-scroll.js:188
↓ 13 callers
Function
i
(e,a)
third_party/react-dates/bundle.js:1
↓ 13 callers
Function
installDocumentInfoServiceForDoc
(nodeOrDoc)
src/service/document-info-impl.js:43
↓ 13 callers
Function
isConsentInfoStoredValueSame
(infoA, infoB, opt_isDirty)
extensions/amp-consent/0.1/consent-info.js:237
↓ 13 callers
Method
isEdge
* Whether the current browser is an Edge browser. * @return {boolean}
src/service/platform-impl.js:85
↓ 13 callers
Method
isEnabled
* Whether the viewer should render templates. A doc-level opt in as * trusted viewers must set this capability explicitly, as a security * measu
src/ssr-template-helper.js:41
↓ 13 callers
Function
isMask
(pos, strict)
third_party/inputmask/inputmask.js:1511
↓ 13 callers
Function
isSameDay
(e,t)
third_party/react-dates/bundle.js:1
↓ 13 callers
Method
isStickyAd
* @return {boolean}
extensions/amp-ad/0.1/amp-ad-ui.js:219
↓ 13 callers
Function
isValid
(pos, c, strict, fromSetValid, fromAlternate, validateOnly)
third_party/inputmask/inputmask.js:1293
↓ 13 callers
Function
isWidgetId
(candidate)
extensions/amp-addthis/0.1/addthis-utils/mode.js:60
↓ 13 callers
Method
layoutCallback
@override
extensions/amp-video/0.1/amp-video.js:368
↓ 13 callers
Method
layoutCallback
@override
extensions/amp-story-auto-ads/0.1/amp-story-auto-ads.js:138
↓ 13 callers
Function
layoutRectFromDomRect
(rect)
src/core/dom/layout/rect.js:101
↓ 13 callers
Function
manageWin
(win)
3p/environment.js:31
↓ 13 callers
Method
maybeInstallUrlRewrite_
@private
extensions/amp-install-serviceworker/0.1/amp-install-serviceworker.js:130
↓ 13 callers
Method
modifyRtcConfigForConsentStateSettings
* Goes through the RTC config, and for any URL that we should not callout * as per the current consent state, deletes it from the RTC config. *
src/service/real-time-config/real-time-config-impl.js:258
↓ 13 callers
Method
mutatedAttributesCallback
@override
extensions/amp-list/0.1/amp-list.js:487
↓ 13 callers
Method
onLayoutChange
* Function called to check if we should show or hide the toolbar
extensions/amp-sidebar/0.2/toolbar.js:47
↓ 13 callers
Method
onLayoutChange
* Function called to check if we should show or hide the toolbar
extensions/amp-sidebar/0.1/toolbar.js:47
↓ 13 callers
Method
onTouchEnd
* The Gestures instance calls this method for the "touchend" event. * Somewhere within this touch series the recognizer has to call * {@link sig
src/gesture.js:694
↓ 13 callers
Method
open
Open the lightbox
src/bento/components/bento-lightbox/1.0/component.type.js:32
↓ 13 callers
Method
openView
* Opens the given view and removes existing view from the DOM if any. * @param {!./view.View} view * @return {!Promise}
third_party/subscriptions-project/swg.js:11094
↓ 13 callers
Function
pad
(val, len)
third_party/inputmask/inputmask.date.extensions.js:137
↓ 13 callers
Method
parseFromJson
* @param {?JsonObject} json * @param {?string} rawData * @return {!Entitlement}
extensions/amp-subscriptions/0.1/entitlement.js:98
↓ 13 callers
Function
parseLayout
(s)
src/core/dom/layout/index.js:88
↓ 13 callers
Function
parseSrcset
(s)
src/core/dom/srcset.js:57
↓ 13 callers
Method
populateAdUrlState
* Populate's block-level state for ad URL construction. * Sets initialSize_ , jsonTargeting, and adKey member fields. * @param {ConsentTupleDef}
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:753
↓ 13 callers
Function
q
(e,t)
third_party/inputmask/bundle.js:11
↓ 13 callers
Function
q
(a,b)
third_party/wgxpath/wgxpath.js:30
↓ 13 callers
Method
refresh
* Refreshes ad slot by fetching a new creative and rendering it. This leaves * the current creative displayed until the next one is ready. *
extensions/amp-a4a/0.1/amp-a4a.js:1263
↓ 13 callers
Method
register
* Function to register as a dependant of the AmpRecaptcha serivce. * Used to create/destroy recaptcha boostrap iframe. * @param {string} sitekey
extensions/amp-recaptcha-input/0.1/amp-recaptcha-service.js:88
↓ 13 callers
Method
registerConsentInstance
* Register and create a consent instance to manage state * @param {string} instanceId * @param {!Object} config
extensions/amp-consent/0.1/consent-state-manager.js:86
↓ 13 callers
Function
registerElement
(win, name, implementationClass)
src/service/custom-element-registry.js:169
↓ 13 callers
Function
removeSearch
(url)
src/url.js:444
↓ 13 callers
Method
resetHref
* Resets the URL without firing any events or triggering a history * entry. * @param {string} href
testing/fake-dom.js:521
↓ 13 callers
Method
resolveMillis
* @param {*} input * @param {number|undefined} def * @return {number|undefined}
extensions/amp-animation/0.1/web-animations.js:1051
↓ 13 callers
Method
resume
* Calls element's resumeCallback callback.
src/service/resource.js:1036
↓ 13 callers
Method
scheduleAsap
* @param {!AmpElement} target
src/service/scheduler.js:71
↓ 13 callers
Function
setHistoryState
(win, stateName, value)
extensions/amp-story/1.0/history.js:26
↓ 13 callers
Method
setState_
* Adds proper classes for the state passed. * @param {!FormState} newState * @private
extensions/amp-form/0.1/amp-form.js:1230
↓ 13 callers
Method
setStorage
* @param {!StorageLocation} location * @param {?string} key * @param {?string} value * @return {!Promise}
extensions/amp-script/0.1/amp-script.js:888
↓ 13 callers
Function
swipeLeft
()
test/unit/test-amp-story-player.js:61
↓ 13 callers
Function
testProtocolValid
(href, bool)
test/unit/test-url.js:625
↓ 13 callers
Function
timeout
(ms)
extensions/amp-fx-collection/0.1/test/integration/test-amp-fx-fade-in-scroll.js:192
↓ 13 callers
Method
toggleFallback
()
extensions/amp-a4a/0.1/test/utils.js:22
↓ 13 callers
Method
toggleLoading
* Hides or shows the loading indicator. * @param {boolean} state * @param {boolean=} force * @public @final
src/base-element.js:804
↓ 13 callers
Method
toggleResults_
* Shows or hides the results container_. * @param {boolean} display * @private
extensions/amp-autocomplete/0.1/amp-autocomplete.js:932
↓ 13 callers
Method
unsubscribe
* Adds the unsubscribe handler that will be called when this visibility * model is destroyed. * @param {!UnlistenDef} handler
extensions/amp-analytics/0.1/visibility-model.js:210
↓ 13 callers
Method
upgraded
@override
src/service/resources-impl.js:492
↓ 13 callers
Method
wasLaidOut
* This should be called from the `layoutCallback` of the AMP element that * constructed this manager.
extensions/amp-base-carousel/0.1/child-layout-manager.js:407
↓ 13 callers
Function
whenSelectedAvailable
(parent, selector)
extensions/amp-onetap-google/0.1/test/test-amp-onetap-google.js:31
↓ 12 callers
Method
Descriptor
Deprecated: Use UrlSpec.ProtoReflect.Descriptor instead.
validator/validator.pb.go:1400
↓ 12 callers
Function
Die
Prints error and exits with status 1. Args: msg: The error message to emit
validator/build.py:16
↓ 12 callers
Function
Ir
(e,t,n)
examples/amp-script/vue-todomvc.js:7
↓ 12 callers
Function
Ru
(n,t)
third_party/d3/d3.js:2
↓ 12 callers
Function
String
(snap)
extensions/amp-base-carousel/1.0/storybook/Basic.amp.js:141
↓ 12 callers
Function
X
(t,n,a)
third_party/inputmask/bundle.js:11
↓ 12 callers
Method
addToAllowlist
* Adds an action to the allowlist. * @param {string} tagOrTarget The tag or target to allowlist, e.g. * 'AMP-LIST', '*'. * @param {string
src/service/action-impl.js:572
↓ 12 callers
Method
api
* @return {API_TYPE} * @protected
src/preact/base-element.js:509
↓ 12 callers
Function
as
(e)
third_party/react-dates/bundle.js:1
↓ 12 callers
Method
assertBoolean
* Throws an error if the first argument isn't a boolean. * * For more details see `assert`. * * @param {*} shouldBeBoolean * @param {!A
src/utils/log.js:488
↓ 12 callers
Function
assertLengthOrPercent
(length)
src/core/dom/layout/index.js:175
↓ 12 callers
Method
assertSource_
* @param {string} src * @param {string} containerSrc * @param {string} sandbox * @return {string} * @private
extensions/amp-iframe/0.1/amp-iframe.js:133
↓ 12 callers
Function
asyncStringReplace
(str, regex, replacer)
src/core/types/string/index.js:154
↓ 12 callers
Method
attemptChangeSize
@override
extensions/amp-a4a/0.1/amp-a4a.js:1443
↓ 12 callers
Function
base64UrlEncodeFromString
(str)
src/core/types/string/base64.js:55
↓ 12 callers
Function
bezierCurve
(x1, y1, x2, y2)
src/core/data-structures/curve.js:23
↓ 12 callers
Method
buildCallback
@override
extensions/amp-next-page/0.1/amp-next-page.js:42
↓ 12 callers
Method
calcTaskScore_
* Calculates the task's score. A task with the lowest score will be dequeued * from the queue the first. * * There are three components of th
src/service/resources-impl.js:1399
↓ 12 callers
Function
childElementByTag
(parent, tagName)
src/core/dom/query.js:308
↓ 12 callers
Function
chunk
(elementOrAmpDoc, fn, priority)
src/chunk.js:81
← previous
next →
1,201–1,300 of 18,703, ranked by callers