Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
walterbender committed Sep 10, 2023
1 parent 16bfb43 commit 52344d9
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 25 deletions.
1 change: 0 additions & 1 deletion js/widgets/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ class HelpWidget {
* @returns {void}
*/
_setup(useActiveBlock) {
const iconSize = HelpWidget.ICONSIZE;
// Which help page are we on?
let page = 0;

Expand Down
2 changes: 1 addition & 1 deletion js/widgets/musickeyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 + "%";
Expand Down
42 changes: 21 additions & 21 deletions js/widgets/phrasemaker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
}

Expand Down Expand Up @@ -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");
Expand Down
4 changes: 2 additions & 2 deletions js/widgets/sampler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 52344d9

Please sign in to comment.