file stringlengths 16 94 | text stringlengths 32 24.4k | vector list |
|---|---|---|
api/rtcdtlstransport/getremotecertificates/index.md | API - RTCDtlsTransport - getRemoteCertificates - Example - Basic usage:
This example shows how to fingerprint the remote peer's certificate after the DTLS handshake and compare it against a stored value.
Example:
async function getRemoteFingerprint(dtlsTransport) {
const certs = dtlsTransport.getRemoteCertificates... | [
0.00140145153272897,
-0.49602454900741577,
-0.428827166557312,
0.08247514069080353,
-0.15302041172981262,
-0.7673776149749756,
0.13249991834163666,
0.227279931306839,
0.856805682182312,
0.11044730246067047,
-0.693296492099762,
0.9631000757217407,
-0.12460174411535263,
-0.06119931861758232,... |
api/translator/measureinputusage/index.md | API - Translator - measureInputUsage:
Secure context: This feature is available only in secure contexts (HTTPS).
The `measureInputUsage()` method of the `Translator` interface reports how much input quota would be used by a translation operation for a given text input. | [
-0.06592851877212524,
0.5160396099090576,
-0.8138282895088196,
0.7719644904136658,
0.6823016405105591,
-1.0184909105300903,
0.26900896430015564,
0.8224847316741943,
0.09733949601650238,
-0.18224002420902252,
-0.5437446236610413,
0.8772512674331665,
0.6217086315155029,
0.1412285715341568,
... |
api/translator/measureinputusage/index.md | API - Translator - measureInputUsage - Syntax:
Example:
measureInputUsage(input)
measureInputUsage(input, options) | [
-0.717827320098877,
0.1987723857164383,
-0.27417466044425964,
-0.039909861981868744,
0.2956486940383911,
-0.8960389494895935,
-0.29923921823501587,
0.140212744474411,
0.20488420128822327,
-0.18280969560146332,
-0.29223692417144775,
-0.29190459847450256,
0.39525100588798523,
0.1744368672370... |
api/translator/measureinputusage/index.md | API - Translator - measureInputUsage - Syntax - Parameters:
- `input`: A string representing the input text you want an input usage measurement for.
- `options` (optional): An object specifying configuration options for the `measureInputUsage()` operation. Possible values include:
- `signal`: An `AbortSignal` object... | [
-0.3603239953517914,
-0.06409214437007904,
-0.6708582043647766,
0.6467298865318298,
0.3128495514392853,
-1.142045259475708,
0.03028397634625435,
0.09840274602174759,
0.5277531147003174,
0.1821499913930893,
-1.091060996055603,
-0.05883359909057617,
0.580049991607666,
-0.4053264856338501,
... |
api/translator/measureinputusage/index.md | API - Translator - measureInputUsage - Syntax - Return value:
A `Promise` that fulfills with a number specifying the `inputQuota` usage of the given input text.
This number is implementation-dependent; if it is less than the `inputQuota`, the string can be translated. | [
-0.7310388088226318,
0.15392394363880157,
-0.20173512399196625,
0.39212411642074585,
-0.03965650126338005,
-1.522292137145996,
0.5191347002983093,
0.23132091760635376,
0.11288994550704956,
0.12724822759628296,
-0.8190621733665466,
0.8177592754364014,
0.0006792638450860977,
0.29521638154983... |
api/translator/measureinputusage/index.md | API - Translator - measureInputUsage - Syntax - Exceptions:
- `NotAllowedError` `DOMException`: Thrown if usage of the `Translator` API is blocked by a `translator` `Permissions-Policy`.
- `NotReadableError` `DOMException`: Thrown if the output translation was filtered by the user agent, for example because it was det... | [
0.6257830858230591,
-0.757202684879303,
0.11908729374408722,
0.9727985858917236,
0.15306220948696136,
-1.811715841293335,
-1.0002893209457397,
0.6866108775138855,
0.494836688041687,
0.5164003372192383,
-1.1910110712051392,
-0.06356016546487808,
0.08691021054983139,
-0.4472949504852295,
-... |
api/translator/measureinputusage/index.md | API - Translator - measureInputUsage - Examples - Checking if you have enough quota:
In the below snippet, we create a new `Translator` instance using `create()`, then return the total input quota via `inputQuota` and the input quota usage for a translating a particular text string via `measureInputUsage()`.
We then ... | [
0.07309102267026901,
0.25589048862457275,
-0.20095865428447723,
0.7199471592903137,
0.5060463547706604,
-1.613987684249878,
0.46587851643562317,
0.17714977264404297,
0.19954830408096313,
0.1888844072818756,
-0.8438318371772766,
0.24134382605552673,
-0.009426731616258621,
0.0601864308118820... |
api/translator/inputquota/index.md | API - Translator - inputQuota:
Secure context: This feature is available only in secure contexts (HTTPS).
The `inputQuota` read-only property of the `Translator` interface returns the input quota available to the browser for generating translations. | [
-0.014843877404928207,
0.391160786151886,
0.016148660331964493,
0.8084957003593445,
0.731025218963623,
-0.9435786008834839,
0.7383910417556763,
1.1499173641204834,
0.012200653553009033,
-0.029294006526470184,
-0.011401798576116562,
0.8508064150810242,
0.12243044376373291,
-0.09711863100528... |
api/translator/inputquota/index.md | API - Translator - inputQuota - Value:
A number specifying the available input quota.
This number is implementation-dependent. For example, it might be `Infinity` if there are no limits beyond the user's memory and the maximum length of JavaScript strings, or it might be a number of tokens in the case of AI models th... | [
-0.39782196283340454,
-0.20687676966190338,
0.15479761362075806,
0.5731220841407776,
0.25075384974479675,
-1.559867024421692,
1.2625375986099243,
0.7235344648361206,
-0.0021288543939590454,
-0.23798543214797974,
-0.6160200238227844,
0.4741451144218445,
0.562322199344635,
-0.157195478677749... |
api/translator/inputquota/index.md | API - Translator - inputQuota - Examples - Checking if you have enough quota:
In the below snippet, we create a new `Translator` instance using `create()`, then return the total input quota via `inputQuota` and the input quota usage for a translating a particular text string via `measureInputUsage()`.
We then test to... | [
0.10181105881929398,
0.22567813098430634,
-0.06824784725904465,
0.8266310095787048,
0.47531211376190186,
-1.410326600074768,
0.5033969879150391,
0.5486959218978882,
0.4988821744918823,
0.045874424278736115,
-0.9100351333618164,
0.20387500524520874,
-0.06831243634223938,
0.11984394490718842... |
api/translator/create_static/index.md | API - Translator - create static:
Secure context: This feature is available only in secure contexts (HTTPS).
The `create()` static method of the `Translator` interface creates a new `Translator` instance that can be used to translate text.
Note: The `create()` method requires transient activation, that is, it must b... | [
-0.06279463320970535,
-0.5220001339912415,
-0.20834702253341675,
1.283798098564148,
1.2737395763397217,
-0.5980868339538574,
0.27073827385902405,
1.6509299278259277,
0.1627703160047531,
0.08093493431806564,
-0.05419503152370453,
0.8905191421508789,
0.44819679856300354,
0.09007740020751953,... |
api/translator/create_static/index.md | API - Translator - create static - Syntax:
Example:
Translator.create(options) | [
-0.31971293687820435,
-0.2792521119117737,
0.1659286469221115,
1.5279676914215088,
0.2734242081642151,
-0.71566241979599,
0.8994184136390686,
1.230783224105835,
0.04036877304315567,
0.2192540317773819,
-0.21742312610149384,
0.22532424330711365,
0.24383091926574707,
0.5625327229499817,
0.... |
api/translator/create_static/index.md | API - Translator - create static - Syntax - Parameters:
- `options`: An object specifying configuration options for the `Translator`. Possible values include:
- `sourceLanguage`: A string specifying the expected language of the input text to be translated, which should be a valid `BCP 47 language tag`.
- `targetLa... | [
-0.09107883274555206,
-0.49496737122535706,
-0.11343080550432205,
1.3108593225479126,
0.2388431429862976,
-1.106604814529419,
0.46282103657722473,
1.0043798685073853,
0.049036622047424316,
0.47085821628570557,
-0.9174087643623352,
-0.4108065366744995,
0.34416577219963074,
-0.21090340614318... |
api/translator/create_static/index.md | API - Translator - create static - Syntax - Return value:
A `Promise` that fulfills with a `Translator` object instance. | [
0.05059428885579109,
-0.3067885637283325,
0.22799628973007202,
0.636805534362793,
-0.024800926446914673,
-0.9514124989509583,
0.46699902415275574,
0.7218706011772156,
-0.7472366094589233,
0.38783249258995056,
-0.26518502831459045,
0.5871400833129883,
-0.05935809016227722,
0.380327701568603... |
api/translator/create_static/index.md | API - Translator - create static - Syntax - Exceptions:
- `InvalidStateError` `DOMException`: Thrown if the page's `Document` is not yet active.
- `NetworkError` `DOMException`: Thrown if:
- The network was not available to download the AI model.
- The user has cancelled the AI model download.
- `NotAllowedError` ... | [
0.461933434009552,
-0.9157074689865112,
0.24465611577033997,
0.8533222675323486,
0.3379637598991394,
-1.1245946884155273,
-0.8991132974624634,
0.8592740893363953,
0.4881315231323242,
0.35477176308631897,
-1.2516131401062012,
0.1503821313381195,
0.10111452639102936,
-0.33430662751197815,
... |
api/translator/create_static/index.md | API - Translator - create static - Examples - Basic `Translator` creation:
Example:
const translator = await Translator.create({
sourceLanguage: "en",
targetLanguage: "ja",
}); | [
-0.11933497339487076,
-0.2703354060649872,
0.05455207824707031,
1.0005589723587036,
0.5272467136383057,
-0.6796163320541382,
-0.10533691197633743,
0.4013490378856659,
0.18807277083396912,
-0.006637362763285637,
-0.6787363290786743,
0.624447762966156,
-0.026055671274662018,
0.15385758876800... |
api/serviceworkercontainer/messageerror_event/index.md | API - ServiceWorkerContainer - messageerror event:
Secure context: This feature is available only in secure contexts (HTTPS). Note: This feature is available in Web Workers.
The `messageerror` event is fired to the `ServiceWorkerContainer` when an incoming message sent to the associated worker can't be deserialized.
... | [
0.21677261590957642,
-0.12695103883743286,
-0.7348447442054749,
0.08095958828926086,
0.720339298248291,
-0.804286539554596,
0.017554257065057755,
1.7242152690887451,
0.1987469494342804,
0.15803390741348267,
0.39316532015800476,
0.5515982508659363,
0.32648640871047974,
0.2591000199317932,
... |
api/serviceworkercontainer/messageerror_event/index.md | API - ServiceWorkerContainer - messageerror event - Syntax:
Use the event name in methods like `addEventListener()`, or set an event handler property.
Example:
addEventListener("messageerror", (event) => { })
onmessageerror = (event) => { } | [
-0.3155161738395691,
-0.25607603788375854,
-0.822498619556427,
-0.40557512640953064,
0.5761590600013733,
-1.2746260166168213,
-0.4927133321762085,
0.6156877875328064,
-0.09248226135969162,
0.22605280578136444,
0.5669385194778442,
0.04982176423072815,
0.04850233346223831,
0.2751633524894714... |
api/serviceworkercontainer/messageerror_event/index.md | API - ServiceWorkerContainer - messageerror event - Event type:
A `MessageEvent`. Inherits from `Event`. | [
0.03436364233493805,
-0.03489968925714493,
-0.40743938088417053,
-0.09601718187332153,
-0.019439972937107086,
-1.0875802040100098,
-0.33112066984176636,
0.9141303896903992,
-0.14666098356246948,
0.19811229407787323,
0.2578122019767761,
0.4318069815635681,
-0.09279423952102661,
0.2866252064... |
api/serviceworkercontainer/messageerror_event/index.md | API - ServiceWorkerContainer - messageerror event - Examples:
In this example the service worker get the client's ID from a `fetch` event and then sends it a message using `Client.postMessage`:
Example:
// service-worker.js
async function messageClient(clientId) {
const client = await self.clients.get(clientId);
... | [
-0.5931252837181091,
0.056513309478759766,
-0.39472439885139465,
0.12884201109409332,
0.6239194273948669,
-0.9242960810661316,
0.6306559443473816,
0.516960084438324,
-0.42541253566741943,
0.3242488503456116,
-0.16078154742717743,
0.0023876726627349854,
0.13469110429286957,
-0.1266582757234... |
api/serviceworkercontainer/message_event/index.md | API - ServiceWorkerContainer - message event:
Secure context: This feature is available only in secure contexts (HTTPS). Note: This feature is available in Web Workers.
The `message` event is used in a page controlled by a service worker to receive messages from the service worker.
This event is not cancelable and d... | [
0.1630772352218628,
0.1641053557395935,
-0.5641249418258667,
-0.22294025123119354,
0.5748883485794067,
-1.1337082386016846,
0.08281072229146957,
1.347188949584961,
-0.16669411957263947,
0.22442613542079926,
0.5232081413269043,
0.9628543853759766,
0.44253426790237427,
0.12119153141975403,
... |
api/serviceworkercontainer/message_event/index.md | API - ServiceWorkerContainer - message event - Syntax:
Use the event name in methods like `addEventListener()`, or set an event handler property.
Example:
addEventListener("message", (event) => { })
onmessage = (event) => { } | [
0.22707964479923248,
-0.2896938621997833,
-0.3123764991760254,
-0.09357764571905136,
0.37872564792633057,
-1.5582382678985596,
-0.021088115870952606,
0.9144567847251892,
0.19819101691246033,
0.27153271436691284,
-0.41273120045661926,
0.522942841053009,
-0.07862623035907745,
-0.236122041940... |
api/serviceworkercontainer/message_event/index.md | API - ServiceWorkerContainer - message event - Event type:
A `MessageEvent`. Inherits from `Event`. | [
-0.11205227673053741,
-0.24179817736148834,
-0.5207987427711487,
-0.1252518892288208,
0.2470591962337494,
-1.3479902744293213,
-0.5926082134246826,
1.5693895816802979,
-0.4907928705215454,
0.4354134500026703,
0.7317656874656677,
0.8825176358222961,
0.013526689261198044,
0.09020261466503143... |
api/serviceworkercontainer/message_event/index.md | API - ServiceWorkerContainer - message event - Examples:
In this example the service worker get the client's ID from a `fetch` event and then sends it a message using `Client.postMessage`:
Example:
// service-worker.js
async function messageClient(clientId) {
const client = await clients.get(clientId);
client.po... | [
-0.19993643462657928,
0.15583692491054535,
-0.5425025224685669,
-0.07152819633483887,
0.40206214785575867,
-0.925898551940918,
0.4775046706199646,
0.3912018835544586,
-0.13763932883739471,
0.4681176543235779,
0.047161124646663666,
0.27495813369750977,
0.0903337299823761,
-0.269069671630859... |
api/animationevent/index.md | API - AnimationEvent:
The `AnimationEvent` interface represents events providing information related to animations. | [
-0.10755226761102676,
-0.74982750415802,
-0.029280373826622963,
0.030827976763248444,
-0.7314712405204773,
-1.7973965406417847,
-0.03452209010720253,
0.23973149061203003,
-0.3956506550312042,
0.08177333325147629,
0.17340104281902313,
-0.11372779309749603,
-0.09881799668073654,
0.5235906839... |
api/animationevent/index.md | API - AnimationEvent - Constructor:
- `AnimationEvent()`: Creates an `AnimationEvent` event with the given parameters. | [
-0.9395594000816345,
-0.2178896963596344,
0.3231278657913208,
0.010061126202344894,
-0.4362049996852875,
-1.1252068281173706,
0.40254220366477966,
0.7044238448143005,
-0.6539334058761597,
0.24423497915267944,
-0.06613598763942719,
0.07667174935340881,
-0.16521359980106354,
0.28720498085021... |
api/animationevent/index.md | API - AnimationEvent - Instance properties:
Also inherits properties from its parent `Event`.
- `AnimationEvent.animation` (read only): A `CSSAnimation` read-only property representing the animation associated with the event.
- `AnimationEvent.animationName` (read only): A string containing the value of the `animatio... | [
0.4407833218574524,
0.09777484834194183,
-0.2736375331878662,
0.6804492473602295,
0.00862380862236023,
-1.5758168697357178,
0.43747252225875854,
0.675706684589386,
-0.29852280020713806,
0.15945138037204742,
0.21441036462783813,
-0.016597475856542587,
-0.49519869685173035,
0.490663528442382... |
api/animationevent/index.md | API - AnimationEvent - Instance methods:
Inherits methods from its parent, `Event`. | [
0.2047836184501648,
-0.9186633825302124,
-0.5427387356758118,
-0.41170018911361694,
-0.6391505599021912,
-1.2196509838104248,
0.8108454942703247,
1.6711088418960571,
-0.3539636731147766,
-0.8651475310325623,
0.04508338123559952,
-0.39184823632240295,
-1.2163656949996948,
0.6293988227844238... |
api/animationevent/animation/index.md | API - AnimationEvent - animation:
The `animation` read-only property of the `AnimationEvent` interface represents the animation associated with the event. | [
0.07163713872432709,
-0.28169891238212585,
0.24287578463554382,
-0.28078562021255493,
-0.3832434117794037,
-1.2342820167541504,
0.33924397826194763,
0.057890258729457855,
0.05990324914455414,
-0.16000768542289734,
0.00388127937912941,
-0.4610494375228882,
-0.12310308963060379,
0.6209673285... |
api/animationevent/animation/index.md | API - AnimationEvent - animation - Value:
A `CSSAnimation`, or `null`. | [
-0.5716161727905273,
-0.04322970658540726,
-0.4043118953704834,
-0.15252798795700073,
-0.2301507443189621,
-1.3253014087677002,
0.8375632166862488,
0.42396843433380127,
-0.5423961281776428,
-0.23527567088603973,
0.5407007336616516,
-0.44497159123420715,
0.2580021321773529,
0.27762958407402... |
api/csspositionvalue/csspositionvalue/index.md | API - CSSPositionValue:
Deprecated: This feature is no longer recommended. Non-standard: This feature is not standardized.
The `CSSPositionValue()` constructor creates a new `CSSPositionValue` object that represents values for properties that take a position, for example `object-position`. | [
0.24445031583309174,
-0.13993166387081146,
-0.9003173112869263,
0.5121248364448547,
0.39226025342941284,
-2.217771053314209,
0.40995484590530396,
1.5363636016845703,
-0.16081702709197998,
0.04139773175120354,
0.17764636874198914,
0.691673755645752,
0.9463378190994263,
0.6588034629821777,
... |
api/csspositionvalue/csspositionvalue/index.md | API - CSSPositionValue - Syntax:
Example:
new CSSPositionValue(x, y) | [
-0.9996002912521362,
-0.37237998843193054,
0.12291447818279266,
-0.40529364347457886,
0.13098780810832977,
-1.650734782218933,
-0.4343964755535126,
0.6260265707969666,
0.18896037340164185,
-0.09304153174161911,
0.4743884205818176,
-0.14480531215667725,
0.3202330470085144,
0.635319352149963... |
api/csspositionvalue/csspositionvalue/index.md | API - CSSPositionValue - Syntax - Parameters:
- `x`: A position along the web page's horizontal axis.
- `y`: A position along the web page's vertical axis. | [
-0.7562131285667419,
-0.10358983278274536,
-0.6892910599708557,
-0.133151575922966,
-0.11734262108802795,
-1.9697917699813843,
0.8099933862686157,
0.8076931834220886,
-0.17827993631362915,
-0.002972012385725975,
0.20863234996795654,
0.2372276484966278,
0.17220960557460785,
0.39108282327651... |
api/csspositionvalue/csspositionvalue/index.md | API - CSSPositionValue - Examples - Basic usage:
The following example positions a container `<div>` 5 pixels from the top and 10 pixels from the left of the page.
Example:
let someDiv = document.getElementById("container");
let position = new CSSPositionValue(CSS.px(5), CSS.px(10));
someDiv.attributeStyleMap.set("... | [
-0.27415505051612854,
-0.7234364748001099,
-0.635495126247406,
0.3401854336261749,
-0.3080971837043762,
-1.911392331123352,
0.5656172633171082,
0.5525373816490173,
-0.19774764776229858,
0.2208086997270584,
0.14912447333335876,
0.1735653281211853,
-0.008181054145097733,
0.6096868515014648,
... |
api/csspositionvalue/x/index.md | API - CSSPositionValue - x:
Deprecated: This feature is no longer recommended. Non-standard: This feature is not standardized.
The `x` property of the `CSSPositionValue` interface returns the item's position along the web page's horizontal axis. | [
-0.4229758381843567,
-0.12155812233686447,
-0.26229333877563477,
0.1338016241788864,
-0.37621283531188965,
-1.9689615964889526,
0.6719902157783508,
0.40495505928993225,
-0.14476166665554047,
0.11534075438976288,
-0.10656708478927612,
0.47641754150390625,
0.4520530104637146,
0.6982232928276... |
api/csspositionvalue/x/index.md | API - CSSPositionValue - x - Value:
A `CSSNumericValue`. | [
-0.3555360734462738,
-0.3547438383102417,
-0.9214049577713013,
-0.4378007650375366,
-0.23064947128295898,
-1.8890037536621094,
0.7559968829154968,
-0.010953784920275211,
-0.334884375333786,
0.25417834520339966,
0.3068316578865051,
-0.22092293202877045,
0.7395470142364502,
0.023106694221496... |
api/csspositionvalue/x/index.md | API - CSSPositionValue - x - Examples - Basic usage:
The following example positions a container `<div>` 5 pixels from the top and 10 pixels from the left of the page.
Example:
let someDiv = document.getElementById("container");
let position = new CSSPositionValue(CSS.px(5), CSS.px(10));
someDiv.attributeStyleMap.s... | [
-0.473109632730484,
-0.7495538592338562,
-0.7047622203826904,
0.35532668232917786,
-0.3422185182571411,
-1.2466707229614258,
0.3233542740345001,
0.4624539017677307,
-0.14234477281570435,
0.10522051155567169,
0.2354530692100525,
0.18562424182891846,
0.046291351318359375,
0.48339706659317017... |
api/csspositionvalue/y/index.md | API - CSSPositionValue - y:
Deprecated: This feature is no longer recommended. Non-standard: This feature is not standardized.
The `y` property of the `CSSPositionValue` interface returns the item's position along the vertical axis. | [
-0.11124884337186813,
0.02008284628391266,
-0.06532138586044312,
0.5594760179519653,
0.15534864366054535,
-1.9014016389846802,
0.07845491170883179,
1.084538221359253,
0.18531039357185364,
0.24770966172218323,
0.14681079983711243,
0.8459932208061218,
0.43503937125205994,
1.1415499448776245,... |
api/csspositionvalue/y/index.md | API - CSSPositionValue - y - Value:
A `CSSNumericValue`. | [
0.15469805896282196,
0.36877769231796265,
-0.4686366617679596,
-0.6621551513671875,
-0.04920618236064911,
-2.502600908279419,
0.39275410771369934,
0.2782810926437378,
-0.43423140048980713,
0.3879533112049103,
0.31345444917678833,
0.20134207606315613,
0.25301477313041687,
0.5130929350852966... |
api/csspositionvalue/y/index.md | API - CSSPositionValue - y - Examples - Basic usage:
The following example positions a container `<div>` 5 pixels from the top and 10 pixels from the left of the page.
Example:
let replaceEl = document.getElementById("container");
let position = new CSSPositionValue(CSS.px(5), CSS.px(10));
replaceEl.attributeStyleM... | [
-0.4852360188961029,
-0.7509745359420776,
-0.04837528616189957,
0.2055949866771698,
-0.13661690056324005,
-1.3756921291351318,
0.12234409153461456,
0.5179227590560913,
-0.15100473165512085,
0.27325138449668884,
0.316066712141037,
0.7866125106811523,
0.13550911843776703,
0.525159478187561,
... |
api/cssmathsum/cssmathsum/index.md | API - CSSMathSum:
The `CSSMathSum()` constructor creates a new `CSSMathSum` object that represents the result obtained by calling `add()`, `sub()`, or `toSum()` on `CSSNumericValue`. | [
0.11752306669950485,
0.05390617251396179,
-0.8555595874786377,
0.14230701327323914,
0.2884315848350525,
-1.7382608652114868,
0.059115566313266754,
0.4844280481338501,
-0.6334893107414246,
0.18144755065441132,
-0.6684823632240295,
-0.1130293607711792,
0.08329491317272186,
-0.088936120271682... |
api/cssmathsum/cssmathsum/index.md | API - CSSMathSum - Syntax:
Example:
new CSSMathSum(values) | [
-0.32930833101272583,
0.17361201345920563,
-0.7123021483421326,
-0.1800810545682907,
0.12176686525344849,
-2.2165050506591797,
-0.005988132208585739,
0.3319008946418762,
0.39307764172554016,
0.17310510575771332,
0.5845567584037781,
0.8035175800323486,
0.45530223846435547,
-0.05080091953277... |
api/cssmathsum/cssmathsum/index.md | API - CSSMathSum - Syntax - Parameters:
- `values`: One or more numbers (which are wrapped into `CSSUnitValue`s of `unit: "number"`) or `CSSNumericValue` objects. | [
0.1730729043483734,
0.16789010167121887,
-1.0495108366012573,
0.00518365204334259,
-0.15383772552013397,
-2.1343612670898438,
0.5255447030067444,
0.4918339252471924,
-0.2842933237552643,
-0.20711226761341095,
-0.7387349009513855,
0.17583931982517242,
0.16676609218120575,
-0.239454880356788... |
api/cssmathsum/values/index.md | API - CSSMathSum - values:
The `CSSMathSum.values` read-only property of the `CSSMathSum` interface returns a `CSSNumericArray` object that contains one or more `CSSNumericValue` objects. | [
0.015602808445692062,
0.5150138139724731,
-0.5727469325065613,
-0.031092029064893723,
-0.48564475774765015,
-1.6190836429595947,
0.5205901861190796,
0.42348212003707886,
0.24942654371261597,
0.021863454952836037,
0.047169409692287445,
0.3983181416988373,
0.5499262809753418,
-0.006091162562... |
api/cssmathsum/values/index.md | API - CSSMathSum - values - Value:
A `CSSNumericArray`. | [
-0.34884554147720337,
0.6831144690513611,
-0.3496323525905609,
-0.5322853326797485,
-0.04364879056811333,
-1.8847904205322266,
0.6845235824584961,
-0.012201900593936443,
-0.6255866885185242,
0.329855740070343,
0.3164551258087158,
0.6879926323890686,
0.3723998963832855,
0.33423927426338196,... |
api/pictureinpicturewindow/resize_event/index.md | API - PictureInPictureWindow - resize event:
The `resize` event fires when the floating video window has been resized.
This event is not cancelable and does not bubble. | [
-1.5951992273330688,
-0.006499473936855793,
0.06647127121686935,
0.15435540676116943,
-0.14142052829265594,
-0.8758562803268433,
0.3549083173274994,
0.7502346038818359,
-0.12733213603496552,
0.058855291455984116,
-0.08394311368465424,
0.241299569606781,
0.028268445283174515,
0.547221660614... |
api/pictureinpicturewindow/resize_event/index.md | API - PictureInPictureWindow - resize event - Syntax:
Use the event name in methods like `addEventListener()`, or set an event handler property.
Example:
addEventListener("resize", (event) => { })
onresize = (event) => { } | [
-0.05973218008875847,
0.1377532184123993,
-0.15858793258666992,
0.6100993156433105,
-0.2538282871246338,
-1.3567465543746948,
0.5499342679977417,
0.9383822083473206,
0.08632132411003113,
0.014448020607233047,
-0.7163732647895813,
0.6577771306037903,
0.21125812828540802,
0.4112718999385834,... |
api/pictureinpicturewindow/resize_event/index.md | API - PictureInPictureWindow - resize event - Event type:
A `PictureInPictureEvent`. Inherits from `Event`. | [
-0.8165510892868042,
-0.18550348281860352,
-0.1483774483203888,
0.17541001737117767,
-0.0865786001086235,
-1.6182607412338257,
0.045455656945705414,
0.7579717636108398,
0.4128861129283905,
0.07383770495653152,
-0.1666131615638733,
0.7069764137268066,
-0.18533992767333984,
0.649172782897949... |
api/pictureinpicturewindow/resize_event/index.md | API - PictureInPictureWindow - resize event - Examples - Window size logger:
Example:
<p>Resize the floating video window to fire the <code>resize</code> event.</p>
<p>Window height: <span id="height"></span></p>
<p>Window width: <span id="width"></span></p>
<video id="video" src="" muted autoplay></video>
Example:
... | [
-0.413115918636322,
0.022687815129756927,
-0.5903556942939758,
0.21046465635299683,
-0.18678338825702667,
-1.0364972352981567,
0.5917016267776489,
0.5588725209236145,
-0.45789939165115356,
0.15872904658317566,
-0.24056029319763184,
0.4917161464691162,
-0.2834174335002899,
0.059974394738674... |
api/paymentresponse/payerdetailchange_event/index.md | API - PaymentResponse - payerdetailchange event:
Secure context: This feature is available only in secure contexts (HTTPS).
A `payerdetailchange` event is fired by the Payment Request API to a `PaymentResponse` object when the user makes changes to their personal information while filling out a payment request form. ... | [
0.6835938096046448,
-0.09773740917444229,
-0.5516653060913086,
-0.06473077833652496,
0.05660329759120941,
-1.1130889654159546,
0.966905951499939,
1.8120592832565308,
0.0067199841141700745,
0.30745989084243774,
0.7146999835968018,
0.6323826909065247,
-0.026229295879602432,
0.165388345718383... |
api/paymentresponse/payerdetailchange_event/index.md | API - PaymentResponse - payerdetailchange event - Syntax:
Use the event name in methods like `addEventListener()`, or set an event handler property.
Example:
addEventListener("payerdetailchange", (event) => { })
onpayerdetailchange = (event) => { } | [
0.25536465644836426,
-0.3438790440559387,
-0.5467038154602051,
0.37810567021369934,
-0.19052597880363464,
-1.6345452070236206,
0.9791760444641113,
1.5948853492736816,
-0.1457788199186325,
0.3096095025539398,
0.3009348511695862,
0.666289746761322,
-0.3359535336494446,
0.2106831669807434,
... |
api/paymentresponse/payerdetailchange_event/index.md | API - PaymentResponse - payerdetailchange event - Event type:
A `PaymentRequestUpdateEvent`. Inherits from `Event`. | [
0.27869343757629395,
0.10737728327512741,
0.10985863208770752,
0.11502496898174286,
-0.5079712271690369,
-1.1261128187179565,
0.7004612684249878,
0.8123816251754761,
-0.1297774314880371,
0.36364322900772095,
0.6503514647483826,
0.6929073929786682,
-0.8451245427131653,
0.3754187822341919,
... |
api/paymentresponse/payerdetailchange_event/index.md | API - PaymentResponse - payerdetailchange event - Examples:
In the example below, `onpayerdetailchange` is used to set up a listener for the `payerdetailchange` event in order to validate the information entered by the user, requesting that any mistakes be corrected
Example:
// Options for PaymentRequest(), indicati... | [
-0.1725320965051651,
0.1787494271993637,
-0.025590447708964348,
-0.5298528671264648,
0.15631353855133057,
-1.5366886854171753,
1.0547401905059814,
0.6661322116851807,
0.11221130192279816,
0.4545685648918152,
0.057762905955314636,
0.38620319962501526,
-0.41677650809288025,
0.015850841999053... |
api/paymentresponse/payerdetailchange_event/index.md | API - PaymentResponse - payerdetailchange event - Examples - addEventListener equivalent:
You could also set up the event handler using the `addEventListener()` method:
Example:
response.addEventListener("payerdetailchange", async (ev) => {
// …
}); | [
-0.31366169452667236,
-0.42978635430336,
-0.2058618813753128,
0.076714888215065,
-0.2691695988178253,
-1.0177116394042969,
0.6993762850761414,
1.1469370126724243,
0.13980746269226074,
0.4906249940395355,
0.47988981008529663,
0.7877378463745117,
-0.06662416458129883,
0.4004803001880646,
0... |
api/cssrotate/index.md | API - CSSRotate:
The `CSSRotate` interface of the CSS Typed Object Model API represents the rotate value of the individual `transform` property in CSS. It inherits properties and methods from its parent `CSSTransformValue`. | [
-0.5130395889282227,
-0.5212101936340332,
-0.13637706637382507,
0.3992193639278412,
-0.19582942128181458,
-1.9868254661560059,
0.4838932752609253,
0.07296620309352875,
1.0169439315795898,
0.24752482771873474,
-0.18598535656929016,
0.0708450973033905,
0.6788119077682495,
0.2232954502105713,... |
api/cssrotate/index.md | API - CSSRotate - Constructor:
- `CSSRotate()`: Creates a new `CSSRotate` object. | [
-1.3376728296279907,
-0.39750534296035767,
-0.5796460509300232,
0.6553955078125,
-0.1294209361076355,
-1.2635267972946167,
0.09736908972263336,
0.6124071478843689,
-0.13785365223884583,
0.12789791822433472,
-0.21742112934589386,
0.07125350832939148,
0.3592166006565094,
0.5782982707023621,
... |
api/cssrotate/index.md | API - CSSRotate - Instance properties:
- `x`: Returns or sets the x-axis value.
- `y`: Returns or sets the y-axis value.
- `z`: Returns or sets the z-axis value.
- `angle`: Returns or sets the angle value. | [
-1.149690866470337,
-0.001904236152768135,
-0.7391626238822937,
0.7986592650413513,
-0.23926134407520294,
-0.6928314566612244,
0.770114541053772,
0.5546284317970276,
0.23556846380233765,
0.2955828309059143,
-0.2734302580356598,
0.224048912525177,
1.1165904998779297,
0.2549128830432892,
0... |
api/cssrotate/index.md | API - CSSRotate - Examples:
To do. | [
-0.38374456763267517,
0.15105868875980377,
-0.2760981619358063,
0.3332192301750183,
-0.23395419120788574,
-0.8002597093582153,
1.111572265625,
0.25945648550987244,
-0.5195668339729309,
0.7242993116378784,
0.00018102675676345825,
0.3586267828941345,
-0.03528137877583504,
-0.1745710074901580... |
api/cssrotate/cssrotate/index.md | API - CSSRotate:
The `CSSRotate()` constructor creates a new `CSSRotate` object representing the `rotate()` value of the individual `transform` property in CSS. | [
-0.7097676992416382,
0.4813793897628784,
-0.3669764995574951,
0.5624687075614929,
0.4515033960342407,
-1.6593537330627441,
0.6215478181838989,
1.1234688758850098,
-0.38829219341278076,
0.19880729913711548,
0.4319773316383362,
0.1005253940820694,
-0.007970210164785385,
0.38884520530700684,
... |
api/cssrotate/cssrotate/index.md | API - CSSRotate - Syntax:
Example:
new CSSRotate(x, y, z, angle) | [
-1.1158498525619507,
0.16184882819652557,
-0.34491464495658875,
-0.143042653799057,
-0.17498493194580078,
-1.0941435098648071,
-0.02170349285006523,
0.3032037317752838,
0.2713793218135834,
-0.038087137043476105,
0.2830624580383301,
-0.24613924324512482,
0.1934479922056198,
0.54637205600738... |
api/cssrotate/cssrotate/index.md | API - CSSRotate - Syntax - Parameters:
- `x`: A value for the x-axis of the `CSSRotate` object to be constructed. This must either be a number (which is wrapped into a `CSSUnitValue` of `unit: "number"`) or a `CSSNumericValue`.
- `y`: A value for the y-axis of the `CSSRotate` object to be constructed. This must either... | [
-0.18685075640678406,
-0.3766510784626007,
-1.0271687507629395,
0.6965575814247131,
0.042031243443489075,
-1.5645384788513184,
0.6155182719230652,
1.2030329704284668,
-0.1880689114332199,
0.11285229027271271,
0.14685098826885223,
0.1146640032529831,
0.11616736650466919,
0.3472613990306854,... |
api/cssrotate/cssrotate/index.md | API - CSSRotate - Syntax - Exceptions:
- `TypeError`: Raised if the value of `CSSRotate.angle` is not an angle> value or `CSSRotate.x`, `CSSRotate.y`, `CSSRotate.z` are not number> values. | [
-0.6298004388809204,
-0.2404126673936844,
-0.3801823556423187,
0.4053979218006134,
-0.4178655445575714,
-1.5052483081817627,
0.9909192323684692,
0.8303170800209045,
0.55679851770401,
-0.11789830029010773,
-0.1672728806734085,
-0.2000405192375183,
0.5311521291732788,
0.07411670684814453,
... |
api/cssrotate/cssrotate/index.md | API - CSSRotate - Examples:
To do | [
-0.7400766015052795,
0.021908435970544815,
-0.24449269473552704,
0.41534364223480225,
-0.3195423185825348,
-0.6165961623191833,
1.0200263261795044,
0.2686156630516052,
-0.259290874004364,
0.4200799763202667,
0.3332104980945587,
0.5205081105232239,
-0.05295182019472122,
-0.217217355966568,
... |
api/cssrotate/angle/index.md | API - CSSRotate - angle:
The `angle` property of the `CSSRotate` interface gets and sets the angle of rotation. A positive angle denotes a clockwise rotation, a negative angle a counter-clockwise one. | [
-0.7528265118598938,
0.2907537519931793,
-0.868549644947052,
0.828734815120697,
-0.3275269865989685,
-1.1779016256332397,
0.623619556427002,
0.34803926944732666,
0.38650208711624146,
0.1967380940914154,
-0.3522769510746002,
-0.1811252385377884,
0.7266055345535278,
0.3901227116584778,
0.1... |
api/cssrotate/angle/index.md | API - CSSRotate - angle - Value:
A `CSSNumericValue` | [
-0.3373096287250519,
0.8338379263877869,
-0.1887436956167221,
-0.2870247960090637,
-0.3858999013900757,
-1.7223494052886963,
1.0524938106536865,
0.2055397480726242,
-0.1459139883518219,
0.5103111267089844,
0.24899134039878845,
0.17576120793819427,
0.06400435417890549,
0.46574723720550537,
... |
api/cssrotate/angle/index.md | API - CSSRotate - angle - Examples:
To Do | [
-0.7235782146453857,
0.17499442398548126,
-0.17775748670101166,
0.2407677173614502,
-0.6011544466018677,
-0.35106661915779114,
1.1241976022720337,
0.015689074993133545,
-0.41960498690605164,
0.5737881064414978,
0.18046186864376068,
0.32106685638427734,
0.07232696563005447,
0.08718921244144... |
api/cssrotate/x/index.md | API - CSSRotate - x:
The `x` property of the `CSSRotate` interface gets and sets the abscissa or x-axis of the translating vector. | [
-0.4983697235584259,
-0.4653928875923157,
-0.6311836242675781,
0.36357131600379944,
-0.12258598208427429,
-1.258768916130066,
0.7085816264152527,
0.4644946753978729,
-0.19301818311214447,
0.12858010828495026,
0.125735804438591,
-0.31923359632492065,
0.3102625608444214,
0.5489181280136108,
... |
api/cssrotate/x/index.md | API - CSSRotate - x - Value:
A `CSSNumericValue`. Can be set to a number, which is wrapped in a `CSSUnitValue` of `unit: "number"`. | [
-0.666856050491333,
-0.20730577409267426,
-1.0247923135757446,
0.3734455406665802,
-0.5741846561431885,
-1.9633500576019287,
0.4486595094203949,
0.42521563172340393,
0.16742825508117676,
0.11910229921340942,
-0.36156898736953735,
0.17566832900047302,
0.31618553400039673,
-0.154195934534072... |
api/cssrotate/x/index.md | API - CSSRotate - x - Examples:
To Do | [
-0.597293496131897,
0.24259918928146362,
-0.49970483779907227,
0.09663806855678558,
-0.6696311831474304,
-0.5920654535293579,
1.4075804948806763,
0.054985255002975464,
-0.44304147362709045,
0.15771406888961792,
0.5026007890701294,
0.272308886051178,
-0.2934875786304474,
-0.1447913944721222... |
api/cssrotate/z/index.md | API - CSSRotate - z:
The `z` property of the `CSSRotate` interface representing the z-component of the translating vector. A positive value moves the element towards the viewer and a negative value farther away. | [
-0.6572245359420776,
-0.292298287153244,
-0.7637735605239868,
0.8231540322303772,
0.10932174324989319,
-1.7554421424865723,
0.7238823175430298,
0.05822259187698364,
-0.07102986425161362,
0.025214262306690216,
-0.3710225224494934,
-0.06278493255376816,
0.7137581706047058,
0.2936173677444458... |
api/cssrotate/z/index.md | API - CSSRotate - z - Value:
A `CSSNumericValue`. Can be set to a number, which is wrapped in a `CSSUnitValue` of `unit: "number"`. | [
-0.4749703109264374,
0.2513422667980194,
-0.5693171620368958,
0.4309173822402954,
-0.5550254583358765,
-2.3429763317108154,
0.7303632497787476,
0.30235445499420166,
-0.37558913230895996,
0.08987580984830856,
-0.38322457671165466,
0.07288455963134766,
0.29597118496894836,
-0.135428145527839... |
api/cssrotate/z/index.md | API - CSSRotate - z - Examples:
To Do | [
-0.7117708921432495,
0.0813777968287468,
-0.3304286003112793,
0.1652667224407196,
-0.44214171171188354,
-0.5912119150161743,
1.1323871612548828,
-0.2077164202928543,
-0.9073690176010132,
0.2584545612335205,
0.5740926861763,
0.16192255914211273,
-0.07965689152479172,
-0.015008952468633652,
... |
api/cssrotate/y/index.md | API - CSSRotate - y:
The `y` property of the `CSSRotate` interface gets and sets the ordinate or y-axis of the translating vector. | [
-0.18366211652755737,
0.038550566881895065,
-0.23278430104255676,
0.12979210913181305,
0.07854962348937988,
-1.4611098766326904,
0.29397231340408325,
0.39475542306900024,
0.14165274798870087,
0.21420033276081085,
-0.1486738920211792,
0.23648682236671448,
0.27483075857162476,
0.695559918880... |
api/cssrotate/y/index.md | API - CSSRotate - y - Value:
A `CSSNumericValue`. Can be set to a number, which is wrapped in a `CSSUnitValue` of `unit: "number"`. | [
-0.4491421580314636,
0.44386810064315796,
-0.473930299282074,
0.3715365529060364,
-0.4059157073497772,
-2.152531862258911,
0.5116318464279175,
0.7622948884963989,
-0.03236989676952362,
0.02851308137178421,
-0.19737179577350616,
0.2274724841117859,
0.3388836681842804,
0.22801271080970764,
... |
api/cssrotate/y/index.md | API - CSSRotate - y - Examples:
To Do | [
-0.6656028628349304,
-0.04380036145448685,
-0.16452567279338837,
0.2536211609840393,
-0.3716517984867096,
-0.7802043557167053,
0.8055456280708313,
0.24509388208389282,
-0.2569437026977539,
0.4632101356983185,
0.47032982110977173,
0.4485032558441162,
-0.2204204946756363,
0.1191735565662384,... |
api/workerglobalscope/rejectionhandled_event/index.md | API - WorkerGlobalScope - rejectionhandled event:
Note: This feature is available in Web Workers.
The `rejectionhandled` event is sent to the script's global scope (typically `WorkerGlobalScope`) whenever a rejected `Promise` is handled late, i.e., when a handler is attached to the promise after its rejection had cau... | [
-0.4553295373916626,
0.3177812099456787,
0.17663665115833282,
0.23681512475013733,
0.7218814492225647,
-1.0593416690826416,
-0.21264830231666565,
1.4193581342697144,
-0.2590980529785156,
0.42923039197921753,
0.011845197528600693,
0.9982686042785645,
0.5628141164779663,
0.6949797868728638,
... |
api/workerglobalscope/rejectionhandled_event/index.md | API - WorkerGlobalScope - rejectionhandled event - Syntax:
Use the event name in methods like `addEventListener()`, or set an event handler property.
Example:
addEventListener("rejectionhandled", (event) => { })
onrejectionhandled = (event) => { } | [
-0.02063244953751564,
0.1487031877040863,
0.05118851363658905,
0.9222822785377502,
0.06911320984363556,
-1.6478033065795898,
-0.2029215395450592,
0.480121910572052,
0.05909931659698486,
0.41499999165534973,
-0.8427746891975403,
0.20910996198654175,
0.5802202820777893,
0.24189326167106628,
... |
api/workerglobalscope/rejectionhandled_event/index.md | API - WorkerGlobalScope - rejectionhandled event - Event type:
A `PromiseRejectionEvent`. Inherits from `Event`. | [
-0.66793292760849,
-0.3782978653907776,
0.3047318458557129,
0.4903351664543152,
0.10301358997821808,
-1.3154191970825195,
-0.6907852292060852,
0.13262955844402313,
0.18602755665779114,
0.8058422803878784,
-0.3458474278450012,
0.24981456995010376,
0.05338939279317856,
0.15492863953113556,
... |
api/workerglobalscope/rejectionhandled_event/index.md | API - WorkerGlobalScope - rejectionhandled event - Example:
You can use the `rejectionhandled` event to log promises that get rejected to the console, along with the reasons why they were rejected:
Example:
self.addEventListener("rejectionhandled", (event) => {
console.log(`Promise rejected; reason: ${event.reason... | [
-0.36163967847824097,
-0.06422775238752365,
0.013492383062839508,
0.5838735103607178,
0.12368538975715637,
-1.7420547008514404,
-0.23005232214927673,
-0.017744194716215134,
-0.2059222012758255,
0.38247883319854736,
-0.006222166121006012,
0.1888628602027893,
0.6058365702629089,
0.4333167076... |
api/workerglobalscope/unhandledrejection_event/index.md | API - WorkerGlobalScope - unhandledrejection event:
Note: This feature is available in Web Workers.
The `unhandledrejection` event is sent to the global scope (typically `WorkerGlobalScope`) of a script when a `Promise` that has no rejection handler is rejected.
This is useful for debugging and for providing fallbac... | [
-0.8908662796020508,
0.5228114128112793,
0.10139906406402588,
0.43880951404571533,
0.17094877362251282,
-1.5452728271484375,
-0.16651982069015503,
0.8253647089004517,
-0.11341842263936996,
0.475216805934906,
-0.49977824091911316,
0.7085824012756348,
0.49755698442459106,
0.6572558879852295,... |
api/workerglobalscope/unhandledrejection_event/index.md | API - WorkerGlobalScope - unhandledrejection event - Syntax:
Use the event name in methods like `addEventListener()`, or set an event handler property.
Example:
addEventListener("unhandledrejection", (event) => { })
onunhandledrejection = (event) => { } | [
-0.16369755566120148,
-0.07346175611019135,
-0.17829638719558716,
1.0011723041534424,
-0.06456585228443146,
-1.5183708667755127,
-0.5091366767883301,
0.4140729606151581,
0.3438907563686371,
0.7127777338027954,
-0.61579430103302,
0.2996695935726166,
0.34179553389549255,
0.16898386180400848,... |
api/workerglobalscope/unhandledrejection_event/index.md | API - WorkerGlobalScope - unhandledrejection event - Event type:
A `PromiseRejectionEvent`. Inherits from `Event`. | [
-0.37989068031311035,
0.016657311469316483,
0.311352401971817,
0.16466067731380463,
0.11918333172798157,
-1.4625235795974731,
-0.2515415847301483,
0.608893632888794,
-0.2110787332057953,
0.6407487392425537,
-0.08703156560659409,
0.34023311734199524,
-0.0407957062125206,
0.5150965452194214,... |
api/workerglobalscope/unhandledrejection_event/index.md | API - WorkerGlobalScope - unhandledrejection event - Examples - Basic error logging:
This example logs information about the unhandled promise rejection to the console.
Example:
self.addEventListener("unhandledrejection", (event) => {
console.warn(`UNHANDLED PROMISE REJECTION: ${event.reason}`);
});
You can also ... | [
-0.07148022949695587,
0.13041307032108307,
-0.070001021027565,
0.44898223876953125,
0.40681546926498413,
-1.7964645624160767,
0.1480191946029663,
0.7291852831840515,
-0.20163358747959137,
0.3462062478065491,
-0.30841898918151855,
0.10956420004367828,
0.6417744159698486,
0.4181024730205536,... |
api/workerglobalscope/unhandledrejection_event/index.md | API - WorkerGlobalScope - unhandledrejection event - Examples - Preventing default handling:
Many environments (such as `Node.js`) report unhandled promise rejections to the console by default. You can prevent that from happening by adding a handler for `unhandledrejection` events that—in addition to any other tasks y... | [
0.07679041475057602,
0.25851970911026,
-0.3636034429073334,
0.7152327299118042,
0.6670539379119873,
-0.9355308413505554,
0.21598410606384277,
1.6021126508712769,
-0.4340018928050995,
0.35813799500465393,
-0.3008713722229004,
0.6529374718666077,
0.16806235909461975,
0.7406483888626099,
0.... |
api/worker/messageerror_event/index.md | API - Worker - messageerror event:
Note: This feature is available in Web Workers.
The `messageerror` event is fired on a `Worker` object when it receives a message that can't be deserialized.
This event is not cancellable and does not bubble. | [
-0.10618391633033752,
-0.1611984670162201,
-0.5088449716567993,
-0.18965286016464233,
0.1997494399547577,
-1.3384591341018677,
0.38119012117385864,
1.0019863843917847,
0.023325875401496887,
0.18721650540828705,
0.09177107363939285,
0.26493945717811584,
0.3959808051586151,
-0.09047189354896... |
api/worker/messageerror_event/index.md | API - Worker - messageerror event - Syntax:
Use the event name in methods like `addEventListener()`, or set an event handler property.
Example:
addEventListener("messageerror", (event) => { })
onmessageerror = (event) => { } | [
0.05280078947544098,
-0.17063939571380615,
0.09379447996616364,
-0.2312394678592682,
0.07098029553890228,
-0.9624056816101074,
-0.30650782585144043,
0.9213194251060486,
-0.012901343405246735,
0.01926506496965885,
-0.3389263153076172,
-0.04884866997599602,
0.14496833086013794,
0.27289626002... |
api/worker/messageerror_event/index.md | API - Worker - messageerror event - Event type:
A `MessageEvent`. Inherits from `Event`. | [
0.10911427438259125,
0.0062555596232414246,
-0.44560784101486206,
-0.39415788650512695,
-0.34200146794319153,
-0.39143869280815125,
-0.5515808463096619,
0.5062888860702515,
0.1454007774591446,
0.08349217474460602,
-0.22639310359954834,
-0.10148053616285324,
0.5045396685600281,
0.2236449122... |
api/worker/messageerror_event/index.md | API - Worker - messageerror event - Examples:
Create a worker, and listen for `message` and `messageerror` events using `addEventListener()`:
Example:
// main.js
const worker = new Worker("static/scripts/worker.js");
worker.addEventListener("message", (event) => {
console.error(`Received message from worker: ${e... | [
0.8626849055290222,
-0.07322944700717926,
-0.98331618309021,
0.6811344623565674,
0.8521039485931396,
-1.3166661262512207,
0.10975569486618042,
0.36638498306274414,
-0.4554080367088318,
0.18536560237407684,
0.10177972912788391,
-0.022637557238340378,
0.5815181732177734,
0.7922565340995789,
... |
api/worker/message_event/index.md | API - Worker - message event:
Note: This feature is available in Web Workers.
The `message` event is fired on a `Worker` object when the worker's parent receives a message from its worker (i.e., when the worker sends a message using `DedicatedWorkerGlobalScope.postMessage()`).
This event is not cancellable and does ... | [
-0.28502970933914185,
-0.23106054961681366,
-0.4747876226902008,
0.02127467468380928,
0.1533067226409912,
-1.0115015506744385,
0.15944994986057281,
1.4782054424285889,
-0.22288024425506592,
0.25228220224380493,
0.2946541905403137,
0.7099155187606812,
0.4755169749259949,
0.36053335666656494... |
api/worker/message_event/index.md | API - Worker - message event - Syntax:
Use the event name in methods like `addEventListener()`, or set an event handler property.
Example:
addEventListener("message", (event) => { })
onmessage = (event) => { } | [
0.34966832399368286,
-0.22324307262897491,
-0.25225207209587097,
-0.1878369152545929,
0.2677706778049469,
-1.064268946647644,
-0.02907201275229454,
1.0770971775054932,
-0.14519339799880981,
-0.27864256501197815,
-0.37248438596725464,
0.31736817955970764,
0.199543297290802,
-0.1355104148387... |
api/worker/message_event/index.md | API - Worker - message event - Event type:
A `MessageEvent`. Inherits from `Event`. | [
0.042482465505599976,
0.016951655969023705,
-0.3610297441482544,
-0.16828517615795135,
-0.3598335087299347,
-0.37931007146835327,
-0.4903297424316406,
0.6316646933555603,
0.12893642485141754,
0.12115058302879333,
-0.15398606657981873,
0.1191079318523407,
0.42556458711624146,
-0.05103802308... |
api/worker/message_event/index.md | API - Worker - message event - Examples:
This code creates a new worker and listens to messages from it using `addEventListener()`:
Example:
const worker = new Worker("static/scripts/worker.js");
worker.addEventListener("message", (event) => {
console.log(`Received message from worker: ${event.data}`);
});
Alter... | [
0.38602882623672485,
0.12201745808124542,
-0.7762424945831299,
0.7035378813743591,
0.7026877403259277,
-1.1210154294967651,
-0.0005971658974885941,
0.709614634513855,
0.6077737808227539,
0.29087984561920166,
-0.2973264455795288,
0.10892164707183838,
0.34512582421302795,
0.28137412667274475... |
api/node/nodename/index.md | API - Node - nodeName:
The read-only `nodeName` property of `Node` returns the name of the current node as a string. | [
-0.33787813782691956,
0.3840295970439911,
-0.18351075053215027,
-0.22467921674251556,
0.05924302339553833,
-1.163182020187378,
1.333513617515564,
0.22580409049987793,
-0.007381998002529144,
-0.06744318455457687,
-0.5085756778717041,
-0.35007867217063904,
-0.48989370465278625,
0.38941055536... |
api/node/nodename/index.md | API - Node - nodeName - Value:
A string. Values for the different types of nodes are:
- `Attr`: The value of `Attr.name`, that is the qualified name of the attribute.
- `CDATASection`: The string `"#cdata-section"`.
- `Comment`: The string `"#comment"`.
- `Document`: The string `"#document"`.
- `DocumentFragment`: Th... | [
-0.002190557075664401,
-0.5945712924003601,
0.005264353007078171,
0.36981070041656494,
0.181054025888443,
-0.7314807176589966,
0.47744864225387573,
0.24880334734916687,
0.25003325939178467,
-0.013348661363124847,
-0.17125308513641357,
-0.4726347029209137,
-0.3598347306251526,
-0.0291265361... |
api/node/nodename/index.md | API - Node - nodeName - Example:
This example displays the node names of several nodes
Example:
This is some HTML:
<div id="d1">Hello world</div>
<!-- Example of comment -->
Text <span>Text</span> Text<br />
<svg height="20" width="20">
<circle cx="10" cy="10" r="5" stroke="black" stroke-width="1" fill="red" />
</... | [
-0.5977205634117126,
-0.05923476815223694,
0.21321941912174225,
0.2344670593738556,
-0.18367697298526764,
-0.3948207199573517,
0.2374030351638794,
0.3129720985889435,
-0.6445643305778503,
0.4134710431098938,
-0.5001895427703857,
0.5029670596122742,
-0.20623423159122467,
-0.1605374366044998... |
api/summarizer/create_static/index.md | API - Summarizer - create static:
Secure context: This feature is available only in secure contexts (HTTPS).
The `create()` static method of the `Summarizer` interface creates a new `Summarizer` instance from which to generate summaries.
Note: The `create()` method requires transient activation, that is, it must be ... | [
0.25926920771598816,
-0.14331598579883575,
-0.6266395449638367,
0.6209551692008972,
0.7724736928939819,
-0.7744336724281311,
0.3323676288127899,
1.7707295417785645,
0.1974819004535675,
0.15737920999526978,
-0.16840429604053497,
1.0436071157455444,
0.6593477725982666,
-0.2227175235748291,
... |
api/summarizer/create_static/index.md | API - Summarizer - create static - Syntax:
Example:
Summarizer.create()
Summarizer.create(options) | [
-0.1607062667608261,
-0.6186180710792542,
-0.04010488837957382,
0.5914146304130554,
0.005134299397468567,
-1.2728208303451538,
0.3766227960586548,
0.482521653175354,
0.8806418180465698,
0.4252321124076843,
-0.811273455619812,
-0.2435438483953476,
-0.2755745053291321,
0.15873059630393982,
... |
api/summarizer/create_static/index.md | API - Summarizer - create static - Syntax - Parameters:
- `options` (optional): An object specifying configuration options for the `Summarizer`. Possible values include:
- `expectedInputLanguages`: An array of strings specifying the expected languages of the input text, which should be valid `BCP 47 language tags`. ... | [
-0.2638282775878906,
-0.5371525883674622,
0.11700226366519928,
0.3419095277786255,
-0.028196893632411957,
-0.7988026738166809,
0.16661636531352997,
0.8932735323905945,
0.36494728922843933,
0.1713445484638214,
-0.8278884887695312,
-0.24102310836315155,
-0.20960542559623718,
-0.1798906028270... |
api/summarizer/create_static/index.md | API - Summarizer - create static - Syntax - Return value:
A `Promise` that fulfills with a `Summarizer` object instance. | [
-0.3092923164367676,
-0.48254337906837463,
0.12348672747612,
0.05694373697042465,
-0.05470811575651169,
-1.2759015560150146,
0.5186286568641663,
0.5739765167236328,
-0.3972815275192261,
0.47857898473739624,
-0.4288718104362488,
0.39515334367752075,
-0.08912423253059387,
-0.0083828307688236... |
api/summarizer/create_static/index.md | API - Summarizer - create static - Syntax - Exceptions:
- `NotAllowedError` `DOMException`: Thrown if usage of the Summarizer API is blocked by a `summarizer` `Permissions-Policy`.
- `NotSupportedError` `DOMException`: Thrown if any of the language tags specified in `expectedContextLanguages`, `expectedInputLanguages`... | [
0.36798757314682007,
-1.0025986433029175,
0.33945372700691223,
0.8290897607803345,
0.09233662486076355,
-1.4846187829971313,
-0.22865866124629974,
1.0846467018127441,
0.7854101657867432,
0.4753780961036682,
-0.8748770356178284,
0.07770936191082001,
0.1336456537246704,
-0.3397875428199768,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.