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
↓ 2 callers
Function
stripSpace
()
src/bento/third_party/mustache/mustache.js:135
↓ 2 callers
Function
stripSuffix
(s)
build-system/babel-config/import-resolver.js:31
↓ 2 callers
Function
stripUserError
(message)
src/core/error/message-helpers.js:53
↓ 2 callers
Function
stubAllCriteriaMet
()
extensions/amp-auto-lightbox/0.1/test/test-amp-auto-lightbox.js:55
↓ 2 callers
Function
stubAllocateVariant
(sandbox, config)
extensions/amp-experiment/1.0/test/test-amp-experiment.js:78
↓ 2 callers
Function
stubAmpAutocomplete
(attributes)
extensions/amp-autocomplete/0.1/test/test-amp-autocomplete-bindings.js:23
↓ 2 callers
Function
stubAsyncErrorThrows
* Initializes the stubs to prevent async errors from being thrown during tests.
testing/async-errors.js:21
↓ 2 callers
Function
stubCollapseFrameForTesting
(implFn)
ads/inabox/frame-overlay-helper.js:126
↓ 2 callers
Function
stubHasBeenVisible
(visibility)
test/unit/test-performance.js:557
↓ 2 callers
Function
stubLegacyElements
(win)
src/service/extensions-impl.js:639
↓ 2 callers
Function
stubMeasureIntersection
(target, time, intersectionRatio)
extensions/amp-video-iframe/0.1/test/test-amp-video-iframe.js:94
↓ 2 callers
Function
stubUrlReplacementService
()
extensions/amp-analytics/0.1/test/test-config.js:992
↓ 2 callers
Function
stubUrlService
(sandbox)
extensions/amp-install-serviceworker/0.1/test/test-amp-install-serviceworker.js:18
↓ 2 callers
Function
stubValidationMessage
(input)
extensions/amp-form/0.1/test/test-form-validators.js:21
↓ 2 callers
Function
styleLoaded
* Checks whether a style element was registered in the DOM. * @param {!Document|!ShadowRoot} doc * @param {!Element} style * @return {boolean}
src/style-installer.js:271
↓ 2 callers
Function
styleLoaded
()
testing/iframe.js:311
↓ 2 callers
Function
subClass
* Setups up prototype inheritance * * @param {!SUPER} superClass * @param {!SUB} subClass * @template SUPER * @template SUB
src/polyfills/custom-elements.js:796
↓ 2 callers
Method
subscribe
* Subscribes the user to web push notifications. * * This action is exposed from this service and is called from the config * element. *
extensions/amp-web-push/0.1/web-push-service.js:688
↓ 2 callers
Method
subscribeForPushRemotely
* Requests the service worker to complete subscribing the user. * @return {Promise}
extensions/amp-web-push/0.1/web-push-service.js:379
↓ 2 callers
Method
swapPoolMediaElementOutOfDom_
* Removes a pool media element from the DOM and replaces it with the video * that it originally replaced. * @param {!PoolBoundElementDef} poolMe
extensions/amp-story/1.0/media-pool.js:584
↓ 2 callers
Method
swipeMove_
* * @param {!SwipeDef} data The data for the swipe. * @param {boolean} isLast If this move is the last movement for the swipe.
extensions/amp-sidebar/0.2/swipe-to-dismiss.js:294
↓ 2 callers
Method
swipeMove_
* * @param {!SwipeDef} data The data for the swipe. * @param {boolean} isLast If this move is the last movement for the swipe.
extensions/amp-sidebar/0.1/swipe-to-dismiss.js:294
↓ 2 callers
Function
swipeRight
()
test/unit/test-amp-story-player.js:75
↓ 2 callers
Method
switchTab_
* Switches the tab shown by activating the tab button and switching the contents. * @param {!DevToolsTab} tab
extensions/amp-story-dev-tools/0.1/amp-story-dev-tools.js:215
↓ 2 callers
Method
switchToLowerBitrate_
* Switches the video to use a lower bitrate if available. * This should be called if the video is currently in waiting mode. * @param {!Element}
extensions/amp-video/0.1/flexible-bitrate.js:237
↓ 2 callers
Method
switchToShadowInternal_
. * @param {!ElementHandle<!WebElement>} handle * @param {function(): any} getter * @return {!Promise<void>}
build-system/tasks/e2e/selenium-webdriver-controller.js:668
↓ 2 callers
Method
switchTo_
* @param {string} targetPageId * @param {!NavigationDirection} direction * @private
extensions/amp-story/1.0/amp-story-page.js:1621
↓ 2 callers
Function
sync
(value)
test/unit/test-loading-indicator.js:56
↓ 2 callers
Function
syncResolve
(v)
test/unit/utils/test-log.js:674
↓ 2 callers
Function
systemShareSupported
(viewer, platform)
extensions/amp-social-share/1.0/amp-social-share.js:68
↓ 2 callers
Function
ta
()
third_party/wgxpath/wgxpath.js:32
↓ 2 callers
Function
tag
* @param {!Window} global * @param {!Object} data
ads/vendors/pulsepoint.js:23
↓ 2 callers
Function
tagUsage
* @param {CompilerNode} node * @param {string} opt_name
build-system/eslint-rules/html-template.js:77
↓ 2 callers
Method
takeOwnershipOfDescendants_
* Takes ownership of all AMP element descendants. * @private
extensions/amp-lightbox/0.1/amp-lightbox.js:193
↓ 2 callers
Method
takeRecords
()
test/unit/polyfills/test-intersection-observer.js:30
↓ 2 callers
Method
takeRecords
@return {!Array<!IntersectionObserverEntry>}
src/polyfills/stubs/intersection-observer-stub.js:219
↓ 2 callers
Method
takeRecords_
()
testing/fake-dom.js:743
↓ 2 callers
Method
tearDownElement_
* Undoes set up by removing element record and and resets `top` style. * Does _not_ return the element from the transfer layer. * * @param {!
src/service/fixed-layer.js:745
↓ 2 callers
Method
tearDownSlot
* Attempts to tear down and set all state variables to initial conditions. * @protected
extensions/amp-a4a/0.1/amp-a4a.js:1463
↓ 2 callers
Method
tearDownSlot
@override
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:1186
↓ 2 callers
Function
templateContentClone
(template)
src/core/dom/index.js:303
↓ 2 callers
Function
templateFunc
(name, variants, fn, describeFunc)
testing/describes.js:247
↓ 2 callers
Function
test
()
build-system/babel-plugins/babel-plugin-transform-inline-isenumvalue/test/fixtures/transform-assertions/enumvalues/input.mjs:22
↓ 2 callers
Function
testControlsActivatedBy
(tapOrHover)
examples/visual-tests/amp-video-docking/amp-video-docking.js:46
↓ 2 callers
Function
testElementR1
(implClass, options = {})
testing/element-v1.js:125
↓ 2 callers
Function
testIframe
(iframe, id)
extensions/amp-iframely/0.1/test/test-amp-iframely.js:46
↓ 2 callers
Function
testIframe
(iframe)
extensions/amp-instagram/0.1/test/test-amp-instagram.js:72
↓ 2 callers
Function
testIframe
(elem, impl)
extensions/amp-byside-content/0.1/test/test-amp-byside-content.js:53
↓ 2 callers
Function
testPositionCallback
()
test/unit/inabox/test-inabox-viewport.js:141
↓ 2 callers
Function
testRewritten
()
extensions/amp-install-serviceworker/0.1/test/test-amp-install-serviceworker.js:691
↓ 2 callers
Method
thenAlways
* Callback for regardless whether the animation succeeds or fails. * @param {!Function=} opt_callback * @return {!Promise}
src/utils/animation.js:217
↓ 2 callers
Function
thirdPartyBootstrap
* Copies frame.html to output folder, replaces js references to minified * copies, and generates symlink to it. * * @param {string} input * @param
build-system/tasks/helpers.js:651
↓ 2 callers
Function
throttleByAnimationFrame
* @param {!Window} win * @param {function(...*)} fn * @return {function(...*)}
extensions/amp-video-docking/0.1/amp-video-docking.js:143
↓ 2 callers
Method
tickCountDown_
* @param {number} differentBetween * @private
extensions/amp-date-countdown/0.1/amp-date-countdown.js:190
↓ 2 callers
Function
timeZ
(yyyy, mm, dd, hours, minutes)
build-system/common/update-session-issues/index.js:297
↓ 2 callers
Function
timeoutCallback
* Callback invoked after the specified delay. It will further postpone * invocation of the original function delegating it to the *
third_party/resize-observer-polyfill/ResizeObserver.js:773
↓ 2 callers
Function
timeoutFontFaces
* Sets font faces that haven't been loaded by the time this was called to * `font-display: swap` in supported browsers. * See https://developer.mozi
src/font-stylesheet-timeout.js:112
↓ 2 callers
Function
to
(e)
examples/amp-script/vue-todomvc.js:7
↓ 2 callers
Function
toLowerCase
(str)
validator/js/engine/htmlparser-interface.js:6
↓ 2 callers
Function
toNumber
(e)
third_party/react-dates/bundle.js:1
↓ 2 callers
Function
toStructuredCloneable
(input, init)
src/utils/xhr-utils.js:70
↓ 2 callers
Function
toggleA11yReadable
(el, isVisible)
extensions/amp-story/1.0/utils.js:367
↓ 2 callers
Method
toggleAutoplay_
* Toggles the current autoplay state, or forces it if the enable * argument is given. * @param {boolean=} enable
extensions/amp-carousel/0.2/amp-carousel.js:665
↓ 2 callers
Method
toggleAutoplay_
* Called by toggleAutoplay action to toggle the autoplay feature. * @param {boolean} toggleOn * @private
extensions/amp-carousel/0.1/slidescroll.js:1088
↓ 2 callers
Method
toggleCaptions_
* Shows or hides the captions for all elements that implement toggleCaptions. * @param {boolean} captionsState * @return {!Promise}
extensions/amp-story/1.0/amp-story-page.js:2041
↓ 2 callers
Method
toggleDeviceChipsWithSpaceAvailable_
* Disable the chips in the dialog based on whether they have the remaining space available * Must be called in a mutate context. * @private
extensions/amp-story-dev-tools/0.1/amp-story-dev-tools-tab-preview.js:821
↓ 2 callers
Function
toggleMuted
(video, muted)
ads/google/ima/ima-video.js:1190
↓ 2 callers
Method
togglePaused_
* Makes the current story play or pause its content/auto-advance * @param {boolean} paused If true, the story will be paused, and it will be played
src/amp-story-player/amp-story-player-impl.js:366
↓ 2 callers
Function
toggleScrollable
(page, toggle)
examples/visual-tests/amp-video-docking/amp-video-docking.js:8
↓ 2 callers
Method
toggleZoomButtonIn_
* @private
extensions/amp-pan-zoom/0.1/amp-pan-zoom.js:881
↓ 2 callers
Method
toggleZoomButtonOut_
* @private
extensions/amp-pan-zoom/0.1/amp-pan-zoom.js:891
↓ 2 callers
Function
tokenizeString
* Takes a string, removes '.', and splits by special characters. * Returns the resulting array of tokens.
src/bento/components/bento-autocomplete/1.0/component/token-prefix-match.ts:7
↓ 2 callers
Function
tr
(n,t,e)
third_party/d3/d3.js:2
↓ 2 callers
Function
transform
* @param {string} contents * @param {string=} opt_filename * @return {Promise<CssTransformResultDef>}
build-system/tasks/css/jsify-css.js:159
↓ 2 callers
Function
transform
(x, y, scale)
extensions/amp-video-docking/0.1/amp-video-docking.js:136
↓ 2 callers
Function
transformCssSync
* Synchronously transforms a css string using postcss. * @param {string} cssStr the css text to transform * @param {!Object=} opt_cssnano cssnano o
build-system/tasks/css/jsify-css-sync.js:16
↓ 2 callers
Function
transformMatrix
(x, y, scale)
extensions/amp-video-docking/0.1/test/test-amp-video-docking.js:147
↓ 2 callers
Function
transformScript
* @param {string} file * @return {string}
build-system/common/update-packages.js:148
↓ 2 callers
Method
transformSrcDoc_
* Transforms the srcdoc attribute if present to an equivalent data URI. * * It may be OK to change this later to leave the `srcdoc` in place and
extensions/amp-iframe/0.1/amp-iframe.js:234
↓ 2 callers
Method
transitionImg_
* Transitions the sourceElement into the lightbox or the lightbox to the * sourceElement. * @param {!Element} sourceElement The element that is
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:836
↓ 2 callers
Method
treatAsList_
* @return {boolean} True if we should treat the carousel as a list, false if * we should expose a single slide at a time.
extensions/amp-base-carousel/0.1/carousel-accessibility.js:114
↓ 2 callers
Method
triggerAnalyticsEvent_
* Wrapper around {@code triggerAnalyticsEvent}. * @param {string} eventType * @param {string} toURL The new url after the event. * @param {st
extensions/amp-next-page/0.1/next-page-service.js:588
↓ 2 callers
Method
triggerAnalytics_
* Triggers the analytics event for quiz response. * * @param {number} optionIndex * @private
extensions/amp-story-interactive/0.1/amp-story-interactive-abstract.js:533
↓ 2 callers
Method
triggerEvent_
* Triggeres event to window. * * @param {string} name * @param {!ActionTrust_Enum} trust * @private
extensions/amp-lightbox/0.1/amp-lightbox.js:863
↓ 2 callers
Method
triggerEvent_
* @param {string} name * @param {!ActionTrust_Enum} trust * @private
extensions/amp-sidebar/0.2/amp-sidebar.js:714
↓ 2 callers
Method
triggerEvent_
* @param {string} name * @param {!ActionTrust_Enum} trust * @private
extensions/amp-sidebar/0.1/amp-sidebar.js:730
↓ 2 callers
Method
triggerFetchErrorEvent_
* Trigger a fetch-error event * @param {*} error
extensions/amp-list/0.1/amp-list.js:696
↓ 2 callers
Method
triggerLinkProgress
* @return {boolean} Whether the callback has been found.
third_party/subscriptions-project/swg.js:9100
↓ 2 callers
Method
triggerScrollEvents_
* @param {!{[key: number]: boolean}} bounds * @param {number} scrollPos Number representing the current scroll * @param {string} varName variabl
extensions/amp-analytics/0.1/events.js:815
↓ 2 callers
Method
triggerScroll_
* Dispatches the `scroll` event (at most every animation frame) * * This event is triggered only when position-observer triggers which is * a
extensions/amp-position-observer/0.1/amp-position-observer.js:155
↓ 2 callers
Function
truncAndTimeUrl
(baseUrl, parameters, startTime)
ads/google/a4a/utils.js:385
↓ 2 callers
Function
truncate
* @param {!Node} node The node to truncate. * @param {string} originalText The original text of the node, used for * restoring on subsequent trun
extensions/amp-truncate-text/0.1/truncate-text.js:120
↓ 2 callers
Function
truncateYyyyMmDd
(formattedDate)
build-system/tasks/sweep-experiments/index.js:210
↓ 2 callers
Method
truncate_
* Truncates the content of the element. * @private
extensions/amp-truncate-text/0.1/amp-truncate-text.js:206
↓ 2 callers
Method
trustForSubmitResponse_
* Returns the action trust for submit-success and submit-error events. * @param {!ActionTrust_Enum} incomingTrust * @return {!ActionTrust_Enum}
extensions/amp-form/0.1/amp-form.js:966
↓ 2 callers
Function
tryParseJson
* Parses the given `json` string without throwing an exception if not valid. * Returns `undefined` if parsing fails. * Returns the `Object` correspo
third_party/subscriptions-project/swg-gaa.js:436
↓ 2 callers
Function
tryParseRrulestr
* Tries to parse a string into an RRULE object. * @param {string} str A string which represents a repeating date RRULE spec. * @return {?RRule}
extensions/amp-date-picker/1.0/component/dates-list.js:27
↓ 2 callers
Function
tryParseRrulestr
* Tries to parse a string into an RRULE object. * @param {string} str A string which represents a repeating date RRULE spec. * @return {?RRule}
extensions/amp-date-picker/0.1/dates-list.js:153
↓ 2 callers
Method
tryToDecryptDocumentImpl_
* @private * @param {string} decryptedDocumentKey * @return {!Promise}
extensions/amp-subscriptions/0.1/crypto-handler.js:102
↓ 2 callers
Method
tryUpgrade_
* Try to upgrade the element with the provided implementation. * @return {!Promise|undefined} * @private @final
src/custom-element.js:1303
← previous
next →
7,001–7,100 of 18,703, ranked by callers