From 0a2addb05503504487438c79046b46a2ef662d3a Mon Sep 17 00:00:00 2001 From: Quentin Decaunes Date: Wed, 27 Feb 2019 20:16:11 +0100 Subject: [PATCH] Auto reindent --- js/settings.js | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/js/settings.js b/js/settings.js index 2751946..7453264 100644 --- a/js/settings.js +++ b/js/settings.js @@ -1,22 +1,22 @@ function ready(fn) { - if (document.attachEvent ? document.readyState === "complete" : document.readyState !== "loading"){ - fn(); - } else { - document.addEventListener('DOMContentLoaded', fn); + if (document.attachEvent ? document.readyState === "complete" : document.readyState !== "loading"){ + fn(); + } else { + document.addEventListener('DOMContentLoaded', fn); + } +} +ready(function(){ + var ranges = document.querySelectorAll('[repeat]'); + for (const range in ranges) { + if (ranges.hasOwnProperty(range)) { + const element = ranges[range]; + element.addEventListener('change', function(event) { + var repeater = document.getElementById(event.target.attributes.repeat.value); + repeater.value = event.target.value; + }); } } - ready(function(){ - var ranges = document.querySelectorAll('[repeat]'); - for (const range in ranges) { - if (ranges.hasOwnProperty(range)) { - const element = ranges[range]; - element.addEventListener('change', function(event) { - var repeater = document.getElementById(event.target.attributes.repeat.value); - repeater.value = event.target.value; - }); - } - } - }); +}); /* stapm_limit_w_range ppt_fast_limit_w_range