Skip to content

Commit

Permalink
More commenting and reformatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
00Fjongl committed Jul 8, 2024
1 parent b7b5b89 commit 2119885
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions views/assets/js/csel.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,17 @@ pageIcon = value => {
document.head.appendChild(tag);
},


pageHideAds = () => {
(document.getElementById('advertising')||new Text()).remove();
},

// Make a small stylesheet to override a setting from the main stylesheet.
pageShowAds = () => {
let advertising = document.createElement('style');
advertising.id = "advertising";
advertising.innerText = `.ad { display:block; }`;
document.appendChild.bind(document.head || document.body || document.documentElement || document)(advertising);
},

// Remove the stylesheet made by the function above, if it exists.
pageHideAds = () => {
(document.getElementById('advertising')||new Text()).remove();
};


Expand Down Expand Up @@ -124,6 +125,8 @@ if (document.getElementById('csel')) {
}, false);
}



/* -----------------------------------------------
/* Original code written by OlyB
/* -----------------------------------------------
Expand Down

0 comments on commit 2119885

Please sign in to comment.