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
Method
getFragment
* Get the fragment from the url or the viewer. * Strip leading '#' in the fragment * @return {!Promise<string>}
src/service/history-impl.js:179
↓ 6 callers
Function
getFriendlyIframeEmbedOptional
(iframe)
src/iframe-helper.js:589
↓ 6 callers
Function
getHtml
(win, selector, attrs)
src/core/dom/get-html.js:45
↓ 6 callers
Method
getId
* Returns resource's ID. * @return {number}
src/service/resource.js:227
↓ 6 callers
Method
getImplementation_
* Returns the promise that will eventually yield the template implementation * for the specified template element. * @param {!Element} element
src/service/template-impl.js:243
↓ 6 callers
Function
getIns
( shortcode, opt_responsive, opt_beforeLayoutCallback, opt_captioned, opt_visibi
extensions/amp-instagram/0.1/test/test-amp-instagram.js:18
↓ 6 callers
Method
getIntersectionChangeEntry
* Returns a change entry for that should be compatible with * IntersectionObserverEntry. * @return {?IntersectionObserverEntry} A change ent
src/custom-element.js:1524
↓ 6 callers
Method
getIntersectionElementLayoutBox
* @override
extensions/amp-ad/0.1/amp-ad-3p-impl.js:331
↓ 6 callers
Method
getIosVersionString
* Returns the minor ios version in string. * The ios version can contain two numbers (10.2) or three numbers (10.2.1). * Direct string equality
src/service/platform-impl.js:173
↓ 6 callers
Function
getIsOutsideRange
* Creates a function that will restrict the user from selecting a range * of dates whose length would exceed the value of the maximumDates prop,
extensions/amp-date-picker/0.1/wrappers/maximum-nights.js:66
↓ 6 callers
Method
getLayoutRect
@override
src/service/viewport/viewport-impl.js:389
↓ 6 callers
Method
getLoadMoreEndElement
* Not guaranteed to return an element because load-more-end elements * are not mandatory. * @return {?Element}
extensions/amp-list/0.1/service/load-more-service.js:194
↓ 6 callers
Method
getLoadMoreFailedElement
* @return {!Element}
extensions/amp-list/0.1/service/load-more-service.js:154
↓ 6 callers
Method
getLocation
* @static * @param {Window} win * @return {Location}
src/core/window/interface.js:21
↓ 6 callers
Function
getMaskTemplate
(baseOnInput, minimalPos, includeMode, noJit, clearOptionalTail)
third_party/inputmask/inputmask.js:746
↓ 6 callers
Method
getMediaType_
* Gets the media type from a given element. * @param {!PoolBoundElementDef|!PlaceholderElementDef} mediaElement The * element whose media ty
extensions/amp-story/1.0/media-pool.js:334
↓ 6 callers
Function
getMetadata
* @param {string=} opt_gdprApplies * @param {string=} opt_addtlConsent * @param {boolean=} opt_purposeOne
extensions/amp-consent/0.1/test/test-tcf-api-command-manager.js:486
↓ 6 callers
Method
getMinimalTcDataForTesting
* @param {?Object} metadata * @param {?Object} sharedData * @param {?string} tcString * @param {number=} listenerId * @param {number=} tcf
extensions/amp-consent/0.1/tcf-api-command-manager.js:362
↓ 6 callers
Function
getNodeSource
* @param {string} source * @param {types.Node} node * @return {string}
build-system/tasks/get-zindex/js.js:31
↓ 6 callers
Function
getPosterImageSrc
(element)
extensions/amp-video-docking/0.1/amp-video-docking.js:180
↓ 6 callers
Function
getPrefixSubsets
(mask)
extensions/amp-inputmask/0.1/inputmask-custom-alias.js:65
↓ 6 callers
Function
getPubControlConfig
(availableWidth, rawPubControlParams)
ads/google/a4a/shared/content-recommendation.js:236
↓ 6 callers
Function
getRenderedData
()
extensions/amp-date-countdown/1.0/test/test-amp-date-countdown.js:30
↓ 6 callers
Method
getRoot_
* Get the current root * @return {!Promise<!WebElement>}
build-system/tasks/e2e/selenium-webdriver-controller.js:685
↓ 6 callers
Method
getRunners_
* @return {!Array<!AnimationRunner>} * @private
extensions/amp-story/1.0/animation.js:656
↓ 6 callers
Function
getScriptNodes
(document)
build-system/server/app-index/test/test-amphtml-helpers.js:41
↓ 6 callers
Method
getScrollLeft
@override
src/service/viewport/viewport-impl.js:300
↓ 6 callers
Function
getServeMode
* Returns a string representation of the server's mode. * @return {string}
build-system/server/app-utils.js:13
↓ 6 callers
Method
getStateAsync
* Returns a copy of the global state for an expression, after waiting for its * associated 'amp-state' element to finish fetching data. If there is
extensions/amp-bind/0.1/bind-impl.js:546
↓ 6 callers
Function
getStdoutThrowOnError
* @param {string} cmd * @return {string}
build-system/tasks/sweep-experiments/index.js:41
↓ 6 callers
Function
getStoredTime
()
test/unit/test-cid.js:462
↓ 6 callers
Function
getSubDomain
(win)
src/3p-frame.js:313
↓ 6 callers
Function
getTargetingAndExclusions
(impls)
extensions/amp-ad-network-doubleclick-impl/0.1/sra-utils.js:187
↓ 6 callers
Function
getTestTemplate
(pos, ndxIntlzr, tstPs)
third_party/inputmask/inputmask.js:829
↓ 6 callers
Function
getTop
(win)
extensions/amp-fx-collection/0.1/test/integration/test-amp-fx-parallax.js:123
↓ 6 callers
Method
getTrackerForAllowlist
* Returns the tracker for the specified name and list of allowed types. * * @param {string} name * @param {!{[key: string]: typeof ./events.E
extensions/amp-analytics/0.1/analytics-root.js:137
↓ 6 callers
Method
getType
* Returns the type of the gesture emitted by the instance of this class. * It has to be unique in the scope of the Gestures instance. * @return
src/gesture.js:602
↓ 6 callers
Function
getVideoWithBlur
* Creates an amp-video with an image child that could potentially be a * blurry placeholder. * @param {boolean} addPlaceholder Whether t
extensions/amp-video/0.1/test/test-amp-video.js:1022
↓ 6 callers
Function
getVimeo
( videoId, opt_responsive, opt_doNotTrack, opt_isAutoPlay )
extensions/amp-vimeo/0.1/test/test-amp-vimeo.js:20
↓ 6 callers
Function
getWin
(url)
test/unit/test-mode.js:9
↓ 6 callers
Method
handleAction_
* @param {!../../../src/service/action-impl.ActionInvocation} invocation * @return {?Promise} * @private
extensions/amp-access/0.1/amp-access.js:696
↓ 6 callers
Method
handleFormSubmit_
* Check to see if any linker configs match this form's url, if so, send * along the resolved linker value * @param {!../../amp-form/0.1/form-sub
extensions/amp-analytics/0.1/linker-manager.js:393
↓ 6 callers
Method
handleToggleChecked_
* Handles "toggleChecked" action. * @param {!./action-impl.ActionInvocation} invocation * @return {?Promise} * @private Visible to tests only
src/service/standard-actions-impl.js:589
↓ 6 callers
Method
handleToggle_
* Handles "toggle" action. * @param {!./action-impl.ActionInvocation} invocation * @return {?Promise} * @private Visible to tests only.
src/service/standard-actions-impl.js:542
↓ 6 callers
Method
hasBeenActive
* Whether the element has ever been active since this tracker was alive. * @return {boolean}
extensions/amp-script/0.1/user-activation-tracker.js:57
↓ 6 callers
Function
hasRenderDelayingServices
(win)
src/render-delaying-services.js:89
↓ 6 callers
Method
hideControls
@override
extensions/amp-ima-video/0.1/amp-ima-video.js:404
↓ 6 callers
Function
i
(e)
examples/amp-script/todomvc.ssr.js:2
↓ 6 callers
Function
ia
(e)
third_party/react-dates/bundle.js:1
↓ 6 callers
Function
importShadowBody
(shadowRoot, body, deep)
src/shadow-embed.js:160
↓ 6 callers
Method
initializeListeners_
* Add event listener for the subscriptions action * @protected
extensions/amp-subscriptions/0.1/local-subscription-platform-base.js:102
↓ 6 callers
Method
initializePromiseForTesting
* Wait for bind scan to finish for testing. * * @return {?Promise} * @visibleForTesting
extensions/amp-bind/0.1/bind-impl.js:1743
↓ 6 callers
Method
inputHandler_
* Displays autocomplete suggestions on user input if appropriate. * @return {!Promise} * @private
extensions/amp-autocomplete/0.1/amp-autocomplete.js:590
↓ 6 callers
Function
insert
(iframe)
extensions/amp-ad/0.1/test/test-legacy-ad-intersection-observer-host.js:38
↓ 6 callers
Function
installAmpdocServices
(ampdoc)
src/service/core-services.js:73
↓ 6 callers
Method
installExtensionsInDoc
* Installs all ampdoc factories previously registered with * `addDocFactory`. * @param {!./ampdoc-impl.AmpDoc} ampdoc * @param {!Array<{exten
src/service/extensions-impl.js:486
↓ 6 callers
Function
installShadowStyle
(shadowRoot, name, cssText)
src/core/dom/shadow-embed.js:11
↓ 6 callers
Method
intercept
* @param {!EventTarget} target * @return {!EventListeners}
testing/fake-dom.js:290
↓ 6 callers
Function
invocation
(method, args = {})
extensions/amp-base-carousel/1.0/test/test-amp-base-carousel.js:271
↓ 6 callers
Function
invokeWithSomeArgsUndefined
* Exercises the given invocation with each of the required arguments * undefined to test that the invoked action fails quietly. * @param {!Objec
extensions/amp-gwd-animation/0.1/test/test-amp-gwd-animation.js:39
↓ 6 callers
Method
isAmpAdElement
* Returns true if this element was loaded from an amp-ad element. For use by * network-specific implementations that don't want to allow themselve
extensions/amp-a4a/0.1/amp-a4a.js:515
↓ 6 callers
Function
isAmpScriptUri
(uri)
src/url.js:398
↓ 6 callers
Function
isAttributionReportingAllowed
(doc)
src/utils/privacy-sandbox-utils.js:15
↓ 6 callers
Function
isCanary
(win)
src/experiments/index.js:41
↓ 6 callers
Function
isCircleciBuild
* Returns true if this is a CircleCI build. * @return {boolean}
build-system/common/ci.js:40
↓ 6 callers
Function
isDisplayed
(el)
extensions/amp-subscriptions/0.1/test/test-renderer.js:10
↓ 6 callers
Function
isDocumentReady
(doc)
src/core/document/ready.js:8
↓ 6 callers
Method
isFirefox
* Whether the current browser is a Firefox browser. * @return {boolean}
src/service/platform-impl.js:66
↓ 6 callers
Function
isHintHiddenCallback
()
extensions/amp-image-slider/0.1/test/integration/test-amp-image-slider.js:684
↓ 6 callers
Function
isLeftAligned
(element, expectedLeftPosition)
extensions/amp-image-slider/0.1/test/integration/test-amp-image-slider.js:1004
↓ 6 callers
Method
isManagedByPool_
* @return {boolean} * @private
extensions/amp-video/0.1/amp-video.js:905
↓ 6 callers
Method
isReadyToPay
* Returns upi payment method object if it exists in allowed payment methods * or null if it doesn't * * @param {!IsReadyToPayRequest|!Payment
third_party/subscriptions-project/swg.js:16963
↓ 6 callers
Function
isScreenReaderHidden
* * @param {Element} element * @returns {boolean}
extensions/amp-carousel/0.1/test/test-scrollable-carousel.js:545
↓ 6 callers
Function
isServerRendered
(element)
src/core/dom/index.js:558
↓ 6 callers
Function
itWithPolyfill
Helper to execute test cases with and without the polyfills.
test/unit/core/dom/test-query.js:10
↓ 6 callers
Function
iterProduct
(a, b, callback)
extensions/amp-auto-lightbox/0.1/test/test-amp-auto-lightbox.js:71
↓ 6 callers
Method
iterateDateRange_
* Iterate over the dates between a start and end date. * @param {!moment} startDate * @param {?moment} endDate * @param {function(!moment)} c
extensions/amp-date-picker/0.1/amp-date-picker.js:1611
↓ 6 callers
Function
k
(e,t)
examples/amp-script/vue-todomvc.js:7
↓ 6 callers
Function
l
(e)
third_party/inputmask/bundle.js:11
↓ 6 callers
Method
layoutCallback
@override
extensions/amp-facebook-like/0.1/amp-facebook-like.js:63
↓ 6 callers
Method
layoutCallback
@override
extensions/amp-date-picker/0.1/amp-date-picker.js:539
↓ 6 callers
Method
layoutCallback
@override
extensions/amp-facebook-page/0.1/amp-facebook-page.js:69
↓ 6 callers
Method
layoutCallback
@override
extensions/amp-facebook/0.1/amp-facebook.js:75
↓ 6 callers
Function
leadingZero
* @param {string|number} number * @return {string}
build-system/common/update-session-issues/index.js:43
↓ 6 callers
Method
leaveLightboxMode
@override
src/inabox/inabox-viewport.js:304
↓ 6 callers
Method
loadMoreCallback_
* Called when 3 viewports above bottom of automatic load-more list, or * manually on clicking the load-more-button element. Sets the amp-list *
extensions/amp-list/0.1/amp-list.js:1529
↓ 6 callers
Function
m
()
examples/amp-script/vue-todomvc.js:7
↓ 6 callers
Function
makeDailymotionMessage
(command, param)
src/bento/apis/dailymotion-api.js:55
↓ 6 callers
Function
makeExtensionFromTemplates
* @param {Array<string>} templateDirs * @param {string=} destinationDir * @param {ArgsDef|minimist.ParsedArgs} options * @return {Promise<?MakeExte
build-system/tasks/make-extension/index.js:183
↓ 6 callers
Function
makeVimeoMessage
(method, params = '')
src/bento/apis/vimeo-api.js:53
↓ 6 callers
Function
markElementScheduledForTesting
(win, elementName)
src/service/custom-element-registry.js:209
↓ 6 callers
Method
maybeCollectVars_
* Collect vars if given the optional object. Handles formatting of kv pairs. * @param {string} name Name of the macro. * @param {*} value Raw ma
src/service/url-expander/expander.js:462
↓ 6 callers
Function
maybeCreateAttribution
(win, metadata, container)
extensions/amp-story-auto-ads/0.1/story-ad-ui.js:152
↓ 6 callers
Function
maybeResizeTextarea
(element)
extensions/amp-form/0.1/amp-form-textarea.js:236
↓ 6 callers
Function
maybeValidate
(win)
src/validator-integration.js:16
↓ 6 callers
Function
md5
* Returns the md5 hash of provided args. * * @param {...(string|Buffer)} args * @return {string}
build-system/common/transform-cache.js:80
↓ 6 callers
Method
modifyVendorResponse
* * Modify the response from vendors to have one standard response * @param {object} vendorsResponses * @return {*} * @memberof AmpAdNetwo
extensions/amp-ad-network-smartadserver-impl/0.1/amp-ad-network-smartadserver-impl.js:271
↓ 6 callers
Function
mountComp
* @param {Document} doc * @param {JsonObject} attrs * @returns {Element}
extensions/amp-jwplayer/1.0/test/test-amp-jwplayer.js:15
↓ 6 callers
Function
mt
(n,t)
third_party/d3/d3.js:1
↓ 6 callers
Method
mutateElement
@override
src/service/mutator-impl.js:141
← previous
next →
2,501–2,600 of 18,703, ranked by callers