Skip to content

Commit

Permalink
Temp change to a JS file
Browse files Browse the repository at this point in the history
  • Loading branch information
dkotter committed May 31, 2024
1 parent f3b80c3 commit de60e53
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions js/hidecss.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* show/hide on checkbox click */
function showMe (box) {

Check failure on line 2 in js/hidecss.js

View workflow job for this annotation

GitHub Actions / eslint

Replace `····function·showMe·` with `function·showMe`

Check failure on line 2 in js/hidecss.js

View workflow job for this annotation

GitHub Actions / eslint

'showMe' is defined but never used

Check failure on line 3 in js/hidecss.js

View workflow job for this annotation

GitHub Actions / eslint

Replace `⏎········var·chboxs·=·document.getElementsByName("mc_nuke_all_styles"` with `↹var·chboxs·=·document.getElementsByName('mc_nuke_all_styles'`
var chboxs = document.getElementsByName("mc_nuke_all_styles");

Check failure on line 4 in js/hidecss.js

View workflow job for this annotation

GitHub Actions / eslint

Unexpected var, use let or const instead
var vis = "none";

Check failure on line 5 in js/hidecss.js

View workflow job for this annotation

GitHub Actions / eslint

Replace `········var·vis·=·"none"` with `↹var·vis·=·'none'`

Check failure on line 5 in js/hidecss.js

View workflow job for this annotation

GitHub Actions / eslint

Unexpected var, use let or const instead

Check failure on line 5 in js/hidecss.js

View workflow job for this annotation

GitHub Actions / eslint

'vis' declared on line 11 column 19 is used outside of binding context
for(var i=0;i<chboxs.length;i++) {
for(var i=0;i<chboxs.length;i++) {

Check failure on line 6 in js/hidecss.js

View workflow job for this annotation

GitHub Actions / eslint

Replace `········for(var·i=0;i<chboxs.length;` with `↹for·(var·i·=·0;·i·<·chboxs.length;·`

Check failure on line 6 in js/hidecss.js

View workflow job for this annotation

GitHub Actions / eslint

All 'var' declarations must be at the top of the function scope

Check failure on line 6 in js/hidecss.js

View workflow job for this annotation

GitHub Actions / eslint

Unexpected var, use let or const instead
if(chboxs[i].checked){
vis = "none";
}
Expand All @@ -13,6 +13,6 @@
}
}
document.getElementById(box).style.display = vis;
}


}

0 comments on commit de60e53

Please sign in to comment.