aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Gräf <roman.graef@gmail.com>2017-11-01 13:37:19 +0100
committerGitHub <noreply@github.com>2017-11-01 13:37:19 +0100
commit689c8cf469685e0f2bbef15c3d8d01e2c7f8848c (patch)
tree9d4db85c0e10da5fe13c9b2b742f908cd9ad7aa5
parent9b3dbe999e1b471fdd2d9ca1838db27570cc2c3f (diff)
downloadichtml-689c8cf469685e0f2bbef15c3d8d01e2c7f8848c.tar.gz
ichtml-689c8cf469685e0f2bbef15c3d8d01e2c7f8848c.tar.bz2
ichtml-689c8cf469685e0f2bbef15c3d8d01e2c7f8848c.zip
Update default.js
-rw-r--r--res/default.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/res/default.js b/res/default.js
index ec78cfc..3cc642d 100644
--- a/res/default.js
+++ b/res/default.js
@@ -29,7 +29,6 @@ function open_timetable() {
function onload() {
$.getJSON("content/content.json", function(data){
- var el = $("#sidebar");
data.forEach((item)=>{
var load = item.load;
var url = item.url;
@@ -56,8 +55,8 @@ function onload() {
atag.appendChild(texttag);
atag.classList.add('button');
atag.classList.add('sidebar-button');
- el.appendChild(atag);
+ $("#sidebar").appendChild(atag);
});
- el.lastChild.classList.add('sidebar-last');
+ $("#sidebar").lastChild.classList.add('sidebar-last');
});
}