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
↓ 1 callers
Function
buildContainerTemplate
(element)
extensions/amp-story-dev-tools/0.1/amp-story-dev-tools.js:37
↓ 1 callers
Method
buildControls_
* Builds the overlay controls including the close, gallery toggle and next/ * prev slide buttons. * @return {!Element} The container for the con
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:457
↓ 1 callers
Method
buildCopySuccessfulToast_
* @param {string} url * @param {string} localizedString * @return {!Element}
extensions/amp-story-share-menu/0.1/amp-story-share-menu.js:404
↓ 1 callers
Method
buildDebugContent_
* @private * @return {!Promise}
extensions/amp-story-dev-tools/0.1/amp-story-dev-tools-tab-debug.js:145
↓ 1 callers
Method
buildDebugTitle_
* * @private * @param {number} errorCount * @return {!Element}
extensions/amp-story-dev-tools/0.1/amp-story-dev-tools-tab-debug.js:162
↓ 1 callers
Method
buildDefaultRecBox_
* @return {!Element} * @private
extensions/amp-next-page/1.0/service.js:1039
↓ 1 callers
Method
buildDefaultSeparator_
* @return {!Element} * @private
extensions/amp-next-page/1.0/service.js:976
↓ 1 callers
Method
buildDescriptionBox_
* Builds the description box, containing the current slide's caption, if * any. * @return {!Element} The description box element. * @private
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:436
↓ 1 callers
Method
buildDeviceLayout_
* Creates a device layout for preview * @private * @param {!DeviceInfo} device * @return {!Element}
extensions/amp-story-dev-tools/0.1/amp-story-dev-tools-tab-preview.js:482
↓ 1 callers
Function
buildDeviceTemplate
(element)
extensions/amp-story-dev-tools/0.1/amp-story-dev-tools-tab-preview.js:35
↓ 1 callers
Method
buildDialog_
* Quick share template, used as a fallback if native sharing is not supported. * @param {!Element} child * @return {!Element}
extensions/amp-story-share-menu/0.1/amp-story-share-menu.js:198
↓ 1 callers
Function
buildDisclaimerLayout
* Creates a disclaimer icon and dialog. * @param {!Element} element * @return {!Element}
extensions/amp-story-interactive/0.1/interactive-disclaimer.js:25
↓ 1 callers
Function
buildErrorMessage_
* @param {string|undefined} message * @param {*|undefined} error * @return {string}
src/error-reporting.js:463
↓ 1 callers
Function
buildExperiments
* Build AMP experiments.js. * @return {Promise<void>}
build-system/tasks/dist.js:172
↓ 1 callers
Method
buildExpr_
* @param {!Array<string>} keys * @param {!{[key: string]: boolean}=} opt_allowlist Optional allowlist of names * that can be substituted. *
src/service/variable-source.js:280
↓ 1 callers
Function
buildExtensionCss
* @param {string} extDir * @param {string} name * @param {string} version * @return {!Promise}
build-system/tasks/extension-helpers.js:462
↓ 1 callers
Function
buildExtensionJs
* Build the JavaScript for the extension specified * * @param {string} dir Path to the extension's directory * @param {string} name Name of the ext
build-system/tasks/extension-helpers.js:549
↓ 1 callers
Method
buildFallbackMenu_
@private
extensions/amp-story/1.0/amp-story-share.js:102
↓ 1 callers
Function
buildGtagConfig
(gtagId)
extensions/amp-story-auto-analytics/0.1/auto-analytics-configs.js:21
↓ 1 callers
Function
buildHelpButtonTemplate
(element)
extensions/amp-story-dev-tools/0.1/amp-story-dev-tools-tab-preview.js:105
↓ 1 callers
Method
buildHelpButton_
* Builds the add device button * @private * @return {!Element}
extensions/amp-story-dev-tools/0.1/amp-story-dev-tools-tab-preview.js:470
↓ 1 callers
Function
buildHelpDialogTemplate
(element)
extensions/amp-story-dev-tools/0.1/amp-story-dev-tools-tab-preview.js:124
↓ 1 callers
Method
buildHint_
* Build hint * @private
extensions/amp-image-slider/0.1/amp-image-slider.js:251
↓ 1 callers
Method
buildIframe_
* @param {string} src * @return {!Promise} * @private
extensions/amp-vimeo/0.1/amp-vimeo.js:111
↓ 1 callers
Method
buildImageWrappers_
* Build images * @private
extensions/amp-image-slider/0.1/amp-image-slider.js:202
↓ 1 callers
Function
buildInteractiveDisclaimer
(interactive, attrs = {})
extensions/amp-story-interactive/0.1/interactive-disclaimer.js:63
↓ 1 callers
Function
buildInteractiveDisclaimerIcon
(interactive)
extensions/amp-story-interactive/0.1/interactive-disclaimer.js:108
↓ 1 callers
Function
buildKeyframes
* @param {!CSSKeyframesRule} keyframesRule * @return {!../web-animation-types.WebKeyframesDef}
extensions/amp-animation/0.1/parsers/keyframes-extractor.js:121
↓ 1 callers
Method
buildLayout_
* @private
extensions/amp-story-dev-tools/0.1/amp-story-dev-tools.js:140
↓ 1 callers
Method
buildLightbox_
* Lazily builds the image-lightbox DOM on the first open. * @private
extensions/amp-image-lightbox/0.1/amp-image-lightbox.js:789
↓ 1 callers
Method
buildLoadingIndicator_
* Populates the loading indivicator. The populated element * can be added in any view, when required. * @private
third_party/subscriptions-project/swg.js:10546
↓ 1 callers
Function
buildLogMessageTemplate
(element)
extensions/amp-story-dev-tools/0.1/amp-story-dev-tools-tab-debug.js:56
↓ 1 callers
Function
buildLoginDone
* Build amp-login-done-${version}.js file. * * @param {string} version * @return {!Promise}
build-system/tasks/dist.js:192
↓ 1 callers
Function
buildMessageSprintf
* Builds a message template using printf syntax from a starting node. * @param {!Node} node * @param {!Array<!Node>} interpolationArgs * @ret
build-system/babel-plugins/babel-plugin-transform-log-methods/index.js:84
↓ 1 callers
Function
buildOptionTemplate
(option)
extensions/amp-story-interactive/0.1/amp-story-interactive-img-quiz.js:31
↓ 1 callers
Function
buildOptionTemplate
(option)
extensions/amp-story-interactive/0.1/amp-story-interactive-img-poll.js:19
↓ 1 callers
Function
buildOptionTemplate
(element)
extensions/amp-story-interactive/0.1/amp-story-interactive-binary-poll.js:52
↓ 1 callers
Function
buildOptionTemplate
(option)
extensions/amp-story-interactive/0.1/amp-story-interactive-poll.js:36
↓ 1 callers
Function
buildOptionTemplate
(option)
extensions/amp-story-interactive/0.1/amp-story-interactive-quiz.js:39
↓ 1 callers
Method
buildOptionsObject_
* @param {string} url * @param {boolean} shouldRefresh true to force refresh of browser cache. * @return {!BatchFetchOptionsDef} options object
extensions/amp-render/1.0/shared/amp-fetch-utils.js:121
↓ 1 callers
Method
buildOverlay_
* Builds all controls (top bar and description) and appends them to the * lightbox container * @private
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:229
↓ 1 callers
Function
buildPageScrollConfig
(pageScroll)
test/unit/test-amp-story-player.js:119
↓ 1 callers
Method
buildPayload_
* @param {!FetchRequestDef} request * @param {?Element|undefined} mustacheTemplate * @param {?SsrTemplateDef=} opt_templates * @param {!Objec
src/ssr-template-helper.js:140
↓ 1 callers
Function
buildPollTemplate
(element)
extensions/amp-story-interactive/0.1/amp-story-interactive-poll.js:20
↓ 1 callers
Method
buildProvidersList_
* Create widget, and load the providers in the config. * @return {!Element}
extensions/amp-story-share-menu/0.1/amp-story-share-menu.js:232
↓ 1 callers
Function
buildQuizTemplate
(element)
extensions/amp-story-interactive/0.1/amp-story-interactive-quiz.js:23
↓ 1 callers
Method
buildReadyResourcesUnsafe_
* @private
src/service/resources-impl.js:408
↓ 1 callers
Function
buildResultsDetailedTemplate
(element)
extensions/amp-story-interactive/0.1/amp-story-interactive-results-detailed.js:25
↓ 1 callers
Function
buildResultsTemplate
(element)
extensions/amp-story-interactive/0.1/amp-story-interactive-results.js:36
↓ 1 callers
Function
buildResultsTopTemplate
(element)
extensions/amp-story-interactive/0.1/amp-story-interactive-results.js:56
↓ 1 callers
Function
buildSandboxedProxyIframe
* Builds and writes the HTML file used for <amp-script> sandboxed mode. * @param {boolean} minify * @return {Promise<void>}
build-system/tasks/extension-helpers.js:614
↓ 1 callers
Function
buildScrollableCarousel
* Builds the DOM necessary for scrollable carousel. * @param {Element} element * @return {{ * container: HTMLDivElement * cells: HTMLElement[]
extensions/amp-carousel/0.1/build-dom.js:149
↓ 1 callers
Method
buildShadow_
* Builds the component when using Shadow DOM.
extensions/amp-truncate-text/0.1/amp-truncate-text.js:147
↓ 1 callers
Method
buildShareProvider_
* @param {{[key: string]: *}|string} provider * @return {Element|null} * @private * TODO(alanorozco): Set story metadata in share config.
extensions/amp-story-share-menu/0.1/amp-story-share-menu.js:269
↓ 1 callers
Function
buildSlideScrollCarousel
* Builds the DOM necessary for slidescroll carousel. * @param {Element} element * @return {{ * slides: Element[] * slidesContainer: HTMLDivEle
extensions/amp-carousel/0.1/build-dom.js:202
↓ 1 callers
Function
buildSliderTemplate
(element)
extensions/amp-story-interactive/0.1/amp-story-interactive-slider.js:22
↓ 1 callers
Method
buildStories_
@private
src/amp-story-player/amp-story-player-impl.js:444
↓ 1 callers
Function
buildStorybook
* @param {StorybookEnv} env
build-system/tasks/storybook/index.js:54
↓ 1 callers
Function
buildSuccessMessageTemplate
(element)
extensions/amp-story-dev-tools/0.1/amp-story-dev-tools-tab-debug.js:28
↓ 1 callers
Method
buildSystemLayer_
* Builds the system layer DOM. * @param {string} initialPageId * @param {boolean} isVisible * @private
extensions/amp-story/1.0/amp-story.js:650
↓ 1 callers
Method
buildTabs_
* @private
extensions/amp-story-dev-tools/0.1/amp-story-dev-tools.js:191
↓ 1 callers
Method
buildToast_
* Builds the content of the iframe. On load, animates the toast.
third_party/subscriptions-project/swg.js:11965
↓ 1 callers
Function
buildTypedefs
(t)
build-system/babel-plugins/babel-plugin-transform-annotation-to-extern/index.js:4
↓ 1 callers
Function
buildUrl
* @param {!Object} data * @return {string}
ads/vendors/dex.js:16
↓ 1 callers
Function
buildUrl
* Generates the url to call for the script content * @param {!Object} data * @return {string}
ads/vendors/myfinance.js:30
↓ 1 callers
Function
buildUrl
* Builds a URL from query parameters, truncating to a maximum length if * necessary. * @param {string} baseUrl scheme, domain, and path for the URL.
extensions/amp-ad-network-valueimpression-impl/0.1/amp-ad-network-valueimpression-impl.js:513
↓ 1 callers
Method
buildUrl_
* @return {string}
extensions/amp-apester-media/0.1/amp-apester-media.js:175
↓ 1 callers
Function
buildVarDeclAndComment
(t, name, comment)
build-system/babel-plugins/babel-plugin-transform-annotation-to-extern/index.js:13
↓ 1 callers
Function
buildWebPushPublisherFiles
* Build amp-web-push publisher files HTML page. * @return {Promise<void>}
build-system/tasks/dist.js:210
↓ 1 callers
Function
buildWrapper
* @param {object} replacements * @return {babel.types.Statement}
build-system/babel-plugins/babel-plugin-nomodule-loader/index.js:32
↓ 1 callers
Method
build_
* Builds the component when not using Shadow DOM.
extensions/amp-truncate-text/0.1/amp-truncate-text.js:102
↓ 1 callers
Function
buildconfettiTemplate
(element)
extensions/amp-story-interactive/0.1/interactive-confetti.js:28
↓ 1 callers
Function
byteLength
(utf8Str)
validator/js/engine/htmlparser.js:135
↓ 1 callers
Function
bytesToString
* Converts a 8-bit bytes array into a string * @param {!Uint8Array} bytes * @return {string}
third_party/subscriptions-project/swg-gaa.js:361
↓ 1 callers
Function
c
()
third_party/wgxpath/wgxpath.js:5
↓ 1 callers
Function
cacheFuncResult
* A helper method that wraps a function and cache its return value. * * @param {!Function} func the function to cache * @return {!Function}
extensions/amp-analytics/0.1/transport.js:354
↓ 1 callers
Function
cacheParam
* @param {string} cacheKey * @return {string} * @package Visible for testing only.
third_party/subscriptions-project/swg.js:5625
↓ 1 callers
Function
calcRecursive
* Whether the parent value is required to calculate the used value. * * @param {IContextProp<T, ?>} prop * @param {T[]|undefined} inputs * @return
src/core/context/values.js:701
↓ 1 callers
Function
calcShadowDomStreamingSupported
* @param {!Window} win * @return {boolean}
src/shadow-embed.js:319
↓ 1 callers
Method
calc_
* The used value calculation algorithm. * * @param {IContextPropUsed<T, ?>} used * @param {boolean} refreshParent * @return {T|undefined}
src/core/context/values.js:556
↓ 1 callers
Function
calculateActualPercentageFrequencyMs
* Calculates the "actual" analytics check frequency by calculating the ideal * frequency and clamping it between MIN and MAX. * @param {number} dura
src/service/video-manager-impl.js:1402
↓ 1 callers
Function
calculateChangeEntry
* Helper function to calculate the IntersectionObserver change entry. * @param {!../layout-rect.LayoutRectDef} element element's rect * @param {?../
src/utils/intersection-observer-3p-host.js:136
↓ 1 callers
Method
calculateDuration_
* @private * @return {number}
extensions/amp-analytics/0.1/events.js:1144
↓ 1 callers
Function
calculateFontSize
* This used to be binary search, but since range is so small just try the 3 * values. If range gets larger, reevaluate. * @param {Element} measurer
extensions/amp-story-auto-ads/0.1/story-ad-button-text-fitter.js:100
↓ 1 callers
Method
calculateIndexOfLastPageToPreview_
* @return {number} The index of the last page that should be shown in * preview mode. * @private
extensions/amp-story/1.0/amp-story.js:2821
↓ 1 callers
Function
calculateLeftJustifiedX
( containerWidth, itemWidth, itemMargin, step )
extensions/amp-video-docking/0.1/math.js:45
↓ 1 callers
Method
calculateOffset_
* Calculates pixel offset and direction to be scrolled by getting current * acceleration and preset limits. * @private * @return {number}
src/amp-story-player/page-scroller.js:155
↓ 1 callers
Method
calculatePlatformWeight_
* Calculate platform weight * @param {!./subscription-platform.SubscriptionPlatform} platform * @return {number} * @private
extensions/amp-subscriptions/0.1/platform-store.js:571
↓ 1 callers
Function
calculateRightJustifiedX
( containerWidth, itemWidth, itemMargin, step )
extensions/amp-video-docking/0.1/math.js:29
↓ 1 callers
Method
calculateUpdates_
* Determines which properties to update based on results of evaluation * of all bound expression strings with the current state. This method * w
extensions/amp-bind/0.1/bind-impl.js:1155
↓ 1 callers
Method
calculateWeightedAverage_
* @private * @param {!Array<!InteractiveOptionType>} responseData * @return {number}
extensions/amp-story-interactive/0.1/amp-story-interactive-slider.js:95
↓ 1 callers
Method
calculateZoom_
* Calculates zoom for translate3d and ensures the number is finite. * @private * @param {number} zoom * @return {number}
extensions/amp-story-panning-media/0.1/amp-story-panning-media.js:352
↓ 1 callers
Function
callCompute
* A substitute for `compute(...deps)`, but faster. * * @param {function(Node, T[], ...DEP):T} compute See `IContextProp.compute()`. * @param {Node}
src/core/context/values.js:725
↓ 1 callers
Function
callEng
(props)
extensions/amp-addthis/0.1/addthis-utils/eng.js:43
↓ 1 callers
Function
callHandler
* Creates a subscriber. * * @param {SubscribeCallback<DEP>} callback * @param {DEP[]} deps * @return {ReturnType<SubscribeCallback<DEP>>} * @temp
src/core/context/subscriber.js:239
↓ 1 callers
Function
callLojson
(props)
extensions/amp-addthis/0.1/addthis-utils/lojson.js:132
↓ 1 callers
Function
callPjson
(props)
extensions/amp-addthis/0.1/addthis-utils/pjson.js:74
↓ 1 callers
Function
callQuerySelector
* @param {CompilerNode} node
build-system/eslint-rules/query-selector.js:9
↓ 1 callers
Function
callRecursiveCompute
* A substitute for `compute(parentValue, ...deps)`, but faster. * * @param {function(Node, T[], ...DEP):T} compute See `IContextProp.compute()`. *
src/core/context/values.js:754
↓ 1 callers
Function
callScopedQuerySelector
* @param {CompilerNode} node
build-system/eslint-rules/query-selector.js:73
← previous
next →
7,701–7,800 of 18,703, ranked by callers