Skip to content

Commit

Permalink
Tag syntax code blocks with js-nolint, part 4 (mdn#20617)
Browse files Browse the repository at this point in the history
Adding to mdn#19177

- Updating syntax code blocks with the new tag. Refer: mdn/yari#7017
  • Loading branch information
OnkarRuikar authored and Himanshu Garg committed Sep 27, 2022
1 parent 80db98e commit e842902
Show file tree
Hide file tree
Showing 200 changed files with 212 additions and 212 deletions.
2 changes: 1 addition & 1 deletion files/en-us/web/api/animation/play/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The **`play()`** method of the [Web Animations API](/en-US/docs/Web/API/Web_Anim

## Syntax

```js
```js-nolint
play()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/animation/reverse/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The **`Animation.reverse()`** method of the {{ domxref("Animation") }} Interface

## Syntax

```js
```js-nolint
reverse()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/animation/updateplaybackrate/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ animation's {{domxref("Animation.ready", "ready")}} promise is resolved.

## Syntax

```js
```js-nolint
updatePlaybackRate(playbackRate)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Although many of the attributes of the returned object are common to the object
## Syntax

```js
```js-nolint
getComputedTiming()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/animationeffect/gettiming/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The `AnimationEffect.getTiming()` method of the {{domxref("AnimationEffect")}} i

## Syntax

```js
```js-nolint
getTiming()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/animationeffect/updatetiming/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The `updateTiming()` method of the {{domxref("AnimationEffect")}} interface upda

## Syntax

```js
```js-nolint
updateTiming(timing)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/animationevent/animationevent/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The **`AnimationEvent()`** constructor returns a new {{domxref("AnimationEvent")

## Syntax

```js
```js-nolint
new AnimationEvent(type)
new AnimationEvent(type, options)
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The **`AnimationPlaybackEvent()`** constructor of the [Web Animations API](/en-U

## Syntax

```js
```js-nolint
new AnimationPlaybackEvent(type)
new AnimationPlaybackEvent(type, options)
```
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/atob/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ for {{domxref("btoa", "btoa()")}}.

## Syntax

```js
```js-nolint
atob(encodedData)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/audiobuffer/audiobuffer/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ the [Web Audio API](/en-US/docs/Web/API/Web_Audio_API) creates a new

## Syntax

```js
```js-nolint
new AudioBuffer(options)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/audiobuffer/copyfromchannel/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ channel of the `AudioBuffer` to a specified

## Syntax

```js
```js-nolint
copyFromChannel(destination, channelNumber, startInChannel)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/audiobuffer/copytochannel/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ the samples to the specified channel of the `AudioBuffer`, from the source array

## Syntax

```js
```js-nolint
copyToChannel(source, channelNumber)
copyToChannel(source, channelNumber, startInChannel)
```
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/audiobuffer/getchanneldata/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The **`getChannelData()`** method of the {{ domxref("AudioBuffer") }} Interface

## Syntax

```js
```js-nolint
getChannelData(channel)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ constructor creates a new {{domxref("AudioBufferSourceNode")}} object instance.

## Syntax

```js
```js-nolint
new AudioBufferSourceNode(context, options)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/audiobuffersourcenode/start/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ to begin playback immediately.

## Syntax

```js
```js-nolint
start(when)
start(when, offset)
start(when, offset, duration)
Expand Down
6 changes: 3 additions & 3 deletions files/en-us/web/api/audiocontext/audiocontext/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ graph, built from audio modules linked together, each represented by an

## Syntax

```js
new AudioContext();
new AudioContext(options);
```js-nolint
new AudioContext()
new AudioContext(options)
```

### Parameters
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/audiocontext/close/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This function does not automatically release all `AudioContext`-created objects,

## Syntax

```js
```js-nolint
close()
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ For more details about media element audio source nodes, check out the {{ domxre

## Syntax

```js
```js-nolint
createMediaElementSource(myMediaElement)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ For more details about media stream destination nodes, check out the {{domxref("

## Syntax

```js
```js-nolint
createMediaStreamDestination()
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ For more details about media stream audio source nodes, check out the {{

## Syntax

```js
```js-nolint
createMediaStreamSource(stream)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ first, lexicographically (alphabetically).

## Syntax

```js
```js-nolint
createMediaStreamTrackSource(track)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ The two values are as follows:

## Syntax

```js
```js-nolint
getOutputTimestamp()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/audiocontext/resume/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ called on an {{domxref("OfflineAudioContext")}}.

## Syntax

```js
```js-nolint
resume()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/audiocontext/suspend/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This method will cause an `INVALID_STATE_ERR` exception to be thrown if called o

## Syntax

```js
```js-nolint
suspend()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/audiodata/allocationsize/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The **`allocationSize()`** method of the {{domxref("AudioData")}} interface retu

## Syntax

```js
```js-nolint
allocationSize(options)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/audiodata/audiodata/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The **`AudioData()`** constructor creates a new {{domxref("AudioData")}} object

## Syntax

```js
```js-nolint
new AudioData(init)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/audiodata/clone/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The **`clone()`** method of the {{domxref("AudioData")}} interface creates a new

## Syntax

```js
```js-nolint
clone()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/audiodata/close/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The **`close()`** method of the {{domxref("AudioData")}} interface clears all st

## Syntax

```js
```js-nolint
close()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/audiodata/copyto/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The **`copyTo()`** method of the {{domxref("AudioData")}} interface copies a pla

## Syntax

```js
```js-nolint
copyTo(destination, options)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/audiodecoder/audiodecoder/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The **`AudioDecoder()`** constructor creates a new {{domxref("AudioDecoder")}} o

## Syntax

```js
```js-nolint
new AudioDecoder(init)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/audiodecoder/close/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The **`close()`** method of the {{domxref("AudioDecoder")}} interface ends all p

## Syntax

```js
```js-nolint
close()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/audiodecoder/configure/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The **`configure()`** method of the {{domxref("AudioDecoder")}} interface enqueu

## Syntax

```js
```js-nolint
configure(config)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/audiodecoder/decode/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The **`decode()`** method of the {{domxref("AudioDecoder")}} interface enqueues

## Syntax

```js
```js-nolint
decode(chunk)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/audiodecoder/flush/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The **`flush()`** method of the {{domxref("AudioDecoder")}} interface returns a

## Syntax

```js
```js-nolint
flush()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/audiodecoder/reset/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The **`reset()`** method of the {{domxref("AudioDecoder")}} interface resets all

## Syntax

```js
```js-nolint
reset()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/audioencoder/audioencoder/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The **`AudioEncoder()`** constructor creates a new {{domxref("AudioEncoder")}} o

## Syntax

```js
```js-nolint
new AudioEncoder(init)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/audioencoder/close/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The **`close()`** method of the {{domxref("AudioEncoder")}} interface ends all p

## Syntax

```js
```js-nolint
close()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/audioencoder/configure/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The **`configure()`** method of the {{domxref("AudioEncoder")}} interface enqueu

## Syntax

```js
```js-nolint
configure(config)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/audioencoder/encode/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The **`encode()`** method of the {{domxref("AudioEncoder")}} interface enqueues

## Syntax

```js
```js-nolint
encode(data)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/audioencoder/flush/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The **`flush()`** method of the {{domxref("AudioEncoder")}} interface returns a

## Syntax

```js
```js-nolint
flush()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/audioencoder/reset/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The **`reset()`** method of the {{domxref("AudioEncoder")}} interface resets all

## Syntax

```js
```js-nolint
reset()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/audiolistener/setorientation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The two vectors must be separated by an angle of 90° — in linear analysis ter

## Syntax

```js
```js-nolint
setOrientation(x, y, z, xUp, yUp, zUp)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/audiolistener/setposition/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The default value of the position vector is `(0,` `0,` `0)`.

## Syntax

```js
```js-nolint
setPosition(x, y, z)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/audionode/connect/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ change the value of that parameter over time.

## Syntax

```js
```js-nolint
connect(destination)
connect(destination, outputIndex)
connect(destination, outputIndex, inputIndex)
Expand Down
Loading

0 comments on commit e842902

Please sign in to comment.