xonecas.io
186
Ft

fractal-tree / commit 7c84ae3

Added depth sub text; fixed type on alert box.

sean2011-08-20 7c84ae38cd355506e7633748bb158d0f86d2bf09 parent c9f06ba

2 files changed

index.html+2−1
@@ -28,7 +28,8 @@
2828 <fieldset>
2929 <label for="depth">Depth</label>
3030 <p class="input">
31- <input id="depth" name="depth" type="text" size="2">
31+ <input id="depth" name="depth" type="text" size="2"><br>
32+ <em>Enter a number between 1 and 14</em>
3233 </p>
3334
3435 <label for="color">Color</label>
script.js+1−1
@@ -30,7 +30,7 @@
3030 if (depthValue > 14 || depthValue <= 0) {
3131 return smoke.alert("Sorry, invalid depth. Keep it between 1 and 14");
3232 } else if (colorValue < 100 || colorValue > 360) {
33- return smoke.alert("Sorry, invalid color. Keep it between 100 and 260");
33+ return smoke.alert("Sorry, invalid color. Keep it between 100 and 360");
3434 } else {
3535 localStorage.setItem('depth', depth.value);
3636 localStorage.setItem('color', color.value);