MCPcopy Create free account

hub / github.com/ampproject/amphtml / functions

Functions18,703 in github.com/ampproject/amphtml

↓ 2 callersMethodassertNoSensitiveFields_
* Fail if there are password or file fields present when the function * is called. * @private
extensions/amp-form/0.1/amp-form.js:1113
↓ 2 callersFunctionassertScreenReaderElement
(element, {index = 0} = {})
testing/helpers/service.js:142
↓ 2 callersFunctionassertSpacerWidth
(index, width)
extensions/amp-base-carousel/0.1/test-e2e/test-mixed-lengths.js:21
↓ 2 callersFunctionassertSpacerWidth
(index, width)
extensions/amp-base-carousel/0.1/test-e2e/test-mixed-lengths-no-snap.js:23
↓ 2 callersMethodassertTrustedViewer
* Asserts that the viewer is from a trusted origin. * * @param {!Element} element * @return {!Promise}
src/ssr-template-helper.js:58
↓ 2 callersFunctionassertValidName
* Asserts that the custom element name conforms to the spec. * * @param {!typeof SyntaxError} SyntaxError * @param {string} name
src/polyfills/custom-elements.js:54
↓ 2 callersFunctionassertVendor
(vendor)
extensions/amp-ad-exit/0.1/config.js:206
↓ 2 callersMethodassignInternalParams_
* @param {!PaymentDataRequest} paymentDataRequest * @return {!PaymentDataRequest} * @private
third_party/subscriptions-project/swg.js:17778
↓ 2 callersMethodassignSlot
* Direct slot assignment. Works the same way as shadow slots, but does not * require a shadow root. Automatically starts the discovery phase for th
src/core/context/node.js:139
↓ 2 callersMethodassociateWithReplacementUrl_
* Map an array of anchor to an array of "replacement object" containing * the anchor and its associated replacement URL. * * A falsy replacem
extensions/amp-skimlinks/0.1/affiliate-link-resolver.js:154
↓ 2 callersFunctionattachFetchMock
* Mocks Window.fetch in the given environment and exposes `env.fetchMock`. For * convenience, also exposes fetch-mock's mock() function as * `env.ex
testing/describes.js:283
↓ 2 callersMethodattachShadowDoc_
* Attaches the shadow root and calls the supplied DOM builder. * @param {!Element} hostElement * @param {string} url * @param {!{[key: string
src/multidoc-manager.js:63
↓ 2 callersMethodattachSmartButton
* @param {!./deps.DepsDef} deps * @param {!Element} button * @param {../api/subscriptions.SmartButtonOptions|function()} optionsOrCallback *
third_party/subscriptions-project/swg.js:8989
↓ 2 callersMethodattach_
* Inserts the fetched (or cached) HTML as the document's content * @return {!Promise}
extensions/amp-next-page/1.0/page.js:239
↓ 2 callersMethodattemptToFitLoadMoreElement_
* @param {?Element} element * @param {!Element} target * @private
extensions/amp-list/0.1/amp-list.js:1380
↓ 2 callersMethodattemptToFitLoadMore_
* * @param {!Element} target * @private
extensions/amp-list/0.1/amp-list.js:1368
↓ 2 callersMethodattributeMutated_
* @param {string} name The name of the attribute. * @param {string} newValue The new value of the attribute. * @private
extensions/amp-stream-gallery/0.1/amp-stream-gallery.js:396
↓ 2 callersMethodattributeMutated_
* @param {string} name The name of the attribute. * @param {string} newValue The new value of the attribute. * @private
extensions/amp-base-carousel/0.1/amp-base-carousel.js:643
↓ 2 callersMethodattrsToString
* Converts a list of attributes to a comma separated string. * @param {!Array<!Object>} attrs * @return {string}
validator/js/engine/htmlparser_test.js:76
↓ 2 callersFunctionaugment
* Augments the component with properties * * @param {PreactDef.Renderable} component * @param {object} props * @return {!PreactDef.Renderable}
extensions/amp-list/1.0/component.js:235
↓ 2 callersMethodauthorizeOnClient_
* @return {!Promise<!JsonObject>} * @private
extensions/amp-access/0.1/amp-access-server-jwt.js:288
↓ 2 callersFunctionb
(t)
third_party/d3-geo-projection/d3-geo-projection.js:1
↓ 2 callersMethodback_
* @param {number} steps * @return {!Promise}
src/service/history-impl.js:695
↓ 2 callersFunctionbase64UrlDecodeToBytes
* Converts a string which is in base64url encoding into a Uint8Array * containing the decoded value. * @param {string} str * @return {!Uint8Array}
third_party/subscriptions-project/swg.js:3217
↓ 2 callersFunctionbase64UrlDecodeToBytes
* Converts a string which is in base64url encoding into a Uint8Array * containing the decoded value. * @param {string} str * @return {!Uint8Array}
third_party/subscriptions-project/swg-gaa.js:390
↓ 2 callersFunctionbase64UrlEncodeFromBytes
* Converts a bytes array into base64url encoded string. * base64url is defined in RFC 4648. It is sometimes referred to as "web safe". * @param {!Ui
third_party/subscriptions-project/swg.js:3228
↓ 2 callersFunctionbi
(e)
examples/amp-script/vue-todomvc.js:7
↓ 2 callersFunctionbinarySearch
( start, end, condition, stop = BinarySearchStop.IMMEDIATE, preference = BinarySearchPreference.NEXT
extensions/amp-truncate-text/0.1/binary-search.js:44
↓ 2 callersFunctionbindingTypeForAttr
* @param {string} attrName * @return {BindingType_Enum}
src/purifier/index.js:472
↓ 2 callersMethodblessAll
* "Blesses" all media elements in the media pool for future playback without * a user gesture. In order for this to bless the media elements, this
extensions/amp-story/1.0/media-pool.js:959
↓ 2 callersFunctionblockHeading
(heading, name)
build-system/tasks/check-analytics-vendors-list.js:17
↓ 2 callersMethodblockOnPendingSubscriptionsData_
* Block while waiting to resolve subscriptions state. * @param {Promise} subscriptionsDataDeferred * @param {string} targetPageId * @param {!
extensions/amp-story/1.0/amp-story.js:1677
↓ 2 callersFunctionblockedByConsentError
()
src/error-reporting.js:271
↓ 2 callersFunctionbodyAlwaysVisible
(unusedWin)
src/style-installer.js:261
↓ 2 callersFunctionbootstrap
* Execute the bootstrap * @param {!./service/ampdoc-impl.AmpDoc} ampdoc * @param {!./service/performance-impl.Performance} perf
src/amp.js:49
↓ 2 callersMethodboundScale_
* Returns the scale within the allowed range with possible extent. * @param {number} s * @param {boolean} allowExtent * @return {number} *
extensions/amp-image-lightbox/0.1/amp-image-lightbox.js:412
↓ 2 callersMethodboundScale_
* Returns the scale within the allowed range with possible extent. * @param {number} s * @param {boolean} allowExtent * @return {number} *
extensions/amp-image-viewer/0.1/amp-image-viewer.js:566
↓ 2 callersMethodboundScale_
* Returns the scale within the allowed range with possible extent. * @param {number} s * @param {boolean} allowExtent * @return {number} *
extensions/amp-pan-zoom/0.1/amp-pan-zoom.js:658
↓ 2 callersFunctionbuild
* @param {number} startTime * @return {Promise<void>}
build-system/tasks/helpers.js:326
↓ 2 callersMethodbuild
* @return {!Promise}
src/custom-element.js:611
↓ 2 callersMethodbuild
* Call the #build() method to build and get the CustomEventReporter instance. * One CustomEventReporterBuilder instance can only build one reporter
src/extension-analytics.js:185
↓ 2 callersFunctionbuildButton
* Builds a carousel button for next/prev. * @param {Element} element * @param {{className: string, title: string, enabled: boolean}} options * @ret
extensions/amp-carousel/0.1/build-dom.js:50
↓ 2 callersFunctionbuildCallback
()
extensions/amp-date-picker/0.1/test/test-amp-date-picker.js:54
↓ 2 callersMethodbuildCallback
@override
extensions/amp-fit-text/0.1/amp-fit-text.js:54
↓ 2 callersMethodbuildCallback
@override
extensions/amp-sticky-ad/1.0/amp-sticky-ad.js:50
↓ 2 callersMethodbuildCallback
@override
extensions/amp-pinterest/0.1/amp-pinterest.js:113
↓ 2 callersFunctionbuildClusters
* @param {string} clusters * @return {Object|undefined}
ads/vendors/adocean.js:92
↓ 2 callersFunctionbuildDeviceChipTemplate
(element)
extensions/amp-story-dev-tools/0.1/amp-story-dev-tools-tab-preview.js:71
↓ 2 callersMethodbuildDeviceChip_
* @param {string} deviceName * @return {!Element} the device chip
extensions/amp-story-dev-tools/0.1/amp-story-dev-tools-tab-preview.js:629
↓ 2 callersFunctionbuildExperimentRow
* Builds one row in the channel or experiments table. * @param {!ExperimentDef} experiment * @return {*} TODO(#23582): Specify return type
tools/experiments/experiments.js:168
↓ 2 callersFunctionbuildExtension
* Copies extensions from * extensions/$name/$version/$name.js * to * dist/v0/$name-$version.js * * Optionally copies the CSS at extensions/$name/
build-system/tasks/extension-helpers.js:418
↓ 2 callersFunctionbuildGridLayer
()
extensions/amp-story/1.0/test/test-amp-story-grid-layer.js:79
↓ 2 callersMethodbuildIframeFor_
* @param {!StoryDef} story * @private
src/amp-story-player/amp-story-player-impl.js:556
↓ 2 callersMethodbuildIframe_
* Build the iframe with the styling after iframe is loaded. * @private
third_party/subscriptions-project/swg.js:10936
↓ 2 callersFunctionbuildImgTemplate
(element)
extensions/amp-story-interactive/0.1/utils.js:43
↓ 2 callersFunctionbuildImpl
(config)
extensions/amp-ad/0.1/test/test-amp-ad-3p-impl.js:549
↓ 2 callersFunctionbuildImpl
(config)
extensions/amp-ad-network-adsense-impl/0.1/test/test-amp-ad-network-adsense-impl.js:1414
↓ 2 callersFunctionbuildKeys
* @param {string} keys * @return {string|undefined}
ads/vendors/adocean.js:72
↓ 2 callersFunctionbuildLinkMaybe
* If link is available, builds the anchor. Otherwise, it'd return a basic span. * @param {string} text * @param {?string} link * @return {!Element}
tools/experiments/experiments.js:216
↓ 2 callersFunctionbuildNavigationEl
(element)
extensions/amp-story-education/0.1/amp-story-education.js:32
↓ 2 callersMethodbuildPageImpressionPayload_
* Build the payload for our page load event. * @return {!JsonObject} * @private
extensions/amp-smartlinks/0.1/amp-smartlinks.js:185
↓ 2 callersMethodbuildPostDismissRequest_
* Creates a Request to be used for postDismiss * @private * @param {string} enctype * @param {?string} elementId * @param {?string} ampUse
extensions/amp-user-notification/0.1/amp-user-notification.js:275
↓ 2 callersMethodbuildReadyResources_
* Builds any pending resources if document is ready, or next element has been * added to DOM. * @private
src/inabox/inabox-resources.js:226
↓ 2 callersMethodbuildResourceUnsafe_
* @param {!Resource} resource * @param {boolean=} ignoreQuota * @return {?Promise} * @private
src/service/resources-impl.js:432
↓ 2 callersFunctionbuildStatusIcon
* Returns a "failed" or "passed" icon from the status * @param {!Element} element * @param {boolean} statusPassed * @return {!Element}
extensions/amp-story-dev-tools/0.1/amp-story-dev-tools-tab-debug.js:44
↓ 2 callersFunctionbuildStoryLocalization
* Flattens the structure of the json locale strings and writes them out to the * dist directory. * @param {Object=} options * @return {Promise<void
build-system/tasks/build-story-localization.js:94
↓ 2 callersMethodbuildTop
* Inserts the HTML for the top bar into the rest of the results component. * * @protected
extensions/amp-story-interactive/0.1/amp-story-interactive-results.js:212
↓ 2 callersFunctionbuildURL
(color, trackId, playlistId, visual, secretToken)
extensions/amp-soundcloud/1.0/test/test-amp-soundcloud.js:39
↓ 2 callersFunctionbuildUrl
(accessSource, base)
extensions/amp-access-scroll/0.1/scroll-url.js:34
↓ 2 callersFunctionbuildVars
* @param {string} vars * @return {Object|string|undefined}
ads/vendors/adocean.js:80
↓ 2 callersFunctionc
(e)
examples/amp-script/todomvc.ssr.js:2
↓ 2 callersMethodcacheChild_
* Record ids of previously seen children to cache. * * @param {!Element} child * @private
extensions/amp-live-list/0.1/amp-live-list.js:814
↓ 2 callersMethodcalculateDirectionX_
* @param {number} offsetX * @return {!DirectionX} * @private
extensions/amp-video-docking/0.1/amp-video-docking.js:1525
↓ 2 callersMethodcalculateDismissalTransitionDurationMs_
* @param {number} deltaX * @return {number} * @private
extensions/amp-video-docking/0.1/amp-video-docking.js:1473
↓ 2 callersFunctioncalculateIdealPercentageFrequencyMs
* Calculates the "ideal" analytics check frequency from playback start, e.g. * the amount of ms after each PERCENTAGE_INTERVAL. * @param {number} du
src/service/video-manager-impl.js:1392
↓ 2 callersFunctioncalculateJustified
* @param {number} containerWidth * @param {number} itemWidth * @param {number} itemMargin * @param {number} directedStep * @return {number}
extensions/amp-video-docking/0.1/math.js:13
↓ 2 callersMethodcalculateTransitionDuration_
* @param {number} step * @return {number}
extensions/amp-video-docking/0.1/amp-video-docking.js:863
↓ 2 callersFunctioncallCallbackNoInline
* @param {!ObserverCallbackDef} callback * @param {!Element} target * @param {boolean} isDisplayed
src/utils/display-observer.js:504
↓ 2 callersFunctioncallDoubleclick
(code)
ads/vendors/imonomy.js:29
↓ 2 callersFunctioncallEvent
(video, type)
extensions/amp-video/0.1/test/test-flexible-bitrate.js:242
↓ 2 callersFunctioncallLogConstructor
* Calls the log constructor with a given level function and suffix. * @param {function(number, boolean):!LogLevel_Enum} levelFunc * @param {string=}
src/utils/log.js:548
↓ 2 callersFunctioncallPixelEndpoint
(event)
extensions/amp-addthis/0.1/addthis-utils/pixel.js:165
↓ 2 callersFunctioncallSwg
* Calls Swgjs. * @param { function(!SubscriptionsDef) } callback
third_party/subscriptions-project/swg-gaa.js:2575
↓ 2 callersFunctioncallTask_
* For optimization reasons to stop try/catch from blocking optimization. * @param {function(!VsyncStateDef):undefined|undefined} callback * @param {
src/service/vsync-impl.js:453
↓ 2 callersFunctioncamelCaseToTitleCase
(camelCase)
src/core/dom/style.js:26
↓ 2 callersMethodcancel
* Cancels the pending pass if any.
src/pass.js:100
↓ 2 callersMethodcancelEventing_
* @param {number} index * @private
src/gesture.js:551
↓ 2 callersMethodcancel_
@private
extensions/amp-animation/0.1/amp-animation.js:441
↓ 2 callersFunctioncanonicalizeChar
* Canonicalizes a char to emulate the canonicalizion applied in backends * where texts to highlight are generated. * @param {string} c input char to
extensions/amp-viewer-integration/0.1/findtext.js:91
↓ 2 callersMethodcdata
* Handler called when CDATA is found. * @param {string} text The CDATA text found.
validator/js/engine/htmlparser-interface.js:421
↓ 2 callersFunctionce
(e,t,a)
third_party/inputmask/bundle.js:11
↓ 2 callersFunctioncenterDist
* @param {!./viewport/viewport-interface.ViewportInterface} viewport * @param {{top: number, height: number}} rect * @return {number}
src/service/video-manager-impl.js:1357
↓ 2 callersMethodchanged_
* @param {boolean} relayoutAll * @param {number} velocity * @private
src/service/viewport/viewport-impl.js:968
↓ 2 callersFunctioncheckAndSanitizeRefreshInterval
* Ensures that refreshInterval is a number no less than 30. Returns null if * the given input fails to meet these criteria. This also converts from
extensions/amp-a4a/0.1/refresh-manager.js:66
↓ 2 callersMethodcheckArray
* @param {!Array<?string>} typeArray * @param {Array<string>} expectedTypes * @return {boolean}
third_party/subscriptions-project/config.js:751
↓ 2 callersMethodcheckButtonsDisabled_
* Toggles disabled attribute on panel mode "previous" and "next" buttons. * @private
src/amp-story-player/amp-story-player-impl.js:788
↓ 2 callersMethodcheckDirtinessAfterUserInteraction_
* Determine the given field's dirtiness. * @param {!Element} field * @private
extensions/amp-form/0.1/form-dirtiness.js:165
↓ 2 callersFunctioncheckElementUpgrade
(element)
test/integration/test-double-loading.js:5
↓ 2 callersFunctioncheckEnumKeys
* @param {!Node|undefined} node
build-system/eslint-rules/enums.js:74
↓ 2 callersMethodcheckIfDismissed_
@protected
extensions/amp-app-banner/0.1/amp-app-banner.js:121
← previousnext →5,201–5,300 of 18,703, ranked by callers