From 55f5b7940bc9cedf7d240cdca409bc6805e56f07 Mon Sep 17 00:00:00 2001 From: Thomas Genin Date: Thu, 31 Jul 2014 23:46:19 -0700 Subject: [PATCH] Add support for JS templates to the GUI Add UI for JS templates Remove useless code restore minify script --- assets/master.css | 1 + assets/master.js | 2 ++ index.html | 18 +++++++++++++++++- 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/assets/master.css b/assets/master.css index ceb4be7..1c3979e 100644 --- a/assets/master.css +++ b/assets/master.css @@ -12,6 +12,7 @@ button { font-weight: bold; width: 100px; } #options ul li { float: left; clear: both; padding-bottom: 0.5em; } #options ul li div { margin-left: 1.75em; } #options label, #options input { float: left; } +#options label.sub-option{ margin-left: 22px; margin-right: 5px } #options input { margin-right: 0.5em; } #stats { margin-bottom: 2em; overflow: hidden; margin-top: 0; } #todo { font-family: monospace; margin-bottom: 2em; } diff --git a/assets/master.js b/assets/master.js index 985329d..48c2f3b 100644 --- a/assets/master.js +++ b/assets/master.js @@ -30,6 +30,7 @@ caseSensitive: byId('case-sensitive').checked, keepClosingSlash: byId('keep-closing-slash').checked, minifyJS: byId('minify-js').checked, + processScripts: byId('minify-js-templates').checked ? byId('minify-js-templates-type').value : false, minifyCSS: byId('minify-css').checked, lint: byId('use-htmllint').checked ? new HTMLLint() : null, maxLineLength: parseInt(byId('max-line-length').value, 10) @@ -96,6 +97,7 @@ var inputEls = byId('options').getElementsByTagName('input'); inputEls[10].checked = false; inputEls[11].checked = false; + inputEls[18].checked = false; return false; }; diff --git a/index.html b/index.html index 693ece3..fbeee0e 100644 --- a/index.html +++ b/index.html @@ -188,6 +188,22 @@ Minify JS +
  • + + +
  • +
  • + + +
  • -