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
↓ 4 callers
Function
getViewportHeight
(win)
test/integration/test-position-observer.js:202
↓ 4 callers
Function
getVine
(vineId, opt_responsive)
extensions/amp-vine/0.1/test/test-amp-vine.js:18
↓ 4 callers
Function
getVisibilityEventCount
()
test/unit/test-vsync.js:39
↓ 4 callers
Function
getWaitFunction
* Simulate the WebDriver polling functionality to get the latest value * and mutate it with any `then` blocks that have been chained to the
test/e2e/test-controller-promise.js:255
↓ 4 callers
Function
getWistiaEmbed
(mediaId)
extensions/amp-wistia-player/0.1/test/test-amp-wistia-player.js:19
↓ 4 callers
Function
gitCiMainBaseline
* Returns the main branch parent of the merge commit (current HEAD) during CI * builds. This is not the same as origin/<main branch> (a moving target
build-system/common/git.js:39
↓ 4 callers
Function
gitDiffNameOnlyMain
* Returns the list of files changed relative to the branch point off of the * main branch, one on each line. * @return {!Array<string>}
build-system/common/git.js:66
↓ 4 callers
Method
goToSlide
* Moves the Carousel to a given index. * @param {number} index
extensions/amp-stream-gallery/0.1/amp-stream-gallery.js:259
↓ 4 callers
Function
groupAmpAdsByType
(ampdoc, type, groupFn)
ads/google/a4a/utils.js:217
↓ 4 callers
Function
ha
(e)
third_party/react-dates/bundle.js:1
↓ 4 callers
Method
handleAction_
* Handler User action. Should call isReadyToHandleAction_ before. * * @param {string} action * @param {string=} consentString * @param {!C
extensions/amp-consent/0.1/amp-consent.js:464
↓ 4 callers
Method
handleActivePageChange_
* Respond to page navigation event. This method is not called for the first * page that is shown on load. * @param {number} pageIndex * @para
extensions/amp-story-auto-ads/0.1/amp-story-auto-ads.js:410
↓ 4 callers
Method
handleClear_
* Clear the values from the input fields and * trigger events with the empty values.
extensions/amp-date-picker/0.1/amp-date-picker.js:774
↓ 4 callers
Method
handleMessage_
* Bob sent me a message. I need to decide if it's a new request or * a response to a previous 'conversation' we were having. * @param {!Event} e
extensions/amp-viewer-integration/0.1/messaging/messaging.js:288
↓ 4 callers
Method
handleSubmitFailure_
* Transition the form the submit error state. * @param {*} error * @param {!JsonObject} json * @param {!ActionTrust_Enum} incomingTrust *
extensions/amp-form/0.1/amp-form.js:1050
↓ 4 callers
Function
hasCorrectSliderPosition
(sliderInfo, leftPos)
extensions/amp-image-slider/0.1/test/integration/test-amp-image-slider.js:998
↓ 4 callers
Method
hasPrev_
* @return {boolean} * @private
extensions/amp-carousel/0.1/slidescroll.js:516
↓ 4 callers
Method
hasSubscribeRequestCallback
* @return {boolean}
third_party/subscriptions-project/swg.js:9163
↓ 4 callers
Method
hide
* Hides the graypane. * @return {!Promise|undefined}
third_party/subscriptions-project/swg.js:15867
↓ 4 callers
Method
hideAllNavigationHint
* Hide all navigation hints.
extensions/amp-story/1.0/amp-story-hint.js:206
↓ 4 callers
Function
ht
(n,t)
third_party/d3/d3.js:1
↓ 4 callers
Function
ib
(a)
third_party/wgxpath/wgxpath.js:55
↓ 4 callers
Function
ie
(e,t)
examples/amp-script/todomvc.ssr.js:2
↓ 4 callers
Function
if
(!this.legacyOutlinkEl_)
extensions/amp-story-page-attachment/0.1/amp-story-page-attachment.js:423
↓ 4 callers
Method
init
* Initializes the image viewer to the target image element such as * "amp-img". The target image element may or may not yet have the img * eleme
extensions/amp-image-lightbox/0.1/amp-image-lightbox.js:238
↓ 4 callers
Method
init
* Initializes the players but does not change the state.
extensions/amp-animation/0.1/runners/animation-runner.js:30
↓ 4 callers
Method
initializeListeners_
@private
extensions/amp-story/1.0/amp-story.js:657
↓ 4 callers
Method
initializeLocalPlatforms_
* @param {!JsonObject} serviceConfig * @private
extensions/amp-subscriptions/0.1/amp-subscriptions.js:375
↓ 4 callers
Function
injectStyleSheet
* Injects the provided styles in the HEAD section of the document. * @param {!../model/doc.Doc} doc The document object. * @param {string} styleText
third_party/subscriptions-project/swg-gaa.js:1232
↓ 4 callers
Method
inputs
@return {!NodeList}
extensions/amp-form/0.1/form-validators.js:105
↓ 4 callers
Function
insertTestDefinition
(mtoken, element, position)
third_party/inputmask/inputmask.js:276
↓ 4 callers
Function
installBuiltinElements
(win)
src/service/core-services.js:46
↓ 4 callers
Method
installFieDoc
* Creates and installs the ampdoc for the fie root. * @param {string} url * @param {!Window} childWin * @param {!AmpDocOptions=} opt_options
src/service/ampdoc-impl.js:210
↓ 4 callers
Function
installHiddenObserverForDoc
(ampdoc)
src/service/hidden-observer-impl.js:95
↓ 4 callers
Function
installHistoryServiceForDoc
(ampdoc)
src/service/history-impl.js:1146
↓ 4 callers
Function
installPositionObserverServiceForDoc
(ampdoc)
src/service/position-observer/position-observer-impl.js:207
↓ 4 callers
Function
installRealTimeConfigServiceForDoc
(ampdoc)
src/service/real-time-config/real-time-config-impl.js:716
↓ 4 callers
Function
installResizeObserver
(global)
third_party/resize-observer-polyfill/ResizeObserver.install.js:1
↓ 4 callers
Function
installStub
(win)
src/polyfills/stubs/resize-observer-stub.js:30
↓ 4 callers
Function
installUrlReplacementsServiceForDoc
(ampdoc)
src/service/url-replacements-impl.js:1236
↓ 4 callers
Method
interactionNext
* Performs the next action (e.g. for a click from the next button). For a * carousel, this moves one carousel viewport forwards. For slides, this
extensions/amp-carousel/0.2/amp-carousel.js:291
↓ 4 callers
Function
invocation
(method, args = {})
extensions/amp-stream-gallery/1.0/test/test-amp-stream-gallery.js:167
↓ 4 callers
Function
ioCallback
* Call the registered callbacks for each element that has crossed the * viewport boundary. * * @param {Array<IntersectionObserverEntry>} entries
src/core/dom/layout/viewport-observer.js:112
↓ 4 callers
Method
ioCallback_
* Returns a function that will be invoked directly by the * IntersectionObserver implementation. It will implement the core logic of * the refre
extensions/amp-a4a/0.1/refresh-manager.js:235
↓ 4 callers
Function
isAnimationNone
(element, opt_isTimeBasedAnimation = true)
testing/helpers/service.js:123
↓ 4 callers
Function
isCdnProxy
(win)
ads/google/a4a/utils.js:927
↓ 4 callers
Method
isDeclaredFixed
* Whether the element is declared as fixed in any of the user's stylesheets. * Will include any matches, not necessarily currently fixed elements.
src/service/fixed-layer.js:375
↓ 4 callers
Function
isDefined
* Whether the value is defined. * * This function only exists to avoid function allocation when calling * `Array.every()` and `Array.some()`. * *
src/core/context/values.js:778
↓ 4 callers
Method
isDiscoverable
* @return {boolean} * @protected Used cross-binary.
src/core/context/node.js:299
↓ 4 callers
Function
isDisposable
(service)
src/service-helpers.js:488
↓ 4 callers
Function
isEsm
()
src/core/mode/esm.js:25
↓ 4 callers
Function
isExcludedDomain
(domain, skimOptions)
extensions/amp-skimlinks/0.1/utils.js:49
↓ 4 callers
Method
isFree
* Returns true if the article is free. * @return {boolean}
extensions/amp-subscriptions/0.1/entitlement.js:131
↓ 4 callers
Function
isFunction
(object)
third_party/mustache/mustache.js:15
↓ 4 callers
Function
isFunction
* True if the value is a function. * @param {*} value * @return {boolean}
third_party/subscriptions-project/swg.js:7140
↓ 4 callers
Method
isInNoSigningExp
* @visibleForTesting * @return {boolean}
extensions/amp-a4a/0.1/amp-a4a.js:952
↓ 4 callers
Function
isInViewportConsideringMargins
* @param {?PositionObserverEntryDef} entry * @param {!./fx-provider.FxElement} fxElement * @param {number=} opt_vh optional adjusted viewport height
extensions/amp-fx-collection/0.1/providers/amp-fx-presets.js:117
↓ 4 callers
Function
isInclusivelyAfterDay
(e,t)
third_party/react-dates/bundle.js:1
↓ 4 callers
Method
isLandscapeSupported_
* Whether the story should support landscape orientation: landscape mobile, * or full bleed desktop UI. * @return {boolean} * @private
extensions/amp-story/1.0/amp-story.js:2021
↓ 4 callers
Method
isLayoutSupported
@override
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:418
↓ 4 callers
Method
isLoaded
@return {boolean}
extensions/amp-story-auto-ads/0.1/story-ad-page.js:155
↓ 4 callers
Method
isLoopingEligible
* Checks if a carousel is eligible to loop, regardless of the loop attribute. * @return {boolean}
extensions/amp-carousel/0.1/slidescroll.js:308
↓ 4 callers
Function
isMergeableObject
(e)
third_party/react-dates/bundle.js:1
↓ 4 callers
Function
isNum
* Tests whether a chacter is a number. * @param {string} c * @return {boolean}
src/service/action-impl.js:1401
↓ 4 callers
Function
isObject
(t)
third_party/react-dates/bundle.js:1
↓ 4 callers
Function
isOptedOutOfCid
(ampdoc)
src/service/cid-impl.js:357
↓ 4 callers
Function
isPaused
(elem)
extensions/amp-video/0.1/test-e2e/test-amp-video-analytics.js:16
↓ 4 callers
Method
isPkcsAvailable
* Checks whether Web Cryptography is available, which is required for PKCS 1 * operations. SHA-384 operations do not need this because there's a po
src/service/crypto-impl.js:158
↓ 4 callers
Method
isPrerenderSafe
* True if this platform can fetch entitlement safely in pre-render * without leaking information to the publisher or a 3rd party * @return {bool
extensions/amp-subscriptions/0.1/subscription-platform.js:48
↓ 4 callers
Function
isProd
()
src/core/mode/prod.js:10
↓ 4 callers
Function
isRtvMode
(serveMode)
build-system/server/app-utils.js:65
↓ 4 callers
Method
isRunning
@return {boolean}
extensions/amp-analytics/0.1/events.js:1089
↓ 4 callers
Method
isRunning
* @return {boolean} * @protected
extensions/amp-story/1.0/page-advancement.js:187
↓ 4 callers
Method
isSafariOrIos_
* @private * @return {boolean}
extensions/amp-jwplayer/0.1/amp-jwplayer.js:579
↓ 4 callers
Function
isScreenReaderHidden
(element)
extensions/amp-carousel/0.2/test/test-type-slides.js:58
↓ 4 callers
Function
isScreenReaderHidden
* @param {Element} element * @returns {boolean}
extensions/amp-carousel/0.1/test/test-slidescroll.js:109
↓ 4 callers
Function
isScrollable
(element)
extensions/amp-carousel/0.1/build-dom.js:350
↓ 4 callers
Function
isServiceRegistered
* @param {!Object} holder Object holding the service instance. * @param {string} id of the service. * @return {boolean}
src/service-helpers.js:629
↓ 4 callers
Function
isShadowCssSupported
()
src/core/dom/web-components.js:51
↓ 4 callers
Function
isShellUrl
* @param {string} url * @return {boolean}
examples/pwa/pwa.js:365
↓ 4 callers
Function
isValidElement
(elem)
third_party/inputmask/inputmask.dependencyLib.js:32
↓ 4 callers
Method
isValidElement
@override
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:425
↓ 4 callers
Method
isValidElement
@override
extensions/amp-ad-network-fake-impl/0.1/amp-ad-network-fake-impl.js:53
↓ 4 callers
Method
isVisible_
* @param {!AmpElement|!VideoOrBaseElementDef} element * @param {number=} minRatio * @param {!RectDef=} opt_inlineRect * @return {boolean}
extensions/amp-video-docking/0.1/amp-video-docking.js:1204
↓ 4 callers
Method
isWithinViewportRatio
* @param {number|boolean} multiplier * @param {ViewportRatioDef=} opt_viewportRatio * @return {boolean} whether multiplier given is within viewp
src/service/resource.js:778
↓ 4 callers
Function
keyframesCssWithVendor
(name, css, prefix)
extensions/amp-animation/0.1/test/test-keyframes-extractor.js:39
↓ 4 callers
Function
kn
(e,t)
examples/amp-script/vue-todomvc.js:7
↓ 4 callers
Function
lastChildElement
(parent, callback)
src/core/dom/query.js:216
↓ 4 callers
Method
layoutCallback
@override
extensions/amp-fx-flying-carpet/0.1/amp-fx-flying-carpet.js:127
↓ 4 callers
Function
le
(e)
examples/amp-script/vue-todomvc.js:7
↓ 4 callers
Function
linkerReaderServiceFor
(win)
extensions/amp-analytics/0.1/linker-reader.js:97
↓ 4 callers
Method
listen
* Starts Messenger in "listening" mode. In this mode, we listen as soon as * possible and expect a future postMessage() to establish a MessageChann
extensions/amp-web-push/0.1/window-messenger.js:104
↓ 4 callers
Method
loadElementClass
* Returns the promise that will be resolved with the extension element's * class when the extension has been loaded. If necessary, adds the extensi
src/service/extensions-impl.js:316
↓ 4 callers
Method
logSwgEvent_
* @param {!AnalyticsEvent} eventType * @param {boolean=} isFromUserAction
third_party/subscriptions-project/swg.js:8921
↓ 4 callers
Method
loginAnalyticsEvent_
* @param {string} type * @param {string} event * @private
extensions/amp-access/0.1/amp-access-source.js:515
↓ 4 callers
Method
loginDone_
* @param {?string} result * @param {*=} opt_error * @private
extensions/amp-access/0.1/login-dialog.js:301
↓ 4 callers
Method
loginWithUrl
* Runs the login flow opening the given url in the login window. * * @param {string} url * @param {string} eventLabel A label used for the an
extensions/amp-access/0.1/amp-access-source.js:438
↓ 4 callers
Function
makeBodyVisibleRecovery
(doc)
src/style-installer.js:234
↓ 4 callers
Method
mapFromTokensArray_
* Returns the given tokens array as a dictionary of key: token (str) and * value: number of occurrences. * @param {!Array<string>} tokens * @
extensions/amp-autocomplete/0.1/amp-autocomplete.js:903
↓ 4 callers
Method
mapLinks_
* The API response returns unique links. Map those unique links to as many * urls in the anchorList as possible. Set the replacement url as a shop-
extensions/amp-smartlinks/0.1/linkmate.js:184
← previous
next →
3,501–3,600 of 18,703, ranked by callers