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
↓ 12 callers
Function
writeBuffer
(input, buffer, caretPos, event, triggerEvents)
third_party/inputmask/inputmask.js:1537
↓ 12 callers
Function
z
(t,n,a,r,o)
third_party/inputmask/bundle.js:11
↓ 11 callers
Function
H
(e)
third_party/react-dates/bundle.js:1
↓ 11 callers
Function
P
(e)
third_party/react-dates/bundle.js:1
↓ 11 callers
Function
Yt
(e,t)
examples/amp-script/vue-todomvc.js:7
↓ 11 callers
Function
a
()
third_party/d3-geo-projection/d3-geo-projection.js:1
↓ 11 callers
Method
abort
@override
src/utils/dom-writer.js:272
↓ 11 callers
Method
add
* Adds the observer to this instance. * @param {function(TYPE=):void} handler Observer's handler. * @return {import('#core/types/function/types'
src/core/data-structures/observable.js:22
↓ 11 callers
Method
addGlobalMethodHandler
* Registers the action handler for a common method. * @param {string} name * @param {ActionHandlerDef} handler * @param {ActionTrust_Enum} mi
src/service/action-impl.js:401
↓ 11 callers
Method
addService
* Add a service to the extension currently being registered. This is a * restricted method and it's allowed to be called only during the overall
src/service/extensions-impl.js:402
↓ 11 callers
Method
addToFixedLayer
@override
extensions/amp-subscriptions/0.1/doc-impl.js:60
↓ 11 callers
Function
analyticsEvent
* @param {!VideoEntry} entry * @param {!VideoAnalyticsEvents_Enum} eventType * @param {!{[key: string]: string}=} opt_vars A map of vars and their v
src/service/video-manager-impl.js:1605
↓ 11 callers
Method
areResultsDisplayed_
* Returns true if the results are visible and has items. * @return {boolean} * @private
extensions/amp-autocomplete/0.1/amp-autocomplete.js:1027
↓ 11 callers
Method
attemptCollapse
* Return a promise that request the runtime to collapse one element * @return {!Promise}
src/base-element.js:855
↓ 11 callers
Method
autocomplete_
* Display autocomplete suggestions and render it in the results container_. * When client side rendering, filter the source data according to the g
extensions/amp-autocomplete/0.1/amp-autocomplete.js:676
↓ 11 callers
Function
basicTests
(env)
test/unit/test-chunk.js:23
↓ 11 callers
Function
batchFetchJsonFor
(ampdoc, element, options = {})
src/batched-json.js:49
↓ 11 callers
Method
buildCallback
@override
extensions/amp-date-picker/0.1/amp-date-picker.js:361
↓ 11 callers
Function
checkInput
(element, checked)
extensions/amp-form/0.1/test/test-form-dirtiness.js:31
↓ 11 callers
Function
chunkInstanceForTesting
(elementOrAmpDoc)
src/chunk.js:94
↓ 11 callers
Method
clickHandler_
* Handles click events for the selectables. * @param {!Event} event * @private
extensions/amp-selector/0.1/amp-selector.js:383
↓ 11 callers
Function
contextProp
(key, opt_spec)
src/core/context/prop.js:25
↓ 11 callers
Function
createElement
(id)
test/unit/test-fixed-layer.js:215
↓ 11 callers
Function
createElement
()
extensions/amp-3d-gltf/0.1/test/test-amp-3d-gltf.js:36
↓ 11 callers
Function
createResource
(opts)
test/unit/test-resources.js:35
↓ 11 callers
Function
createResource
(config, tagName = 'amp-ad', parent = doc.body)
ads/google/a4a/test/test-utils.js:974
↓ 11 callers
Function
defineBentoElement
(tag, BaseElement, _win = self)
src/preact/bento-ce.js:132
↓ 11 callers
Method
disconnect
* Disconnect messenger.
extensions/amp-access/0.1/iframe-api/messenger.js:63
↓ 11 callers
Method
doPass
* Runs a pass immediately. * * @visibleForTesting
src/service/resources-impl.js:580
↓ 11 callers
Method
doubleTap
(options)
extensions/amp-pan-zoom/1.0/test/test-component.js:654
↓ 11 callers
Method
ensureLoaded
* Ensure that the element is being eagerly loaded. * * Only used for R1 elements.
src/base-element.js:536
↓ 11 callers
Method
expandTemplate
* Converts templates from ${} format to MACRO() and resolves any platform * level macros when encountered. * @param {string} template The templa
extensions/amp-analytics/0.1/variables.js:401
↓ 11 callers
Function
expectNthCallToMatch
(fn, callIndex, expected)
extensions/amp-analytics/0.1/test/test-events.js:302
↓ 11 callers
Function
f
(e)
examples/amp-script/vue-todomvc.js:7
↓ 11 callers
Function
findSentences
(win, node, sentences)
extensions/amp-viewer-integration/0.1/findtext.js:203
↓ 11 callers
Function
getActionInvocation
(element, action, opt_tagOrTarget)
test/unit/test-action.js:1664
↓ 11 callers
Method
getAllWindows
* @return {!Promise<Array<string>>}
build-system/tasks/e2e/selenium-webdriver-controller.js:436
↓ 11 callers
Function
getAmpdocServiceHolder
* @param {!Node|!./service/ampdoc-impl.AmpDoc} nodeOrDoc * @return {!./service/ampdoc-impl.AmpDoc|!Window}
src/service-helpers.js:316
↓ 11 callers
Method
getConfigUrl
* @return {string}
extensions/amp-auto-ads/0.1/ad-network-config.js:37
↓ 11 callers
Method
getConsentRequiredPromiseForTesting
* @return {!Promise<boolean>} * @visibleForTesting
extensions/amp-consent/0.1/amp-consent.js:941
↓ 11 callers
Method
getElement
* Gets the Iframe element. * @return {!HTMLIFrameElement}
third_party/subscriptions-project/swg.js:11025
↓ 11 callers
Method
getFrameElement_
This method is doing two things. * 1. It checks that the source of the message is valid. * Validity means that the message comes from a
ads/inabox/inabox-messaging-host.js:271
↓ 11 callers
Function
getHighlightParam
(ampdoc)
extensions/amp-viewer-integration/0.1/highlight-handler.js:86
↓ 11 callers
Function
getMinOpacity
(el)
extensions/amp-analytics/0.1/opacity.js:8
↓ 11 callers
Function
getMockInteractiveData
()
extensions/amp-story-interactive/0.1/test/helpers.js:6
↓ 11 callers
Function
getNumberMaxOrDefault
(value, defaultValue)
extensions/amp-live-list/0.1/amp-live-list.js:92
↓ 11 callers
Method
getOwner
* Returns an owner element or null. * @return {?AmpElement}
src/service/resource.js:243
↓ 11 callers
Function
getParentWindowFrameElement
(node, opt_topWin)
src/service-helpers.js:287
↓ 11 callers
Method
getReaderId
* Returns the reader ID for the specified service. * @param {string} platformKey * @return {!Promise<string>}
extensions/amp-subscriptions/0.1/service-adapter.js:49
↓ 11 callers
Function
getShadowDomSupportedVersion
(opt_elementClass)
src/core/dom/web-components.js:87
↓ 11 callers
Function
getSpringboardPlayer
(attributes)
extensions/amp-springboard-player/0.1/test/test-amp-springboard-player.js:18
↓ 11 callers
Method
getTotalDuration_
* @return {number} total duration in milliseconds. * @throws {Error} If timeline is infinite.
extensions/amp-animation/0.1/runners/native-web-animation-runner.js:237
↓ 11 callers
Method
getTrackedTimerKeys
* @return {!Array<number>} * @visibleForTesting
extensions/amp-analytics/0.1/events.js:1185
↓ 11 callers
Method
getTrackerOptional
* Returns the tracker for the specified name or `null`. * @param {string} name * @return {?./events.EventTracker}
extensions/amp-analytics/0.1/analytics-root.js:167
↓ 11 callers
Method
getVar
* Returns the value of a CSS variable or `null` if not available. * @param {string} unusedVarName * @return {?CssNode}
extensions/amp-animation/0.1/parsers/css-expr-ast.js:41
↓ 11 callers
Function
getWin
(links, metas)
test/unit/test-document-info.js:14
↓ 11 callers
Method
handleKeydown_
* Handle changing values of the attached input fields, and the hotkey for * closing the date picker. * @param {!Event} e * @private * @ret
extensions/amp-date-picker/0.1/amp-date-picker.js:1104
↓ 11 callers
Method
handleTcDataChange_
* Handler for when policy manager signal potential TCData * change. Only triggers new TCData to be sent if TC String * has been change and is no
extensions/amp-consent/0.1/tcf-api-command-manager.js:134
↓ 11 callers
Method
hasTemplate
* Detect if a template is present inside the parent. * @param {!Element} parent * @param {string=} opt_querySelector * @return {boolean}
src/service/template-impl.js:187
↓ 11 callers
Function
installLinkerReaderService
(win)
extensions/amp-analytics/0.1/linker-reader.js:89
↓ 11 callers
Function
installVsyncService
(window)
src/service/vsync-impl.js:483
↓ 11 callers
Function
is3pThrottled
(win)
extensions/amp-ad/0.1/concurrent-load.js:38
↓ 11 callers
Method
isAd
* check to see if this page is a wrapper for an ad * @return {boolean}
extensions/amp-story/1.0/amp-story-page.js:1921
↓ 11 callers
Function
isAmp4Email
(doc)
src/core/document/format.js:17
↓ 11 callers
Method
isAtStart
* @return {boolean} True if the carousel is not looping, and is at the * end, false otherwise.
extensions/amp-base-carousel/0.1/carousel.js:915
↓ 11 callers
Method
isAuthorizationEnabled
@override
extensions/amp-access/0.1/amp-access-other.js:38
↓ 11 callers
Function
isAutoplaySupported
(win)
src/core/dom/video/index.js:58
↓ 11 callers
Function
isFieldEmpty
(field)
src/core/dom/form.js:172
↓ 11 callers
Function
isJsonOrObj
(anything)
src/iframe-video.js:97
↓ 11 callers
Method
isMouseDetected
* Whether the mouse input has been detected. * @return {boolean}
src/input.js:122
↓ 11 callers
Function
isSecureUrlDeprecated
(url)
src/url.js:290
↓ 11 callers
Function
l
(a)
third_party/wgxpath/wgxpath.js:3
↓ 11 callers
Method
layoutCallback
@override
extensions/amp-story-360/0.1/amp-story-360.js:634
↓ 11 callers
Method
layoutCallback
@override
extensions/amp-mega-menu/0.1/amp-mega-menu.js:87
↓ 11 callers
Function
listenParent
(win, type, callback)
3p/messaging.js:35
↓ 11 callers
Function
m
(a)
third_party/wgxpath/wgxpath.js:5
↓ 11 callers
Function
measureIntersectionNoRoot
(el)
src/core/dom/layout/intersection-no-root.js:69
↓ 11 callers
Method
measurePromise
* Runs `measure` wrapped in a promise. * @param {function():TYPE} measurer * @return {!Promise<TYPE>} * @template TYPE
src/service/vsync-impl.js:250
↓ 11 callers
Function
n
(t,o,n,i)
third_party/inputmask/bundle.js:5
↓ 11 callers
Method
next
* Returns the next TextPosDef. * Returns null when the scanner reaches the end of the text. * @return {?TextPosDef}
extensions/amp-viewer-integration/0.1/findtext.js:497
↓ 11 callers
Method
off
* Removes the mapping subscribing the callback to a new message topic. * @param {string} topic * @param {function(...?)} callback
extensions/amp-web-push/0.1/window-messenger.js:424
↓ 11 callers
Method
onCommit
* Called when the user has fully set a value to be verified, * e.g. the input's 'change' event * @return {!Promise<!UpdatedErrorsDef>}
extensions/amp-form/0.1/form-verifiers.js:65
↓ 11 callers
Method
onMessage_
* @param {string} messageEvent * @private
extensions/amp-slikeplayer/0.1/amp-slikeplayer.js:255
↓ 11 callers
Method
onMessage_
* @param {!Event} event * @return {!Promise|undefined} * @private
extensions/amp-video-iframe/0.1/amp-video-iframe.js:271
↓ 11 callers
Method
onSubmitting
* Processes dirtiness state when a form is being submitted. This puts the * form in a "submitting" state, and temporarily clears the dirtiness stat
extensions/amp-form/0.1/form-dirtiness.js:58
↓ 11 callers
Function
padStart
(s, targetLength, padString)
src/core/types/string/index.js:187
↓ 11 callers
Function
padStart
* Format a number for output to the template. Adds a leading zero if the * input is only one digit and a negative sign for inputs less than 0. * @p
extensions/amp-date-countdown/1.0/component.js:222
↓ 11 callers
Method
previewAllowed
@override
extensions/amp-story/1.0/amp-story-page.js:173
↓ 11 callers
Function
pure
(value)
src/core/types/pure.js:9
↓ 11 callers
Method
reloadExtension
* Reloads the new version of the extension. * @param {string} extensionId * @param {string} version * @param {boolean} latest * @return {!
src/service/extensions-impl.js:255
↓ 11 callers
Function
removeAmpJsParamsFromUrl
(url)
src/url.js:433
↓ 11 callers
Method
reportWhenViewed_
* @param {time} timeToView * @return {!Promise} * @private
extensions/amp-access/0.1/amp-access.js:590
↓ 11 callers
Method
requestMeasure
* Requests the element to be remeasured on the next pass.
src/service/resource.js:584
↓ 11 callers
Method
resize_
@private
src/inabox/inabox-viewport.js:387
↓ 11 callers
Function
runVideoPlayerIntegrationTests
( env, createVideoElementFunc, opt_experiment, timeout = 2000 )
test/integration/test-video-players-helper.js:30
↓ 11 callers
Method
scheduleUnlayout
@override
src/service/owners-impl.js:79
↓ 11 callers
Method
sendCommand_
* Sends a command to the player through postMessage. NOTE: All commands sent * before imaVideo fires VideoEvents_Enum.LOAD will be queued until tha
extensions/amp-ima-video/0.1/amp-ima-video.js:282
↓ 11 callers
Method
setExtensionsKnown
* Signal that the initial document set of extensions is known. * @restricted
src/service/ampdoc-impl.js:447
↓ 11 callers
Function
setIsMediaComponent
(element)
src/video-interface.js:606
↓ 11 callers
Method
setReadyState
* Update the current `readyState`. * * Only used for R1 elements. * * @param {!./ready-state.ReadyState_Enum} state * @param {*=} opt_f
src/base-element.js:547
← previous
next →
1,401–1,500 of 18,703, ranked by callers