Skip to content

Commit

Permalink
Add a numbers sample file that goes from zero to twenty
Browse files Browse the repository at this point in the history
  • Loading branch information
rcjsuen committed Dec 26, 2015
1 parent f011e48 commit 06d4a16
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
8 changes: 7 additions & 1 deletion list.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,15 @@
<li><a id="daysAnchor" class="active">days</a></li>
<li><a id="fruitsAnchor">fruits</a></li>
<li><a id="monthsAnchor">months</a></li>
<li><a id="numbersAnchor">numbers</a></li>
</ul>

<div id="contentPanel" class="preview">
<div id="content"></div>
</div>

<script>
var content = [ null, null, null ];
var content = [ null, null, null, null ];
var navbar = document.getElementById('navbar').getElementsByTagName('li');

for (var i = 0; i < navbar.length; i++) {
Expand All @@ -81,6 +82,9 @@
case 2:
loadFile("words/months.txt", i);
break;
case 3:
loadFile("words/numbers.txt", i);
break;
}
}

Expand Down Expand Up @@ -116,6 +120,8 @@
document.getElementById("content").innerHTML = content[1];
} else if (anchor.getAttribute("id") === "monthsAnchor") {
document.getElementById("content").innerHTML = content[2];
} else if (anchor.getAttribute("id") === "numbersAnchor") {
document.getElementById("content").innerHTML = content[3];
}
}
}
Expand Down
42 changes: 42 additions & 0 deletions words/numbers.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
zero
one
two
three
four
five
six
seven
eight
nine
ten
eleven
十一
twelve
十二
thirteen
十三
fourteen
十四
fifteen
十五
sixteen
十六
seventeen
十七
eighteen
十八
nineteen
十九
twenty
二十

0 comments on commit 06d4a16

Please sign in to comment.