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
Function
dropPixelGroups
(pixels, options)
extensions/amp-addthis/0.1/addthis-utils/pixel.js:114
↓ 1 callers
Function
dropPixelatorPixel
(url, ampDoc)
extensions/amp-addthis/0.1/addthis-utils/pixel.js:93
↓ 1 callers
Function
dt
(e,t)
examples/amp-script/vue-todomvc.js:7
↓ 1 callers
Function
duplicateErrorIfNecessary
* Some exceptions (DOMException, namely) have read-only message. * @param {!Error} error * @return {!Error}
third_party/subscriptions-project/swg.js:14050
↓ 1 callers
Function
duplicateErrorIfNecessary
* Some exceptions (DOMException, namely) have read-only message. * @param {!Error} error * @return {!Error}
third_party/subscriptions-project/config.js:483
↓ 1 callers
Function
ea
(a,b)
third_party/wgxpath/wgxpath.js:4
↓ 1 callers
Method
easeInOutQuad_
* @param {number} x * @return {number} * @private
extensions/amp-story-360/0.1/amp-story-360.js:182
↓ 1 callers
Method
easeOutQuartFn_
* Ease out quart function. * @param {number} pTimeElapsed Percentage of time elapsed. * @return {number} Percentage progress, value between 0 an
src/amp-story-player/page-scroller.js:210
↓ 1 callers
Method
effectiveBodyAttribs
* Returns the attributes from all body tags within the document. * @return {!Array<!Object>}
validator/js/engine/htmlparser.js:217
↓ 1 callers
Method
effectiveBodyTag
* HTML5 defines how parsers treat documents with multiple body tags: they * merge the attributes from the later ones into the first one. Therefore,
validator/js/engine/htmlparser-interface.js:443
↓ 1 callers
Function
elapsedTimeWithCeiling
* @param {number} time * @param {number} start * @return {(number|string)}
ads/google/a4a/utils.js:482
↓ 1 callers
Function
elapsedTimeWithCeiling
* @param {number} time * @param {number} start * @return {(number|string)}
extensions/amp-ad-network-valueimpression-impl/0.1/amp-ad-network-valueimpression-impl.js:492
↓ 1 callers
Function
elementConnectedCallback
(ampdoc, element, implementationClass)
src/service/custom-element-registry.js:182
↓ 1 callers
Method
elementIsSupported_
* Checks to see if an element is supported. * @param {Element} element * @return {boolean} * @private
extensions/amp-image-viewer/0.1/amp-image-viewer.js:262
↓ 1 callers
Method
elementNearBottom_
* Returns true if element is within 15% and 1000px of document bottom. * Caller can provide current/initial layout boxes as an optimization. * @
src/service/resources-impl.js:997
↓ 1 callers
Function
elementShorthand
* Creates a human-readable shorthand for an element similar to a CSS selector. * e.g. * * elementShorthand(anElementWithId); * // gives '#my-ele
extensions/amp-fx-collection/0.1/scroll-toggle.js:242
↓ 1 callers
Method
elementsContains_
* Returns true if `el` is contained within any element in `elements`. * @param {!Array<!Element>} elements * @param {!Element} el * @return {
extensions/amp-bind/0.1/bind-impl.js:1136
↓ 1 callers
Function
eliminate
* @param {!NodePath} path * @param {string|undefined} type * @param {boolean} assertion
build-system/babel-plugins/babel-plugin-transform-amp-asserts/index.js:44
↓ 1 callers
Function
embeddedElementsSelectors
()
extensions/amp-story/1.0/amp-story-embedded-component.js:91
↓ 1 callers
Method
emitMaxBindingsExceededError_
Emits console error stating that the binding limit was exceeded.
extensions/amp-bind/0.1/bind-impl.js:778
↓ 1 callers
Function
emojiConfetti
(rootEl, win, confettiEmoji)
extensions/amp-story-interactive/0.1/interactive-confetti.js:44
↓ 1 callers
Function
emptyTarget
(e)
third_party/react-dates/bundle.js:1
↓ 1 callers
Function
en
(n)
third_party/d3/d3.js:1
↓ 1 callers
Function
enableAmplifiedUtils
* Enable the amplified utils necessary for creatives. * @param {!Window} global
ads/vendors/amplified.js:103
↓ 1 callers
Function
enableCors
* @param {*} req require('express').Request * @param {*} res require('express').Response * @param {string=} origin * @param {string[]=} opt_exposeH
build-system/server/amp-cors.js:59
↓ 1 callers
Method
enableExternalInteractions_
* Listen to external consent flow iframe's response * with consent string and metadata.
extensions/amp-consent/0.1/amp-consent.js:300
↓ 1 callers
Method
enableFormSupport_
* Register callback that will handle form sumbits.
extensions/amp-analytics/0.1/linker-manager.js:376
↓ 1 callers
Function
enableLocalDev_
* @param {string} target File containing the AMP runtime (amp.js or v0.js) * @param {!JSON} configJson The json object in which to enable local dev
build-system/tasks/prepend-global/index.js:230
↓ 1 callers
Method
enableTimeout
* Inform consent policy manager that all consent instances * state has been initiated with remote value. And ready to start timeout
extensions/amp-consent/0.1/consent-policy-manager.js:174
↓ 1 callers
Method
enables
* Whether these entitlements enable the specified product, optionally also * restricting the source. * @param {?string} product * @param {str
third_party/subscriptions-project/swg.js:4391
↓ 1 callers
Method
enables
* @param {?string} product * @return {boolean}
third_party/subscriptions-project/swg.js:4551
↓ 1 callers
Method
enablesThisWithCacheableEntitlements
* Returns true if the current article is unlocked by a cacheable entitlement. * Metering entitlements aren't cacheable, because each metering entit
third_party/subscriptions-project/swg.js:4320
↓ 1 callers
Method
enablesThisWithGoogleDevMode
* Returns true if the current article is unlocked by a Google dev mode * entitlement. * @return {boolean}
third_party/subscriptions-project/swg.js:4348
↓ 1 callers
Function
encode
* Function that encodesURIComponent but also tilde, since we are using it as * our delimiter. * @param {string} value * @return {*} TODO(#23582): S
extensions/amp-analytics/0.1/linker.js:192
↓ 1 callers
Function
encode
* Function that encodesURIComponent but also tilde, since we are using it as * our delimiter. * @param {string} value * @return {*} TODO(#23582): S
extensions/amp-consent/0.1/linker.js:192
↓ 1 callers
Function
encodeQueryValue
* URL encoding of query string * @param {string} str * @return {string}
ads/vendors/adgeneration.js:37
↓ 1 callers
Method
endSwipe
* Handles the end of a swipe. * @param {!SwipeDef} data
extensions/amp-sidebar/0.2/swipe-to-dismiss.js:159
↓ 1 callers
Method
endSwipe
* Handles the end of a swipe. * @param {!SwipeDef} data
extensions/amp-sidebar/0.1/swipe-to-dismiss.js:159
↓ 1 callers
Method
endSwipeToDismiss_
* Ends a drag swipe, cleaning up the effects from `startSwipeToDismiss_`. * This should be called in a mutate context. * @private
extensions/amp-lightbox-gallery/0.1/swipe-to-dismiss.js:322
↓ 1 callers
Method
end_
* @param {?Event} event * @private
src/gesture-recognizers.js:406
↓ 1 callers
Method
end_
* @param {?Event} event * @private
src/gesture-recognizers.js:631
↓ 1 callers
Method
end_
* @param {?Event} event * @private
src/gesture-recognizers.js:914
↓ 1 callers
Method
enhanceBasicVariables_
* @param {!VariablesDef} data * @return {!EnhancedVariablesDef} * @private
extensions/amp-date-display/0.1/amp-date-display.js:332
↓ 1 callers
Function
enlargeKeyFrames
* Scale the image in every frame by a certain factor. * @param {WebKeyframesDef} keyframes Keyframes that will be used for the animation. * @param {
extensions/amp-story/1.0/animation-presets-utils.js:104
↓ 1 callers
Function
ensureEnvVariable_
* Ensures the presence of env variables or throws an error. * @param {...string} vars * @return {string[]}
build-system/release-workflows/upload-release.js:165
↓ 1 callers
Method
ensureMediaLoaded_
* @private * @param {?Element} mediaEl * @return {Promise}
extensions/amp-story/1.0/background-blur.js:182
↓ 1 callers
Function
ensureNpm
* If yarn is being run, print a message and cause 'yarn install' to fail. * See https://github.com/yarnpkg/yarn/issues/5063 for details on how the *
build-system/common/check-package-manager.js:91
↓ 1 callers
Function
ensureOpacityIsNoChangingAnymore
(win)
test/integration/test-position-observer.js:187
↓ 1 callers
Function
ensureOrBuildAmpRuntimeInTestMode_
* @return {Promise<void>}
build-system/tasks/visual-diff/index.js:669
↓ 1 callers
Method
ensureReadyForElements
@override
src/service/viewport/viewport-impl.js:259
↓ 1 callers
Method
ensureSpecificElementId_
* Ensures this element is defined with TAG id. * @private
extensions/amp-web-push/0.1/amp-web-push-config.js:175
↓ 1 callers
Method
ensureUniqueElement_
* Ensures there isn't another page element with the same id. * @private
extensions/amp-web-push/0.1/amp-web-push-config.js:190
↓ 1 callers
Function
ensureUpdatedPackages
* 1. Updates root-level packages during local development. (Skipped during CI * because they're guaranteed to be fresh.) * 2. Updates task-level
build-system/task-runner/amp-task-runner.js:71
↓ 1 callers
Method
enterLightbox
* Informs FixedLayer that a lightbox was opened. * * - FixedLayer hides any transfer layer elements that may be overlaid on * top of the li
src/service/fixed-layer.js:114
↓ 1 callers
Method
enterOverlayMode
@override
src/service/viewport/viewport-impl.js:749
↓ 1 callers
Method
enter_
* @param {!../video-interface.VideoOrBaseElementDef} video * @private
src/service/video-manager-impl.js:1207
↓ 1 callers
Method
enter_
* @return {!Promise} * @private
extensions/amp-image-lightbox/0.1/amp-image-lightbox.js:1024
↓ 1 callers
Method
enter_
* Entry animation to transition in a lightboxable image * @return {!Promise} * @private
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:1020
↓ 1 callers
Function
entryToExpansionOptions
* Converts a resource timing entry to the variables for this resource. * @param {!PerformanceResourceTiming} entry * @param {string} name Name of th
extensions/amp-analytics/0.1/resource-timing.js:121
↓ 1 callers
Method
entryTransitionToNextView_
* Transitions to the next view. * @private
third_party/subscriptions-project/swg.js:11057
↓ 1 callers
Function
env
* @param {string} key * @return {string}
build-system/tasks/sweep-experiments/cleanup-branches.js:16
↓ 1 callers
Function
equalsConstructorPrototypeIfNotBuggy
(t)
third_party/react-dates/bundle.js:1
↓ 1 callers
Method
equalsSafeframeContentWindow
* Returns true if the given window matches the Safeframe's content window. * Comparing to a null window will always return false. * * @param
extensions/amp-ad-network-doubleclick-impl/0.1/safeframe-host.js:197
↓ 1 callers
Function
escapeAttrib
* Escapes HTML special characters in attribute values. * * {\@updoc * $ escapeAttrib('') * # '' * $ escapeAttrib('"<<&==&>>"') // Do n
third_party/caja/html-sanitizer.js:1605
↓ 1 callers
Function
escapeCssSelectorNth
(ident)
src/core/dom/css-selectors.js:99
↓ 1 callers
Function
escapeHtml
* Escapes a string of HTML elements to HTML entities. * * @param {string} html HTML as string to escape. * @return {string}
build-system/tasks/visual-diff/helpers.js:19
↓ 1 callers
Function
escapeRegExp
* @param {string} string * @return {string}
build-system/server/app.js:1121
↓ 1 callers
Function
escapeRegExp
* Escape any regex chars from given string. * https://developer.cdn.mozilla.net/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#escaping * @para
extensions/amp-a4a/0.1/head-validation.js:71
↓ 1 callers
Function
eu
(n,t)
third_party/d3/d3.js:2
↓ 1 callers
Method
euler_
@private
third_party/zuho/zuho.js:269
↓ 1 callers
Method
eval_
* Recursively evaluates and returns value of `node` and its children. * @param {./bind-expr-defines.AstNode} node * @param {!JsonObject} scope
extensions/amp-bind/0.1/bind-expression.js:325
↓ 1 callers
Method
evaluate
* Evaluates the expression given a scope. * @param {!JsonObject} scope * @throws {Error} On illegal function invocation. * @return {BindExpre
extensions/amp-bind/0.1/bind-expression.js:241
↓ 1 callers
Method
evaluateBindingAsync_
* Resolves binding to value to be substituted asynchronously. * @param {*} binding Container for sync/async resolutions. * @param {string} name
src/service/url-expander/expander.js:334
↓ 1 callers
Method
evaluateBindingSync_
* Resolves binding to value to be substituted asynchronously. * @param {*} binding Container for sync/async resolutions. * @param {string} name
src/service/url-expander/expander.js:399
↓ 1 callers
Method
evictMediaElement_
* Evicts an element of the specified type, replaces it in the DOM with the * original media element, and returns it. * @param {!MediaType_Enum}
extensions/amp-story/1.0/media-pool.js:465
↓ 1 callers
Method
evict_
* Evicts the oldest cache entry, if we've exceeded capacity.
src/core/data-structures/lru-cache.js:65
↓ 1 callers
Function
excludeFromSwipeClose
* @param {!Element} element * @return {boolean}
extensions/amp-sidebar/0.1/amp-sidebar.js:754
↓ 1 callers
Method
execute
* For a given A4A Element, sends out Real Time Config requests to * any urls or vendors specified by the publisher. * @param {!Element} element
src/service/real-time-config/real-time-config-impl.js:600
↓ 1 callers
Function
executeAfterWriteScript
* Run the function after all currently waiting sync scripts have been * executed. * @param {!Window} win * @param {function()} fn
3p/3p.js:120
↓ 1 callers
Method
executeAsap_
* Calls `execute_()` asynchronously. * @param {?IdleDeadline} idleDeadline * @private
src/chunk.js:446
↓ 1 callers
Method
executeInternal
* @param {!HTMLMediaElement} unusedMediaEl The element on which this task * should be executed. * @return {*} TODO(#23582): Specify return t
extensions/amp-story/1.0/media-tasks.js:169
↓ 1 callers
Method
executeInvocation_
* Executes an invocation by invoking the corresponding GWD runtime method * with arguments extracted from the invocation object. * @param {!../.
extensions/amp-gwd-animation/0.1/amp-gwd-animation.js:207
↓ 1 callers
Function
executeMaster
* @param {string} masterId * @param {!Object} data * @param {!Window} global * @param {Function} callback
ads/vendors/adocean.js:164
↓ 1 callers
Function
executeSlave
* * @param {string} slaveId * @param {!Object} config * @param {!Window} global
ads/vendors/adocean.js:278
↓ 1 callers
Method
execute_
* @param {string} url * @param {string} action * @return {!Promise} * @private
extensions/amp-subscriptions/0.1/actions.js:94
↓ 1 callers
Method
exitForDoc
* @param {!Element|!../service/ampdoc-impl.AmpDoc} elementOrAmpDoc * @return {!Promise<!ExitInterface>}
src/inabox/host-services.js:118
↓ 1 callers
Method
exitRemainingTags
* This method is called when we're done with the * document. Normally, the parser should actually close the tags, * but just in case it doesn't
validator/js/engine/htmlparser.js:481
↓ 1 callers
Method
exitTransitionFromOldView_
* Transition out of an old view. * @private
third_party/subscriptions-project/swg.js:11074
↓ 1 callers
Method
exit_
* @param {!../video-interface.VideoOrBaseElementDef} video * @private
src/service/video-manager-impl.js:1226
↓ 1 callers
Method
exit_
* @return {!Promise} * @private
extensions/amp-image-lightbox/0.1/amp-image-lightbox.js:1131
↓ 1 callers
Method
exit_
* Animation for closing lightbox * @return {!Promise} * @private
extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.js:1038
↓ 1 callers
Method
expandAndPostMessage_
* Expand and post message to parent window if applicable. * @param {!JsonObject} trigger JSON config block that resulted in this event. * @param
extensions/amp-analytics/0.1/amp-analytics.js:702
↓ 1 callers
Method
expandAndSendRequest_
* @param {RequestHandler} request The request to process. * @param {!JsonObject} trigger JSON config block that resulted in this event. * @param
extensions/amp-analytics/0.1/amp-analytics.js:687
↓ 1 callers
Method
expandAndWrite_
* Expand the value and write to cookie if necessary * @param {string} cookieName * @param {string} cookieValue * @param {number} cookieExpire
extensions/amp-analytics/0.1/cookie-writer.js:213
↓ 1 callers
Method
expandAndWrite_
* Expand the value and write to cookie if necessary * @param {string} cookieName * @param {string} cookieValue * @param {number} cookieExpire
extensions/amp-consent/0.1/cookie-writer.js:196
↓ 1 callers
Function
expandAsync
(varName, opt_params)
extensions/amp-a4a/0.1/test/test-a4a-var-source.js:22
↓ 1 callers
Function
expandFileLists
* Helper that expands some of the config globs used to match files. Called once * at the start in order to avoid repeated glob expansion.
build-system/pr-check/build-targets.js:388
↓ 1 callers
Function
expandFrameUnderVsyncMutate
(iframe)
ads/inabox/full-overlay-frame-helper.js:49
↓ 1 callers
Method
expandJsonTargeting_
* Waits for RTC to complete, then overwrites json attr targeting values * with expanded vars. * @param {!Promise} rtcMergedPromise * @return
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:857
↓ 1 callers
Function
expandObject
(data, key, expandedData)
extensions/amp-analytics/0.1/requests.js:464
← previous
next →
8,301–8,400 of 18,703, ranked by callers