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
Method
createAlreadyPurchasedLink_
* @param {string} href * @return {!Element}
extensions/amp-access-laterpay/0.2/laterpay-impl.js:550
↓ 1 callers
Method
createAlreadyPurchasedLink_
* @param {string} href * @return {!Element}
extensions/amp-access-laterpay/0.1/laterpay-impl.js:489
↓ 1 callers
Method
createAmpEntitlement
* Returns an AMP entitlement based on SwG entitlements. * @param {!Entitlements} swgEntitlements * @return {Entitlement}
extensions/amp-subscriptions-google/0.1/amp-subscriptions-google.js:675
↓ 1 callers
Function
createAmplifiedContainer
* Creates the container where the amplified script will inject the creative. * @param {!Window} global
ads/vendors/amplified.js:48
↓ 1 callers
Method
createAnimationBuilderPromise_
* @return {!Promise<!../../amp-animation/0.1/web-animations.Builder>} * @private
extensions/amp-story/1.0/animation.js:773
↓ 1 callers
Method
createArticleLinks_
* Creates a recommendation unit with links to articles, starting from a given * one. * @param {number} nextPage Index of the next unseen page to
extensions/amp-next-page/0.1/next-page-service.js:363
↓ 1 callers
Function
createBaseCustomElementClass
* Creates a base custom element class. * * @param {!Window} win The window in which to register the custom element. * @param {function(!./service/a
src/custom-element.js:123
↓ 1 callers
Function
createBentoElementClass
* @param {typeof import('./base-element').PreactBaseElement} BaseElement * @param {typeof globalThis} _win * @return {typeof HTMLElement} * @templa
src/preact/bento-ce.js:89
↓ 1 callers
Method
createBinding_
* Creates a binding associated with singular autocomplete or * inline autocomplete depending on the presence of the given element's "inline" attrib
extensions/amp-autocomplete/0.1/amp-autocomplete.js:385
↓ 1 callers
Function
createBody
({calendarUrl, timeUrl, timeUtc})
build-system/common/update-session-issues/template/design-review.js:27
↓ 1 callers
Function
createBrowserDescribe
* Initializes the describe object for all applicable browsers.
build-system/tasks/e2e/describes-e2e.js:404
↓ 1 callers
Method
createBuilder
* @param {!WebAnimationBuilderOptionsDef} options * @return {!Promise<Builder>}
extensions/amp-animation/0.1/web-animation-service.js:26
↓ 1 callers
Method
createBySideLoader_
@return {!Element} @private
extensions/amp-byside-content/0.1/amp-byside-content.js:292
↓ 1 callers
Method
createCarousel_
* Creates a carousel to hold the thumbnails. * TODO(sparhami) This should only create a carousel once and update slides * rather than recreating
extensions/amp-inline-gallery/0.1/amp-inline-gallery-thumbnails.js:210
↓ 1 callers
Method
createClient_
* @param {!PaymentOptions} options * @param {string} googleTransactionId * @param {function(!Promise<!PaymentData>)} handler * @return {!Paym
third_party/subscriptions-project/swg.js:17963
↓ 1 callers
Function
createContainer
* @param {!Window} global * @param {!Object} data * @return {?Node}
3p/beopinion.js:51
↓ 1 callers
Function
createContainer
* @param {!Window} global * @param {!Object} data
ads/vendors/1wo.js:18
↓ 1 callers
Function
createContainer
* @param {!Window} global * @param {!Object} data
ads/vendors/strossle.js:27
↓ 1 callers
Function
createContainer
* @param {!Window} global * @param {string} renderTo
ads/vendors/rnetplus.js:21
↓ 1 callers
Function
createContainer
* @param {!Window} global * @param {string} id
ads/vendors/adfox.js:37
↓ 1 callers
Function
createContainer
* @param {!Window} global * @param {!Object} data
ads/vendors/geozo.js:18
↓ 1 callers
Function
createContainer
* @param {!Window} global * @param {!Object} data * @return {?Node}
ads/vendors/opinary.js:21
↓ 1 callers
Function
createContainer
(global, id)
ads/vendors/vlyby.js:54
↓ 1 callers
Function
createContainer
* @param {!Window} global * @param {!Object} data
ads/vendors/luckyads.js:18
↓ 1 callers
Function
createContainer
* @param {!Window} global
ads/vendors/ads2bid.js:18
↓ 1 callers
Function
createContainer
* @param {!Window} global * @param {string} renderTo
ads/vendors/rbinfox.js:23
↓ 1 callers
Function
createContainer
* @param {string} elemId
ads/vendors/blade.js:66
↓ 1 callers
Function
createContainer
* @param {!Window} global * @param {string} id
ads/vendors/zen.js:56
↓ 1 callers
Function
createContainer
* @param {!Window} global * @param {string} id
ads/vendors/yandex.js:50
↓ 1 callers
Function
createContainer
* @param {!Window} global * @return {Element}
ads/vendors/24smi.js:32
↓ 1 callers
Function
createContainerWidthState
(attributes)
extensions/amp-ad-network-adsense-impl/0.1/test/test-responsive-state.js:105
↓ 1 callers
Method
createContainer_
* Creates and returns <div> that contains the template-rendered children. * Should be called in a measureMutate context. * @return {!Element}
extensions/amp-autocomplete/0.1/amp-autocomplete.js:497
↓ 1 callers
Method
createCrossDomainIframe
* Create a cross-domain iframe for third-party vendor analytics * @return {!FrameData} * @visibleForTesting
extensions/amp-analytics/0.1/iframe-transport.js:129
↓ 1 callers
Function
createCtaLayer_
* Creates a CTA layer, returns an anchor tag containing relevant data if successful. * @param {!Element} a * @param {!Document} doc * @param {!Elem
extensions/amp-story-auto-ads/0.1/story-ad-ui.js:258
↓ 1 callers
Method
createCtaLayer_
* Create layer to contain outlink button. * @param {!./story-ad-ui.StoryAdUIMetadata} uiMetadata * @return {Promise<boolean>}
extensions/amp-story-auto-ads/0.1/story-ad-page.js:448
↓ 1 callers
Function
createDatePicker
* @param {!JsonObject<string, string>=} opt_attrs * @param {!Element=} opt_parent * @return {{ * element: !Element, * picker:
extensions/amp-date-picker/0.1/test/test-amp-date-picker-bind.js:35
↓ 1 callers
Function
createDateRangePicker
()
extensions/amp-date-picker/0.1/date-range-picker.js:88
↓ 1 callers
Function
createDateRangePickerBase
* Create a DateRangePicker React component * @return {typeof React.Component} A date range picker component class
extensions/amp-date-picker/0.1/date-range-picker.js:11
↓ 1 callers
Function
createDefaultInfo
* Created once per component mount. * The fields returned can be overridden by `infoDelivery` messages. * @return {!JsonObject}
src/bento/components/bento-youtube/1.0/component.js:56
↓ 1 callers
Method
createDefaultSeparator_
* Creates a default hairline separator element to go between two documents. * @return {!Element}
extensions/amp-next-page/0.1/next-page-service.js:244
↓ 1 callers
Method
createDefaultThumbnail_
* @return {!Element} An element to use when there is no image available * for the thumbnail.
extensions/amp-inline-gallery/0.1/amp-inline-gallery-thumbnails.js:146
↓ 1 callers
Function
createDeferred
()
extensions/amp-date-picker/0.1/react-utils.js:91
↓ 1 callers
Function
createDeferred_
* Create a React component that can render Promises. * Note: The nested class cannot be named Deferred, since src/promise.js already * exports a cla
extensions/amp-date-picker/0.1/react-utils.js:9
↓ 1 callers
Method
createDocumentContainerForPage
* Create a container element for the document and insert it into * the amp-next-page element * @param {!Page} page * @return {!Element}
extensions/amp-next-page/1.0/service.js:516
↓ 1 callers
Method
createDom_
* @return {!Element} * @private
extensions/amp-inline-gallery/0.1/amp-inline-gallery-pagination.js:88
↓ 1 callers
Method
createDom_
* @return {!Element} * @private
extensions/amp-inline-gallery/0.1/amp-inline-gallery-slide.js:15
↓ 1 callers
Method
createDots_
* Creates the correct number of dots, removing any extras. * @param {number} dotCount * @private
extensions/amp-inline-gallery/0.1/amp-inline-gallery-pagination.js:193
↓ 1 callers
Function
createElement
( tag: Tag, props: Props, ...children: Child[] )
src/core/dom/jsx/index.ts:75
↓ 1 callers
Function
createElementRules_
* @return {{[key: string]: {[key: string]: ?PropertyRulesDef}}}} * @private
extensions/amp-bind/0.1/bind-validator.js:205
↓ 1 callers
Function
createEllipseNode
(radii, opt_position, opt_name)
extensions/amp-animation/0.1/parsers/css-expr-ast.js:763
↓ 1 callers
Function
createEmptyBuild
* Creates a Percy build with only a blank page for comparison. * * Enables us to require percy checks on GitHub, and yet, not have to do a full * b
build-system/tasks/visual-diff/index.js:575
↓ 1 callers
Method
createErrorsList_
* @private * @return {!Element}
extensions/amp-story-dev-tools/0.1/amp-story-dev-tools-tab-debug.js:207
↓ 1 callers
Function
createEvent
* @param {string} eventType * @return {!Event}
extensions/amp-story/1.0/test/test-amp-story.js:101
↓ 1 callers
Method
createEvent_
* @param {number} timerId * @param {string} eventType * @return {!AnalyticsEvent} * @private
extensions/amp-analytics/0.1/events.js:1331
↓ 1 callers
Method
createExpectedError
* Creates an error object with its expected property set to true. Used for * expected failure states (ex. incorrect configuration, localStorage
third_party/subscriptions-project/config.js:582
↓ 1 callers
Function
createFailedFile
(name)
validator/js/gulpjs/test/validate.js:150
↓ 1 callers
Function
createFakeVideo
()
test/unit/test-video-analytics-percentage-tracker.js:26
↓ 1 callers
Function
createFileWithValidatorFailure
(name)
validator/js/gulpjs/test/validate.js:158
↓ 1 callers
Method
createFixedLayer
@override
src/inabox/inabox-viewport.js:354
↓ 1 callers
Function
createFixture
()
test/integration/test-amp-ad-3p.js:11
↓ 1 callers
Function
createFormProxyConstr
* @param {!Window} win * @return {function(new:Object, !HTMLFormElement)}
extensions/amp-form/0.1/form-proxy.js:59
↓ 1 callers
Method
createFullWidthResponsiveAdElement_
* @param {!JsonObject<string, string>} baseAttributes * @return {!Element} * @private
extensions/amp-auto-ads/0.1/placement.js:289
↓ 1 callers
Function
createGoogleReadAloudPlayer
(attrs = {})
extensions/amp-google-read-aloud-player/0.1/test/test-amp-google-read-aloud-player.js:52
↓ 1 callers
Function
createGoogleTransactionId
* Returns a google transaction id. * * @param {string} environment * @return {string}
third_party/subscriptions-project/swg.js:17301
↓ 1 callers
Function
createGwdAnimationElement
* Creates a test amp-gwd-animation element in the given document. * @param {!Document} root * @param {!Object} attrs Attributes to set on the el
extensions/amp-gwd-animation/0.1/test/test-amp-gwd-animation.js:24
↓ 1 callers
Method
createHostPage
* Creates the initial (host) page based on the window's metadata * @return {!HostPage}
extensions/amp-next-page/1.0/service.js:486
↓ 1 callers
Method
createIframe_
* @param {string} srcUnexpanded * @private
extensions/amp-onetap-google/0.1/amp-onetap-google.js:235
↓ 1 callers
Method
createInObFallback_
* Fallback for when IntersectionObserver is not supported. Calls * layoutPlayer on the element when it is close to the viewport. * @private
src/amp-story-player/amp-story-player-viewport-observer.js:67
↓ 1 callers
Method
createInOb_
* Creates an IntersectionObserver. * @private
src/amp-story-player/amp-story-player-viewport-observer.js:46
↓ 1 callers
Function
createIncident
* Create incident on status.amp.dev * @param {Array<string>} channels * @param {Array<string>} formats * @param {string} status * @return {Promise
build-system/status-page/incident.js:39
↓ 1 callers
Function
createIndexedInterator
* Create an iterator from an existing iterator, which nests the original * value under the `item` property in the iteration object value and adds an
build-system/tasks/e2e/driver/query-xpath.js:156
↓ 1 callers
Function
createIns
* @param {!Window} global * @param {!Object} data
ads/vendors/broadbandy.js:19
↓ 1 callers
Function
createKarmaServer
* Creates and starts karma server * @param {!Object} config * @return {!Promise<number>}
build-system/tasks/runtime-test/helpers.js:171
↓ 1 callers
Function
createKeyDownEvent
(key)
extensions/amp-image-slider/0.1/test/integration/test-amp-image-slider.js:992
↓ 1 callers
Function
createKeyboardEventInit
* Creates a `KeyboardEventInit` object with default properties overridden by * the given partial override init object. * * @param {!JsonObject} ove
extensions/amp-viewer-integration/0.1/test/test-keyboard-handler.js:554
↓ 1 callers
Method
createKeyframes_
* @param {!Element} target * @param {!WebKeyframeAnimationDef} spec * @return {!WebKeyframesDef} * @private
extensions/amp-animation/0.1/web-animations.js:463
↓ 1 callers
Method
createLaterpayBadge_
* @private * @return {!Element}
extensions/amp-access-laterpay/0.2/laterpay-impl.js:447
↓ 1 callers
Method
createLaterpayBadge_
* @private * @return {!Element}
extensions/amp-access-laterpay/0.1/laterpay-impl.js:390
↓ 1 callers
Function
createLinker
(version, ids)
extensions/amp-consent/0.1/linker.js:32
↓ 1 callers
Method
createLoaderLogo
* Creates a loader logo. * @return {{ * content: (!Element|undefined), * color: (string|undefined), * }} * @final
src/custom-element.js:1465
↓ 1 callers
Method
createLoaderLogoCallback
* Subclasses can override this method to provide a svg logo that will be * displayed as the loader. * * @param {!AmpElement} unusedElement
src/base-element.js:189
↓ 1 callers
Method
createLoaderState_
* @param {!AmpElement} element * @param {number} width * @param {number} height * @return {!LoadingIndicatorStateDef} * @private
src/service/loading-indicator.js:111
↓ 1 callers
Method
createLogRequest_
* @param {!../api/client-event-manager-api.ClientEvent} event * @return {!AnalyticsRequest}
third_party/subscriptions-project/swg.js:8005
↓ 1 callers
Method
createLogoAndHeader_
* Creates publisher logo and header text for the paywall * @private
extensions/amp-access-fewcents/0.1/fewcents-impl.js:325
↓ 1 callers
Method
createMaskElement_
* Create a new mask element and append it to the header if present, * otherwise to the component itself. * @return {!Element} the mask that was
extensions/amp-mega-menu/0.1/amp-mega-menu.js:120
↓ 1 callers
Method
createMeasurer_
* Creates an invisible element used to measure the position of the documents * @return {!Element}
extensions/amp-next-page/0.1/next-page-service.js:234
↓ 1 callers
Function
createMemberNode
* Convert the given Identifier node to be referenced from the scope name * @param {!Object} identifierNode * @param {string} scopeName * @return {!
third_party/react-dates/scope-require.js:81
↓ 1 callers
Function
createMutationsFromMutationRecordsAndElements
( mutationRecordsAndElements )
extensions/amp-experiment/1.0/apply-experiment.js:130
↓ 1 callers
Method
createNative3PRegistrationButton
({authorizationUrl})
third_party/subscriptions-project/swg-gaa.js:2370
↓ 1 callers
Method
createNativeRegistrationButton
({googleApiClientId})
third_party/subscriptions-project/swg-gaa.js:2324
↓ 1 callers
Method
createNextArrow_
* @return {!Element} * @private
extensions/amp-stream-gallery/0.1/amp-stream-gallery.js:421
↓ 1 callers
Method
createNextArrow_
* @return {!Element} * @private
extensions/amp-base-carousel/0.1/amp-base-carousel.js:316
↓ 1 callers
Function
createNoReferrerPixel
* @param {!Window} win * @param {string} src * @param {string=} attributionSrc * @param {(Element|./service/ampdoc-impl.AmpDoc)=} opt_elementOrAmpD
src/pixel.js:50
↓ 1 callers
Function
createObserver
* @param {!Window} win * @param {number} viewportNum * @return {function(!Element):!Promise}
extensions/amp-a4a/0.1/within-viewport.js:42
↓ 1 callers
Function
createOneadSlot
* @param {!Window} win
ads/vendors/onead.js:26
↓ 1 callers
Function
createOptionalParams
( displayInfo, displayShareBar, displayComments )
extensions/amp-playbuzz/0.1/test/test-amp-playbuzz.js:18
↓ 1 callers
Function
createOverflowElement
* Helper function to create an overflow element if one doesn't exist * @param {!Window} global * @param {!Element} container * @param {number} heig
ads/vendors/revcontent.js:138
↓ 1 callers
Method
createPageElement_
* @return {!Element} * @private
extensions/amp-story-auto-ads/0.1/story-ad-page.js:311
↓ 1 callers
Function
createPageOutlink_
* Creates a page-outlink element, returns an anchor tag containing relevant data if successful. * @param {!Document} doc * @param {!StoryAdUIMetadat
extensions/amp-story-auto-ads/0.1/story-ad-ui.js:217
↓ 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-live-story-manager.js:34
← previous
next →
8,001–8,100 of 18,703, ranked by callers