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
↓ 1 callers
Method
getDims
* @return {!Promise<!StoryAnimationDimsDef>} * @visibleForTesting
extensions/amp-story/1.0/animation.js:205
↓ 1 callers
Method
getDistanceFromAd_
* @param {number} yPosition * @param {!Element} ad * @return {!Promise<number>} The absolute value of the minimum vertical * distance fro
extensions/amp-auto-ads/0.1/ad-tracker.js:125
↓ 1 callers
Method
getDocumentCookie_
* @private * @return {string}
third_party/subscriptions-project/swg.js:18379
↓ 1 callers
Method
getDocumentReferrer
* @static * @param {Window} win * @return {string}
src/core/window/interface.js:30
↓ 1 callers
Method
getDomElement
* Returns the IFrame DOM element. * @return {?Element}
extensions/amp-web-push/0.1/iframehost.js:80
↓ 1 callers
Method
getDomainAffiliateStatus_
* @param {string} domain * @return {string} * @private
extensions/amp-skimlinks/0.1/affiliate-link-resolver.js:181
↓ 1 callers
Function
getDriver
* Get the driver for the configured engine. * @param {!DescribesConfigDef} describesConfig * @param {BrowserNameDef} browserName * @param {string|u
build-system/tasks/e2e/describes-e2e.js:643
↓ 1 callers
Method
getDuration
@override
extensions/amp-vimeo/0.1/amp-vimeo.js:302
↓ 1 callers
Method
getDwellTime
* Returns dwell time. * * @return {number}
extensions/amp-addthis/0.1/addthis-utils/monitors/dwell-monitor.js:35
↓ 1 callers
Method
getEditName_
* Retrieve edit name. * @return {string} * @private
extensions/amp-smartlinks/0.1/linkmate.js:161
↓ 1 callers
Function
getEffectiveLayout
(element)
src/core/static-layout.js:210
↓ 1 callers
Method
getElement
@override
extensions/amp-story/1.0/amp-story.js:2360
↓ 1 callers
Method
getElementDistance
* @param {!Element} unusedElement The element whose distance should be * retrieved. * @return {number} A numerical distance representing how
extensions/amp-story/1.0/media-pool.js:1088
↓ 1 callers
Function
getElementNodeTree
* Returns the node tree of the current element starting from * the document root * @param {?Element} el * @return {Array} node list of the element'
extensions/amp-analytics/0.1/opacity.js:63
↓ 1 callers
Function
getElementOpacity
* Returns the Opacity value of the element. * @param {!Element} el * @return {number}
extensions/amp-analytics/0.1/opacity.js:35
↓ 1 callers
Method
getElementRect
* @param {!ElementHandle<!WebElement>} handle * @return {!Promise<!DOMRectDef>}
build-system/tasks/e2e/selenium-webdriver-controller.js:372
↓ 1 callers
Method
getElementScrollTop_
* @param {!Element} element * @return {!Promise<number>}
src/service/viewport/viewport-impl.js:613
↓ 1 callers
Function
getElementServicePromiseOrNull
* Returns the promise for service with `id` on the given window if available. * Otherwise, resolves with null (service was not registered). * @param
src/element-service.js:175
↓ 1 callers
Method
getElementSignal
@override
extensions/amp-analytics/0.1/events.js:958
↓ 1 callers
Method
getElementVisibility
@override
extensions/amp-analytics/0.1/visibility-manager.js:717
↓ 1 callers
Method
getElement_
* @param {string} selector * @param {?string} selectionMethod * @return {!Element} * @private
extensions/amp-animation/0.1/web-animations.js:1257
↓ 1 callers
Function
getElements
* @param {!Object|!Array} poolOrPools * @return {!Array<!HTMLMediaElement>}
extensions/amp-story/1.0/test/test-media-pool.js:75
↓ 1 callers
Method
getElementsByQuerySelectorAll_
* @param {!Array<string>} selectors Array of DOM query selectors. * @param {boolean} useDataVars Indicator if DataVars restristiction should be app
extensions/amp-analytics/0.1/analytics-root.js:230
↓ 1 callers
Method
getElementsForLightboxGroup
* Return a list of lightboxable elements * @param {string} lightboxGroupId * @return {!Promise<!Array<!Element>>}
extensions/amp-lightbox-gallery/0.1/service/lightbox-manager-impl.js:302
↓ 1 callers
Method
getElementsOnDockArea_
* @param {!VideoOrBaseElementDef} video * @return {!Array<!Element>} * @private
extensions/amp-video-docking/0.1/amp-video-docking.js:1097
↓ 1 callers
Method
getElementsSizes_
* Cache the rects of each of the elements. * @return {!Promise<!Array<!ClientRect>>} * @private
extensions/amp-selector/0.1/amp-selector.js:680
↓ 1 callers
Function
getEmbedContainer
* Create DOM element for the Facebook embedded content plugin. * @param {!Window} global * @param {!Object} data The element data * @param {string}
3p/facebook.js:168
↓ 1 callers
Method
getEmbedOverrides_
* Retrieves the embed mode config, that will override the default state. * @return {!{[key: StateProperty]: *}} Partial state * @protected
extensions/amp-story/1.0/amp-story-store-service.js:660
↓ 1 callers
Function
getEmbedType
()
3p/frame-metadata.js:133
↓ 1 callers
Method
getEmbedUrl_
* @return {string} * @private
extensions/amp-youtube/0.1/amp-youtube.js:153
↓ 1 callers
Function
getEmbeddedWidgetContainer
* Create DOM element for the Yotpo Embedded Widget plugin: * @param {!Window} global * @param {!Object} data The element data * @return {!Element}
3p/yotpo.js:182
↓ 1 callers
Function
getEmbedly
* Loads embedly card SDK that is consumed by this 3p integration. * * @param {!Window} global * @param {function()} callback * @visibleForTesting
3p/embedly.js:51
↓ 1 callers
Method
getEncType_
* Gets and validates an attribute for form request encoding type. * @param {string} attribute * @return {?string} * @private
extensions/amp-form/0.1/amp-form.js:262
↓ 1 callers
Method
getEncryptedKeys
* This method is used for testing. * @return {?JsonObject}
extensions/amp-subscriptions/0.1/crypto-handler.js:55
↓ 1 callers
Function
getEndpoint
* Helper function to get endpoint string based on how tag is configured. * * @param {!Object} data * @return {string}
ads/vendors/revcontent.js:62
↓ 1 callers
Function
getEngData
(params)
extensions/amp-addthis/0.1/addthis-utils/eng.js:14
↓ 1 callers
Method
getEntitlementForSource
* Returns the first matching entitlement for the specified source w/o * matching any specific products. * @param {string} source * @return {?
third_party/subscriptions-project/swg.js:4459
↓ 1 callers
Method
getEntitlements
@override
third_party/subscriptions-project/swg.js:19234
↓ 1 callers
Method
getEntitlementsFlow_
* @param {!GetEntitlementsParamsExternalDef=} params * @return {!Promise<!Entitlements>} * @private
third_party/subscriptions-project/swg.js:12746
↓ 1 callers
Method
getEntries_
* @param {PerformanceMethods} networkMethod * @return {Promise<*>}
build-system/tasks/e2e/network-logger.js:27
↓ 1 callers
Function
getEntryPointModule
* Returns a single module that contains a list of entry points to these files: * - extensions/{$extension}/{$version}/{$extension}.js * - src/amp.js
build-system/tasks/dep-check.js:159
↓ 1 callers
Function
getEnvironmentHash
@return {Promise<string>}
build-system/tasks/css/jsify-css.js:53
↓ 1 callers
Method
getEpoch_
* @return {number|undefined} * @private
extensions/amp-date-display/0.1/amp-date-display.js:174
↓ 1 callers
Method
getError
* @return {?string}
third_party/subscriptions-project/swg.js:1570
↓ 1 callers
Method
getEstimatedPositionFromAnchorLayout_
* @param {!../../../src/layout-rect.LayoutRectDef} anchorLayout * @return {number} * @private
extensions/amp-auto-ads/0.1/placement.js:155
↓ 1 callers
Method
getEvent
* @return {?AnalyticsEvent}
third_party/subscriptions-project/swg.js:815
↓ 1 callers
Function
getEventData
* Returns the event data as an object, or null * @param {{ data: object | string }} ev * @return {object|null}
src/bento/components/bento-imgur/1.0/component.js:77
↓ 1 callers
Method
getEventManager
* This one exists as a public API so publishers can subscribe to SwG events. * @override
third_party/subscriptions-project/swg.js:19513
↓ 1 callers
Function
getEventParams
* @param {string} sku * @return {!EventParams}
third_party/subscriptions-project/swg.js:6275
↓ 1 callers
Function
getEventualUrl
* Given an anchor tag, figure out whether this goes to an AMP destination * via a redirect. * @param {!Element} a An anchor tag. * @return {string|
ads/alp/handler.js:120
↓ 1 callers
Function
getExcludedDomains_
* * @param {!Element} element * @param {!Array<string>} internalDomains * @return {!Array<string>}
extensions/amp-skimlinks/0.1/skim-options.js:46
↓ 1 callers
Method
getExistingCloseButton_
* Gets a close button, provided by the page author, if one exists. * @return {?Element} The close button. * @private
extensions/amp-lightbox/0.1/amp-lightbox.js:656
↓ 1 callers
Method
getExistingCloseButton_
* Gets a close button, provided by the page author, if one exists. * @return {?Element} The close button.
extensions/amp-sidebar/0.2/amp-sidebar.js:320
↓ 1 callers
Method
getExistingCloseButton_
* Gets a close button, provided by the page author, if one exists. * @return {?Element} The close button.
extensions/amp-sidebar/0.1/amp-sidebar.js:322
↓ 1 callers
Function
getExistingIssuesWithSessionDate
* @param {string} token * @param {string} repo * @param {Array<string>} labels * @return {Promise<Array<IssueWithSessionDateDef>>}
build-system/common/update-session-issues/index.js:419
↓ 1 callers
Function
getExpectedOutput
* Extracts the expected output for a test from its output file. * * @param {string} inputFile * @return {Promise<string>}
build-system/tasks/server-tests.js:79
↓ 1 callers
Function
getExperimentConstant
* Get experiment constant to define from command line arguments, if any * * @return {string|undefined}
build-system/babel-config/helpers.js:13
↓ 1 callers
Function
getExperimentGlobals
* Dynamically extracts experiment globals from the config file. * * @return {!Object}
.eslintrc.js:18
↓ 1 callers
Method
getExternalCid_
* Returns the "external cid". This is a cid for a specific purpose * (Say Analytics provider X). It is unique per user, userAssert, that purpose
src/service/cid-impl.js:226
↓ 1 callers
Function
getFacebookSdk
* Produces the Facebook SDK object for the passed in callback. * * Note: Facebook SDK fails to render multiple plugins when the SDK is only * loade
3p/facebook.js:31
↓ 1 callers
Function
getFakeSource
* @param {number} index * @return {!Element}
extensions/amp-story/1.0/test/test-media-tasks.js:128
↓ 1 callers
Method
getFallback
* Returns an optional fallback element for this custom element. * @return {?Element} * @package @final
src/custom-element.js:1962
↓ 1 callers
Method
getFetchingPromise
* For an "amp-state" with a src attribute, this returns a promise that * resolves after the fetch and update completes. For non-src "amp-state"s,
extensions/amp-bind/0.1/amp-state.js:226
↓ 1 callers
Method
getFieBody_
* @param {!../../../src/friendly-iframe-embed.FriendlyIframeEmbed} friendlyIframeEmbed * @return {!Element}
extensions/amp-a4a/0.1/amp-a4a.js:2045
↓ 1 callers
Function
getFileBabelOptions
* @param {!Object} babelOptions * @param {string} filename * @return {!Object}
build-system/common/esbuild-babel.js:233
↓ 1 callers
Function
getFileGroups
* Separates the list of files to check into groups based on their AMP formats. * @param {Array<string>} filesToCheck * @return {Promise<Object>}
build-system/tasks/validate-html-fixtures.js:64
↓ 1 callers
Function
getFilesChanged
* Gets the list of files changed on the current branch that match the given * array of glob patterns using the given options. * * @param {!Array<st
build-system/common/utils.js:51
↓ 1 callers
Function
getFingerprint
* Generates a semi-unique value for page visitor. * @return {string}
extensions/amp-analytics/0.1/linker.js:125
↓ 1 callers
Function
getFingerprint
* Generates a semi-unique value for page visitor. * @return {string}
extensions/amp-consent/0.1/linker.js:125
↓ 1 callers
Function
getFirefoxArgs
* Configure firefox args. * * @param {!SeleniumConfigDef} config * @return {!Array<string>}
build-system/tasks/e2e/describes-e2e.js:178
↓ 1 callers
Function
getFormProxyConstr
* @param {!Window} win * @return {function(new:Object, !HTMLFormElement)}
extensions/amp-form/0.1/form-proxy.js:48
↓ 1 callers
Function
getFragmentId
(url)
extensions/amp-addthis/0.1/addthis-utils/fragment.js:60
↓ 1 callers
Method
getFragmentParamData_
* Return the FRAGMENT_PARAM from the original location href * @param {*} param * @param {string} defaultValue * @return {string} * @privat
src/service/url-replacements-impl.js:744
↓ 1 callers
Function
getFrameAttributes
* Produces the attributes for the ad template. * @param {!Window} parentWindow * @param {!AmpElement} element * @param {string=} opt_type * @param
src/3p-frame.js:33
↓ 1 callers
Function
getFrameDoc
(iframe)
extensions/amp-story-auto-ads/0.1/utils.js:51
↓ 1 callers
Function
getFrontmatter
* @param {string} content * @return {?string}
build-system/tasks/markdown-toc/index.js:36
↓ 1 callers
Method
getFullWidthHeight_
* Calculates the appropriate width for a responsive full width ad unit. * @param {number} width * @param {number} maxHeight * @return {number
extensions/amp-ad/0.1/amp-ad-3p-impl.js:505
↓ 1 callers
Function
getFullWidthSignalVisitor
* Returns a Dom visitor callback that will compute the 'fws' request * parameter. * @param {function(!FULL_WIDTH_SIGNALS): undefined} setSignal Call
extensions/amp-ad-network-doubleclick-impl/0.1/flexible-ad-slot-utils.js:77
↓ 1 callers
Function
getFullWidthSignalVisitor
* Returns a Dom visitor callback that will compute the 'fws' request * parameter. * @param {function(!FULL_WIDTH_SIGNALS): undefined} setSignal Call
extensions/amp-ad-network-valueimpression-impl/0.1/flexible-ad-slot-utils.js:77
↓ 1 callers
Method
getGaaUser_
* Returns the GAA user, after the user signs in. * @private * @nocollapse * @return {!Promise<!GoogleUserDef>}
third_party/subscriptions-project/swg-gaa.js:2239
↓ 1 callers
Method
getGeo_
* Resolves the value via geo service. * @param {function(!../../extensions/amp-geo/0.1/amp-geo.GeoDef)} getter * @param {string} expr * @retu
src/service/url-replacements-impl.js:784
↓ 1 callers
Function
getGistJs
* Get the correct script for the gist. * * Use writeScript: Failed to execute 'write' on 'Document': It isn't possible * to write into a document f
3p/github.js:16
↓ 1 callers
Function
getGithubIssues
* @param {string} token * @param {string} repo * @param {Array<string>} labels * @return {Promise<Object>}
build-system/common/update-session-issues/index.js:197
↓ 1 callers
Function
getGraphqlIssueId
* @param {string} token * @param {string} repo * @param {number|string} number * @return {Promise<string>}
build-system/common/update-session-issues/index.js:210
↓ 1 callers
Function
getHTMLElementContentRect
* Calculates content rectangle of provided HTMLElement. * * @param {HTMLElement} target - Element for which to calculate the content rectang
third_party/resize-observer-polyfill/ResizeObserver.js:230
↓ 1 callers
Function
getHTMLElementContentRect
* Calculates content rectangle of provided HTMLElement. * * @param {HTMLElement} target - Element for which to calculate the content rectang
third_party/resize-observer-polyfill/ResizeObserver.install.js:229
↓ 1 callers
Method
getHead
@override
extensions/amp-subscriptions/0.1/doc-impl.js:40
↓ 1 callers
Method
getHead
@override
third_party/subscriptions-project/swg-gaa.js:1371
↓ 1 callers
Method
getHeight
@override
src/service/viewport/viewport-impl.js:343
↓ 1 callers
Function
getHelperIframe
* Returns the iframe in this testing AMP iframe that partially matches the * URL set in the test config. Partial matches are possible only since
extensions/amp-web-push/0.1/test/test-web-push-permission-dialog.js:33
↓ 1 callers
Method
getHiddenInputId_
* Generate a name for a hidden input. * Date pickers not in a form don't need named hidden inputs. * @param {!Element} form * @param {!DateFi
extensions/amp-date-picker/0.1/amp-date-picker.js:897
↓ 1 callers
Function
getHistoryLength
* @param {!Window} win * @return {number}
ads/google/a4a/utils.js:412
↓ 1 callers
Function
getHistoryLength
* @param {!Window} win * @return {number}
extensions/amp-ad-network-valueimpression-impl/0.1/amp-ad-network-valueimpression-impl.js:391
↓ 1 callers
Method
getHostWindow_
* Calculate the hostWindow * @private * @return {!Window}
3p/ampcontext.js:388
↓ 1 callers
Method
getHostingPageUrl_
* Returns the hosting page url. * * @private * @return {string} The hosting page url
third_party/subscriptions-project/swg.js:16676
↓ 1 callers
Method
getHotPatchCountry_
* @return {string} * @private
extensions/amp-geo/0.1/amp-geo.js:172
↓ 1 callers
Function
getHrefWithoutHost
({host, href, protocol})
build-system/server/app-utils.js:92
↓ 1 callers
Method
getIFrameSrc_
* @return {Promise} * @private
extensions/amp-vk/0.1/amp-vk.js:69
↓ 1 callers
Method
getIdleRenderEnabled_
* @return {number|boolean} render on idle configuration with false * indicating disabled. * @private
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:357
↓ 1 callers
Function
getIframe
(src)
test/unit/test-intersection-observer-polyfill.js:35
← previous
next →
8,801–8,900 of 18,703, ranked by callers