MCPcopy Create free account

hub / github.com/ampproject/amphtml / functions

Functions18,703 in github.com/ampproject/amphtml

↓ 4 callersMethodgetBody
* Returns the ampdoc's body. Requires the body to already be available. * * See `isBodyAvailable` and `waitForBodyOpen`. * * @return {!Ele
src/service/ampdoc-impl.js:493
↓ 4 callersFunctiongetButton
(document, className)
extensions/amp-lightbox-gallery/0.1/test/integration/test-amp-lightbox-gallery.js:244
↓ 4 callersMethodgetClientTouchCoordinates_
* Helper to retrieve the touch coordinates from a TouchEvent. * @param {!Event} event * @return {?{x: number, y: number}} * @private
src/amp-story-player/amp-story-player-impl.js:2070
↓ 4 callersFunctiongetComputedLeft
(win)
extensions/amp-fx-collection/0.1/test/integration/test-amp-fx-fly-in.js:137
↓ 4 callersFunctiongetConsentDataToForward
(element, opt_policyId)
src/consent.js:90
↓ 4 callersMethodgetConsentMetadataInfo
* Get the consent metadata value of a policy. Return a promise that resolves * when the policy resolves. * @param {string} policyId * @return
extensions/amp-consent/0.1/consent-policy-manager.js:333
↓ 4 callersMethodgetConsentRemote_
* Get localStored consent info, and send request to get consent from endpoint * if there is checkConsentHref specified. * @return {!Promise<?Jso
extensions/amp-consent/0.1/amp-consent.js:740
↓ 4 callersFunctiongetContainers
(impls)
extensions/amp-ad-network-doubleclick-impl/0.1/sra-utils.js:308
↓ 4 callersFunctiongetContent
()
extensions/amp-lightbox/1.0/test/test-amp-lightbox.js:36
↓ 4 callersFunctiongetCookieOptOut
(impls)
extensions/amp-ad-network-doubleclick-impl/0.1/sra-utils.js:121
↓ 4 callersMethodgetCurrentFontSize
* Returns the current font size. * @return {number}
extensions/amp-animation/0.1/parsers/css-expr-ast.js:60
↓ 4 callersMethodgetCurrentIndex
* Returns the current target's index in the context of other selected * targets. * @return {number}
extensions/amp-animation/0.1/parsers/css-expr-ast.js:48
↓ 4 callersMethodgetCurrentTimestampMs_
* @return {number} The current timestamp, in milliseconds. * @private
extensions/amp-story/1.0/page-advancement.js:847
↓ 4 callersFunctiongetDeepArray
()
test/unit/core/types/object/test-object.js:245
↓ 4 callersMethodgetDevicePixelRatio
* @static * @return {number}
src/core/window/interface.js:67
↓ 4 callersMethodgetDuration
* Total duration of the video in seconds * * This is used for analytics metadata. * * @return {number}
src/video-interface.js:72
↓ 4 callersMethodgetElement
* Gets the iframe element. * @return {!HTMLIFrameElement}
third_party/subscriptions-project/swg.js:10268
↓ 4 callersFunctiongetElementChildren
(content)
build-system/server/app-index/test/helpers.js:3
↓ 4 callersFunctiongetEsbuildBabelPlugin
* Creates a babel plugin for esbuild for the given caller. Optionally enables * caching to speed up transforms. * @param {string} callerName * @par
build-system/common/esbuild-babel.js:39
↓ 4 callersFunctiongetExperimentIds
(impls)
extensions/amp-ad-network-doubleclick-impl/0.1/sra-utils.js:250
↓ 4 callersFunctiongetExtensionsToBuild
* Process the command line arguments --noextensions, --extensions, and * --extensions_from and return a list of the referenced extensions. * * @par
build-system/tasks/extension-helpers.js:178
↓ 4 callersFunctiongetFakeSources
* @param {!Array<number>} indices * @return {!Array<!Element>}
extensions/amp-story/1.0/test/test-media-tasks.js:138
↓ 4 callersFunctiongetFakeVideoUrl
* @param {number} index * @return {string}
extensions/amp-story/1.0/test/test-media-tasks.js:120
↓ 4 callersMethodgetFetchJsonCallback
* Returns a function to fetch json from remote url, amp-state or * amp-script. * * @return {Function}
extensions/amp-render/1.0/shared/amp-fetch-utils.js:69
↓ 4 callersFunctiongetForceSafeframe
(impls)
extensions/amp-ad-network-doubleclick-impl/0.1/sra-utils.js:272
↓ 4 callersMethodgetFormData
@override
src/form-data-wrapper.js:171
↓ 4 callersMethodgetFromHostForTesting_
* Returns message id for testing. Private as message id is an implementation * detail that others should not rely on. * @param {string} method
src/video-iframe-integration.js:403
↓ 4 callersFunctiongetHintContainerFromHost
* Helper function to get the actual hint container from its host. * @param {!Element} host * @return {?Element}
extensions/amp-story/1.0/test/test-amp-story-hint.js:96
↓ 4 callersMethodgetHistory_
* @private * @return {!../../../src/service/history-impl.History}
extensions/amp-sidebar/0.1/amp-sidebar.js:721
↓ 4 callersFunctiongetHrefMinusHash
* Returns href without hash. * @param {!Location} location * @return {string}
src/service/navigation.js:796
↓ 4 callersFunctiongetImgur
(imgurId)
extensions/amp-imgur/0.1/test/test-amp-imgur.js:44
↓ 4 callersFunctiongetImplClassSyncForTesting
(element)
src/custom-element.js:2203
↓ 4 callersFunctiongetIncrementingValueFunction
* Returns a method that resolves the numbers 0 through 6. * @return {function():!Promise<number>}
test/e2e/test-expect.js:1568
↓ 4 callersFunctiongetIndex
* Returns index in provided array that matches the specified key. * * @param {Array<Array>} arr * @param {*} key *
third_party/resize-observer-polyfill/ResizeObserver.js:25
↓ 4 callersFunctiongetIndex
* Returns index in provided array that matches the specified key. * * @param {Array<Array>} arr * @param {*} key *
third_party/resize-observer-polyfill/ResizeObserver.install.js:24
↓ 4 callersMethodgetInitialPageId_
* Retrieves the initial pageId to begin the story with. In order, the * initial page for a story should be either a valid page ID in the URL * f
extensions/amp-story/1.0/amp-story.js:1177
↓ 4 callersFunctiongetIzlesene
(videoId, opt_responsive)
extensions/amp-izlesene/0.1/test/test-amp-izlesene.js:18
↓ 4 callersFunctiongetKey
* @private * @description * Utility to try to pull a key out of an element. * Uses 'data-key' if possible and falls back to 'id'. * * @param {Nod
third_party/set-dom/set-dom.js:216
↓ 4 callersFunctiongetKey
* @private * @description * Utility to try to pull a key out of an element. * Uses 'data-key' if possible and falls back to 'id'. * * @param {Nod
third_party/set-dom/original.js:214
↓ 4 callersFunctiongetKeywordsString
(metaElements)
extensions/amp-addthis/0.1/addthis-utils/classify.js:277
↓ 4 callersMethodgetLanguage
* Gets the language the UI should be displayed in. See * src/api/basic-subscriptions.ClientOptions.lang. * @return {string}
third_party/subscriptions-project/swg.js:9680
↓ 4 callersFunctiongetLanguageCodeFromElement
* Gets a language code (ex: "en-US") from a given Element. * @param {!Element} element * @return {string}
third_party/subscriptions-project/swg-gaa.js:979
↓ 4 callersMethodgetLanguageCodesForElement
* @param {!Element} element * @return {!Array<string>}
src/service/localization/index.js:104
↓ 4 callersMethodgetLast
* Returns the element that was focused last. * @return {?Element}
src/focus-history.js:96
↓ 4 callersMethodgetLayoutPriority
@override
extensions/amp-iframe/0.1/amp-iframe.js:548
↓ 4 callersMethodgetLayoutSize
* Returns a previously measured layout size. * @return {!../layout-rect.LayoutSizeDef}
src/service/resource.js:592
↓ 4 callersMethodgetLoadMoreLoadingElement
* @return {?Element}
extensions/amp-list/0.1/service/load-more-service.js:101
↓ 4 callersMethodgetMacroNames
* Return any macros that exist in the given url. * @param {string} url * @return {!Array}
src/service/url-expander/expander.js:100
↓ 4 callersFunctiongetMatchedContentResponsiveHeightAndUpdatePubParams
( availableWidth, element )
ads/google/utils.js:193
↓ 4 callersMethodgetMinimalPingReturnForTesting
* @param {?Object} metadata * @param {number=} opt_tcfPolicyVersion * @return {!MinimalPingReturn} * @visibleForTesting
extensions/amp-consent/0.1/tcf-api-command-manager.js:349
↓ 4 callersFunctiongetMockIframeWindowWithLocation
(url)
test/unit/3p/test-recaptcha.js:29
↓ 4 callersFunctiongetModalStackLength
()
src/core/dom/modal.js:253
↓ 4 callersFunctiongetMode
()
build-system/babel-plugins/babel-plugin-amp-mode-transformer/test/fixtures/transform-assertions/no-transform/output.js:7
↓ 4 callersFunctiongetNavigationData
(win, attribute)
src/service/variable-source.js:146
↓ 4 callersMethodgetNextPageId
* Gets the ID of the next page in the story (after the current page). * @param {boolean=} isAutomaticAdvance Whether this navigation was caused
extensions/amp-story/1.0/amp-story-page.js:1524
↓ 4 callersFunctiongetNextTitle
(el)
extensions/amp-carousel/0.2/test/test-type-slides.js:44
↓ 4 callersFunctiongetNextTitle
(el)
extensions/amp-carousel/0.1/test/test-slidescroll.js:1426
↓ 4 callersFunctiongetNexxtvPlayer
(attributes)
extensions/amp-nexxtv-player/0.1/test/test-amp-nexxtv-player.js:24
↓ 4 callersMethodgetNotification
* Retrieves a registered user notification by ID. Returns undefined if it * is not registered yet. * @param {string} id * @return {!Promise<?
extensions/amp-user-notification/0.1/amp-user-notification.js:497
↓ 4 callersMethodgetNumberAttributeOr_
* Tries to retrieve a number attribute, returns a default value * if unsuccessful. * @param {string} attribute * @param {number} defaultValue
extensions/amp-pan-zoom/0.1/amp-pan-zoom.js:286
↓ 4 callersMethodgetPageConfig
* Returns the page config. * @return {!PageConfigInterface}
extensions/amp-subscriptions/0.1/service-adapter.js:40
↓ 4 callersMethodgetPageEl
* @protected * @return {Element} the page element
extensions/amp-story-interactive/0.1/amp-story-interactive-abstract.js:247
↓ 4 callersMethodgetPageIndexById
* @param {string} id The ID of the page whose index should be retrieved. * @return {number} The index of the page.
extensions/amp-story/1.0/amp-story.js:2258
↓ 4 callersMethodgetPageParameters
* @param {?ConsentTupleDef} consentTuple * @param {!Array<!AmpAdNetworkDoubleclickImpl>=} instances * @return {!{[key: string]: string|boolean|n
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:620
↓ 4 callersMethodgetPage_
* @private * @return {?Element} the parent amp-story-page
extensions/amp-story-360/0.1/amp-story-360.js:403
↓ 4 callersMethodgetParentMenu_
* Get the menu containing the given element, if one exists. * @param {!Element} element * @return {?Element} * @private
extensions/amp-nested-menu/0.1/amp-nested-menu.js:351
↓ 4 callersFunctiongetPerformanceMarks
()
test/unit/test-performance.js:561
↓ 4 callersMethodgetPortPromise_
* @return {!Promise<!../components/activities.ActivityIframePort>} * @private
third_party/subscriptions-project/swg.js:3975
↓ 4 callersFunctiongetPositionObserver
(win)
ads/inabox/position-observer.js:181
↓ 4 callersFunctiongetPrevTitle
(el)
extensions/amp-carousel/0.2/test/test-type-slides.js:48
↓ 4 callersFunctiongetPrevTitle
(el)
extensions/amp-carousel/0.1/test/test-slidescroll.js:1432
↓ 4 callersFunctiongetPrimitiveKey
(e)
third_party/react-dates/bundle.js:1
↓ 4 callersFunctiongetQueryParams
(url)
extensions/amp-skimlinks/0.1/test/test-waypoint.js:65
↓ 4 callersFunctiongetQueue
()
test/unit/test-action.js:1026
↓ 4 callersMethodgetReadyPromise
* Return a promise that resolved when policy ready. * Note: the promise can be reset if use toggle consent state * @return {!Promise}
extensions/amp-consent/0.1/consent-policy-manager.js:499
↓ 4 callersMethodgetRect
@override
src/service/viewport/viewport-impl.js:373
↓ 4 callersFunctiongetReddit
(src, type)
extensions/amp-reddit/0.1/test/test-amp-reddit.js:20
↓ 4 callersMethodgetRemoteData_
* Reads the 'items' data from the URL provided in the 'src' attribute. * For use with remote data. * @return {!Promise<!Array<string>>} * @pr
extensions/amp-autocomplete/0.1/amp-autocomplete.js:421
↓ 4 callersMethodgetResourceForElement
@override
src/inabox/inabox-resources.js:105
↓ 4 callersMethodgetResponseHeader
(name)
src/polyfills/fetch.js:251
↓ 4 callersMethodgetRootLayoutBox
* Returns the root's layout rect. * @return {!../../../src/layout-rect.LayoutRectDef} * @abstract
extensions/amp-analytics/0.1/visibility-manager.js:211
↓ 4 callersMethodgetSafeframePath
@override
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:1260
↓ 4 callersMethodgetScrollingElement
@override
src/inabox/inabox-viewport.js:597
↓ 4 callersMethodgetSecondaryStory_
* Gets accompanying story for the currently swiped story if any. * @private * @return {?StoryDef}
src/amp-story-player/amp-story-player-impl.js:1936
↓ 4 callersMethodgetSelectData_
* Create the response for the 'select' AMP event. * @param {?moment} dateOrStartDate * @param {?moment=} endDate * @return {?BindDatesDetails
extensions/amp-date-picker/0.1/amp-date-picker.js:1514
↓ 4 callersFunctiongetServiceInEmbedWin
(win, id)
src/service-helpers.js:152
↓ 4 callersFunctiongetStdoutLines
* @param {string} cmd * @return {Array<string>}
build-system/tasks/sweep-experiments/index.js:53
↓ 4 callersFunctiongetStoryAdMetadataFromDoc
(metaTags)
extensions/amp-story-auto-ads/0.1/story-ad-ui.js:79
↓ 4 callersFunctiongetSubstitutable
(doc)
build-system/server/app-video-testbench.js:211
↓ 4 callersMethodgetSupportedScoreFactor
* Tells if the platform supports a score factor * @param {string} unusedFactor * @return {number}
extensions/amp-subscriptions/0.1/subscription-platform.js:74
↓ 4 callersMethodgetTarget
* Returns the messaging target. Only available when connection has been * establihsed. * @return {!Window}
extensions/amp-access/0.1/iframe-api/messenger.js:83
↓ 4 callersMethodgetTargetRect
* Get the element's layout rect relative to the viewport. Attempt to walk up * the DOM and add the offset of all nested parent iframes since * g
ads/inabox/position-observer.js:117
↓ 4 callersFunctiongetTimingDataAsync
(win, startEvent, endEvent)
src/service/variable-source.js:74
↓ 4 callersFunctiongetTouchOptions
(x, y)
extensions/amp-story/1.0/test/test-amp-story.js:1287
↓ 4 callersMethodgetTransactionId
* @return {?string}
third_party/subscriptions-project/swg.js:478
↓ 4 callersMethodgetTransferLayer_
* @return {?TransferLayerDef}
src/service/fixed-layer.js:835
↓ 4 callersFunctiongetUpiPaymentMethod
* Returns upi payment method object if it exists in allowed payment methods * or null if it doesn't * * @param {!IsReadyToPayRequest|!PaymentDataRe
third_party/subscriptions-project/swg.js:16210
↓ 4 callersMethodgetUserInputForUpdateWithSelection
* The value to show in the user input element after a suggestion has been selected * @param {string} unusedSelection * @param {!HTMLInputElement
extensions/amp-autocomplete/0.1/autocomplete-binding-def.js:29
↓ 4 callersFunctiongetVariableService
(win)
extensions/amp-story/1.0/variable-service.js:35
↓ 4 callersFunctiongetVideoJs
(win, opt_initializer)
src/video-iframe-integration.js:60
← previousnext →3,401–3,500 of 18,703, ranked by callers