diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-04-02 05:29:14 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-04-02 05:29:14 +0200 |
| commit | 165bb4883c59a8b529c09b08bb75c9b3407c9c69 (patch) | |
| tree | d7933a3dbe2ff2bdb1d6d7de4ad8efbd88baf267 /js | |
| parent | 655c5293708300deaf11a8b6a924e7b817bf6288 (diff) | |
advanced toggle
Diffstat (limited to 'js')
| -rw-r--r-- | js/ui/controls.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/js/ui/controls.js b/js/ui/controls.js index 32a329a..315395d 100644 --- a/js/ui/controls.js +++ b/js/ui/controls.js @@ -171,7 +171,6 @@ var controls = (function(){ clipboard.export_mode() alert('your ascii art is now on display on the IRC channel inside the panke.gallery!') } - controls.load = new ClipboardTool (load_el) controls.load.use = function(){ // console.log("use") @@ -230,6 +229,18 @@ var controls = (function(){ this.update(state) } + controls.advanced = new BlurredCheckbox (advanced_checkbox) + controls.advanced.memorable = true + controls.advanced.use = function(state){ + console.log(state) + state = document.body.classList.contains('panke') + if (state) + document.body.classList.remove('panke') + else + document.body.classList.add('panke') + this.update(state) + } + /* controls.nopaint = new HiddenCheckbox (nopaint_toggle) controls.nopaint.memorable = true |
