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
↓ 11 callers
Function
setupHelperIframe
()
extensions/amp-web-push/0.1/test/test-web-push-service.js:187
↓ 11 callers
Method
show
* Shows the graypane. * @param {?Window|undefined} popupWindow * @return {!Promise}
third_party/subscriptions-project/swg.js:15851
↓ 11 callers
Function
simulateKeyboardInteraction
(win, input, key)
extensions/amp-inputmask/0.1/test/integration/utils.js:3
↓ 11 callers
Method
stop
* Clear timers and set correct stop state.
extensions/amp-live-list/0.1/poller.js:81
↓ 11 callers
Method
switchToLight
* @return {Promise<void>}
build-system/tasks/e2e/selenium-webdriver-controller.js:677
↓ 11 callers
Method
switchTo_
* Switches to a particular page. * @param {string} targetPageId * @param {!NavigationDirection} direction * @return {!Promise} * @private
extensions/amp-story/1.0/amp-story.js:1435
↓ 11 callers
Method
task
()
extensions/amp-analytics/0.1/cookie-writer.js:62
↓ 11 callers
Function
timeStrToMillis
(time, fallbackMs = NaN)
extensions/amp-story/1.0/utils.js:23
↓ 11 callers
Function
toStr
(t)
third_party/react-dates/bundle.js:1
↓ 11 callers
Method
toggleFallback
* Hides or shows the fallback, if available. This function must only * be called inside a mutate context. * @param {boolean} state * @public
src/base-element.js:794
↓ 11 callers
Method
transitionTo_
* Helper method for transitioning states. * @param {!DatePickerState} state
extensions/amp-date-picker/0.1/amp-date-picker.js:647
↓ 11 callers
Function
translate
(x, opt_y)
src/core/dom/style.js:256
↓ 11 callers
Function
trigger
* @param {string=} opt_src * @param {string=} opt_attributionsrc * @return {!Promise<?Image>}
test/unit/builtins/test-amp-pixel.js:43
↓ 11 callers
Method
triggerFlowStarted
* @param {string} flow * @param {!Object=} data * @return {boolean} Whether the callback has been found.
third_party/subscriptions-project/swg.js:9256
↓ 11 callers
Function
undefinedVariable
(varName)
extensions/amp-a4a/0.1/test/test-a4a-var-source.js:64
↓ 11 callers
Method
updateLayoutBox
* Updates the layout box of the element. * Should only be called by Resources. * @param {!./layout-rect.LayoutRectDef} layoutBox * @par
src/custom-element.js:958
↓ 11 callers
Method
updateOnScroll_
* Updates to the right state of the new index on scroll. * @param {number} currentScrollLeft scrollLeft value of the slides container. * @param
extensions/amp-carousel/0.1/slidescroll.js:734
↓ 11 callers
Method
updateSize_
* Updates the element's dimensions to accommodate the iframe's * requested dimensions. * @param {number|undefined} height * @param {number
extensions/amp-iframe/0.1/amp-iframe.js:625
↓ 11 callers
Method
validateJwt_
* @param {!JsonObject} jwt * @private
extensions/amp-access/0.1/amp-access-server-jwt.js:259
↓ 11 callers
Method
verifyStillCurrent
* @return {function()} function that when called will verify if current * ad retrieval is current (meaning unlayoutCallback was not executed).
extensions/amp-a4a/0.1/amp-a4a.js:1617
↓ 11 callers
Method
whenReady
* Returns the IFrame DOM element. * @return {!Promise}
extensions/amp-web-push/0.1/iframehost.js:88
↓ 11 callers
Function
z
(a)
third_party/wgxpath/wgxpath.js:37
↓ 10 callers
Function
F
(e,a,t)
third_party/react-dates/bundle.js:1
↓ 10 callers
Function
I
(t,n,a)
third_party/inputmask/bundle.js:11
↓ 10 callers
Method
acceptStart
* The Gestures instance calls this method to allow the recognizer to start * emitting the gestures. At this point the recognizer is in the "emittin
src/gesture.js:657
↓ 10 callers
Method
add
@override
src/inabox/inabox-resources.js:120
↓ 10 callers
Function
aduptech
(global, data)
ads/vendors/aduptech.js:23
↓ 10 callers
Method
applyFirstFrameOrFinish
* Applies first frame to target element before starting animation. * @return {!Promise}
extensions/amp-story/1.0/animation.js:586
↓ 10 callers
Method
applyNoContentUI
* Apply UI for laid out ad with no-content * Order: try collapse -> apply provided fallback -> apply default fallback
extensions/amp-ad/0.1/amp-ad-ui.js:118
↓ 10 callers
Function
attachAndRun
* Creates `<amp-audio>` * @param {Element} element Element to attach to doc and run * @returns Returns `<amp-audio>` with given parameters
extensions/amp-audio/1.0/test/test-amp-audio.js:60
↓ 10 callers
Function
attachAndRun
(element)
extensions/amp-audio/0.1/test/test-amp-audio.js:24
↓ 10 callers
Function
base64UrlDecodeFromString
(str)
src/core/types/string/base64.js:65
↓ 10 callers
Function
base64UrlEncodeFromBytes
(bytes)
src/core/types/string/base64.js:44
↓ 10 callers
Method
beginSession
* Begin a session.
src/service/video-session-manager.js:26
↓ 10 callers
Method
buildCallback
@override
extensions/amp-ad/0.1/amp-ad-3p-impl.js:184
↓ 10 callers
Method
buildCallback
@override
extensions/amp-install-serviceworker/0.1/amp-install-serviceworker.js:38
↓ 10 callers
Method
buildUrl
* @param {string} url * @param {boolean} useAuthData Allows `AUTH(field)` URL var substitutions. * @return {!Promise<string>}
extensions/amp-subscriptions/0.1/url-builder.js:35
↓ 10 callers
Method
clone
* Create a copy of the response and return it. * @return {!FetchResponse}
src/polyfills/fetch.js:142
↓ 10 callers
Function
copyProperties
(obj, prototype)
src/polyfills/custom-elements.js:849
↓ 10 callers
Function
createLightbox
()
extensions/amp-lightbox/0.1/test/test-amp-lightbox.js:27
↓ 10 callers
Function
createMouseDownEvent
(x)
extensions/amp-image-slider/0.1/test/integration/test-amp-image-slider.js:967
↓ 10 callers
Function
createParseAttrsWithPrefix
(prefix)
src/preact/parse-props.js:360
↓ 10 callers
Function
createValidRule
(selector, position, elements)
test/unit/test-fixed-layer.js:391
↓ 10 callers
Function
createViewportObserver
(ioCallback, win, opts = {})
src/core/dom/layout/viewport-observer.js:13
↓ 10 callers
Method
dequeue
* Dequeues the task and returns "true" if dequeueing is successful. Otherwise * returns "false", e.g. when this task is not currently enqueued.
src/service/task-queue.js:92
↓ 10 callers
Function
dispatch
( win, source, eventName, payload = undefined, eventInit = undefined )
extensions/amp-story/1.0/events.js:49
↓ 10 callers
Method
environmentSupportsWebPush
* Returns true if the Service Worker API, Push API, and Notification API are * supported and the page is HTTPS. * * @return {boolean}
extensions/amp-web-push/0.1/web-push-service.js:978
↓ 10 callers
Method
evalMajorVersion_
* @param {!RegExp} expr * @param {number} index The index in the result that's interpreted as the * major version (integer). * @return {num
src/service/platform-impl.js:156
↓ 10 callers
Function
expand
(pattern)
third_party/inputmask/inputmask.js:886
↓ 10 callers
Method
expandStringAsync
* Expands the provided source by replacing all known variables with their * resolved values. Optional `opt_bindings` can be used to add new variabl
src/service/url-replacements-impl.js:872
↓ 10 callers
Function
expectElementToHaveBeenShown
(element)
test/unit/test-standard-actions.js:58
↓ 10 callers
Function
expectGetReaderId
(result)
extensions/amp-access/0.1/test/test-amp-access.js:359
↓ 10 callers
Function
extractAmpAnalyticsConfig
(a4a, responseHeaders)
ads/google/a4a/utils.js:668
↓ 10 callers
Function
f
(e)
third_party/react-dates/bundle.js:1
↓ 10 callers
Function
fakePostMessage
(element, iframe, data)
extensions/amp-onetap-google/0.1/test/test-amp-onetap-google.js:50
↓ 10 callers
Function
fakePostMessage
(impl, info)
extensions/amp-brightcove/0.1/test/test-amp-brightcove.js:75
↓ 10 callers
Function
fetchDocument
(win, input, opt_init)
src/document-fetcher.js:22
↓ 10 callers
Method
fetchEntitlements_
* @param {!SubscriptionPlatformInterface} subscriptionPlatform * @return {!Promise}
extensions/amp-subscriptions/0.1/amp-subscriptions.js:475
↓ 10 callers
Function
fetchPolyfill
(input, init = {})
src/polyfills/fetch.js:37
↓ 10 callers
Method
filterData_
* Apply the filter to the given data based on the given input. * @param {!Array<!JsonObject|string>} data * @param {string} input * @return {
extensions/amp-autocomplete/0.1/amp-autocomplete.js:778
↓ 10 callers
Method
fireValidityEventIfNecessary
* Fires a valid/invalid event from the form if its validity state * has changed since the last invocation of this function. * @visibleForTesting
extensions/amp-form/0.1/form-validators.js:174
↓ 10 callers
Function
getAdConstraintsFromConfigObj
(ampdoc, configObj)
extensions/amp-auto-ads/0.1/ad-tracker.js:176
↓ 10 callers
Method
getAdElement
* @return {!Element}
extensions/amp-auto-ads/0.1/placement.js:134
↓ 10 callers
Method
getAdapterConfig
* @return {!JsonObject}
extensions/amp-access/0.1/amp-access-source.js:185
↓ 10 callers
Function
getAmpFlyingCarpet
(opt_childrenCallback, opt_top)
extensions/amp-fx-flying-carpet/0.1/test/test-amp-fx-flying-carpet.js:22
↓ 10 callers
Function
getAmpFormWithAsyncInput
(includeRequiredAction)
extensions/amp-form/0.1/test/test-amp-form.js:144
↓ 10 callers
Function
getAmpSkimlinksOptions
(element, docInfo)
extensions/amp-skimlinks/0.1/skim-options.js:28
↓ 10 callers
Function
getAttributesFromConfigObj
(configObj, attributes)
extensions/amp-auto-ads/0.1/attributes.js:37
↓ 10 callers
Method
getBody
@override
third_party/subscriptions-project/swg.js:10701
↓ 10 callers
Function
getBrightcove
(attributes)
extensions/amp-brightcove/1.0/test/test-amp-brightcove.js:32
↓ 10 callers
Method
getContentHeight
@override
src/inabox/inabox-viewport.js:205
↓ 10 callers
Method
getCurrentUrl
* @return {!ControllerPromise<string|null|function>}
build-system/tasks/e2e/selenium-webdriver-controller.js:266
↓ 10 callers
Function
getDefaultBootstrapBaseUrl
(parentWindow, opt_srcFileBasename)
src/3p-frame.js:251
↓ 10 callers
Function
getDeterministicOuterHTML
(node)
testing/helpers/index.js:111
↓ 10 callers
Method
getDims_
* @param {!VideoOrBaseElementDef} video * @param {!DockTargetDef} target * @param {number} step in [0..1] * @param {!RectDef} opt_inlineRect
extensions/amp-video-docking/0.1/amp-video-docking.js:1538
↓ 10 callers
Function
getEventData
()
extensions/amp-skimlinks/0.1/test/test-link-rewriter.js:212
↓ 10 callers
Function
getExperimentTogglesForTesting
(win)
src/experiments/index.js:231
↓ 10 callers
Method
getInterval
()
extensions/amp-live-list/0.1/test/test-live-list-manager.js:64
↓ 10 callers
Method
getLayoutBox
* Returns a previously measured layout box adjusted to the viewport. This * mainly affects fixed-position elements that are adjusted to be always
src/service/resource.js:606
↓ 10 callers
Method
getLayoutSize
* Returns a previously measured layout size. * @return {!./layout-rect.LayoutSizeDef} * TODO(#31915): remove once R1 migration is complete.
src/base-element.js:338
↓ 10 callers
Method
getLocaleWord_
* @param {string} locale * @return {!Object} * @private
extensions/amp-date-countdown/0.1/amp-date-countdown.js:238
↓ 10 callers
Method
getOverflowElement
* Returns an optional overflow element for this custom element. * @return {?Element} * @public @final
src/base-element.js:813
↓ 10 callers
Function
getPageLayoutBoxBlocking
(element)
src/core/dom/layout/page-layout-box.js:7
↓ 10 callers
Method
getParam
@override
src/service/viewer-impl.js:325
↓ 10 callers
Function
getPowrPlayer
(attributes, opt_responsive)
extensions/amp-powr-player/0.1/test/test-amp-powr-player.js:22
↓ 10 callers
Function
getPreconnectIframe
(detectFeatures = false)
test/unit/test-preconnect.js:28
↓ 10 callers
Function
getServiceInternal
* Get service `id` from `holder`. Assumes the service * has already been registered. * @param {!Object} holder Object holding the service instance.
src/service-helpers.js:340
↓ 10 callers
Method
getStorage
* TODO(choumx): Make this method always return a Promise. * @param {!StorageLocation} location * @param {string} opt_key * @return {!Promise<
extensions/amp-script/0.1/amp-script.js:860
↓ 10 callers
Function
getTests
(pos, ndxIntlzr, tstPs)
third_party/inputmask/inputmask.js:848
↓ 10 callers
Function
getTopWindow
(win)
src/service-helpers.js:277
↓ 10 callers
Function
getViewerInterceptResponse
(win, ampdocSingle, input, init)
src/utils/xhr-utils.js:184
↓ 10 callers
Method
getWaitFn_
* Return a wait function. When called, the function will cause the test * runner to wait until the given value matches the expected value. * @pa
build-system/tasks/e2e/selenium-webdriver-controller.js:101
↓ 10 callers
Method
getWidth
@override
src/inabox/inabox-viewport.js:190
↓ 10 callers
Method
getYDHMSFromMs_
* @param {number} ms * @param {boolean} countUp * @return {object} * @private
extensions/amp-date-countdown/0.1/amp-date-countdown.js:261
↓ 10 callers
Method
handleEvent_
* @param {!Event} e * @private
extensions/amp-viewer-integration/0.1/touch-handler.js:107
↓ 10 callers
Method
handleIframeMessages_
* Listen to iframe messages and handle events. * Current supported APIs: * * Required message from iframe to hide placeholder and display ifr
extensions/amp-consent/0.1/consent-ui.js:863
↓ 10 callers
Method
handle_
* @param {?Event} event * @private
extensions/amp-install-serviceworker/0.1/amp-install-serviceworker.js:274
↓ 10 callers
Method
if
* @param {function():boolean} fn
testing/test-config.js:111
↓ 10 callers
Function
installResizeObserverStub
(sandbox, win)
testing/resize-observer-stub.js:6
↓ 10 callers
Function
installViewportServiceForDoc
(ampdoc)
src/service/viewport/viewport-impl.js:1260
← previous
next →
1,501–1,600 of 18,703, ranked by callers