diff --git a/js/widgets/help.js b/js/widgets/help.js index 0271ad7531..f99270a980 100644 --- a/js/widgets/help.js +++ b/js/widgets/help.js @@ -69,7 +69,6 @@ class HelpWidget { * @returns {void} */ _setup(useActiveBlock) { - const iconSize = HelpWidget.ICONSIZE; // Which help page are we on? let page = 0; diff --git a/js/widgets/musickeyboard.js b/js/widgets/musickeyboard.js index d6777107d6..9ba8cb5a33 100644 --- a/js/widgets/musickeyboard.js +++ b/js/widgets/musickeyboard.js @@ -1283,7 +1283,7 @@ function MusicKeyboard(activity) { mkbTableRow = mkbTable.insertRow(); mkbTableRow.style.position = "sticky"; - mkbTableRow.style.bottom = "0px" + mkbTableRow.style.bottom = "0px"; cell = mkbTableRow.insertCell(); cell.style.backgroundColor = platformColor.graphicsLabelBackground; cell.style.fontSize = this._cellScale * 100 + "%"; diff --git a/js/widgets/phrasemaker.js b/js/widgets/phrasemaker.js index 6d2b68018c..a85b5ff192 100644 --- a/js/widgets/phrasemaker.js +++ b/js/widgets/phrasemaker.js @@ -150,27 +150,27 @@ class PhraseMaker { this.columnBlocksMap = []; } - stylePhraseMaker(){ + stylePhraseMaker(){ var floatingWindowsDiv = document.getElementById("floatingWindows"); var windowFrameElements = floatingWindowsDiv.querySelectorAll(".windowFrame"); for (var i = 0; i < windowFrameElements.length; i++) { - var windowFrame = windowFrameElements[i]; - var wfWinBody = document.querySelector(".wfWinBody"); - var wfbWidget = document.querySelector(".wfbWidget"); - wfbWidget.style.overflow = "auto" - wfbWidget.style.width = "-webkit-fill-available" - wfbWidget.style.height = "-webkit-fill-available" - windowFrame.style.height = "405px"; - windowFrame.style.width = "685px"; - wfWinBody.style.position = "absolute"; - wfWinBody.style.overflow = "auto"; - wfWinBody.style.width = "-webkit-fill-available"; - wfWinBody.style.height = "-webkit-fill-available"; - wfWinBody.style.background = "#cccccc"; - wfbWidget.style.position = "absolute"; - wfbWidget.style.left = "55px"; + var windowFrame = windowFrameElements[i]; + var wfWinBody = document.querySelector(".wfWinBody"); + var wfbWidget = document.querySelector(".wfbWidget"); + wfbWidget.style.overflow = "auto"; + wfbWidget.style.width = "-webkit-fill-available"; + wfbWidget.style.height = "-webkit-fill-available"; + windowFrame.style.height = "405px"; + windowFrame.style.width = "685px"; + wfWinBody.style.position = "absolute"; + wfWinBody.style.overflow = "auto"; + wfWinBody.style.width = "-webkit-fill-available"; + wfWinBody.style.height = "-webkit-fill-available"; + wfWinBody.style.background = "#cccccc"; + wfbWidget.style.position = "absolute"; + wfbWidget.style.left = "55px"; } } @@ -705,15 +705,15 @@ class PhraseMaker { // An extra row for the note and tuplet values ptmTableRow = ptmTable.insertRow(); ptmCell = ptmTableRow.insertCell(); - ptmTableRow.setAttribute('id', 'bottomRow'); + ptmTableRow.setAttribute("id", "bottomRow"); ptmTableRow.style.position = "sticky"; - ptmTableRow.style.bottom = '0px'; - ptmTableRow.style.zIndex = '1'; + ptmTableRow.style.bottom = "0px"; + ptmTableRow.style.zIndex = "1"; ptmCell.setAttribute("colspan", "2"); ptmCell.style.position = "sticky"; - ptmCell.style.left = '1.2px'; - ptmCell.style.zIndex = '1'; + ptmCell.style.left = "1.2px"; + ptmCell.style.zIndex = "1"; ptmCell.className = "headcol"; // This cell is fixed horizontally. tempTable = document.createElement("table"); diff --git a/js/widgets/sampler.js b/js/widgets/sampler.js index 91c41059ad..9379edd1a3 100644 --- a/js/widgets/sampler.js +++ b/js/widgets/sampler.js @@ -139,7 +139,7 @@ function SampleWidget() { }; this.showSampleTypeError = function () { - this.activity.errorMsg(_("Upload failed: Sample is not a .wav file."), this.timbreBlock); + this.activity.errorMsg(_("Upload failed: Sample is not a .wav file."), this.timbreBlock); }; this.__save = function () { @@ -267,7 +267,7 @@ function SampleWidget() { // eslint-disable-next-line no-unused-vars reader.onload = function (event) { // if the file is of .wav type, save it - if (reader.result.substring(reader.result.indexOf(":")+1, reader.result.indexOf(";")) === 'audio/wav') { + if (reader.result.substring(reader.result.indexOf(":")+1, reader.result.indexOf(";")) === "audio/wav") { that.sampleData = reader.result; that.sampleName = fileChooser.files[0].name; that._addSample();