@@ -190,27 +190,25 @@ class MeterWidget {
190190 this . _click_lock = true ;
191191 if ( this . __getPlayingStatus ( ) ) {
192192 playBtn . innerHTML =
193- ' <img src="header-icons/play-button.svg" title="' +
194- _ ( "Play all" ) +
195- '" alt="' +
196- _ ( "Play all" ) +
197- '" height="' +
198- MeterWidget . ICONSIZE +
199- '" width="' +
200- MeterWidget . ICONSIZE +
201- '" vertical-align="middle"> ' ;
193+ ` <img
194+ src="header-icons/play-button.svg"
195+ title="${ _ ( "Play all" ) } "
196+ alt="${ _ ( "Play all" ) } "
197+ height="${ MeterWidget . ICONSIZE } "
198+ width="${ MeterWidget . ICONSIZE } "
199+ vertical-align="middle"
200+ > ` ;
202201 this . _playing = false ;
203202 } else {
204203 playBtn . innerHTML =
205- ' <img src="header-icons/stop-button.svg" title="' +
206- _ ( "Stop" ) +
207- '" alt="' +
208- _ ( "Stop" ) +
209- '" height="' +
210- MeterWidget . ICONSIZE +
211- '" width="' +
212- MeterWidget . ICONSIZE +
213- '" vertical-align="middle"> ' ;
204+ ` <img
205+ src="header-icons/stop-button.svg"
206+ title="${ _ ( "Stop" ) } "
207+ alt="${ _ ( "Stop" ) } "
208+ height="${ MeterWidget . ICONSIZE } "
209+ width="${ MeterWidget . ICONSIZE } "
210+ vertical-align="middle"
211+ > ` ;
214212 this . _playing = true ;
215213 this . activity . logo . turtleDelay = 0 ;
216214 this . activity . logo . resetSynth ( 0 ) ;
@@ -257,16 +255,12 @@ class MeterWidget {
257255 const divInput = document . createElement ( "div" ) ;
258256 divInput . className = "wfbtItem" ;
259257 divInput . innerHTML =
260- '<input style="float: left ;" value="' +
261- v1 +
262- '" type="number" id="beatValue" min="1" max="16" >' ;
258+ `<input style="float: left;" value="${ v1 } " type="number" id="beatValue" min="1" max="16" >` ;
263259
264260 const divInput2 = document . createElement ( "div" ) ;
265261 divInput2 . className = "wfbtItem" ;
266262 divInput2 . innerHTML =
267- '<input style="float: left;" value="' +
268- 1 / this . _beatValue +
269- '" type="number" id="beatValue" min="1" max="35">' ;
263+ `<input style="float: left;" value="${ 1 / this . _beatValue } " type="number" id="beatValue" min="1" max="35">` ;
270264
271265 widgetWindow . _toolbar . appendChild ( divInput ) ;
272266 widgetWindow . _toolbar . appendChild ( divInput2 ) ;
@@ -423,17 +417,15 @@ class MeterWidget {
423417 _addButton ( row , icon , iconSize , label ) {
424418 const cell = row . insertCell ( - 1 ) ;
425419 cell . innerHTML =
426- ' <img src="header-icons/' +
427- icon +
428- '" title="' +
429- label +
430- '" alt="' +
431- label +
432- '" height="' +
433- iconSize +
434- '" width="' +
435- iconSize +
436- '" vertical-align="middle" align-content="center"> ' ;
420+ ` <img
421+ src="header-icons/${ icon } "
422+ title="${ label } "
423+ alt="${ label } "
424+ height="${ iconSize } "
425+ width="${ iconSize } "
426+ vertical-align="middle"
427+ align-content="center"
428+ > ` ;
437429 cell . style . width = MeterWidget . BUTTONSIZE + "px" ;
438430 cell . style . minWidth = cell . style . width ;
439431 cell . style . maxWidth = cell . style . width ;
0 commit comments