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
↓ 9 callers
Function
setDefaultBootstrapBaseUrlForTesting
(url)
src/3p-frame.js:234
↓ 9 callers
Method
setInputs_
* Creates inputs for the currently selected elements and returns a string * array of their option values. * Note: Ignores elements that have `di
extensions/amp-selector/0.1/amp-selector.js:311
↓ 9 callers
Function
setOrientation
(alpha = 180, beta = 0, gamma = 0)
extensions/amp-orientation-observer/0.1/test/test-amp-orientation-observer.js:43
↓ 9 callers
Method
setPageLevelExperiments
* Executes page level experiment diversion and pushes any experiment IDs * onto this.experimentIds. * @param {?string} urlExperimentId * @vis
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:435
↓ 9 callers
Function
setPlayingState
(entry, playingState)
test/unit/test-video-analytics-percentage-tracker.js:47
↓ 9 callers
Method
setRootVisibility
* @param {number} visibility
extensions/amp-analytics/0.1/visibility-manager.js:226
↓ 9 callers
Method
setWidgetVisibilities
* Sets the visibilities of subscription and unsubscription widget elements. * * Element visibilities change throughout the lifetime of the page:
extensions/amp-web-push/0.1/web-push-service.js:461
↓ 9 callers
Function
setupPermissionDialogFrame
()
extensions/amp-web-push/0.1/test/test-web-push-permission-dialog.js:37
↓ 9 callers
Function
shouldLoadPolyfill
(win)
src/polyfills/stubs/intersection-observer-stub.js:22
↓ 9 callers
Function
ssp
(global, data)
ads/vendors/ssp.js:119
↓ 9 callers
Function
streamResponseToWriter
(win, response, writer)
src/core/dom/stream/response.js:15
↓ 9 callers
Function
stubElementIfNotKnown
(win, name)
src/service/custom-element-registry.js:143
↓ 9 callers
Function
stubWithArg
(object, functionName, arg, returnValue)
extensions/amp-story/1.0/test/test-amp-story-page.js:887
↓ 9 callers
Function
testMergeRtcResponses
( rtcResponseArray, expectedParams, expectedJsonTargeting )
extensions/amp-ad-network-doubleclick-impl/0.1/test/test-doubleclick-rtc.js:43
↓ 9 callers
Method
toggleLoading
* Turns the loading indicator on or off. * @param {boolean} state * @param {boolean=} force * @public @final
src/custom-element.js:2052
↓ 9 callers
Method
triggerEvent_
* Trigger the activate AMP action. Triggered when the overlay opens or when * the static date picker should receive focus from the attached input.
extensions/amp-date-picker/0.1/amp-date-picker.js:1502
↓ 9 callers
Method
triggerFlowCanceled
* @param {string} flow * @param {!Object=} data * @return {boolean} Whether the callback has been found.
third_party/subscriptions-project/swg.js:9275
↓ 9 callers
Function
u
(e)
examples/amp-script/vue-todomvc.js:7
↓ 9 callers
Method
unlayout
* Calls element's unlayoutCallback callback and resets state for * relayout in case document becomes active again.
src/service/resource.js:989
↓ 9 callers
Method
unlisten_
* Unlisten a listener and clear. If null, does nothing * @param {?UnlistenDef} unlistenHandle * @private
extensions/amp-image-slider/0.1/amp-image-slider.js:509
↓ 9 callers
Method
updateDateFieldFocus_
* Apply the focus CSS class to the given field and unapply it from * the others. * @param {?Element} focusedField The field to apply focus to
extensions/amp-date-picker/0.1/amp-date-picker.js:1483
↓ 9 callers
Method
updateLiveLists_
* Gets all live lists and updates them with their corresponding counterparts. * Saves latest update time. * * @param {!Document} doc * @pr
extensions/amp-live-list/0.1/live-list-manager.js:160
↓ 9 callers
Function
updateViewportMetaString
(currentValue, updateParams)
src/service/viewport/viewport-impl.js:1161
↓ 9 callers
Function
userAssert
* @param {T} shouldBeTrueish * @param {...*} args * @return {T} * @template T
src/video-iframe-integration.js:36
↓ 9 callers
Method
validate
* Validates that this element instance has an ID attribute of 'amp-web-push' * and that there are no other elements of the same tag name.
extensions/amp-web-push/0.1/amp-web-push-config.js:70
↓ 9 callers
Method
validateMetadata_
* Convert valid opt_metadata into ConsentMetadataDef * @param {JsonObject=} opt_metadata * @return {ConsentMetadataDef|undefined}
extensions/amp-consent/0.1/amp-consent.js:998
↓ 9 callers
Function
variableServiceForDoc
(elementOrAmpDoc)
extensions/amp-analytics/0.1/variables.js:560
↓ 9 callers
Function
verifySafeFrameRender
* Checks that element is an amp-ad that is rendered via SafeFrame. * @param {!Element} element * @param {string} sfVersion * @param {boolean=
extensions/amp-a4a/0.1/test/test-amp-a4a.js:453
↓ 9 callers
Function
waitForAttribute
(element, attribute)
extensions/amp-date-picker/0.1/test/integration/test-integration-amp-date-picker-actions.js:278
↓ 9 callers
Function
whenDocumentComplete
(doc)
src/core/document/ready.js:74
↓ 9 callers
Function
whenDocumentReady
(doc)
src/core/document/ready.js:63
↓ 9 callers
Method
whenWithinViewport
* Resolves when underlying element is within the viewport range given or * has been loaded already. * @param {number|boolean} viewport derived f
extensions/amp-a4a/0.1/amp-a4a.js:660
↓ 8 callers
Function
$e
(e)
examples/amp-script/vue-todomvc.js:7
↓ 8 callers
Function
A
(a,b,c)
third_party/wgxpath/wgxpath.js:38
↓ 8 callers
Function
Br
(e,t)
examples/amp-script/vue-todomvc.js:7
↓ 8 callers
Function
CompileWithClosure
Compiles the arguments with AMP's Closure compiler for transpilation to ES5. Args: js_files: list of files to compile definitions: list of
validator/build.py:264
↓ 8 callers
Function
DefineOwnProperty
(e,r,t,i)
third_party/react-dates/bundle.js:1
↓ 8 callers
Function
Dn
(e)
third_party/react-dates/bundle.js:1
↓ 8 callers
Function
E
(n)
third_party/d3/d3.js:1
↓ 8 callers
Function
H
(t,n,a,r,o,s)
third_party/inputmask/bundle.js:11
↓ 8 callers
Function
H
(a,b)
third_party/wgxpath/wgxpath.js:43
↓ 8 callers
Function
addConfigElement
(opt_elementName, opt_type, opt_textContent)
extensions/amp-experiment/1.0/test/test-amp-experiment.js:71
↓ 8 callers
Function
addThresholdsToInteractive
(interactive, thresholdList)
extensions/amp-story-interactive/0.1/test/helpers.js:193
↓ 8 callers
Method
animateScrollIntoView
@override
src/inabox/inabox-viewport.js:262
↓ 8 callers
Method
appendAll_
* Appends all children to parent * @param {Element} parent * @param {Array<Element>} element
extensions/amp-ad-network-fake-impl/0.1/external-reorder-head-transformer.js:46
↓ 8 callers
Function
appendPathToUrl
(url, path)
src/url.js:634
↓ 8 callers
Method
applyAuthorizationToElement_
* @param {!Element} element * @param {!JsonObject} response * @return {!Promise} * @private
extensions/amp-access/0.1/amp-access.js:457
↓ 8 callers
Method
applySsrOrCsrTemplate
* Render provided data for the template in the given element. * If SSR is supported, data is assumed to be from ssr() above. * @param {!Element}
src/ssr-template-helper.js:104
↓ 8 callers
Method
areAllPlatformsResolved_
* Returns the number of entitlements resolved * @return {boolean} * @private
extensions/amp-subscriptions/0.1/platform-store.js:495
↓ 8 callers
Function
areFriendlyDomains
(domain1, domain2)
extensions/amp-analytics/0.1/linker-manager.js:476
↓ 8 callers
Function
arrayOrSingleItemToArray
(arrayOrSingleItem)
src/core/types/array.js:31
↓ 8 callers
Function
assign
(target, var_args)
src/polyfills/object-assign.js:11
↓ 8 callers
Function
assign
* Sort of like Object.assign. * @param {!Object} target * @param {!Object} source * @return {!Object}
ads/vendors/openx.js:13
↓ 8 callers
Method
autoplay_
* Starts the autoplay delay if allowed. * @private
extensions/amp-carousel/0.1/slidescroll.js:1065
↓ 8 callers
Function
awaitFrameAfter
(ms)
testing/helpers/index.js:71
↓ 8 callers
Function
base64EncodeFromBytes
(bytes)
src/core/types/string/base64.js:75
↓ 8 callers
Method
broadcast
@override
src/service/viewer-impl.js:843
↓ 8 callers
Method
buildCallback
@override
extensions/amp-experiment/1.0/amp-experiment.js:45
↓ 8 callers
Method
buildCallback
@override
extensions/amp-analytics/0.1/amp-analytics.js:127
↓ 8 callers
Method
buildCallback
* Builds and appends the component in the story. Could build either the * amp-social-share button to display the native system sharing, or a fallba
extensions/amp-story-share-menu/0.1/amp-story-share-menu.js:115
↓ 8 callers
Method
buildCallback
@override
extensions/amp-anim/0.1/amp-anim.js:41
↓ 8 callers
Function
buildDom
(element)
extensions/amp-fit-text/0.1/build-dom.js:16
↓ 8 callers
Method
buildErrorResponse_
* @param {string} error * @param {string} callout * @param {string} errorReportingUrl * @param {number=} opt_rtcTime * @return {!Promise<!
src/service/real-time-config/real-time-config-impl.js:154
↓ 8 callers
Function
buildLangSelector
(lang)
extensions/amp-access/0.1/amp-login-done-dialog.js:259
↓ 8 callers
Function
bytesToString
(bytes)
src/core/types/string/bytes.js:58
↓ 8 callers
Function
calculateExtensionScriptUrl
( location, extensionId, version, opt_isLocalDev )
src/service/extension-script.js:42
↓ 8 callers
Function
camelCaseToDash
(string)
src/core/types/string/index.js:33
↓ 8 callers
Function
changeVisibility
(vis)
test/integration/test-visibility-states.js:50
↓ 8 callers
Method
cleanup
* Unsubscribes from all pointer events and removes the shared cache instance.
src/gesture.js:157
↓ 8 callers
Function
clearOurFragment
(url)
extensions/amp-addthis/0.1/addthis-utils/fragment.js:48
↓ 8 callers
Method
clearSelection_
* Clears a given element from the list of selected options. * @param {!Element} element * @private
extensions/amp-selector/0.1/amp-selector.js:619
↓ 8 callers
Function
compareParse
(url, result)
test/unit/test-url.js:88
↓ 8 callers
Function
compile
(request: CompilerRequest)
src/compiler/compile.ts:12
↓ 8 callers
Method
connect
* Waits until the activity port is connected to the host. * @return {!Promise}
third_party/subscriptions-project/swg.js:6828
↓ 8 callers
Function
createAmpAd
(win, attachToAmpdoc = false, ampdoc)
extensions/amp-ad/0.1/test/test-amp-ad-3p-impl.js:23
↓ 8 callers
Function
createAmpElement
()
test/unit/test-standard-actions.js:28
↓ 8 callers
Function
createElement
(attributes)
extensions/amp-ad-network-adsense-impl/0.1/test/test-responsive-state.js:67
↓ 8 callers
Function
createItemSrc
()
extensions/amp-playbuzz/0.1/test/test-amp-playbuzz.js:30
↓ 8 callers
Function
createWithAttr
(attr)
test/unit/test-custom-element.js:1999
↓ 8 callers
Function
dashToCamelCase
(name)
src/core/types/string/index.js:23
↓ 8 callers
Function
dashToUnderline
(name)
src/core/types/string/index.js:41
↓ 8 callers
Function
debounce
* Creates a debounced function that delays invoking func until after wait * milliseconds have elapsed since the last time the debounced function was
build-system/common/debounce.js:15
↓ 8 callers
Method
decodeInternal_
* @param {string} encodedToken * @return {!JwtTokenInternalDef} * @private
extensions/amp-access/0.1/jwt.js:117
↓ 8 callers
Method
dock_
* @param {!VideoOrBaseElementDef} video * @param {!DockTargetDef} target * @param {number} step * @param {!RectDef=} opt_inlineRect * @par
extensions/amp-video-docking/0.1/amp-video-docking.js:775
↓ 8 callers
Function
duplicateErrorIfNecessary
(error)
src/core/error/index.js:6
↓ 8 callers
Method
endSession
* End a session.
src/service/video-session-manager.js:33
↓ 8 callers
Method
endTag
* Upon exiting a tag, validation for the current matcher is triggered, * e.g. for checking that the tag had some specified number of children. *
validator/js/engine/htmlparser.js:441
↓ 8 callers
Function
enumValues
(enumObj)
src/core/types/enum.js:27
↓ 8 callers
Method
event
* @param {!SubscriptionAnalyticsEvents|string} eventType * @param {!JsonObject=} opt_vars * @param {!JsonObject=} internalVars
extensions/amp-subscriptions/0.1/analytics.js:102
↓ 8 callers
Method
executeAction
* Requests the element to execute the specified method. If method must have * been previously registered using {@link registerAction}, otherwise an
src/base-element.js:727
↓ 8 callers
Function
expandConsentEndpointUrl
(element, url, opt_vars)
extensions/amp-consent/0.1/consent-config.js:315
↓ 8 callers
Function
expandPolicyConfig
(policyConfig, consentId)
extensions/amp-consent/0.1/consent-config.js:350
↓ 8 callers
Function
expectBeacon
(url, payload)
extensions/amp-analytics/0.1/test/test-transport.js:563
↓ 8 callers
Function
expectBodyToBecomeVisible
(win, opt_timeout)
testing/iframe.js:523
↓ 8 callers
Function
extractClientIdFromGaCookie
(gaCookie)
src/service/url-replacements-impl.js:1229
↓ 8 callers
Function
fa
(e,t)
examples/amp-script/vue-todomvc.js:7
↓ 8 callers
Function
fakePostMessage
(bc, info)
extensions/amp-powr-player/0.1/test/test-amp-powr-player.js:43
↓ 8 callers
Function
fakePostMessage
(viqeoElement, info)
extensions/amp-viqeo-player/0.1/test/test-amp-viqeo-player.js:28
↓ 8 callers
Method
fetch
* Fetch and parse template from AMP cache. Result is stored in global in * order to reduce overhead when template is used multiple times. * @pa
extensions/amp-a4a/0.1/amp-ad-template-helper.js:47
↓ 8 callers
Method
fetchJwt_
* @return {!Promise<{encoded:string, jwt:!JsonObject}>} * @private
extensions/amp-access/0.1/amp-access-server-jwt.js:183
← previous
next →
1,801–1,900 of 18,703, ranked by callers