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
Method
getBody
* 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 callers
Function
getButton
(document, className)
extensions/amp-lightbox-gallery/0.1/test/integration/test-amp-lightbox-gallery.js:244
↓ 4 callers
Method
getClientTouchCoordinates_
* 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 callers
Function
getComputedLeft
(win)
extensions/amp-fx-collection/0.1/test/integration/test-amp-fx-fly-in.js:137
↓ 4 callers
Function
getConsentDataToForward
(element, opt_policyId)
src/consent.js:90
↓ 4 callers
Method
getConsentMetadataInfo
* 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 callers
Method
getConsentRemote_
* 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 callers
Function
getContainers
(impls)
extensions/amp-ad-network-doubleclick-impl/0.1/sra-utils.js:308
↓ 4 callers
Function
getContent
()
extensions/amp-lightbox/1.0/test/test-amp-lightbox.js:36
↓ 4 callers
Function
getCookieOptOut
(impls)
extensions/amp-ad-network-doubleclick-impl/0.1/sra-utils.js:121
↓ 4 callers
Method
getCurrentFontSize
* Returns the current font size. * @return {number}
extensions/amp-animation/0.1/parsers/css-expr-ast.js:60
↓ 4 callers
Method
getCurrentIndex
* 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 callers
Method
getCurrentTimestampMs_
* @return {number} The current timestamp, in milliseconds. * @private
extensions/amp-story/1.0/page-advancement.js:847
↓ 4 callers
Function
getDeepArray
()
test/unit/core/types/object/test-object.js:245
↓ 4 callers
Method
getDevicePixelRatio
* @static * @return {number}
src/core/window/interface.js:67
↓ 4 callers
Method
getDuration
* Total duration of the video in seconds * * This is used for analytics metadata. * * @return {number}
src/video-interface.js:72
↓ 4 callers
Method
getElement
* Gets the iframe element. * @return {!HTMLIFrameElement}
third_party/subscriptions-project/swg.js:10268
↓ 4 callers
Function
getElementChildren
(content)
build-system/server/app-index/test/helpers.js:3
↓ 4 callers
Function
getEsbuildBabelPlugin
* 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 callers
Function
getExperimentIds
(impls)
extensions/amp-ad-network-doubleclick-impl/0.1/sra-utils.js:250
↓ 4 callers
Function
getExtensionsToBuild
* 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 callers
Function
getFakeSources
* @param {!Array<number>} indices * @return {!Array<!Element>}
extensions/amp-story/1.0/test/test-media-tasks.js:138
↓ 4 callers
Function
getFakeVideoUrl
* @param {number} index * @return {string}
extensions/amp-story/1.0/test/test-media-tasks.js:120
↓ 4 callers
Method
getFetchJsonCallback
* 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 callers
Function
getForceSafeframe
(impls)
extensions/amp-ad-network-doubleclick-impl/0.1/sra-utils.js:272
↓ 4 callers
Method
getFormData
@override
src/form-data-wrapper.js:171
↓ 4 callers
Method
getFromHostForTesting_
* 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 callers
Function
getHintContainerFromHost
* 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 callers
Method
getHistory_
* @private * @return {!../../../src/service/history-impl.History}
extensions/amp-sidebar/0.1/amp-sidebar.js:721
↓ 4 callers
Function
getHrefMinusHash
* Returns href without hash. * @param {!Location} location * @return {string}
src/service/navigation.js:796
↓ 4 callers
Function
getImgur
(imgurId)
extensions/amp-imgur/0.1/test/test-amp-imgur.js:44
↓ 4 callers
Function
getImplClassSyncForTesting
(element)
src/custom-element.js:2203
↓ 4 callers
Function
getIncrementingValueFunction
* Returns a method that resolves the numbers 0 through 6. * @return {function():!Promise<number>}
test/e2e/test-expect.js:1568
↓ 4 callers
Function
getIndex
* 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 callers
Function
getIndex
* 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 callers
Method
getInitialPageId_
* 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 callers
Function
getIzlesene
(videoId, opt_responsive)
extensions/amp-izlesene/0.1/test/test-amp-izlesene.js:18
↓ 4 callers
Function
getKey
* @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 callers
Function
getKey
* @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 callers
Function
getKeywordsString
(metaElements)
extensions/amp-addthis/0.1/addthis-utils/classify.js:277
↓ 4 callers
Method
getLanguage
* 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 callers
Function
getLanguageCodeFromElement
* 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 callers
Method
getLanguageCodesForElement
* @param {!Element} element * @return {!Array<string>}
src/service/localization/index.js:104
↓ 4 callers
Method
getLast
* Returns the element that was focused last. * @return {?Element}
src/focus-history.js:96
↓ 4 callers
Method
getLayoutPriority
@override
extensions/amp-iframe/0.1/amp-iframe.js:548
↓ 4 callers
Method
getLayoutSize
* Returns a previously measured layout size. * @return {!../layout-rect.LayoutSizeDef}
src/service/resource.js:592
↓ 4 callers
Method
getLoadMoreLoadingElement
* @return {?Element}
extensions/amp-list/0.1/service/load-more-service.js:101
↓ 4 callers
Method
getMacroNames
* Return any macros that exist in the given url. * @param {string} url * @return {!Array}
src/service/url-expander/expander.js:100
↓ 4 callers
Function
getMatchedContentResponsiveHeightAndUpdatePubParams
( availableWidth, element )
ads/google/utils.js:193
↓ 4 callers
Method
getMinimalPingReturnForTesting
* @param {?Object} metadata * @param {number=} opt_tcfPolicyVersion * @return {!MinimalPingReturn} * @visibleForTesting
extensions/amp-consent/0.1/tcf-api-command-manager.js:349
↓ 4 callers
Function
getMockIframeWindowWithLocation
(url)
test/unit/3p/test-recaptcha.js:29
↓ 4 callers
Function
getModalStackLength
()
src/core/dom/modal.js:253
↓ 4 callers
Function
getMode
()
build-system/babel-plugins/babel-plugin-amp-mode-transformer/test/fixtures/transform-assertions/no-transform/output.js:7
↓ 4 callers
Function
getNavigationData
(win, attribute)
src/service/variable-source.js:146
↓ 4 callers
Method
getNextPageId
* 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 callers
Function
getNextTitle
(el)
extensions/amp-carousel/0.2/test/test-type-slides.js:44
↓ 4 callers
Function
getNextTitle
(el)
extensions/amp-carousel/0.1/test/test-slidescroll.js:1426
↓ 4 callers
Function
getNexxtvPlayer
(attributes)
extensions/amp-nexxtv-player/0.1/test/test-amp-nexxtv-player.js:24
↓ 4 callers
Method
getNotification
* 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 callers
Method
getNumberAttributeOr_
* 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 callers
Method
getPageConfig
* Returns the page config. * @return {!PageConfigInterface}
extensions/amp-subscriptions/0.1/service-adapter.js:40
↓ 4 callers
Method
getPageEl
* @protected * @return {Element} the page element
extensions/amp-story-interactive/0.1/amp-story-interactive-abstract.js:247
↓ 4 callers
Method
getPageIndexById
* @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 callers
Method
getPageParameters
* @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 callers
Method
getPage_
* @private * @return {?Element} the parent amp-story-page
extensions/amp-story-360/0.1/amp-story-360.js:403
↓ 4 callers
Method
getParentMenu_
* 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 callers
Function
getPerformanceMarks
()
test/unit/test-performance.js:561
↓ 4 callers
Method
getPortPromise_
* @return {!Promise<!../components/activities.ActivityIframePort>} * @private
third_party/subscriptions-project/swg.js:3975
↓ 4 callers
Function
getPositionObserver
(win)
ads/inabox/position-observer.js:181
↓ 4 callers
Function
getPrevTitle
(el)
extensions/amp-carousel/0.2/test/test-type-slides.js:48
↓ 4 callers
Function
getPrevTitle
(el)
extensions/amp-carousel/0.1/test/test-slidescroll.js:1432
↓ 4 callers
Function
getPrimitiveKey
(e)
third_party/react-dates/bundle.js:1
↓ 4 callers
Function
getQueryParams
(url)
extensions/amp-skimlinks/0.1/test/test-waypoint.js:65
↓ 4 callers
Function
getQueue
()
test/unit/test-action.js:1026
↓ 4 callers
Method
getReadyPromise
* 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 callers
Method
getRect
@override
src/service/viewport/viewport-impl.js:373
↓ 4 callers
Function
getReddit
(src, type)
extensions/amp-reddit/0.1/test/test-amp-reddit.js:20
↓ 4 callers
Method
getRemoteData_
* 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 callers
Method
getResourceForElement
@override
src/inabox/inabox-resources.js:105
↓ 4 callers
Method
getResponseHeader
(name)
src/polyfills/fetch.js:251
↓ 4 callers
Method
getRootLayoutBox
* Returns the root's layout rect. * @return {!../../../src/layout-rect.LayoutRectDef} * @abstract
extensions/amp-analytics/0.1/visibility-manager.js:211
↓ 4 callers
Method
getSafeframePath
@override
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:1260
↓ 4 callers
Method
getScrollingElement
@override
src/inabox/inabox-viewport.js:597
↓ 4 callers
Method
getSecondaryStory_
* Gets accompanying story for the currently swiped story if any. * @private * @return {?StoryDef}
src/amp-story-player/amp-story-player-impl.js:1936
↓ 4 callers
Method
getSelectData_
* 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 callers
Function
getServiceInEmbedWin
(win, id)
src/service-helpers.js:152
↓ 4 callers
Function
getStdoutLines
* @param {string} cmd * @return {Array<string>}
build-system/tasks/sweep-experiments/index.js:53
↓ 4 callers
Function
getStoryAdMetadataFromDoc
(metaTags)
extensions/amp-story-auto-ads/0.1/story-ad-ui.js:79
↓ 4 callers
Function
getSubstitutable
(doc)
build-system/server/app-video-testbench.js:211
↓ 4 callers
Method
getSupportedScoreFactor
* Tells if the platform supports a score factor * @param {string} unusedFactor * @return {number}
extensions/amp-subscriptions/0.1/subscription-platform.js:74
↓ 4 callers
Method
getTarget
* Returns the messaging target. Only available when connection has been * establihsed. * @return {!Window}
extensions/amp-access/0.1/iframe-api/messenger.js:83
↓ 4 callers
Method
getTargetRect
* 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 callers
Function
getTimingDataAsync
(win, startEvent, endEvent)
src/service/variable-source.js:74
↓ 4 callers
Function
getTouchOptions
(x, y)
extensions/amp-story/1.0/test/test-amp-story.js:1287
↓ 4 callers
Method
getTransactionId
* @return {?string}
third_party/subscriptions-project/swg.js:478
↓ 4 callers
Method
getTransferLayer_
* @return {?TransferLayerDef}
src/service/fixed-layer.js:835
↓ 4 callers
Function
getUpiPaymentMethod
* 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 callers
Method
getUserInputForUpdateWithSelection
* 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 callers
Function
getVariableService
(win)
extensions/amp-story/1.0/variable-service.js:35
↓ 4 callers
Function
getVideoJs
(win, opt_initializer)
src/video-iframe-integration.js:60
← previous
next →
3,401–3,500 of 18,703, ranked by callers