Skip to content

Commit c4f8e6b

Browse files
authored
Remove 'highlight:[]' and 'highlight[]' classes (#8368)
1 parent 73904ad commit c4f8e6b

File tree

192 files changed

+249
-249
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+249
-249
lines changed

files/en-us/web/api/analysernode/getfloatfrequencydata/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ <h3 id="Drawing_a_spectrum">Drawing a spectrum</h3>
5454

5555
<p>For more complete applied examples/information, check out our <a href="https://mdn.github.io/voice-change-o-matic-float-data/">Voice-change-O-matic-float-data</a> demo (see the <a href="https://github.com/mdn/voice-change-o-matic-float-data">source code</a> too).</p>
5656

57-
<pre class="brush: html, highlight:[15, 17, 18, 41]">&lt;!doctype html&gt;
57+
<pre class="brush: html,">&lt;!doctype html&gt;
5858
&lt;body&gt;
5959
&lt;script&gt;
6060
const audioCtx = new AudioContext();

files/en-us/web/api/audiobuffer/duration/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ <h3 id="Value">Value</h3>
2929

3030
<h2 id="Example">Example</h2>
3131

32-
<pre class="brush: js;highlight[22]">// Stereo
32+
<pre class="brush: js;">// Stereo
3333
var channels = 2;
3434

3535
// Create an empty two second stereo buffer at the

files/en-us/web/api/audiobuffer/getchanneldata/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<h2 id="Syntax">Syntax</h2>
1717

18-
<pre class="brush: js;highlight[22]">var myArrayBuffer = audioCtx.createBuffer(2, frameCount, audioCtx.sampleRate);
18+
<pre class="brush: js;">var myArrayBuffer = audioCtx.createBuffer(2, frameCount, audioCtx.sampleRate);
1919
var nowBuffering = myArrayBuffer.getChannelData(channel);</pre>
2020

2121
<h3 id="Parameters">Parameters</h3>
@@ -33,7 +33,7 @@ <h2 id="Example">Example</h2>
3333

3434
<p>In the following example we create a two second buffer, fill it with white noise, and then play it via an {{ domxref("AudioBufferSourceNode") }}. The comments should clearly explain what is going on. You can also <a href="https://mdn.github.io/webaudio-examples/audio-buffer/">run the code live</a>, or <a href="https://github.com/mdn/webaudio-examples">view the source</a>.</p>
3535

36-
<pre class="brush: js;highlight[21]">var audioCtx = new (window.AudioContext || window.webkitAudioContext)();
36+
<pre class="brush: js;">var audioCtx = new (window.AudioContext || window.webkitAudioContext)();
3737
var button = document.querySelector('button');
3838
var pre = document.querySelector('pre');
3939
var myScript = document.querySelector('script');

files/en-us/web/api/audiobuffer/length/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ <h3 id="Value">Value</h3>
2727

2828
<h2 id="Example">Example</h2>
2929

30-
<pre class="brush: js;highlight[22]">// Stereo
30+
<pre class="brush: js;">// Stereo
3131
var channels = 2;
3232

3333
// Create an empty two second stereo buffer at the

files/en-us/web/api/audiobuffer/numberofchannels/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ <h3 id="Value">Value</h3>
2929

3030
<h2 id="Example">Example</h2>
3131

32-
<pre class="brush: js;highlight[22]">// Stereo
32+
<pre class="brush: js;">// Stereo
3333
var channels = 2;
3434

3535
// Create an empty two second stereo buffer at the

files/en-us/web/api/audiobuffer/samplerate/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h3 id="Value">Value</h3>
2828

2929
<h2 id="Example">Example</h2>
3030

31-
<pre class="brush: js;highlight[22]">// Stereo
31+
<pre class="brush: js;">// Stereo
3232
var channels = 2;
3333

3434
// Create an empty two second stereo buffer at the

files/en-us/web/api/audiobuffersourcenode/detune/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ <h3 id="Value">Value</h3>
4040

4141
<h2 id="Example">Example</h2>
4242

43-
<pre class="brush: js;highlight[18]">const audioCtx = new AudioContext();
43+
<pre class="brush: js;">const audioCtx = new AudioContext();
4444

4545
const channelCount = 2;
4646
const frameCount = audioCtx.sampleRate * 2.0; // 2 seconds

files/en-us/web/api/audiobuffersourcenode/loop/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ <h2 id="Example">Example</h2>
5656
the source</a>.)</p>
5757
</div>
5858

59-
<pre class="brush: js;highlight[17]">function getData() {
59+
<pre class="brush: js;">function getData() {
6060
source = audioCtx.createBufferSource();
6161
request = new XMLHttpRequest();
6262

files/en-us/web/api/audiobuffersourcenode/playbackrate/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ <h2 id="Example">Example</h2>
6565
&lt;span class="playback-rate-value"&gt;1.0&lt;/span&gt;
6666
</pre>
6767

68-
<pre class="brush: js;highlight[15]">function getData() {
68+
<pre class="brush: js;">function getData() {
6969
source = audioCtx.createBufferSource();
7070
request = new XMLHttpRequest();
7171

files/en-us/web/api/audiocontext/createmediastreamsource/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ <h2 id="Example">Example</h2>
6666
the source</a>.</p>
6767
</div>
6868

69-
<pre class="brush: js;highlight[23]">var pre = document.querySelector('pre');
69+
<pre class="brush: js;">var pre = document.querySelector('pre');
7070
var video = document.querySelector('video');
7171
var myScript = document.querySelector('script');
7272
var range = document.querySelector('input');

files/en-us/web/api/audionode/channelcount/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ <h3 id="Value">Value</h3>
3333

3434
<h2 id="Example">Example</h2>
3535

36-
<pre class="brush: js;highlight[11]">var AudioContext = window.AudioContext || window.webkitAudioContext;
36+
<pre class="brush: js;">var AudioContext = window.AudioContext || window.webkitAudioContext;
3737

3838
var audioCtx = new AudioContext();
3939

files/en-us/web/api/audionode/channelcountmode/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
<h2 id="Syntax">Syntax</h2>
5151

52-
<pre class="brush: js;highlight[11]">var oscillator = audioCtx.createOscillator();
52+
<pre class="brush: js;">var oscillator = audioCtx.createOscillator();
5353
oscillator.channelCountMode = 'explicit';</pre>
5454

5555
<h3 id="Value">Value</h3>
@@ -58,7 +58,7 @@ <h3 id="Value">Value</h3>
5858

5959
<h2 id="Example">Example</h2>
6060

61-
<pre class="brush: js;highlight[11]">var AudioContext = window.AudioContext || window.webkitAudioContext;
61+
<pre class="brush: js;">var AudioContext = window.AudioContext || window.webkitAudioContext;
6262

6363
var audioCtx = new AudioContext();
6464

files/en-us/web/api/audionode/connect/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ <h3 id="AudioParam_example">AudioParam example</h3>
113113
an {{domxref("OscillatorNode")}} with a slow frequency value. This technique is know as
114114
an <em>LFO</em>-controlled parameter.</p>
115115

116-
<pre class="brush: js;highlight[8,9]">var AudioContext = window.AudioContext || window.webkitAudioContext;
116+
<pre class="brush: js;">var AudioContext = window.AudioContext || window.webkitAudioContext;
117117

118118
var audioCtx = new AudioContext();
119119

files/en-us/web/api/audionode/context/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ <h3 id="Value">Value</h3>
2929

3030
<h2 id="Example">Example</h2>
3131

32-
<pre class="brush: js;highlight[8,9]">const AudioContext = window.AudioContext || window.webkitAudioContext;
32+
<pre class="brush: js;">const AudioContext = window.AudioContext || window.webkitAudioContext;
3333
const audioCtx = new AudioContext();
3434

3535
const oscillator = audioCtx.createOscillator();

files/en-us/web/api/audionode/numberofinputs/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h3 id="Value">Value</h3>
2828

2929
<h2 id="Example">Example</h2>
3030

31-
<pre class="brush: js;highlight[8,9,10]">const audioCtx = new AudioContext();
31+
<pre class="brush: js;">const audioCtx = new AudioContext();
3232

3333
const oscillator = audioCtx.createOscillator();
3434
const gainNode = audioCtx.createGain();

files/en-us/web/api/audionode/numberofoutputs/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h3 id="Value">Value</h3>
2828

2929
<h2 id="Example">Example</h2>
3030

31-
<pre class="brush: js;highlight[8,9,10]">const audioCtx = new AudioContext();
31+
<pre class="brush: js;">const audioCtx = new AudioContext();
3232

3333
const oscillator = audioCtx.createOscillator();
3434
const gainNode = audioCtx.createGain();

files/en-us/web/api/audioparam/defaultvalue/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h3 id="Value">Value</h3>
2828

2929
<h2 id="Example">Example</h2>
3030

31-
<pre class="brush: js;highlight[3]">const audioCtx = new AudioContext();
31+
<pre class="brush: js;">const audioCtx = new AudioContext();
3232
const gainNode = audioCtx.createGain();
3333
const defaultVal = gainNode.gain.defaultValue;
3434
console.log(defaultVal); // 1

files/en-us/web/api/audioparam/exponentialramptovalueattime/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ <h2 id="Examples">Examples</h2>
5858
is used to fade the gain value up to 1.0, and down to 0, respectively. This is pretty
5959
useful for fade in/fade out effects:</p>
6060

61-
<pre class="brush: js;highlight[32,37]">// create audio context
61+
<pre class="brush: js;">// create audio context
6262
var AudioContext = window.AudioContext || window.webkitAudioContext;
6363
var audioCtx = new AudioContext();
6464

files/en-us/web/api/audioparam/maxvalue/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h3 id="Value">Value</h3>
3232

3333
<h2 id="Example">Example</h2>
3434

35-
<pre class="brush: js;highlight[4]">const audioCtx = new AudioContext();
35+
<pre class="brush: js;">const audioCtx = new AudioContext();
3636
const gainNode = audioCtx.createGain();
3737
console.log(gainNode.gain.maxValue); // 3.4028234663852886e38</pre>
3838

files/en-us/web/api/audioparam/minvalue/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h3 id="Value">Value</h3>
3232

3333
<h2 id="Example">Example</h2>
3434

35-
<pre class="brush: js;highlight[3]">const audioCtx = new AudioContext();
35+
<pre class="brush: js;">const audioCtx = new AudioContext();
3636
const gainNode = audioCtx.createGain();
3737
console.log(gainNode.gain.minValue); // -3.4028234663852886e38
3838
</pre>

files/en-us/web/api/audioparam/settargetattime/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ <h2 id="Examples">Examples</h2>
162162
after 1 second, and the length of time the effect lasts being controlled by the
163163
timeConstant.</p>
164164

165-
<pre class="brush: js;highlight[32,37]">// create audio context
165+
<pre class="brush: js;">// create audio context
166166
var AudioContext = window.AudioContext || window.webkitAudioContext;
167167
var audioCtx = new AudioContext();
168168

files/en-us/web/api/audioparam/setvalueattime/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ <h2 id="Examples">Examples</h2>
5151
to set the gain value equal to <code>currGain</code>, one second from now
5252
(<code>audioCtx.currentTime + 1</code>.)</p>
5353

54-
<pre class="brush: js;highlight[32,37]">// create audio context
54+
<pre class="brush: js;">// create audio context
5555
var AudioContext = window.AudioContext || window.webkitAudioContext;
5656
var audioCtx = new AudioContext();
5757

files/en-us/web/api/audioparam/setvaluecurveattime/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ <h2 id="Examples">Examples</h2>
8989
live</a>.) When this button is pressed, <code>setValueCurveAtTime()</code> is used to
9090
change the gain value between the values contained in the waveArray array:</p>
9191

92-
<pre class="brush: js;highlight[42]">// create audio context
92+
<pre class="brush: js;">// create audio context
9393
var AudioContext = window.AudioContext || window.webkitAudioContext;
9494
var audioCtx = new AudioContext();
9595

files/en-us/web/api/audioparam/value/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ <h2 id="Example">Example</h2>
107107

108108
<p>This example instantly changes the volume of a {{domxref("GainNode")}} to 40%.</p>
109109

110-
<pre class="brush: js;highlight[3]">const audioCtx = new AudioContext();
110+
<pre class="brush: js;">const audioCtx = new AudioContext();
111111
const gainNode = audioCtx.createGain();
112112
gainNode.gain.value = 0.4;
113113
//which is identical to:

files/en-us/web/api/audioscheduledsourcenode/onended/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ <h2 id="Example">Example</h2>
4848

4949
<p>The following example shows basic usage of an {{ domxref("AudioContext") }} to create an oscillator node. For an applied example, check out our <a href="https://mdn.github.io/violent-theremin/">Violent Theremin demo</a> (<a href="https://github.com/mdn/violent-theremin/blob/gh-pages/scripts/app.js">see app.js</a> for relevant code).</p>
5050

51-
<pre class="brush: js;highlight[13,14,15]">// create web audio api context
51+
<pre class="brush: js;">// create web audio api context
5252
var audioCtx = new (window.AudioContext || window.webkitAudioContext)();
5353

5454
// create Oscillator node

files/en-us/web/api/baseaudiocontext/createbuffer/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ <h2 id="Examples">Examples</h2>
116116
href="https://github.com/mdn/webaudio-examples/blob/master/audio-buffer/index.html">view
117117
the source</a>.</p>
118118

119-
<pre class="brush: js;highlight[14]">var audioCtx = new (window.AudioContext || window.webkitAudioContext)();
119+
<pre class="brush: js;">var audioCtx = new (window.AudioContext || window.webkitAudioContext)();
120120

121121
// Create an empty three-second stereo buffer at the sample rate of the AudioContext
122122
var myArrayBuffer = audioCtx.createBuffer(2, audioCtx.sampleRate * 3, audioCtx.sampleRate);

files/en-us/web/api/baseaudiocontext/createbuffersource/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ <h2 id="Example">Example</h2>
5252
the source</a>.</p>
5353
</div>
5454

55-
<pre class="brush: js highlight[31]">var audioCtx = new (window.AudioContext || window.webkitAudioContext)();
55+
<pre class="brush: js">var audioCtx = new (window.AudioContext || window.webkitAudioContext)();
5656
var button = document.querySelector('button');
5757
var pre = document.querySelector('pre');
5858
var myScript = document.querySelector('script');

files/en-us/web/api/baseaudiocontext/createchannelsplitter/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ <h2 id="Example">Example</h2>
4646
method, which allow you to specify the index of the channel to connect from and the
4747
index of the channel to connect to.</p>
4848

49-
<pre class="brush: js;highlight[5,12,17]">var ac = new AudioContext();
49+
<pre class="brush: js;">var ac = new AudioContext();
5050
ac.decodeAudioData(someStereoBuffer, function(data) {
5151
var source = ac.createBufferSource();
5252
source.buffer = data;

files/en-us/web/api/baseaudiocontext/createdelay/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ <h2 id="Example">Example</h2>
5151
sliders up to the right, then press the play buttons, a delay will be introduced, so the
5252
looping sounds don't start playing for a short amount of time.</p>
5353

54-
<pre class="brush: js;highlight[4,15,16,21,22]">var AudioContext = window.AudioContext || window.webkitAudioContext;
54+
<pre class="brush: js;">var AudioContext = window.AudioContext || window.webkitAudioContext;
5555
var audioCtx = new AudioContext();
5656

5757
var synthDelay = audioCtx.createDelay(5.0);

files/en-us/web/api/baseaudiocontext/createdynamicscompressor/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ <h2 id="Example">Example</h2>
4949
href="https://github.com/mdn/webaudio-examples/tree/master/compressor-example">view
5050
the source code</a>).</p>
5151

52-
<pre class="brush: js highlight[6,18,19]">// Create a MediaElementAudioSourceNode
52+
<pre class="brush: js">// Create a MediaElementAudioSourceNode
5353
// Feed the HTMLMediaElement into it
5454
var source = audioCtx.createMediaElementSource(myAudio);
5555

files/en-us/web/api/baseaudiocontext/currenttime/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h2 id="Syntax">Syntax</h2>
2424

2525
<h2 id="Example">Example</h2>
2626

27-
<pre class="brush: js;highlight[8]">var AudioContext = window.AudioContext || window.webkitAudioContext;
27+
<pre class="brush: js;">var AudioContext = window.AudioContext || window.webkitAudioContext;
2828
var audioCtx = new AudioContext();
2929
// Older webkit/blink browsers require a prefix
3030

files/en-us/web/api/baseaudiocontext/destination/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ <h2 id="Example">Example</h2>
3535
href="https://github.com/mdn/voice-change-o-matic">voice-change-o-matic</a>.</p>
3636
</div>
3737

38-
<pre class="brush: js;highlight[8]">var AudioContext = window.AudioContext || window.webkitAudioContext;
38+
<pre class="brush: js;">var AudioContext = window.AudioContext || window.webkitAudioContext;
3939
var audioCtx = new AudioContext();
4040
// Older webkit/blink browsers require a prefix
4141

files/en-us/web/api/baseaudiocontext/listener/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ <h2 id="Example">Example</h2>
3434
href="https://github.com/mdn/panner-node">panner-node</a> demo.</p>
3535
</div>
3636

37-
<pre class="brush: js;highlight[8]">var AudioContext = window.AudioContext || window.webkitAudioContext;
37+
<pre class="brush: js;">var AudioContext = window.AudioContext || window.webkitAudioContext;
3838
var audioCtx = new AudioContext();
3939
// Older webkit/blink browsers require a prefix
4040

files/en-us/web/api/baseaudiocontext/samplerate/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ <h2 id="Example">Example</h2>
3838
<code>audioCtx.sampleRate</code> into your browser console.</p>
3939
</div>
4040

41-
<pre class="brush: js;highlight[8]">var AudioContext = window.AudioContext || window.webkitAudioContext;
41+
<pre class="brush: js;">var AudioContext = window.AudioContext || window.webkitAudioContext;
4242
var audioCtx = new AudioContext();
4343
// Older webkit/blink browsers require a prefix
4444

files/en-us/web/api/batterymanager/charging/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ <h3 id="HTML_Content">HTML Content</h3>
3434

3535
<h3 id="JavaScript_Content">JavaScript Content</h3>
3636

37-
<pre class="brush: js; highlight:[3]">navigator.getBattery().then(function(battery) {
37+
<pre class="brush: js;">navigator.getBattery().then(function(battery) {
3838

3939
var charging = battery.charging;
4040

files/en-us/web/api/batterymanager/chargingtime/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ <h3 id="HTML_Content">HTML Content</h3>
4040

4141
<h3 id="JavaScript_Content">JavaScript Content</h3>
4242

43-
<pre class="brush: js; highlight:[3]">navigator.getBattery().then(function(battery) {
43+
<pre class="brush: js;">navigator.getBattery().then(function(battery) {
4444

4545
var time = battery.chargingTime;
4646

files/en-us/web/api/batterymanager/dischargingtime/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ <h3 id="HTML_Content">HTML Content</h3>
4242

4343
<h3 id="JavaScript_Content">JavaScript Content</h3>
4444

45-
<pre class="brush: js; highlight:[3]">navigator.getBattery().then(function(battery) {
45+
<pre class="brush: js; ">navigator.getBattery().then(function(battery) {
4646

4747
var time = battery.dischargingTime;
4848

files/en-us/web/api/batterymanager/level/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ <h3 id="HTML_Content">HTML Content</h3>
3636

3737
<h3 id="JavaScript_Content">JavaScript Content</h3>
3838

39-
<pre class="brush: js; highlight:[3]">navigator.getBattery().then(function(battery) {
39+
<pre class="brush: js; ">navigator.getBattery().then(function(battery) {
4040

4141
var level = battery.level;
4242

files/en-us/web/api/batterymanager/onchargingchange/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ <h3 id="HTML_Content">HTML Content</h3>
3636

3737
<h3 id="JavaScript_Content">JavaScript Content</h3>
3838

39-
<pre class="brush: js; highlight:[3]">navigator.getBattery().then(function(battery) {
39+
<pre class="brush: js; ">navigator.getBattery().then(function(battery) {
4040

4141
battery.onchargingchange = chargingChange();
4242

files/en-us/web/api/batterymanager/onchargingtimechange/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ <h3 id="HTML_Content">HTML Content</h3>
3636

3737
<h3 id="JavaScript_Content">JavaScript Content</h3>
3838

39-
<pre class="brush: js; highlight:[3]">navigator.getBattery().then(function(battery) {
39+
<pre class="brush: js; ">navigator.getBattery().then(function(battery) {
4040

4141
battery.onchargingtimechange = chargingTimeChange();
4242

files/en-us/web/api/batterymanager/ondischargingtimechange/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ <h3 id="HTML_Content">HTML Content</h3>
3636

3737
<h3 id="JavaScript_Content">JavaScript Content</h3>
3838

39-
<pre class="brush: js; highlight:[3]">navigator.getBattery().then(function(battery) {
39+
<pre class="brush: js;">navigator.getBattery().then(function(battery) {
4040

4141
battery.ondischargingtimechange = dischargingTimeChange;
4242

files/en-us/web/api/batterymanager/onlevelchange/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ <h3 id="HTML">HTML</h3>
3333

3434
<h3 id="JavaScript">JavaScript</h3>
3535

36-
<pre class="brush: js; highlight:[3]">navigator.getBattery().then(function(battery) {
36+
<pre class="brush: js;">navigator.getBattery().then(function(battery) {
3737
battery.onlevelchange = function(){
3838
document.querySelector('#level').textContent = battery.level;
3939

0 commit comments

Comments
 (0)