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
↓ 6 callers
Function
applySandbox
(iframe)
src/3p-frame.js:382
↓ 6 callers
Function
assertMutationRecordFormat
(mutationRecord)
extensions/amp-experiment/1.0/mutation-record.js:19
↓ 6 callers
Function
assertNotTemplate
@param {!Element} element
src/custom-element.js:2163
↓ 6 callers
Method
assertWithErrorReturn_
* resolves geoDeferred with null if not shouldBeTrueish and then calls * userAssert() to deal with the error as normal. * @param {T} shouldBeTru
extensions/amp-geo/0.1/amp-geo.js:160
↓ 6 callers
Method
attachPrompt_
* Finds the prompt and adds it to the prompt-container * * @protected * @param {Element} root
extensions/amp-story-interactive/0.1/amp-story-interactive-abstract.js:368
↓ 6 callers
Method
beforeSubmit
* Used to register callbacks. * @param {function(!FormSubmitEventDef)} cb * @return {!UnlistenDef}
extensions/amp-form/0.1/form-submit-service.js:25
↓ 6 callers
Function
bn
(n)
third_party/d3/d3.js:1
↓ 6 callers
Method
buildCallback
@override
extensions/amp-video/0.1/amp-video.js:220
↓ 6 callers
Method
buildCallback
@override
extensions/amp-action-macro/0.1/amp-action-macro.js:26
↓ 6 callers
Method
buildLinksPayload_
* Build the links portion for Linkmate payload. We need to check each link * if it has #donotlink to comply with business rules. * @param {!Arra
extensions/amp-smartlinks/0.1/linkmate.js:111
↓ 6 callers
Method
buildStyles_
* The language is selected based on the `hl` query parameter or * `navigate.language`. * * See `buildStyles` module function for details.
extensions/amp-access/0.1/amp-login-done-dialog.js:82
↓ 6 callers
Method
calcTopToCenterHighlightedNodes_
* @return {number} * @private
extensions/amp-viewer-integration/0.1/highlight-handler.js:317
↓ 6 callers
Function
calculateIntersectionRect
(viewportRect, targetRect)
extensions/amp-intersection-observer-polyfill/0.1/cross-origin-observer.js:56
↓ 6 callers
Function
calculateTargetScalingFactor
(dimensions)
extensions/amp-story/1.0/animation-presets-utils.js:82
↓ 6 callers
Method
callback
* @param {!Element} element * @param {!{[key: string]: string}} style
src/utils/dom-ancestor-visitor.js:102
↓ 6 callers
Method
cancel
* Cancels the previously scheduled callback. * @param {number|string|null} timeoutId
src/service/timer-impl.js:91
↓ 6 callers
Method
cancel
* Clears all keyframeEffects caused by this animation and aborts its * playback.
third_party/web-animations-externs/web_animations.js:40
↓ 6 callers
Method
changeSize
* Instructs the element to change its size and transitions to the state * awaiting the measure and possibly layout. * @param {number|undefined}
src/service/resource.js:361
↓ 6 callers
Method
checkInputValidity
* Wraps `checkValidity` on input elements to support `pattern` attribute on * <textarea> which is not supported in HTML5. * @param {!Element} in
extensions/amp-form/0.1/form-validators.js:116
↓ 6 callers
Method
cleanup
* Clean up the listeners
extensions/amp-ad/0.1/amp-ad-ui.js:420
↓ 6 callers
Method
clientConfigManager
@override
third_party/subscriptions-project/swg.js:19113
↓ 6 callers
Method
close_
* Closes the share menu. * @private
extensions/amp-story-share-menu/0.1/amp-story-share-menu.js:189
↓ 6 callers
Method
completeCollapse
* Completes collapse: ensures that the element is `display:none` and * updates layout box.
src/service/resource.js:541
↓ 6 callers
Method
complete_
* @param {boolean} success * @param {number} dir * @private
src/utils/animation.js:241
↓ 6 callers
Method
connect
* Establishes a message channel with a listening Messenger on another frame. * Only call this if listen() has already been called on the remote fra
extensions/amp-web-push/0.1/window-messenger.js:254
↓ 6 callers
Function
continueMotion
( contextNode, startX, startY, veloX, veloY, callback, opt_vsync )
src/motion.js:66
↓ 6 callers
Function
copyObject
(object)
extensions/amp-story-shopping/0.1/test/test-amp-story-shopping-config.js:32
↓ 6 callers
Function
createAdsenseImplElement
(attributes, doc, opt_tag)
extensions/amp-ad-network-adsense-impl/0.1/test/test-amp-ad-network-adsense-impl.js:35
↓ 6 callers
Function
createAmpElement
({createPlaceholder = true, id, parent})
test/unit/core/dom/test-resource-container-helper.js:39
↓ 6 callers
Function
createAmpImg
(src)
extensions/amp-list/0.1/test/test-amp-list.js:672
↓ 6 callers
Function
createAmpList
(element)
extensions/amp-list/0.1/test/test-amp-list.js:114
↓ 6 callers
Function
createAmpListElement
()
extensions/amp-list/0.1/test/test-amp-list.js:104
↓ 6 callers
Method
createAnalyticsGroup
* @param {!Element} analyticsElement * @return {!AnalyticsGroup}
extensions/amp-analytics/0.1/instrumentation.js:57
↓ 6 callers
Method
createAnimTask
* Creates an animation vsync task. This operation can only run when * animations are allowed. Otherwise, this closure returns `false` and exits.
src/service/vsync-impl.js:320
↓ 6 callers
Function
createElement
* Create a new element on document with specified tagName and attributes. * @param {!Document} doc * @param {string} tagName * @param {!Object<stri
third_party/subscriptions-project/swg-gaa.js:1207
↓ 6 callers
Function
createIframeWithMessageStub
(win)
testing/iframe.js:371
↓ 6 callers
Method
createOffsetMoment_
* Parse an ISO8601 date or duration. * @param {string} input The input date string to parse * @return {?moment} * @private
extensions/amp-date-picker/0.1/amp-date-picker.js:756
↓ 6 callers
Method
createPerformanceObserver_
* @param {function(!PerformanceEntry)} processEntry * @param {!PerformanceObserverInit} init * @return {!PerformanceObserver} * @private
src/service/performance-impl.js:521
↓ 6 callers
Method
createPlaceholder
* Creates a placeholder for the element. * @return {?Element} * @final
src/custom-element.js:1453
↓ 6 callers
Method
createRunnerIfNeeded_
* Creates the runner but animations will not start. * @param {?JsonObject=} opt_args * @param {?JsonObject=} opt_positionObserverData * @retu
extensions/amp-animation/0.1/amp-animation.js:414
↓ 6 callers
Function
createStyleNode
(attr, value)
test/unit/test-fixed-layer.js:383
↓ 6 callers
Function
createTemplate
(describeFunc)
testing/describes.js:257
↓ 6 callers
Function
createTouchStartEvent
(x)
extensions/amp-image-slider/0.1/test/integration/test-amp-image-slider.js:979
↓ 6 callers
Function
css
(handle, name)
extensions/amp-base-carousel/1.0/test-e2e/test-arrows-non-looping.js:30
↓ 6 callers
Function
css
(handle, name)
extensions/amp-base-carousel/0.1/test-e2e/test-arrows-non-looping.js:23
↓ 6 callers
Function
curve
(time)
test/unit/utils/test-animation.js:130
↓ 6 callers
Function
da
(e,t)
examples/amp-script/vue-todomvc.js:7
↓ 6 callers
Method
decode
* Decodes JWT token and returns its payload. * @param {string} encodedToken * @return {?JsonObject|undefined}
third_party/subscriptions-project/swg.js:4175
↓ 6 callers
Function
deepScan
( startNode, callback, arg = undefined, state = /** @type {S} */ (/** @type {?} */ (true)), includeS
src/core/context/scan.js:42
↓ 6 callers
Function
detectEvtListenerOptsSupport
()
src/core/dom/event-helper-listen.js:82
↓ 6 callers
Function
devAssertDceCheck
* This will never execute regardless, but will be included on unminified builds * builds. It will be DCE'd away from minified builds, and so can be u
src/core/assert/dev.js:16
↓ 6 callers
Function
devExpectedError
(unusedTag, ...args)
src/core/error/index.js:121
↓ 6 callers
Function
diff
(value, compare, error)
test/unit/test-gesture-recognizers.js:238
↓ 6 callers
Method
disableTouchZoom
@override
src/inabox/inabox-viewport.js:331
↓ 6 callers
Function
dispatchSwipeEvent
(deltaX, deltaY)
extensions/amp-story/1.0/test/test-amp-story.js:1298
↓ 6 callers
Method
divertExperiments
* Selects into experiments based on url fragment and/or page level diversion. * @visibleForTesting
extensions/amp-ad-network-adsense-impl/0.1/amp-ad-network-adsense-impl.js:219
↓ 6 callers
Function
dn
(e)
third_party/react-dates/bundle.js:1
↓ 6 callers
Function
dock
(page, name)
examples/visual-tests/amp-video-docking/amp-video-docking.js:30
↓ 6 callers
Function
doesOriginDomainMatchIframeSrc
(win, data)
3p/recaptcha.js:189
↓ 6 callers
Function
e
(width, height)
extensions/amp-iframe/0.1/test/test-amp-iframe.js:864
↓ 6 callers
Function
encodeIfExists2
* if unescapedPart is non null, then escapes any characters in it that aren't * valid characters in a url and also escapes any special characters tha
third_party/caja/html-sanitizer.js:98
↓ 6 callers
Function
encodeVars
(raw)
extensions/amp-analytics/0.1/variables.js:514
↓ 6 callers
Method
evaluate
* @param {!JsonObject} scope * @param {!Array} args * @throws {Error} On illegal function invocation. * @return {BindExpressionResultDef}
extensions/amp-bind/0.1/bind-macro.js:28
↓ 6 callers
Method
executeAction
@override
extensions/amp-subscriptions-google/0.1/amp-subscriptions-google.js:889
↓ 6 callers
Function
extensionsHasElement
(extensions, id)
extensions/amp-a4a/0.1/amp-ad-utils.js:180
↓ 6 callers
Function
factory
()
test/unit/test-runtime.js:748
↓ 6 callers
Method
fetch
* @param {string} input URL * @param {?FetchInitDef=} opt_init Fetch options object. * @return {!Promise<!Response>}
src/service/xhr-impl.js:168
↓ 6 callers
Function
findElements
(controller)
extensions/amp-consent/0.1/test-e2e/common.js:23
↓ 6 callers
Function
findParent
( startNode, predicate, arg = undefined, includeSelf = true )
src/core/context/scan.js:14
↓ 6 callers
Function
findParts
(element)
extensions/amp-pan-zoom/1.0/test/test-amp-pan-zoom.js:53
↓ 6 callers
Method
get
* @param {number} index The index of an element to get. * @return {T}
extensions/amp-viewer-integration/0.1/findtext.js:34
↓ 6 callers
Function
get3QElement
(playoutId)
extensions/amp-3q-player/0.1/test/test-amp-3q-player.js:33
↓ 6 callers
Method
getAllAmpVideos_
* Gets all amp video elements on this page. * @return {!Array<?Element>} * @private
extensions/amp-story/1.0/amp-story-page.js:1013
↓ 6 callers
Function
getAmpAdMetadata
(creative)
extensions/amp-a4a/0.1/amp-ad-utils.js:45
↓ 6 callers
Function
getAndroidAppInfo
()
extensions/amp-app-banner/1.0/utils/android.js:16
↓ 6 callers
Function
getApester
(attributes, opt_responsive)
extensions/amp-apester-media/0.1/test/test-amp-apester-media.js:28
↓ 6 callers
Function
getArguments
()
test/e2e/test-expect.js:150
↓ 6 callers
Function
getAttributeMutation
(opt_attributeName, opt_value)
extensions/amp-experiment/1.0/test/test-mutation-record.js:41
↓ 6 callers
Method
getAvailablePlatforms
* Returns all available platforms. * * @return {!Array<!./subscription-platform.SubscriptionPlatform>}
extensions/amp-subscriptions/0.1/platform-store.js:194
↓ 6 callers
Function
getBootstrapUrl
(type)
src/3p-frame.js:185
↓ 6 callers
Method
getBrowserId
()
testing/helpers/service.js:175
↓ 6 callers
Method
getBuildPriority
* This is the element's build priority. * * The lower the number, the higher the priority. * * The default priority for base elements is L
src/base-element.js:204
↓ 6 callers
Function
getBuilders
( versions: Versions, builderMap: VersionedBuilderMap = versionedBuilderMap )
src/compiler/builders.ts:36
↓ 6 callers
Method
getByName
* Finds the custom element definition by name. * * @param {string} name * @return {!CustomElementDef|undefined}
src/polyfills/custom-elements.js:243
↓ 6 callers
Method
getClientConfig
* Gets the client config, if already requested. Otherwise returns a Promise * with an empty ClientConfig. * @return {!Promise<!ClientConfig>}
third_party/subscriptions-project/swg.js:9657
↓ 6 callers
Method
getConfig
@override
extensions/amp-access/0.1/amp-access-other.js:31
↓ 6 callers
Function
getConnatixPlayer
(attributes)
extensions/amp-connatix-player/0.1/test/test-amp-connatix-player.js:19
↓ 6 callers
Function
getConsentPolicySharedData
(element, policyId)
src/consent.js:28
↓ 6 callers
Function
getCorrelator
(win, elementOrAmpDoc, opt_cid)
ads/google/a4a/utils.js:499
↓ 6 callers
Method
getCurrentElementRect
* Returns the current element's rectangle. * @return {!../../../../src/layout-rect.LayoutRectDef}
extensions/amp-animation/0.1/parsers/css-expr-ast.js:78
↓ 6 callers
Method
getCurrentIndex
* @return {number} The current index of the carousel.
extensions/amp-base-carousel/0.1/carousel.js:444
↓ 6 callers
Method
getCurrentTime
@override
extensions/amp-slikeplayer/0.1/amp-slikeplayer.js:398
↓ 6 callers
Method
getCustomRealTimeConfigMacros_
@override
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:965
↓ 6 callers
Method
getDefaultTranslateY_
* Returns default translateY style for the dialog. * @return {string} * @private
third_party/subscriptions-project/swg.js:11348
↓ 6 callers
Method
getElementAttribute_
* Returns the value of the attribute specified * @param {string} attr * @return {string}
extensions/amp-audio/0.1/amp-audio.js:223
↓ 6 callers
Function
getElementClassForTesting
(win, elementName)
src/service/custom-element-registry.js:235
↓ 6 callers
Function
getElementServiceIfAvailableForDocInEmbedScope
( element, id, extension )
src/element-service.js:128
↓ 6 callers
Function
getExtensionsFromMetadata
(creativeMetadata)
extensions/amp-a4a/0.1/amp-ad-utils.js:189
↓ 6 callers
Function
getFilesToCheck
* Gets a list of files to be checked based on command line args and the given * file matching globs. Used by tasks like prettify, lint, check-links,
build-system/common/utils.js:118
↓ 6 callers
Function
getForm
(config)
extensions/amp-form/0.1/test/integration/test-integration-form.js:71
← previous
next →
2,401–2,500 of 18,703, ranked by callers