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
↓ 7 callers
Method
getStories
* @return {!Array<!StoryDef>} * @public
src/amp-story-player/amp-story-player-impl.js:389
↓ 7 callers
Method
getTargetOrigin
* Returns the messaging origin. Only available when connection has been * establihsed. * @return {string}
extensions/amp-access/0.1/iframe-api/messenger.js:111
↓ 7 callers
Function
getTcfApiReturn
* @param {string} callId * @param {Object=} opt_returnValue * @param {boolean=} opt_success
extensions/amp-consent/0.1/test/test-tcf-api-command-manager.js:499
↓ 7 callers
Function
getTimeZoneName
(date, locale, options, format = 'long')
extensions/amp-date-display/format.js:14
↓ 7 callers
Method
getUnusedAdPage
* Gets the next ad page that has not yet been inserted or discarded. * @return {!StoryAdPage}
extensions/amp-story-auto-ads/0.1/story-ad-page-manager.js:81
↓ 7 callers
Method
getUserActivation
* @return {?UserActivationTracker} * @visibleForTesting
extensions/amp-script/0.1/amp-script.js:221
↓ 7 callers
Method
getUserInputForUpdate
(inputEl: InputElement)
src/bento/components/bento-autocomplete/1.0/types.ts:62
↓ 7 callers
Method
getVendorSource
* @param {string} name * @return {!AccessSource}
extensions/amp-access/0.1/amp-access.js:251
↓ 7 callers
Method
getViewerOrigin
@override
src/service/viewer-impl.js:613
↓ 7 callers
Method
getViewportSize
* Returns the viewport size. * @return {!{width: number, height: number}}
extensions/amp-animation/0.1/parsers/css-expr-ast.js:72
↓ 7 callers
Method
getVisibilityManager
* Returns the visibility root corresponding to this analytics root (ampdoc * or embed). The visibility root is created lazily as needed and takes
extensions/amp-analytics/0.1/analytics-root.js:438
↓ 7 callers
Method
goBack
* Requests navigation one step back. This first attempts to go back within * the context of this document. * * @param {boolean=} navigate
src/service/history-impl.js:142
↓ 7 callers
Method
group
* @param {string} name * @return {?ContextNode<?>}
src/core/context/node.js:370
↓ 7 callers
Function
h
(e)
third_party/react-dates/bundle.js:1
↓ 7 callers
Function
handleClick
(e, opt_viewerNavigate)
ads/alp/handler.js:38
↓ 7 callers
Method
handleClick_
* Handle click on subscription-action * @private * @param {Node} element
extensions/amp-subscriptions/0.1/local-subscription-platform-base.js:129
↓ 7 callers
Method
handleClosingUiAction_
* For actions that close the PromptUI, validate state * and do some preprocessing, then handle action. * @param {string} action * @param {../
extensions/amp-consent/0.1/amp-consent.js:286
↓ 7 callers
Method
hasAttributes
()
test/unit/core/dom/test-propagate-attributes.js:17
↓ 7 callers
Method
hasId
* @param {string} pageId * @return {boolean}
extensions/amp-story-auto-ads/0.1/story-ad-page-manager.js:139
↓ 7 callers
Method
hasRequestSent
()
testing/helpers/service.js:379
↓ 7 callers
Method
hasUnusedAdPage
* Check if we have any pages left that have not been inserted or discarded. * @return {boolean}
extensions/amp-story-auto-ads/0.1/story-ad-page-manager.js:73
↓ 7 callers
Method
hide
* @param {boolean=} opt_respectSticky * @param {boolean=} opt_immediately Disables transition * @public
extensions/amp-video-docking/0.1/controls.js:484
↓ 7 callers
Method
init
* Sets up listeners and iframe state for iframe containing ad creative. * @param {!HTMLIFrameElement} iframe * @param {boolean=} opt_isA4A when
extensions/amp-ad/0.1/amp-ad-xorigin-iframe-handler.js:101
↓ 7 callers
Method
initialize_
* Appends the iframe to the DOM and updates the post message service. * @private
third_party/subscriptions-project/swg.js:15424
↓ 7 callers
Function
insertAnalyticsElement
( parentElement, config, loadAnalytics = false, disableImmediate = false )
src/extension-analytics.js:20
↓ 7 callers
Function
installExtensionsService
(window)
src/service/extensions-impl.js:85
↓ 7 callers
Method
installHelperFrame
/** * Installs the helper IFrame onto the AMP page and returns a Promise for when * the iframe is loaded. * * @return {Promise}
extensions/amp-web-push/0.1/web-push-service.js:226
↓ 7 callers
Function
invocation
(method, args = {})
extensions/amp-sidebar/1.0/test/test-amp-sidebar.js:45
↓ 7 callers
Function
invokeAndObserve
(invokeFunc, target, cb, opt_errorMessage)
extensions/amp-image-slider/0.1/test/integration/test-amp-image-slider.js:1044
↓ 7 callers
Function
ir
(e,i)
examples/amp-script/vue-todomvc.js:7
↓ 7 callers
Method
isActive
* @return {boolean} Whether this page is currently active.
extensions/amp-story/1.0/amp-story-page.js:1414
↓ 7 callers
Function
isAdLike
(element)
src/iframe-helper.js:524
↓ 7 callers
Method
isBackgrounded
* Whether the visibility root is currently in the background. * @return {boolean} * @abstract
extensions/amp-analytics/0.1/visibility-manager.js:189
↓ 7 callers
Function
isBoolean
* True if the value is either true or false. * @param {?*} value * @return {boolean}
third_party/subscriptions-project/swg.js:7149
↓ 7 callers
Method
isBot
* Whether the current platform matches a bot user agent. * @return {boolean}
src/service/platform-impl.js:121
↓ 7 callers
Method
isBuilt
* Whether the element has been built. A built element had its * {@link buildCallback} method successfully invoked. * @return {boolean}
src/custom-element.js:486
↓ 7 callers
Function
isComplete
(buffer)
third_party/inputmask/inputmask.js:2303
↓ 7 callers
Method
isConnected
* Returns whether the messenger has been connected already. * @return {boolean}
extensions/amp-access/0.1/iframe-api/messenger.js:74
↓ 7 callers
Method
isConnected_
* @return {boolean} * @private
src/core/context/values.js:351
↓ 7 callers
Method
isDateField_
* True if the input is a field of this date picker. * @param {?Element} field * @return {boolean} * @private
extensions/amp-date-picker/0.1/amp-date-picker.js:946
↓ 7 callers
Function
isDateInFuture
(date)
extensions/amp-addthis/0.1/addthis-utils/cuid.js:30
↓ 7 callers
Method
isFixed
* Whether the element is fixed according to the latest measurement. * @return {boolean}
src/service/resource.js:649
↓ 7 callers
Method
isLayoutSupported
@override
extensions/amp-list/0.1/amp-list.js:179
↓ 7 callers
Function
isObject
* Determines if value is actually an Object. * @param {*} value * @return {boolean}
third_party/subscriptions-project/swg.js:7113
↓ 7 callers
Method
isOpera
* Whether the current browser is an Opera browser. * @return {boolean}
src/service/platform-impl.js:74
↓ 7 callers
Function
isOutsideRange
* @param {string} min * @param {string} max * @param {!moment} date * @return {boolean}
extensions/amp-date-picker/0.1/date-picker-common.js:55
↓ 7 callers
Method
isResponsiveEnabled
* Indicates whether amp-auto-ads should be displayed at full-width. * @return {boolean} true if amp-auto-ads full-width responsive is enabled.
extensions/amp-auto-ads/0.1/ad-network-config.js:32
↓ 7 callers
Function
isShadowDomSupported
()
src/core/dom/web-components.js:43
↓ 7 callers
Function
isSymbol
(e)
third_party/react-dates/bundle.js:1
↓ 7 callers
Method
isValidTcfApiCall_
* Checks if the payload from the `tcfapiCall` is valid. * @param {JsonObject} payload * @return {boolean}
extensions/amp-consent/0.1/tcf-api-command-manager.js:313
↓ 7 callers
Method
isWebviewEmbedded
@override
src/service/viewer-impl.js:345
↓ 7 callers
Function
l
(e)
examples/amp-script/todomvc.ssr.js:2
↓ 7 callers
Method
layoutScheduled
* Sets the resource's state to LAYOUT_SCHEDULED. * @param {number} scheduleTime The time at which layout was scheduled.
src/service/resource.js:821
↓ 7 callers
Method
log
* Fake docs for testing
extensions/amp-viewer-integration/0.1/webview-viewer-for-testing.js:277
↓ 7 callers
Function
logOnSameLineLocalDev
* Logs messages on the same line only during local development * @param {...string} messages
build-system/common/logging.js:70
↓ 7 callers
Function
m
(e)
examples/amp-script/todomvc.ssr.js:2
↓ 7 callers
Method
makeRequest
* Make an event listening request. * * @param {string} requestType The type of the request message. * @param {string} responseType The type o
3p/iframe-messaging-client.js:73
↓ 7 callers
Method
markManufacturedBody
* Callback for informing that the parser is manufacturing a <body> tag not * actually found on the page. This will be followed by a startTag() with
validator/js/engine/htmlparser-interface.js:435
↓ 7 callers
Method
maybeInsertPageAfter
* Can fail if slot is protected by next-page-no-ad, if there are not enough * pages left in the story for insertion, or the page before or after is
extensions/amp-story-auto-ads/0.1/story-ad-page-manager.js:166
↓ 7 callers
Function
maybeSetupCrossOriginObserver
(win)
extensions/amp-intersection-observer-polyfill/0.1/cross-origin-observer.js:14
↓ 7 callers
Method
maybeUpgradeToResponsive
* Upgrades the ad unit to responsive if there is an opt-in setting in localstorage. * See https://github.com/ampproject/amphtml/issues/23568 for de
extensions/amp-ad-network-adsense-impl/0.1/responsive-state.js:99
↓ 7 callers
Function
me
(e)
third_party/react-dates/bundle.js:1
↓ 7 callers
Function
mergeExperimentIds
(newIds, currentIdString)
ads/google/a4a/utils.js:775
↓ 7 callers
Method
mount
* Requests the element to be mounted as soon as possible. * @return {!Promise} * @final
src/custom-element.js:696
↓ 7 callers
Method
mutatedAttributesCallback
@override
extensions/amp-autocomplete/0.1/amp-autocomplete.js:522
↓ 7 callers
Function
nullIfAbsent
(matchPart)
third_party/caja/html-sanitizer.js:627
↓ 7 callers
Method
observe
* @param {!Element} element * @param {!PositionObserverFidelity_Enum} fidelity * @param {function(?./position-observer-worker.PositionInViewport
src/service/position-observer/position-observer-impl.js:68
↓ 7 callers
Function
oe
(n)
third_party/d3/d3.js:2
↓ 7 callers
Function
oe
(t)
third_party/inputmask/bundle.js:11
↓ 7 callers
Method
onRotation_
@private
src/service/video-manager-impl.js:1191
↓ 7 callers
Method
onSetup_
* @private
extensions/amp-jwplayer/0.1/amp-jwplayer.js:398
↓ 7 callers
Method
open_
* @param {?../../../src/service/action-impl.ActionInvocation=} invocation * @private
extensions/amp-image-lightbox/0.1/amp-image-lightbox.js:857
↓ 7 callers
Function
p
(n)
third_party/d3/d3.js:1
↓ 7 callers
Method
padStart_
* @param {number} input * @return {string} * @private
extensions/amp-date-display/0.1/amp-date-display.js:355
↓ 7 callers
Function
parseUrl
* Returns a Location-like object for the given URL. If it is relative, * the URL gets resolved. * Consider the returned object immutable. This is en
third_party/subscriptions-project/swg.js:5305
↓ 7 callers
Method
parse_
* @param {string|!Location} url * @return {!Location} * @private
src/service/url-impl.js:58
↓ 7 callers
Method
peek
* Returns the next token but keeps the current position. * @param {boolean=} opt_convertValues * @return {!TokenDef}
src/service/action-impl.js:1268
↓ 7 callers
Function
pemToBytes
(pem)
extensions/amp-access/0.1/jwt.js:24
↓ 7 callers
Method
ping
* Schedules a recalculation of the specified property, but only if this * property is tracked by this node. * * @param {IContextProp<?, ?>} p
src/core/context/values.js:230
↓ 7 callers
Method
pointerMove
(options)
extensions/amp-pan-zoom/1.0/test/test-component.js:642
↓ 7 callers
Method
previewAllowed
* Subclasses can override this method to opt-in into being called to * render when document itself is in preview mode. * * The return value o
src/base-element.js:160
↓ 7 callers
Function
px
(transition)
src/core/dom/transition.js:70
↓ 7 callers
Function
queryAmpAdDisplaySelector
(myDoc)
extensions/amp-apester-media/0.1/test/test-amp-apester-monetization.js:25
↓ 7 callers
Function
r
(t)
third_party/d3-geo-projection/d3-geo-projection.js:1
↓ 7 callers
Function
randInt
(n)
build-system/server/routes/list.js:29
↓ 7 callers
Function
realChildNodes
(element)
src/core/dom/query.js:343
↓ 7 callers
Function
recalculateConsentStateValue
(newState, previousState)
extensions/amp-consent/0.1/consent-info.js:153
↓ 7 callers
Function
rediscover
(...nodesOrContextNodes)
test/unit/core/context/test-node-values.js:125
↓ 7 callers
Method
registerApiAction_
* @param {string} alias * @param {function(!VideoWrapperDef.Api, !../../../src/service/action-impl.ActionInvocation)} handler * @param {!../../.
src/bento/components/bento-video/1.0/video-base-element.js:34
↓ 7 callers
Method
removeAll
* Removes all observers.
src/core/data-structures/observable.js:46
↓ 7 callers
Method
removeFrom
* Removes and returns the sources from a specified element. * @param {!Window} win * @param {!Element} element The element whose sources should
extensions/amp-story/1.0/sources.js:98
↓ 7 callers
Function
removeMemoryCacheOfCid
(opt_cid)
test/unit/test-cid.js:771
↓ 7 callers
Method
render_
* Render currently active cues. * @private
extensions/amp-story-captions/0.1/track-renderer.js:73
↓ 7 callers
Method
replyToFrameWithPayload_
* Ensures replies to the AMP page messenger have a consistent payload format. * * @param {function(?, function())} replyToFrameFunction * @pa
extensions/amp-web-push/0.1/amp-web-push-helper-frame.js:124
↓ 7 callers
Method
reportError_
* @param {!Error} error * @param {!Element=} opt_element
extensions/amp-bind/0.1/bind-impl.js:1624
↓ 7 callers
Method
requiresFixedLayerTransfer
@override
src/inabox/inabox-viewport.js:844
↓ 7 callers
Method
resize
()
third_party/zuho/zuho.js:202
↓ 7 callers
Method
rewriteAnchorUrl
* This function is called when the user clicks on a link. * It swaps temporarly the href of an anchor by its associated * replacement url but on
extensions/amp-skimlinks/0.1/link-rewriter/link-rewriter.js:113
↓ 7 callers
Function
rgba2hex
(rgba)
extensions/amp-soundcloud/1.0/storybook/converter.js:6
↓ 7 callers
Function
rootNodeFor
(node)
src/core/dom/index.js:206
← previous
next →
2,201–2,300 of 18,703, ranked by callers