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
↓ 3 callers
Function
css
(handle, name)
extensions/amp-lightbox-gallery/0.1/test-e2e/test-carousel-0.2-declared.js:14
↓ 3 callers
Function
css
(handle, name)
extensions/amp-lightbox-gallery/0.1/test-e2e/test-open-close.js:15
↓ 3 callers
Function
d
(t)
third_party/d3-geo-projection/d3-geo-projection.js:1
↓ 3 callers
Function
dateMethod
* Returns a function that executes method on a new Date instance. This is a * byte saving hack. * * @param {string} method * @return {!SyncResolve
src/service/url-replacements-impl.js:51
↓ 3 callers
Function
db
(a)
third_party/wgxpath/wgxpath.js:54
↓ 3 callers
Method
decorateServiceAction
* Delegate UI decoration to another service. * @param {!Element} element * @param {string} platformKey * @param {string} action * @param {
extensions/amp-subscriptions/0.1/service-adapter.js:93
↓ 3 callers
Method
define
* Registers the custom element definition, and upgrades all elements by that * name in the root document. * * @param {string} name * @para
src/polyfills/custom-elements.js:275
↓ 3 callers
Function
delayAfterDeferringToEventLoop
(win, duration)
extensions/amp-sidebar/0.2/utils.js:15
↓ 3 callers
Function
delayAfterDeferringToEventLoop
(win, duration)
extensions/amp-sidebar/0.1/utils.js:15
↓ 3 callers
Method
deleteIframeTransport
* Deletes iframe transport.
extensions/amp-analytics/0.1/transport.js:189
↓ 3 callers
Function
descendsFromStory
(element)
src/utils/story.js:14
↓ 3 callers
Method
destroyFrame
* Attempts to remove the current frame and free any associated resources. * This function will no-op if this ad slot is currently in the process of
extensions/amp-a4a/0.1/amp-a4a.js:1523
↓ 3 callers
Function
determineBuildTargets
* Returns the set of build targets affected by a PR after making sure they are * valid. Used to determine which checks to perform / tests to run duri
build-system/pr-check/build-targets.js:333
↓ 3 callers
Function
devAssertNumber
(shouldBeNumber, opt_message)
src/core/assert/dev.js:132
↓ 3 callers
Method
disable
@public
extensions/amp-video-docking/0.1/controls.js:219
↓ 3 callers
Function
disableMaskingUntilClear
* When the user clears the input, reapply the * inputmask behavior. * @param {!Element} input
third_party/inputmask/inputmask.date.extensions.js:348
↓ 3 callers
Method
discardCurrentAd
* Called when ad has failed or been placed and we should move to next ad.
extensions/amp-story-auto-ads/0.1/story-ad-page-manager.js:90
↓ 3 callers
Method
disconnect
@override
src/inabox/inabox-viewport.js:795
↓ 3 callers
Method
dismiss_
* Dismisses the sidebar. * @param {boolean} skipAnimation Whether sidebar should close immediately, * skipping animation. * @param {!ActionT
extensions/amp-sidebar/0.1/amp-sidebar.js:561
↓ 3 callers
Function
dismount
* Dispatches a dismount event for the given node and children. * * @param {Node} node - the node to dismount. * @return {node}
third_party/set-dom/set-dom.js:287
↓ 3 callers
Function
dismount
* Dispatches a dismount event for the given node and children. * * @param {Node} node - the node to dismount. * @return {node}
third_party/set-dom/original.js:281
↓ 3 callers
Function
dispatchActiveProductData
()
extensions/amp-story-shopping/0.1/test/test-amp-story-shopping-attachment.js:155
↓ 3 callers
Function
dispatchCustom
(element, eventType)
test/unit/test-video-analytics-percentage-tracker.js:51
↓ 3 callers
Method
dispatchEventForTesting_
* @param {string} name * @private
extensions/amp-bind/0.1/bind-impl.js:1762
↓ 3 callers
Function
dispatchInputEvent
(element)
extensions/amp-form/0.1/test/test-form-dirtiness.js:44
↓ 3 callers
Method
displayUserInput_
* Displays the user's partial input in the input field. * @private
extensions/amp-autocomplete/0.1/amp-autocomplete.js:1249
↓ 3 callers
Function
dn
(e,t,n)
examples/amp-script/vue-todomvc.js:7
↓ 3 callers
Function
dn
(n)
third_party/d3/d3.js:1
↓ 3 callers
Method
doXhr_
* Send a request to a form endpoint. * @param {string} url * @param {string} method * @param {!{[key: string]: string}=} opt_extraFields *
extensions/amp-form/0.1/amp-form.js:949
↓ 3 callers
Method
drainText_
* Drains the response and returns the text. * @return {!Promise<string>} * @private
src/polyfills/fetch.js:152
↓ 3 callers
Method
drainText_
* Drains the response and returns the text. * @return {!Promise<string>} * @private
third_party/subscriptions-project/swg.js:13646
↓ 3 callers
Method
eachChildElement_
* Iterates over the child elements from first to last and invokes the * callback with the current child element passed in as the first argument.
extensions/amp-live-list/0.1/amp-live-list.js:869
↓ 3 callers
Method
el
* Create an element with attributes and optional children. * @param {string} elementName * @param {!JsonObject} attrs * @param {Array<Element
extensions/amp-access-scroll/0.1/scroll-component.js:49
↓ 3 callers
Function
element
* @param {string} src * @return {!Element}
test/unit/test-batched-json.js:26
↓ 3 callers
Function
elementExtractor
* @param {string} tagName * @param {string} type * @return {RegExp}
build-system/server/app.js:1130
↓ 3 callers
Method
emit_
* @param {boolean} first * @param {boolean} last * @param {?Event} event * @private
src/gesture-recognizers.js:353
↓ 3 callers
Method
emit_
* @param {boolean} first * @param {boolean} last * @param {?Event} event * @private
src/gesture-recognizers.js:592
↓ 3 callers
Method
emit_
* @param {boolean} first * @param {boolean} last * @param {?Event} event * @private
src/gesture-recognizers.js:854
↓ 3 callers
Method
enableScroll_
* Disables scrolling on the document * @private
extensions/amp-consent/0.1/consent-ui.js:836
↓ 3 callers
Method
enablesThis
* @param {string=} source * @return {boolean}
third_party/subscriptions-project/swg.js:4364
↓ 3 callers
Method
enablesThisWithGoogleMetering
* Returns true if the current article is unlocked by a * Google metering entitlement. These entitlements may come * from Google News Intiative's
third_party/subscriptions-project/swg.js:4338
↓ 3 callers
Function
encodeIfExists
(unescapedPart)
third_party/caja/html-sanitizer.js:83
↓ 3 callers
Method
endToday
(offset?: number)
extensions/amp-date-picker/1.0/types.ts:65
↓ 3 callers
Method
ensureInitialized_
* @return {!Promise} * @private
extensions/amp-analytics/0.1/amp-analytics.js:204
↓ 3 callers
Method
ensureLoaded
@override
src/builtins/amp-img/amp-img.js:346
↓ 3 callers
Method
ensureMeasured
* Yields when the resource has been measured. * @return {!Promise}
src/service/resource.js:489
↓ 3 callers
Function
envDir
(env)
build-system/tasks/storybook/index.js:28
↓ 3 callers
Function
equalsConstructorPrototype
(t)
third_party/react-dates/bundle.js:1
↓ 3 callers
Method
errorToString_
* @param {*} err !Error most of time, string sometimes, * rarely. * @return {string} * @private
extensions/amp-viewer-integration/0.1/messaging/messaging.js:480
↓ 3 callers
Function
escapeHtml
(text)
src/core/dom/index.js:369
↓ 3 callers
Function
escapeRegExp
(string)
src/bento/third_party/mustache/mustache.js:28
↓ 3 callers
Function
escapeRegExp
(string)
third_party/mustache/mustache.js:27
↓ 3 callers
Function
escapeValue
(value)
build-system/babel-plugins/babel-plugin-transform-stringish-literals/index.js:11
↓ 3 callers
Method
evaluate_
* Reevaluates all expressions and returns a map of expressions to results. * @return {!Promise<!{[key: string]: BindExpressionResultDef}>} * @pr
extensions/amp-bind/0.1/bind-impl.js:1050
↓ 3 callers
Function
execScriptAsync
* Executes the provided shell script in an asynchronous process. Special-cases * the AMP task runner so that it is correctly spawned on all platforms
build-system/common/exec.js:35
↓ 3 callers
Function
execute
* @param {HTMLSlotElement} slot * @param {function(Element|Element[]):void} action * @param {boolean} schedule
src/preact/slot.js:139
↓ 3 callers
Method
execute
* Triggers execution of the method on a target/method. * @param {!Element} target * @param {string} method * @param {?JsonObject} args * @
src/service/action-impl.js:428
↓ 3 callers
Function
executeLayoutCallbackTest
* @param {boolean} isValidCreative * @param {boolean} opt_failAmpRender
extensions/amp-a4a/0.1/test/test-amp-a4a.js:1928
↓ 3 callers
Method
expand
* @param {string|undefined} section
src/bento/components/bento-accordion/1.0/component.type.js:114
↓ 3 callers
Function
expandLayoutRect
(rect, dw, dh)
src/core/dom/layout/rect.js:205
↓ 3 callers
Function
expectAsyncFontSize
(element, value)
extensions/amp-fit-text/1.0/test/test-component.js:21
↓ 3 callers
Function
expectCheckboxToHaveCheckedStateFalse
(element)
test/unit/test-standard-actions.js:79
↓ 3 callers
Function
expectCheckboxToHaveCheckedStateTrue
(element)
test/unit/test-standard-actions.js:74
↓ 3 callers
Function
expectElementToDropClass
(element, className)
test/unit/test-standard-actions.js:69
↓ 3 callers
Function
expectElementToHaveClass
(element, className)
test/unit/test-standard-actions.js:64
↓ 3 callers
Function
expectGetAmpAdRenderOutsideViewportThrow
(loadingStrategy)
extensions/amp-ad/0.1/test/test-concurrent-load.js:53
↓ 3 callers
Function
expectHyperlinkToBe
(callTrackingEl, href, textContent)
extensions/amp-call-tracking/0.1/test/test-amp-call-tracking.js:66
↓ 3 callers
Function
expectLockedRender
()
extensions/amp-list/0.1/test/test-amp-list.js:241
↓ 3 callers
Function
expectNoContent
(win, done)
test/integration/test-3p-nameframe.js:60
↓ 3 callers
Function
expectToggleDisplay
(el)
test/integration/test-toggle-display.js:23
↓ 3 callers
Function
expectedKey
(type)
extensions/amp-fx-collection/0.1/test/test-fx-type.js:23
↓ 3 callers
Function
extensionScriptsInNode
(head)
src/service/extension-script.js:244
↓ 3 callers
Function
extractHost
* @param {string} url * @return {string} hostname portion of url * @visibleForTesting
extensions/amp-ad-network-valueimpression-impl/0.1/amp-ad-network-valueimpression-impl.js:603
↓ 3 callers
Method
extractSize
@override
extensions/amp-ad-network-adsense-impl/0.1/amp-ad-network-adsense-impl.js:463
↓ 3 callers
Function
extractTags
(ampdoc, element)
extensions/amp-apester-media/0.1/utils.js:137
↓ 3 callers
Function
extractTextContent
(text)
extensions/amp-story/1.0/semantic-render.js:89
↓ 3 callers
Function
factory
(element)
third_party/inputmask/index.js:10
↓ 3 callers
Method
fade_
* If no transition image is applicable, fade the lightbox in and out. * @param {boolean} fadeIn Whether the lighbox is fading in or out. * @retu
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:991
↓ 3 callers
Function
feOrigin
* @return {string}
third_party/subscriptions-project/swg.js:5544
↓ 3 callers
Method
fetch
@override
extensions/amp-subscriptions-google/0.1/amp-subscriptions-google.js:1050
↓ 3 callers
Method
fetchAmpCors_
* Performs the final initialization and requests the fetch. It does two * main things: * - It adds "__amp_source_origin" URL parameter with sour
src/service/xhr-impl.js:91
↓ 3 callers
Method
fetchAndQueuePages_
* Add the provided page metadata into the queue of * pages to fetch then fetches again * @param {!Array<!./page.PageMeta>} pages * @return {!
extensions/amp-next-page/1.0/service.js:866
↓ 3 callers
Method
fetchAndUpdate_
* @param {boolean} isInit * @param {boolean=} opt_refresh * @return {!Promise} * @private
extensions/amp-bind/0.1/amp-state.js:197
↓ 3 callers
Method
fetchCredentialedJson
* @param {string} unusedUrl * @return {!Promise<!Object>}
third_party/subscriptions-project/swg.js:13739
↓ 3 callers
Function
fillTemplate
* Fill out a template with some common variables. * @param {string} template * @param {string} url * @param {object} query * @param {string=} body
build-system/server/routes/a4a-envelopes.js:146
↓ 3 callers
Function
findCreatedByRegex
(regex)
build-system/tasks/make-extension/index.js:271
↓ 3 callers
Function
findLocalizedString
* Gets the string matching the specified localized string ID in the language * specified. * @param {!{[key: string]: !LocalizedStringBundleDef}} loc
src/service/localization/index.js:34
↓ 3 callers
Function
findObserverByContainer
* @param {!Array<!ObserverDef>} observers * @param {!Element} container * @return {number}
src/utils/display-observer.js:476
↓ 3 callers
Function
findProperty
(properties, name)
build-system/compile/json-schema/index.js:182
↓ 3 callers
Method
finish
Force-finishes all animations.
extensions/amp-story/1.0/animation.js:375
↓ 3 callers
Method
finish_
@private
extensions/amp-animation/0.1/amp-animation.js:430
↓ 3 callers
Function
fire
* @param {T[]} args
src/core/types/function/index.js:52
↓ 3 callers
Method
fireFluidDelayedImpression
* Fires the fluid delayed impression, if the URL is available.
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:1669
↓ 3 callers
Method
fireMove_
@private
src/motion.js:254
↓ 3 callers
Method
fireSelectEvent_
* Triggers a 'select' event with two data params: * 'targetOption' - option value of the selected or deselected element. * 'selectedOptions' - a
extensions/amp-selector/0.1/amp-selector.js:444
↓ 3 callers
Method
firstDateAfter
* Gets the first date in the date list after the given date. * @param {!moment|string} momentOrString * @return {!moment}
extensions/amp-date-picker/0.1/dates-list.js:56
↓ 3 callers
Method
flushLayoutShiftScore_
* Records the normalized CLS score, following the latest CWV standard. * See https://web.dev/evolving-cls/
src/service/performance-impl.js:627
↓ 3 callers
Method
forwardEvents
* Utility method that forwards the given list of non-bubbling events * from the given element to this element as custom events with the same name.
src/base-element.js:751
↓ 3 callers
Method
freeXOriginIframe
* Cleans up the listeners on the cross domain ad iframe and frees the * iframe resource. * @param {boolean=} opt_keep
extensions/amp-ad/0.1/amp-ad-xorigin-iframe-handler.js:390
↓ 3 callers
Method
freezeVar
* Freeze special variable name so that they don't get expanded. * For example ${extraUrlParams} * @param {string} str
extensions/amp-analytics/0.1/variables.js:71
← previous
next →
4,101–4,200 of 18,703, ranked by callers