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
createPages
* @param {!Element} container * @param {number} count * @param {Array<string>=} opt_ids * @return {!Array<!Element>}
extensions/amp-story/1.0/test/test-full-bleed-animations.js:75
↓ 1 callers
Method
createPaginationDot_
* @param {number} index * @return {!Element} * @private
extensions/amp-inline-gallery/0.1/amp-inline-gallery-pagination.js:119
↓ 1 callers
Method
createPair_
* @private
third_party/subscriptions-project/swg.js:18249
↓ 1 callers
Function
createParseAttr
(name, parse)
src/preact/parse-props.js:330
↓ 1 callers
Function
createPassedFile
(name)
validator/js/gulpjs/test/validate.js:166
↓ 1 callers
Method
createPerformanceObserver_
* Uses the Long Task API to create an observer for when 3p vendor frames * take more than 50ms of continuous CPU time. * Currently the only acti
extensions/amp-analytics/0.1/iframe-transport.js:185
↓ 1 callers
Method
createPlaceholderCallback
* Subclasses can override this method to create a dynamic placeholder * element and return it to be appended to the element. This will only * be
src/base-element.js:502
↓ 1 callers
Method
createPlaceholderCallback
@override
extensions/amp-slikeplayer/0.1/amp-slikeplayer.js:157
↓ 1 callers
Method
createPlaceholderElementId_
* @return {string} A unique ID. * @private
extensions/amp-story/1.0/media-pool.js:311
↓ 1 callers
Method
createPlaceholder_
* Create the default placeholder * @return {!Element}
extensions/amp-consent/0.1/consent-ui.js:538
↓ 1 callers
Method
createPlatform
* @param {!JsonObject} platformConfig * @param {!../../amp-subscriptions/0.1/service-adapter.ServiceAdapter} serviceAdapter * @return {!GoogleSu
extensions/amp-subscriptions-google/0.1/amp-subscriptions-google.js:85
↓ 1 callers
Method
createPlaybuzzLoader_
@return {!Element} @private
extensions/amp-playbuzz/0.1/amp-playbuzz.js:211
↓ 1 callers
Function
createPositionGroup
(slider)
extensions/amp-image-slider/0.1/test/integration/test-amp-image-slider.js:935
↓ 1 callers
Function
createPositionNode
(value)
extensions/amp-animation/0.1/parsers/css-expr-ast.js:690
↓ 1 callers
Method
createPosterForAndroidBug_
* Android will show a blank frame between the poster and the first frame in * some cases. In these cases, the video element is transparent. By sett
extensions/amp-video/0.1/amp-video.js:850
↓ 1 callers
Method
createPrevArrow_
* @return {!Element} * @private
extensions/amp-stream-gallery/0.1/amp-stream-gallery.js:432
↓ 1 callers
Method
createPrevArrow_
* @return {!Element} * @private
extensions/amp-base-carousel/0.1/amp-base-carousel.js:343
↓ 1 callers
Method
createPriceAndButton_
* Create elements for article price and unlock button * @private
extensions/amp-access-fewcents/0.1/fewcents-impl.js:375
↓ 1 callers
Method
createPrice_
* @param {!{[key: string]: number}} price * @return {!Element} * @private
extensions/amp-access-laterpay/0.2/laterpay-impl.js:517
↓ 1 callers
Method
createPrice_
* @param {!{[key: string]: number}} price * @return {!Element} * @private
extensions/amp-access-laterpay/0.1/laterpay-impl.js:455
↓ 1 callers
Method
createPromptIframe_
* Create the iframe if promptUISrc is valid * @param {string} promptUISrc * @return {!Element}
extensions/amp-consent/0.1/consent-ui.js:472
↓ 1 callers
Method
createRadioControl_
* @param {!JsonObject} option Shape: PurchaseOption_0_2_Def * @return {!Element} * @private
extensions/amp-access-laterpay/0.2/laterpay-impl.js:495
↓ 1 callers
Method
createRadioControl_
* @param {!JsonObject} option Shape: PurchaseOption_0_1_Def * @return {!Element} * @private
extensions/amp-access-laterpay/0.1/laterpay-impl.js:433
↓ 1 callers
Function
createReadOnlyRect
* Creates rectangle with an interface of the DOMRectReadOnly. * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly * * @param {DOM
third_party/resize-observer-polyfill/ResizeObserver.js:344
↓ 1 callers
Function
createReadOnlyRect
* Creates rectangle with an interface of the DOMRectReadOnly. * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly * * @param {DOM
third_party/resize-observer-polyfill/ResizeObserver.install.js:343
↓ 1 callers
Method
createReadyPromise_
* @return {!Promise} * @private
extensions/amp-video-iframe/0.1/amp-video-iframe.js:253
↓ 1 callers
Method
createRecaptchaFrame_
* Function to create our bootstrap iframe. * * @return {!Promise<!Element>} * @private
extensions/amp-recaptcha-input/0.1/amp-recaptcha-service.js:218
↓ 1 callers
Method
createRefRowElement_
* Create reference elements on paywall * @private
extensions/amp-access-fewcents/0.1/fewcents-impl.js:428
↓ 1 callers
Method
createRelease
* Create a GitHub release * @param {string} tag * @param {string} commit * @param {string} body * @param {boolean} prerelease * @return
build-system/release-tagger/utils.js:95
↓ 1 callers
Function
createRepeatedRunner
* Creates a repeated version of a top-level describes runner.
testing/describes.js:269
↓ 1 callers
Method
createReportReadyPromiseForDocumentHidden_
* Returns a Promise indicating that we're ready to report the analytics, * in the case of reportWhen: documentHidden * @return {!Promise} * @
extensions/amp-analytics/0.1/events.js:1672
↓ 1 callers
Method
createResultEl_
* Create and store an element that will show the results * for an interactive component. * * @param {!./amp-story-interactive-results.Interac
extensions/amp-story-interactive/0.1/amp-story-interactive-results-detailed.js:104
↓ 1 callers
Function
createScheduledIssue
* @param {string} token * @param {string} repo * @param {TemplateDef} template * @param {Array<IssueWithSessionDateDef>} existing * @return {Promi
build-system/common/update-session-issues/index.js:513
↓ 1 callers
Method
createScreenReaderCloseButton_
* Creates an "invisible" close button for screen readers * @return {!Element} The close button. * @private
extensions/amp-lightbox/0.1/amp-lightbox.js:686
↓ 1 callers
Function
createScript
(global, id)
ads/vendors/vlyby.js:41
↓ 1 callers
Function
createSecureDocSkeleton
(url, sanitizedHeadElements, body)
extensions/amp-a4a/0.1/secure-frame.js:38
↓ 1 callers
Function
createSecureFrame
(win, title, height, width)
extensions/amp-a4a/0.1/secure-frame.js:68
↓ 1 callers
Function
createSelenium
* Configure and launch a Selenium instance * @param {BrowserNameDef} browserName * @param {!SeleniumConfigDef=} args * @param {string=} deviceName
build-system/tasks/e2e/describes-e2e.js:97
↓ 1 callers
Function
createShadowRoot
(element, styleText, content)
extensions/amp-truncate-text/0.1/shadow-utils.js:10
↓ 1 callers
Function
createShadowRootPolyfill
* Shadow root polyfill. * @param {!Element} hostElement * @return {!ShadowRoot}
src/shadow-embed.js:102
↓ 1 callers
Function
createShallowVNodeCopy
* Copies an Element into a VNode representation. * (Interpretation into VNode is not recursive, so it excludes children.) * @param {Element} element
src/preact/parse-props.js:287
↓ 1 callers
Function
createSingleDatePicker
()
extensions/amp-date-picker/0.1/single-date-picker.js:119
↓ 1 callers
Function
createSingleDatePickerBase
* Create a SingleDatePicker React component * @return {typeof React.Component} A single date picker component class
extensions/amp-date-picker/0.1/single-date-picker.js:10
↓ 1 callers
Function
createSlot
* @param {string} slotId * @param {!Window} global
ads/vendors/pubmine.js:52
↓ 1 callers
Method
createSourceElement
* Creates a HTMLSourceElement from the element src attribute. * @param {!Window} win * @param {!Element} element * @return {!Element}
extensions/amp-story/1.0/sources.js:140
↓ 1 callers
Function
createSpinnerDom
* @param {function(!Array<string>):!Element} html * @return {!Element}
extensions/amp-loader/0.1/amp-loader.js:47
↓ 1 callers
Function
createStoryAdPage
(id)
extensions/amp-story/1.0/test/test-amp-story.js:89
↓ 1 callers
Method
createStubs_
(sandbox)
extensions/amp-pan-zoom/1.0/test/test-component.js:611
↓ 1 callers
Function
createSubtree
(id, children, depth)
test/unit/core/context/test-node-values.js:45
↓ 1 callers
Function
createSubtree
(id, children, depth)
test/unit/core/context/test-node-subscribers.js:42
↓ 1 callers
Function
createSubtree
(id, children, depth)
test/unit/core/context/test-node-discover.js:17
↓ 1 callers
Function
createTabDebugElement
(win, storyUrl)
extensions/amp-story-dev-tools/0.1/amp-story-dev-tools-tab-debug.js:17
↓ 1 callers
Function
createTabPreviewElement
(win, storyUrl, devices)
extensions/amp-story-dev-tools/0.1/amp-story-dev-tools-tab-preview.js:23
↓ 1 callers
Function
createTag
* Create GitHub tag. * * @param {Octokit} octokit * @param {string} sha * @param {string} ampVersion * @return {Promise<void>}
build-system/release-workflows/cut-nightly.js:147
↓ 1 callers
Method
createTask
* Creates a function that will call {@link run} method. * @param {!VsyncTaskSpecDef} task * @return {function(!VsyncStateDef=)}
src/service/vsync-impl.js:202
↓ 1 callers
Function
createTemplate
* Create HTML template to be populated later * @param {string} embedId The Unique Identifier of this particular Embed * @return {Element} HTML templ
ads/vendors/insticator.js:25
↓ 1 callers
Function
createTemplate
* Create a template element * @param {string} body
extensions/amp-date-picker/0.1/test/test-amp-date-picker.js:69
↓ 1 callers
Method
createThumbnailElement_
* Create an element inside gallery from the thumbnail info from manager. * @param {!LightboxThumbnailDataDef} thumbnailObj * @return {!Element}
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:1362
↓ 1 callers
Method
createThumbnailForElement_
* @param {!Element} srcElement * @param {number} index * @return {!Element}
extensions/amp-inline-gallery/0.1/amp-inline-gallery-thumbnails.js:89
↓ 1 callers
Function
createTitle
({datetimeUtc, region})
build-system/common/update-session-issues/template/design-review.js:20
↓ 1 callers
Method
createUniqueAriaDescId_
* @return {string} A unique ID. * @private
extensions/amp-form/0.1/form-validators.js:289
↓ 1 callers
Function
createUniqueId
()
extensions/amp-analytics/0.1/test/test-iframe-transport-client.js:13
↓ 1 callers
Method
createUniqueId_
* Create a unique value to differentiate messages from a particular * creative to the cross-domain iframe, or to identify the iframe itself. * @
extensions/amp-analytics/0.1/iframe-transport.js:262
↓ 1 callers
Function
createVariableDeclaration
* @param {BabelPath} path * @return {ReturnType<t['variableDeclaration']>}
build-system/babel-plugins/babel-plugin-transform-function-declarations/index.js:115
↓ 1 callers
Function
createVariantDescribe
* @param {BrowserNameDef} browserName
build-system/tasks/e2e/describes-e2e.js:436
↓ 1 callers
Function
createViewportRect
(viewport)
extensions/amp-video-docking/0.1/viewport-rect.js:20
↓ 1 callers
Function
createVisibilityManager
* @param {!Node} rootNode * @return {!VisibilityManager}
extensions/amp-analytics/0.1/visibility-manager.js:61
↓ 1 callers
Function
createWidgetContainer
* Add a container for the recomAD widget, * which will be discovered by the script automatically. * * @param {Element} container * @param {string}
ads/vendors/recomad.js:15
↓ 1 callers
Function
createXhrRequest
* @param {string} method * @param {string} url * @return {!XMLHttpRequest}
src/polyfills/fetch.js:93
↓ 1 callers
Function
createXhrRequest
* @param {string} method * @param {string} url * @return {!XMLHttpRequest} * @private
third_party/subscriptions-project/swg.js:13563
↓ 1 callers
Function
createXpathIterator
* Create an iterator from an XPathResult instance. * @param {!XPathResult} xpathResult * @return {!Iterable<!HTMLElement>}
build-system/tasks/e2e/driver/query-xpath.js:129
↓ 1 callers
Method
createZoomButton_
* Creates zoom buttoms * @private
extensions/amp-pan-zoom/0.1/amp-pan-zoom.js:261
↓ 1 callers
Function
cssEscape
(value)
third_party/css-escape/css-escape.js:48
↓ 1 callers
Method
cssSize
* @param {string|number} size * @return {string}
extensions/amp-access-scroll/0.1/scroll-component.js:143
↓ 1 callers
Function
ctor
()
testing/describes.js:957
↓ 1 callers
Function
cu
(n,t)
third_party/d3/d3.js:2
↓ 1 callers
Method
currentAdInserted_
*
extensions/amp-story-auto-ads/0.1/story-ad-page-manager.js:218
↓ 1 callers
Function
currentSource
* Returns the currently active source element of the video. * @param {!Element} video * @return {!HTMLSourceElement}
extensions/amp-video/0.1/flexible-bitrate.js:328
↓ 1 callers
Method
currentStoryPromise_
* Returns a promise that makes sure that the current story gets loaded first * before any others. When the given story is not the current story, it
src/amp-story-player/amp-story-player-impl.js:1197
↓ 1 callers
Function
cutNightlyBranch
* Perform nightly branch cut. * * @return {Promise<void>}
build-system/release-workflows/cut-nightly.js:186
↓ 1 callers
Function
dashCase
(camelCase)
build-system/babel-plugins/babel-plugin-jsx-style-object/index.js:70
↓ 1 callers
Function
dashToPascalCase
* Convert dash-case-name to PascalCaseName. * @param {string} name * @return {string}
build-system/tasks/make-extension/index.js:51
↓ 1 callers
Function
dateDaysAgo
* @param {number=} daysAgo * @return {!Date} "Rounded up" to the following day at 00:00:00
build-system/tasks/sweep-experiments/index.js:197
↓ 1 callers
Function
datesListContains
* @param {!./dates-list.DatesList} list * @param {!moment} day * @return {boolean}
extensions/amp-date-picker/0.1/date-picker-common.js:74
↓ 1 callers
Method
deactivatePage_
* Sets a page inactive by disabling all animations and resetting all * animation state (such as goto counters) on all elements within the page.
extensions/amp-gwd-animation/0.1/amp-gwd-animation-impl.js:262
↓ 1 callers
Method
deallocateMediaElement_
* Deallocates and returns the media element of the specified type furthest * from the current position in the document. * @param {!MediaType_Enu
extensions/amp-story/1.0/media-pool.js:407
↓ 1 callers
Function
debounce
(n,i,t)
third_party/react-dates/bundle.js:1
↓ 1 callers
Function
debugLog
(var_args)
third_party/subscriptions-project/swg-gaa.js:230
↓ 1 callers
Function
debugLog
(var_args)
third_party/subscriptions-project/config.js:346
↓ 1 callers
Method
debugPrintElement_
* Print out the element's bound attributes and respective expression values. * @param {!Element} element * @private
extensions/amp-bind/0.1/bind-impl.js:1702
↓ 1 callers
Function
declareExtension
* @param {string} name * @param {string|!Array<string>} version E.g. 0.1 or [0.1, 0.2] * @param {!ExtensionOptionDef|undefined} options extension op
build-system/tasks/extension-helpers.js:119
↓ 1 callers
Function
decode
* @param {string} value * @return {string}
extensions/amp-analytics/0.1/linker.js:200
↓ 1 callers
Method
decodeInternal_
* @param {string} encodedToken * @return {!JwtTokenInternalDef} * @private
third_party/subscriptions-project/swg.js:4184
↓ 1 callers
Method
decodeInternal_
* @param {string} encodedToken * @return {!JwtTokenInternalDef} * @private
third_party/subscriptions-project/swg-gaa.js:483
↓ 1 callers
Function
decodePercyTokenForCi
* Decode the write-only Percy token during CI builds.
build-system/tasks/visual-diff/index.js:94
↓ 1 callers
Function
decodeValue
(v)
third_party/caja/html-sanitizer.js:2058
↓ 1 callers
Method
decorateUI
* Decorate the DomNode according to your platform * @param {!Element} unusedElement * @param {string} unusedAction * @param {?JsonObject} unu
extensions/amp-subscriptions/0.1/subscription-platform.js:96
↓ 1 callers
Function
decryptAesGcm
(key, text)
third_party/subscriptions-project/aes_gcm.js:25
↓ 1 callers
Function
decryptDocumentKey
* @param {string} encryptedDocumentKey * @return {?string}
build-system/server/app.js:1568
↓ 1 callers
Function
dedupV0_
* Removes the V0 directory from all RTVs except for the Stable (01-prefixed) channel, * * @param {!Array<string>} rtvPrefixes list of 2-digit RTV pr
build-system/tasks/release/index.js:392
← previous
next →
8,101–8,200 of 18,703, ranked by callers