Have an "instruction" class for more consistency

This commit is contained in:
Daniel Sinn
2015-12-29 16:31:22 -05:00
parent 184e1716aa
commit 186a979e08
3 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -43,7 +43,7 @@
<input type="radio" name="buttonText" value="Hold" id="buttonTextHold" /> <label for="buttonTextHold">Hold</label> <input type="radio" name="buttonText" value="Hold" id="buttonTextHold" /> <label for="buttonTextHold">Hold</label>
<input type="radio" name="buttonText" value="Press" id="buttonTextPress" /> <label for="buttonTextPress">Press</label> <input type="radio" name="buttonText" value="Press" id="buttonTextPress" /> <label for="buttonTextPress">Press</label>
</div> </div>
<div id="buttonInstruction"></div> <div class="instruction"></div>
<div> <div>
If holding button, release when the timer contains the digit that corresponds to the strip colour: If holding button, release when the timer contains the digit that corresponds to the strip colour:
<ul> <ul>
@@ -186,7 +186,7 @@
<ul id="sequenceInstruction"></ul> <ul id="sequenceInstruction"></ul>
</section> </section>
<section id="venn"> <section id="sectionVenn">
<h2>Venn Diagram</h2> <h2>Venn Diagram</h2>
<ul id="vennOptions"> <ul id="vennOptions">
<li><input type="checkbox" id="vennRed" /> <label for="vennRed">Red</label></li> <li><input type="checkbox" id="vennRed" /> <label for="vennRed">Red</label></li>
@@ -194,7 +194,7 @@
<li><input type="checkbox" id="vennStar" /> <label for="vennStar">Star</label></li> <li><input type="checkbox" id="vennStar" /> <label for="vennStar">Star</label></li>
<li><input type="checkbox" id="vennLed" /> <label for="vennLed">LED</label></li> <li><input type="checkbox" id="vennLed" /> <label for="vennLed">LED</label></li>
</ul> </ul>
<div id="vennInstruction"></div> <div class="instruction"></div>
</section> </section>
<section id="passwords"> <section id="passwords">
+4 -4
View File
@@ -25,6 +25,10 @@ button {
border-width: 1px; border-width: 1px;
} }
.instruction {
background-color: #eee;
padding: 0.5em;
}
.button { .button {
padding: 0.2em; padding: 0.2em;
} }
@@ -143,10 +147,6 @@ nav {
border-style: solid; border-style: solid;
border-width: 1px; border-width: 1px;
} }
#buttonInstruction {
background-color: #eee;
padding: 0.5em;
}
#sectionKeypads ul { #sectionKeypads ul {
display: inline-block; display: inline-block;
+2 -2
View File
@@ -155,7 +155,7 @@ $('section').each(function () {
* Button * Button
*/ */
var $section = $('#sectionButton'), var $section = $('#sectionButton'),
$instruction = $('#buttonInstruction'), $instruction = $section.find('.instruction'),
instruction; instruction;
$section.find('input').on('click', function () { $section.find('input').on('click', function () {
@@ -618,7 +618,7 @@ $('section').each(function () {
} }
}, },
$checkboxes = $('#vennOptions > li > input'), $checkboxes = $('#vennOptions > li > input'),
$instruction = $('#vennInstruction'); $instruction = $('#sectionVenn .instruction');
// Red Blue Star LED // Red Blue Star LED
conditions[false][false][false][false] = 'C'; conditions[false][false][false][false] = 'C';