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
↓ 5 callers
Function
mangleObjectValues
(obj)
src/core/types/enum.js:42
↓ 5 callers
Function
markBoxed
(t)
third_party/react-dates/bundle.js:1
↓ 5 callers
Function
maybeAppendErrorParameter
(adUrl, parameterValue)
ads/google/a4a/utils.js:880
↓ 5 callers
Method
maybeInitIframeTransport
* amp-analytics will create an iframe for vendors in * extensions/amp-analytics/0.1/vendors/* who have transport/iframe defined. * This is limit
extensions/amp-analytics/0.1/transport.js:161
↓ 5 callers
Method
maybeRenderDialogForSelectedPlatform
* Maybe renders and opens the dialog using the cached entitlements. Do nothing if the viewer can authorize the user. * @return {!Promise}
extensions/amp-subscriptions/0.1/amp-subscriptions.js:215
↓ 5 callers
Method
maybeSetInitialScrollDepth
* Set the amount that the user had scrolled down the page at the time of * page loading. * @param {number} depth
extensions/amp-analytics/0.1/visibility-model.js:460
↓ 5 callers
Method
maybeUpdateMaxScrollDepth
* Update the maximum amount that the user has scrolled down the page. * @param {number} depth
extensions/amp-analytics/0.1/visibility-manager.js:240
↓ 5 callers
Function
mockAreaWidth
(width)
extensions/amp-video-docking/0.1/test/test-amp-video-docking.js:92
↓ 5 callers
Function
mockCandidates
(candidates)
extensions/amp-auto-lightbox/0.1/test/test-amp-auto-lightbox.js:58
↓ 5 callers
Function
mockOkResponse
()
test/unit/test-xhr-fetch-polyfill.js:17
↓ 5 callers
Function
mockTrigger
(tracker)
test/unit/test-video-analytics-percentage-tracker.js:61
↓ 5 callers
Method
msg_
* @param {string} tag * @param {!LogLevel_Enum} level * @param {!Array} messages * @return {boolean} true if a the message was logged
src/utils/log.js:210
↓ 5 callers
Method
mul
(n, x, y)
third_party/zuho/zuho.js:73
↓ 5 callers
Function
n
(e,t)
examples/amp-script/todomvc.ssr.js:2
↓ 5 callers
Method
next_
* Advance to the next screen in the story, if there is one. * @param {boolean=} opt_isAutomaticAdvance Whether this navigation was caused *
extensions/amp-story/1.0/amp-story.js:1338
↓ 5 callers
Function
noCss
* @return {!Error}
extensions/amp-animation/0.1/parsers/css-expr-ast.js:1364
↓ 5 callers
Method
numberOfAdsCreated
* Number of ads created by this manager. * @return {number}
extensions/amp-story-auto-ads/0.1/story-ad-page-manager.js:102
↓ 5 callers
Function
o
(i,f)
third_party/inputmask/bundle.js:1
↓ 5 callers
Method
observe
* @param {!Element} target * @param {!ObserverCallbackDef} callback
src/utils/display-observer.js:241
↓ 5 callers
Method
observe
* Observes the intersections of the specified element in the viewport. * @param {!Element} unusedElement * @param {function(number)} unusedListe
extensions/amp-analytics/0.1/visibility-manager.js:535
↓ 5 callers
Method
observe
* @param {!Element} element * @param {!Element} parent * @param {function(!ViewportRelativePos)} callback
extensions/amp-next-page/1.0/visibility-observer.js:258
↓ 5 callers
Function
onBindReadyAndRescan
* @param {!Object} env * @param {!Bind} bind * @param {!Array<!Element>} added * @param {!Array<!Element>} removed * @param {!BindRescanOptions=}
extensions/amp-bind/0.1/test/integration/test-bind-impl.js:172
↓ 5 callers
Method
onCancel
* @param {function()} callback
third_party/subscriptions-project/swg.js:4040
↓ 5 callers
Method
onDrag_
* @private
extensions/amp-story-interactive/0.1/amp-story-interactive-slider.js:249
↓ 5 callers
Method
onNewAdView
@override
extensions/amp-story-auto-ads/0.1/algorithm-count-pages.js:69
↓ 5 callers
Method
onResizeDebounced
* Handle resize events and set the story's desktop state. * @visibleForTesting
extensions/amp-story/1.0/amp-story.js:1769
↓ 5 callers
Method
onSessionEnd
* Register a listener to be notified when a session has ended * @param {!Function} listener
src/service/video-session-manager.js:19
↓ 5 callers
Method
onStateUpdated_
* @param {!HistoryStateDef} historyState * @private
src/service/history-impl.js:199
↓ 5 callers
Method
onViewportCallback_
* Triggered when the ad either enters or exits the visible viewport. * @param {!IntersectionObserverEntry} entry handed over by the IntersectionObs
extensions/amp-ad/0.1/legacy-ad-intersection-observer-host.js:132
↓ 5 callers
Method
openIframe
* Start an activity within the specified iframe. * @param {!HTMLIFrameElement} iframe * @param {string} url * @param {?Object=} args * @pa
third_party/subscriptions-project/swg.js:6985
↓ 5 callers
Function
parseFavicon
(doc)
src/mediasession-helper.js:107
↓ 5 callers
Function
parseMultipleActions
(s)
test/unit/test-action.js:77
↓ 5 callers
Function
parseOgImage
(doc)
src/mediasession-helper.js:93
↓ 5 callers
Function
parseSchemaImage
(doc)
src/mediasession-helper.js:55
↓ 5 callers
Method
pause_
@private
extensions/amp-animation/0.1/amp-animation.js:494
↓ 5 callers
Method
pcdata
* Callback for pcdata. Some text nodes can trigger the start of the body * region. * @param {string} text
validator/js/engine/htmlparser.js:394
↓ 5 callers
Function
persistCookie
(cookieName, cookieValue)
test/unit/test-cid-api.js:12
↓ 5 callers
Method
persistToken_
* @param {string|undefined} tokenValue * @param {number} expires
src/service/cid-api.js:175
↓ 5 callers
Function
placeRatio
(ampEl, width, height, ratio)
extensions/amp-video-docking/0.1/test/test-amp-video-docking.js:110
↓ 5 callers
Method
play
* Plays the video. * * @param {boolean} unusedIsAutoplay Whether the call to the `play` method is * triggered by the autoplay functionality.
src/video-interface.js:88
↓ 5 callers
Function
preloadFriendlyIframeEmbedExtensions
(win, extensions)
src/friendly-iframe-embed.js:115
↓ 5 callers
Method
previous_
* Go back to the previous screen in the story, if there is one. * @private
extensions/amp-story/1.0/amp-story.js:1382
↓ 5 callers
Method
purgeBefore
* Removes elements from the history older than the specified time. * @param {time} time
src/focus-history.js:107
↓ 5 callers
Function
range
* Generate a random number between min and max * Value is inclusive of both min and max values. * * @param {number} min * @param {number} max * @
build-system/server/app.js:681
↓ 5 callers
Function
re
(e)
third_party/inputmask/bundle.js:11
↓ 5 callers
Function
recreateNonProtoObject
(obj)
src/core/types/object/index.js:203
↓ 5 callers
Method
register
@param {!VideoOrBaseElementDef} video
extensions/amp-video-docking/0.1/amp-video-docking.js:454
↓ 5 callers
Method
registerPlatform
* This method registers an auto initialized subcription platform with this * service. * * @param {string} platformKey * @param {function(!
extensions/amp-subscriptions/0.1/amp-subscriptions.js:301
↓ 5 callers
Method
remove
* @param {string} name
src/service/storage-impl.js:281
↓ 5 callers
Method
removeFromFixedLayer
@override
src/inabox/inabox-viewport.js:351
↓ 5 callers
Function
removeParamsFromSearch
(urlSearch, paramName)
src/url.js:477
↓ 5 callers
Method
render
* Render the configured date picker component. * @param {?JsonObject=} opt_additionalProps * @return {!Promise}
extensions/amp-date-picker/0.1/amp-date-picker.js:1897
↓ 5 callers
Method
renderOutsideViewport
@override
extensions/amp-a4a/0.1/amp-a4a.js:448
↓ 5 callers
Method
renderStarted
* An implementation can call this method to signal to the element that * it has started rendering.
src/base-element.js:821
↓ 5 callers
Method
renderTemplatePromiseForTesting
* Returns a promise that resolves when tempalte render finishes. The promise * will be null if the template render has not started. * @visibleFo
extensions/amp-form/0.1/amp-form.js:1415
↓ 5 callers
Method
renderTemplate_
* Renders a template based on the form state and its presence in the form. * @param {!JsonObject} data * @return {!Promise} * @private
extensions/amp-form/0.1/amp-form.js:1244
↓ 5 callers
Method
render_
* - Updates distances of the stories. * - Appends / removes from the DOM depending on distances. * - Sets visibility state. * - Loads story N
src/amp-story-player/amp-story-player-impl.js:1239
↓ 5 callers
Method
requireTarget_
* @return {!Element} * @private
extensions/amp-animation/0.1/web-animations.js:1137
↓ 5 callers
Method
requiresShadowDom
()
test/unit/test-custom-element-registry.js:25
↓ 5 callers
Method
resetAutoAdvance_
* Resets auto advance. If auto advance is disabled, this is a no-op. If it * is enabled, it starts a debounced timer for advancing.
extensions/amp-base-carousel/0.1/auto-advance.js:251
↓ 5 callers
Function
resetEvtListenerOptsSupportForTesting
()
src/core/dom/event-helper-listen.js:120
↓ 5 callers
Method
resetInputOnWrapAround
* Restore the input element to display the user's non-autocompleted partial string * @param {string} unusedUserInput * @param {!HTMLInputElement
extensions/amp-autocomplete/0.1/autocomplete-binding-def.js:40
↓ 5 callers
Function
resetLogConstructorForTesting
()
src/utils/log.js:538
↓ 5 callers
Method
resetTouchZoom
@override
src/inabox/inabox-viewport.js:328
↓ 5 callers
Method
resolveConfig
* @return {!Promise<!PageConfig>}
third_party/subscriptions-project/config.js:681
↓ 5 callers
Method
resolveDeferredsWhenWithinViewports_
@private resolves promises populated via whenWithinViewport.
src/service/resource.js:716
↓ 5 callers
Method
resolve_
* @param {string} exprString * @param {function(Window, string):ExprDef} parser * @param {string} emptyExprValue * @return {string} value
src/core/dom/media-query-props.js:91
↓ 5 callers
Method
reverse
()
extensions/amp-animation/0.1/runners/animation-runner.js:48
↓ 5 callers
Method
run
* @param {string} name * @param {function(): void} fn * @return {void|Mocha.Test}
build-system/tasks/e2e/describes-e2e.js:330
↓ 5 callers
Method
runAnim
* Runs the animation vsync task. This operation can only run when animations * are allowed. Otherwise, this method returns `false` and exits. *
src/service/vsync-impl.js:300
↓ 5 callers
Function
runVsync
()
test/unit/test-viewport.js:151
↓ 5 callers
Method
satisfiesTrust
* Returns true if the trigger event has a trust equal to or greater than * `minimumTrust`. Otherwise, logs a user error and returns false. * @pa
src/service/action-impl.js:206
↓ 5 callers
Function
scale
(value)
src/core/dom/style.js:267
↓ 5 callers
Method
schedule_
* Schedule running the next queued task. * @private
src/chunk.js:473
↓ 5 callers
Function
screenProperty
* Returns a function that returns property of screen. This is a byte saving * hack. * * @param {!Screen} screen * @param {string} property * @ret
src/service/url-replacements-impl.js:63
↓ 5 callers
Function
selectDate
(controller, id, date)
extensions/amp-date-picker/0.1/test-e2e/test-blocked-dates.js:16
↓ 5 callers
Method
sendBeacon
* POST data to a URL endpoint, do not wait for a response. * @param {string} url * @param {string|!Object} data
extensions/amp-subscriptions-google/0.1/amp-subscriptions-google.js:1076
↓ 5 callers
Method
sendCommand
* Sends the specified command from the port to the host or vice versa. * @param {string} cmd * @param {?Object=} opt_payload
extensions/amp-access/0.1/iframe-api/messenger.js:123
↓ 5 callers
Method
sendCommandWhenReady_
* Sends a command to the viewer via postMessage when iframe is ready * * @param {string} action * @param {(JsonObject|boolean)=} args * @r
extensions/amp-3d-gltf/0.1/amp-3d-gltf.js:199
↓ 5 callers
Method
sendCommand_
* @param {string} method * @param {?Object|string=} params * @private
extensions/amp-vimeo/0.1/amp-vimeo.js:324
↓ 5 callers
Method
sendCommand_
* Sends a command to the player through postMessage. * @param {string} command * @param {Array=} opt_args * @private
extensions/amp-youtube/0.1/amp-youtube.js:371
↓ 5 callers
Method
sendCommand_
* Sends a command to the player through postMessage. * @param {string} command * @private
extensions/amp-wistia-player/0.1/amp-wistia-player.js:197
↓ 5 callers
Method
sendCommand_
* Sends a command to the player through postMessage. * @param {string} action * @param {string=} opt_valueType * @param {number=} opt_value
extensions/amp-bodymovin-animation/0.1/amp-bodymovin-animation.js:201
↓ 5 callers
Function
sendExpandMessage
* Send a message requesting an expand. * @param {number} height * @param {number} width
extensions/amp-ad-network-doubleclick-impl/0.1/test/test-doubleclick-safeframe.js:698
↓ 5 callers
Function
serviceUrl
* @param {string} url Relative URL, e.g. "/service1". * @return {string} The complete URL.
third_party/subscriptions-project/swg.js:5552
↓ 5 callers
Method
setAuthResponse_
* @param {!JsonObject} authResponse * @private
extensions/amp-access/0.1/amp-access-source.js:379
↓ 5 callers
Method
setBody
* Signals that the shadow doc has a body. * @param {!Element} body * @restricted
src/service/ampdoc-impl.js:930
↓ 5 callers
Method
setDefaultHandler
()
extensions/amp-viewer-integration/0.1/test/integration/test-amp-viewer-integration.js:55
↓ 5 callers
Function
setImportantStyles
* Sets the CSS styles of the specified element with !important. The styles * are specified as a map from CSS property names to their values. * * Th
third_party/subscriptions-project/swg.js:15894
↓ 5 callers
Function
setMediaSession
(win, metadata, playHandler, pauseHandler)
src/mediasession-helper.js:33
↓ 5 callers
Function
setMergeLocators
(targetMatch, altMatch)
third_party/inputmask/inputmask.js:909
↓ 5 callers
Method
setParent
* Sets (or unsets) the direct parent. If the parent is set, the node will no * longer try to discover itself. * * @param {?(ContextNode<?>|No
src/core/context/node.js:309
↓ 5 callers
Method
setPlayingStateForTesting_
* Sets whether the audio is playing or not. * @param {boolean} isPlaying * @private
extensions/amp-audio/0.1/amp-audio.js:271
↓ 5 callers
Method
setSku
* @param {string} value
third_party/subscriptions-project/swg.js:1444
↓ 5 callers
Function
setSrcdocSupportedForTesting
(val)
src/friendly-iframe-embed.js:77
↓ 5 callers
Function
setTime
(epochTime)
extensions/amp-ad-exit/0.1/test-e2e/test-amp-ad-exit.js:15
↓ 5 callers
Method
setTransition_
* @param {!HTMLIFrameElement} iframe * @param {string} transitionStyle * @private
third_party/subscriptions-project/swg.js:16842
↓ 5 callers
Method
setWidgetDisabled_
* * @param {!Element} widget * @param {boolean} isDisabled * @private
extensions/amp-web-push/0.1/amp-web-push-config.js:232
↓ 5 callers
Method
set_
* Sets or animates pan/zoom parameters. * @param {number} newScale * @param {number} newPosX * @param {number} newPosY * @param {boolean}
extensions/amp-pan-zoom/0.1/amp-pan-zoom.js:928
↓ 5 callers
Method
setupAutoplay_
* Sets up the `autoplay` configuration. * @private
extensions/amp-carousel/0.1/slidescroll.js:1041
← previous
next →
3,001–3,100 of 18,703, ranked by callers