diff --git a/includes/script.js b/includes/script.js index ec68535..d1add30 100644 --- a/includes/script.js +++ b/includes/script.js @@ -452,6 +452,14 @@ $(document).ready(function() { renderThrottled(); }); + $('#never').on('click touchend', function() { + $('#threshold').val(0).change(); + }); + + $('#always').on('click touchend', function() { + $('#threshold').val(64).change(); + }); + $('#save').on('click touchend', function() { var newGameData = $('textarea').val(); diff --git a/index.html b/index.html index a9f25f6..d47001c 100644 --- a/index.html +++ b/index.html @@ -5229,4 +5229,4 @@ DLG ITM_0 You found a nice warm cup of tea VAR a -42

image

palette

preview




output

\ No newline at end of file +42

image

palette

preview





output

\ No newline at end of file diff --git a/index.pug b/index.pug index c18cb54..8f7e2ab 100644 --- a/index.pug +++ b/index.pug @@ -61,9 +61,9 @@ html br br - label never + label#never never input#threshold(type="range" min=0 max=64 value=0) - label always + label#always always br label(for="threshold") create new tiles br diff --git a/readme.md b/readme.md index b048b0c..82de362 100644 --- a/readme.md +++ b/readme.md @@ -54,7 +54,6 @@ if (src.match(/^(file|https)?:\/\/|^\/\//)) { * animate animated tiles * profile script performance and optimise where most needed * make brightness slider trigger redraw every so often while being dragged, instead of waiting until drag stop -* make 'never'/'always' clickable ## could do