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
Nn
(n)
third_party/d3/d3.js:1
↓ 4 callers
Function
O
(e)
examples/amp-script/vue-todomvc.js:7
↓ 4 callers
Function
Pt
(e,a,s,c,u,l)
examples/amp-script/vue-todomvc.js:7
↓ 4 callers
Function
Q
(t,n,a,r)
third_party/inputmask/bundle.js:11
↓ 4 callers
Function
Qu
(n,t,e,r,i)
third_party/d3/d3.js:3
↓ 4 callers
Function
Ra
(a)
third_party/wgxpath/wgxpath.js:43
↓ 4 callers
Function
Re
(e,a,t)
third_party/react-dates/bundle.js:1
↓ 4 callers
Function
Ut
(e)
examples/amp-script/vue-todomvc.js:7
↓ 4 callers
Function
Vn
(n)
third_party/d3/d3.js:1
↓ 4 callers
Function
W
(e)
third_party/d3/d3.js:1
↓ 4 callers
Function
Xi
(n,t)
third_party/d3/d3.js:2
↓ 4 callers
Function
Zi
(n)
third_party/d3/d3.js:2
↓ 4 callers
Method
__mutate
* This is a non-standard method that allows you to queue a mutation. * * @param {!Object} mutation * @return {!Promise}
testing/fake-dom.js:753
↓ 4 callers
Function
_t
(n)
third_party/d3/d3.js:1
↓ 4 callers
Function
action
(message)
extensions/amp-app-banner/1.0/storybook/Basic.js:7
↓ 4 callers
Method
actions_
* Finds any elements in the page that has a goToPage action. * @return {!Array<string>} The IDs of the potential next pages in the story * or nu
extensions/amp-story/1.0/amp-story-page.js:1550
↓ 4 callers
Method
activate
* Activates the subscription platform and hands over the control for * rendering. * @param {!./entitlement.Entitlement} unusedEntitlement * @
extensions/amp-subscriptions/0.1/subscription-platform.js:30
↓ 4 callers
Function
addAmpState
* @param {!Object} env * @param {?Element} container * @param {string} id * @param {!Promise} valuePromise
extensions/amp-bind/0.1/test/integration/test-bind-impl.js:66
↓ 4 callers
Function
addCsiSignalsToAmpAnalyticsConfig
( win, element, config, qqid, isVerifiedAmpCreative )
ads/google/a4a/utils.js:794
↓ 4 callers
Function
addDocumentVisibilityChangeListener
(doc, handler)
src/core/document/visibility.js:47
↓ 4 callers
Function
addHoverEventToElement
(element, callback)
ads/google/ima/ima-video.js:472
↓ 4 callers
Method
addLabels
* @param {!Array<string>} labels
third_party/subscriptions-project/swg.js:7875
↓ 4 callers
Method
addLoadingBar
* Adds a loading bar. * * @return {!Promise}
extensions/amp-subscriptions/0.1/renderer.js:62
↓ 4 callers
Method
addMacros
* Parses and stores the given macros and returns map of macro `id` to * parse errors. * @param {!Array<!BindMacroDef>} macros * @return {!{[k
extensions/amp-bind/0.1/bind-evaluator.js:76
↓ 4 callers
Function
addParam
* @param {string} script * @param {string} name * @param {string|number}value * @return {string}
ads/vendors/videonow.js:65
↓ 4 callers
Method
afterEvent_
* @param {!Event} event * @private
src/gesture.js:434
↓ 4 callers
Function
afterScrollAndIntersectingPromise
* Scrolls an element into view and waits for an intersection observer to * trigger. * @param {!Element} el * @param {!Element} root * @return {!Pr
extensions/amp-base-carousel/0.1/test/test-child-layout-manager.js:52
↓ 4 callers
Method
alignToViewport
Aligns the responsive element with the viewport edges.
extensions/amp-ad-network-adsense-impl/0.1/responsive-state.js:307
↓ 4 callers
Function
ampStateKey
(...keys)
build-system/server/app-index/amphtml-helpers.js:35
↓ 4 callers
Function
analyseMask
(maskString, format, opts)
third_party/inputmask/inputmask.date.extensions.js:143
↓ 4 callers
Method
analyticsEvent_
* Construct an analytics event and trigger it. * @param {string} eventType * @param {!{[key: string]: number}} vars A map of vars and their valu
extensions/amp-story-auto-ads/0.1/story-ad-page.js:537
↓ 4 callers
Method
animateHideHint_
* Hide hint with animation * @private
extensions/amp-image-slider/0.1/amp-image-slider.js:403
↓ 4 callers
Method
animate_
* @param {function():!Promise} callback * @return {!Promise} * @private
third_party/subscriptions-project/swg.js:11249
↓ 4 callers
Function
appendEncodedParamStringToUrl
( url, paramString, opt_addToFront )
src/url.js:184
↓ 4 callers
Method
append_
* @param {!Element} element * @return {!Element} * @private
extensions/amp-video-docking/0.1/amp-video-docking.js:519
↓ 4 callers
Function
apply
(ampdoc, element)
extensions/amp-auto-lightbox/0.1/amp-auto-lightbox.js:416
↓ 4 callers
Method
applyFirstFrame
* Applies the first animation frame as CSS props. This is similar to filling * the animation backwards, except: * - it evaluates before amp-anim
extensions/amp-story/1.0/animation.js:294
↓ 4 callers
Method
assertAbsoluteHttpOrHttpsUrl
* Asserts that a given url is an absolute HTTP or HTTPS URL. * @param {string} urlString * @return {string}
src/service/url-impl.js:125
↓ 4 callers
Function
assertCharacterDataMutationFormat
(mutationRecord)
extensions/amp-experiment/1.0/mutation/mutation.js:65
↓ 4 callers
Function
assertInvocation
( inv, node, method, source, caller, opt_event, child, opt_args )
test/unit/test-action.js:53
↓ 4 callers
Method
assertSsrTemplate_
* Asserts that SSR support is the same as value. * @param {boolean} value * @param {string} msg * @private
extensions/amp-form/0.1/amp-form.js:1099
↓ 4 callers
Method
attach
* Attaches the Classic 'Subscribe With Google' button. * @param {!Element} button * @param {../api/subscriptions.ButtonOptions|function()} optio
third_party/subscriptions-project/swg.js:8786
↓ 4 callers
Method
attemptToFit_
* Attempts to change the height of the amp-list to fit a target child. * * If the target's height is greater than the amp-list's height, attempt
extensions/amp-list/0.1/amp-list.js:1343
↓ 4 callers
Method
attemptToMatchResponsiveHeight
* Attempts to change the size to match the desired responsive height. * @return {!Promise} a promise that resolves when we have attempted to change
extensions/amp-ad-network-adsense-impl/0.1/responsive-state.js:401
↓ 4 callers
Method
authorize
* @return {!Promise<!JsonObject>}
extensions/amp-access-laterpay/0.2/laterpay-impl.js:210
↓ 4 callers
Method
authorize
* @return {!Promise<!JsonObject>}
extensions/amp-access-laterpay/0.1/laterpay-impl.js:177
↓ 4 callers
Method
authorizeOnServer_
* @return {!Promise<!JsonObject>} * @private
extensions/amp-access/0.1/amp-access-server-jwt.js:303
↓ 4 callers
Method
autoplayLoadedVideoVisibilityChanged_
* Called when visibility of a loaded autoplay video changes. * @private
src/service/video-manager-impl.js:912
↓ 4 callers
Function
b
()
third_party/react-dates/bundle.js:1
↓ 4 callers
Function
base64Decode
(str)
third_party/subscriptions-project/aes_gcm.js:121
↓ 4 callers
Function
be
(e,a)
third_party/react-dates/bundle.js:1
↓ 4 callers
Method
boundX_
* Returns the X position within the allowed range with possible extent. * @param {number} x * @param {boolean} allowExtent * @return {number}
extensions/amp-image-lightbox/0.1/amp-image-lightbox.js:428
↓ 4 callers
Method
boundX_
* Returns the X position within the allowed range with possible extent. * @param {number} x * @param {boolean} allowExtent * @return {number}
extensions/amp-image-viewer/0.1/amp-image-viewer.js:582
↓ 4 callers
Method
boundY_
* Returns the Y position within the allowed range with possible extent. * @param {number} y * @param {boolean} allowExtent * @return {number}
extensions/amp-image-lightbox/0.1/amp-image-lightbox.js:444
↓ 4 callers
Method
boundY_
* Returns the Y position within the allowed range with possible extent. * @param {number} y * @param {boolean} allowExtent * @return {number}
extensions/amp-image-viewer/0.1/amp-image-viewer.js:598
↓ 4 callers
Function
broadcastReply
* Sends a postMessage() to all window frames the service worker controls. * @param {string} command * @param {!JsonObject} payload
extensions/amp-web-push/0.1/amp-web-push.service-worker.js:165
↓ 4 callers
Function
bt
(n)
third_party/d3/d3.js:1
↓ 4 callers
Method
buildCallback
@override
extensions/amp-skimlinks/0.1/amp-skimlinks.js:56
↓ 4 callers
Method
buildElidedUrl_
* Builds an elided, shortened URL suitable for display in error messages from * the given request. * @param {!FetchRequestDef} request * @ret
extensions/amp-list/0.1/amp-list.js:882
↓ 4 callers
Function
buildLoginUrl
* @param {string} url * @param {string} returnUrl * @return {string} * @private
extensions/amp-access/0.1/login-dialog.js:341
↓ 4 callers
Function
bytesToString
* Converts a 8-bit bytes array into a string * @param {!Uint8Array} bytes * @return {string}
third_party/subscriptions-project/swg.js:3176
↓ 4 callers
Function
bytesToUInt32
(bytes)
src/core/types/string/bytes.js:74
↓ 4 callers
Function
c
(e)
examples/amp-script/vue-todomvc.js:7
↓ 4 callers
Function
c
(t,n,a)
third_party/inputmask/bundle.js:11
↓ 4 callers
Function
calculateScriptBaseUrl
(location, opt_isLocalDev)
src/service/extension-script.js:19
↓ 4 callers
Method
canAnimate_
* @param {!Node=} opt_contextNode * @return {boolean} * @private
src/service/vsync-impl.js:272
↓ 4 callers
Function
canInspectWindow
(win)
src/iframe-helper.js:564
↓ 4 callers
Function
canSetCookie
(win)
src/cookies.js:283
↓ 4 callers
Function
causeWait
(video, opt_time)
extensions/amp-video/0.1/test/test-flexible-bitrate.js:248
↓ 4 callers
Function
changeInput
(element, value)
extensions/amp-form/0.1/test/test-amp-form.js:3291
↓ 4 callers
Method
checkFirstInteractionAndMaybeFetchData_
* Requests remote data source, if provided, on first user interaction. * @return {!Promise} * @private
extensions/amp-autocomplete/0.1/amp-autocomplete.js:980
↓ 4 callers
Function
checkProps
* Verify required props and throw error if necessary. * @param {string|undefined} url URL to check * @return {boolean} true on valid
extensions/amp-embedly-card/1.0/component.js:85
↓ 4 callers
Function
checkPropsFor
(propDefs, cb)
src/preact/parse-props.js:89
↓ 4 callers
Method
checkSha384
* Checks if `sha384(script)` exists in `meta[name="amp-script-src"]` element * in document head. * * @param {string} script The script conten
extensions/amp-script/0.1/amp-script.js:624
↓ 4 callers
Function
checkSourceMap
* @param {string} map The map filepath to check * @param {boolean} checkMappings Whether to test a mapping points to a correct source.
build-system/tasks/check-sourcemaps.js:158
↓ 4 callers
Function
checkVal
(input, writeOut, strict, nptvl, initiatingEvent)
third_party/inputmask/inputmask.js:2126
↓ 4 callers
Function
chromeSupportsPaymentRequest
* @return {boolean} true if this version of Chrome supports PaymentRequest.
third_party/subscriptions-project/swg.js:15971
↓ 4 callers
Function
ciPullRequestSha
* Returns the commit SHA being tested by a PR build. * @return {string}
build-system/common/ci.js:101
↓ 4 callers
Function
cleanHtml
(html: string, keepAttrs?: string[])
testing/helpers/cleanHtml.ts:7
↓ 4 callers
Function
cleanupObserver
()
extensions/amp-image-slider/0.1/test/integration/test-amp-image-slider.js:1052
↓ 4 callers
Method
cleanup_
@private
src/core/context/subscriber.js:209
↓ 4 callers
Method
clearAllItems_
* Delete all children to the container_ * @private
extensions/amp-autocomplete/0.1/amp-autocomplete.js:1283
↓ 4 callers
Method
close
* Closes the dialog. * @return {!Promise}
extensions/amp-subscriptions/0.1/dialog.js:95
↓ 4 callers
Method
close_
* Close the specified submenu. * @param {!Element} submenu * @private
extensions/amp-nested-menu/0.1/amp-nested-menu.js:225
↓ 4 callers
Method
close_
* Closes the share menu. * @private
extensions/amp-story/1.0/amp-story-share.js:118
↓ 4 callers
Method
collapseElement
@override
src/service/mutator-impl.js:117
↓ 4 callers
Method
collapseFrame
* Collapses an iframe back from full overlay. * @param {!HTMLIFrameElement} iframe * @param {!Function} callback Gets executed when collapsed wi
ads/inabox/frame-overlay-manager.js:63
↓ 4 callers
Function
collapse_dots
* Normalizes its input path and collapses all . and .. sequences except for * .. sequences that would take it above the root of the current parent *
third_party/caja/html-sanitizer.js:158
↓ 4 callers
Method
combinedResponses
* Either combine namespaced responses or just return the single one. * * @return {!JsonObject}
extensions/amp-access/0.1/amp-access.js:764
↓ 4 callers
Method
commitSwitch_
* Update the slides need to be loaded given current position. * Preload next slides and update control button state. * @param {number} pos *
extensions/amp-carousel/0.1/scrollable-carousel.js:294
↓ 4 callers
Function
compileCoreRuntime
* Compile and optionally minify the core runtime. * * @param {!Object} options * @return {Promise<void>}
build-system/tasks/helpers.js:133
↓ 4 callers
Function
compileCss
* Compile all the css and drop in the build folder * * @param {Object=} options * @return {!Promise<void>}
build-system/tasks/css/index.js:127
↓ 4 callers
Function
connectTree
()
test/unit/core/context/test-node-discover.js:516
↓ 4 callers
Function
copyElementToChildWindow
(parentWin, childWin, name)
src/service/custom-element-registry.js:158
↓ 4 callers
Function
createAmpElement
(attrs)
test/unit/preact/test-slot.js:137
↓ 4 callers
Function
createAmpStoryPanningMedia
(imagePath, attributes = {})
extensions/amp-story-panning-media/0.1/test/test-amp-story-panning-media.js:36
↓ 4 callers
Function
createConfigurableRunner
* Creates a configurable version of a top-level describes runner. * @param {function(!Object):!Array<?Fixture>} factory
testing/describes.js:375
↓ 4 callers
Function
createElement
(rect)
test/unit/test-mutator.js:62
↓ 4 callers
Function
createElementWithResource
(id)
test/unit/test-resources.js:1384
↓ 4 callers
Function
createEventErrorMessage
* Helper function to describe an issue with an event object * @param {!string} valueName * @param {?*} value * @returns {!string}
third_party/subscriptions-project/swg.js:7175
← previous
next →
3,201–3,300 of 18,703, ranked by callers