From 29d772b48ab9e1b66429662953dd22d70dc9c9b3 Mon Sep 17 00:00:00 2001 From: Daniel Sinn Date: Tue, 29 Dec 2015 12:32:48 -0500 Subject: [PATCH] Fix minor inconsistencies --- index.html | 7 +++---- ktane.css | 11 +++++++---- ktane.js | 4 ++-- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/index.html b/index.html index fa28c44..94c0ed1 100755 --- a/index.html +++ b/index.html @@ -56,7 +56,7 @@

Keypads

-
+
@@ -113,6 +113,7 @@

Memory

+ @@ -151,8 +152,6 @@
Stage
- -
@@ -200,6 +199,7 @@

Passwords

+
  • @@ -208,7 +208,6 @@
-
diff --git a/ktane.css b/ktane.css index f1d2f83..cca283c 100755 --- a/ktane.css +++ b/ktane.css @@ -87,7 +87,7 @@ h2 { } .jsResetSection { - margin-top: 1em; + display: block; } nav { @@ -141,7 +141,7 @@ nav { border-width: 1px; } #buttonInstruction { - background-color: #ddd; + background-color: #eee; padding: 0.5em; } @@ -161,10 +161,10 @@ nav { border-bottom: 1px solid black; } #sectionKeypads .selected { - background: #ff6; + background-color: #ff6; } #sectionKeypads ul[data-count='4'] .selected { - background: lightgreen; + background-color: lightgreen; } #simonInputs { @@ -327,6 +327,9 @@ nav { border: 1px solid black; } +#sectionMemory table { + margin-top: 1em; +} #sectionMemory td { text-align: right; } diff --git a/ktane.js b/ktane.js index fb5950d..ecb4ae8 100755 --- a/ktane.js +++ b/ktane.js @@ -645,7 +645,7 @@ $('section').each(function () { }); $instruction.html(instructions[conditions[checked[0]][checked[1]][checked[2]][checked[3]]]); - }); + }).triggerHandler('change'); })(); (function () { @@ -687,7 +687,7 @@ $('section').each(function () { regex = new RegExp(pattern); $passwords.forEach(function ($password) { - $password.toggleClass("inactive", !$password.text().match(regex)); + $password.toggleClass('inactive', !$password.text().match(regex)); }); }); })();