forked from server/landingpage
sanitized DOM
This commit is contained in:
parent
bb9f3cbe6c
commit
b2e2a80f9b
47
caddy.json
47
caddy.json
@ -1,5 +1,7 @@
|
|||||||
[
|
[
|
||||||
{"sitename":"wiai","sites":[
|
{
|
||||||
|
"sitename": "wiai",
|
||||||
|
"sites": [
|
||||||
{
|
{
|
||||||
"image": "pictures/board.png",
|
"image": "pictures/board.png",
|
||||||
"button": "btn-primary",
|
"button": "btn-primary",
|
||||||
@ -12,84 +14,72 @@
|
|||||||
"link": "https://otrs.wiai.de/",
|
"link": "https://otrs.wiai.de/",
|
||||||
"name": "OTRS"
|
"name": "OTRS"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"image": "pictures/klausuren.png",
|
"image": "pictures/klausuren.png",
|
||||||
"button": "btn-primary",
|
"button": "btn-primary",
|
||||||
"link": "https://klausuren.wiai.de/",
|
"link": "https://klausuren.wiai.de/",
|
||||||
"name": "Klausuren"
|
"name": "Klausuren"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"image": "pictures/limesurvey.png",
|
"image": "pictures/limesurvey.png",
|
||||||
"button": "btn-primary",
|
"button": "btn-primary",
|
||||||
"link": "https://survey.wiai.de/",
|
"link": "https://survey.wiai.de/",
|
||||||
"name": "Limesurvey"
|
"name": "Limesurvey"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"image": "pictures/git.png",
|
"image": "pictures/git.png",
|
||||||
"button": "btn-primary",
|
"button": "btn-primary",
|
||||||
"link": "https://git.wiai.de",
|
"link": "https://git.wiai.de",
|
||||||
"name": "Git"
|
"name": "Git"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"image": "pictures/etherpad.png",
|
"image": "pictures/etherpad.png",
|
||||||
"button": "btn-primary",
|
"button": "btn-primary",
|
||||||
"link": "https://pad.wiai.de",
|
"link": "https://pad.wiai.de",
|
||||||
"name": "Etherpad"
|
"name": "Etherpad"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"image": "pictures/platzhalter.jpg",
|
"image": "pictures/platzhalter.jpg",
|
||||||
"button": "btn-primary",
|
"button": "btn-primary",
|
||||||
"link": "https://calc.wiai.de",
|
"link": "https://calc.wiai.de",
|
||||||
"name": "Ethercalc"
|
"name": "Ethercalc"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"image": "pictures/roofis.png",
|
"image": "pictures/roofis.png",
|
||||||
"button": "btn-primary",
|
"button": "btn-primary",
|
||||||
"link": "https://suche.wiai.de",
|
"link": "https://suche.wiai.de",
|
||||||
"name": "Roofis"
|
"name": "Roofis"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"image": "pictures/strichliste.png",
|
"image": "pictures/strichliste.png",
|
||||||
"button": "btn-primary",
|
"button": "btn-primary",
|
||||||
"link": "https://pay.wiai.de/",
|
"link": "https://pay.wiai.de/",
|
||||||
"name": "Strichliste"
|
"name": "Strichliste"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"image": "pictures/fslogo.png",
|
"image": "pictures/fslogo.png",
|
||||||
"button": "btn-primary",
|
"button": "btn-primary",
|
||||||
"link": "https://www.wiai.de/dashboard/",
|
"link": "https://www.wiai.de/dashboard/",
|
||||||
"name": "wiai.de"
|
"name": "wiai.de"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"image": "pictures/fslogo.png",
|
"image": "pictures/fslogo.png",
|
||||||
"button": "btn-primary",
|
"button": "btn-primary",
|
||||||
"link": "https://www.uni-bamberg.de/wiai/fs/",
|
"link": "https://www.uni-bamberg.de/wiai/fs/",
|
||||||
"name": "FS - Homepage"
|
"name": "FS - Homepage"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"image": "pictures/mitglieder.png",
|
"image": "pictures/mitglieder.png",
|
||||||
"button": "btn-primary",
|
"button": "btn-primary",
|
||||||
"link": "https://intern.wiai.de/extras/wiai.php",
|
"link": "https://intern.wiai.de/extras/wiai.php",
|
||||||
"name": "Mitglieder"
|
"name": "Mitglieder"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"image": "pictures/redmine.png",
|
"image": "pictures/redmine.png",
|
||||||
"button": "btn-primary",
|
"button": "btn-primary",
|
||||||
"link": "https://redmine.wiai.de/",
|
"link": "https://redmine.wiai.de/",
|
||||||
"name": "Redmine"
|
"name": "Redmine"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"image": "pictures/platzhalter.jpg",
|
"image": "pictures/platzhalter.jpg",
|
||||||
"button": "btn-primary",
|
"button": "btn-primary",
|
||||||
@ -98,8 +88,9 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
{"sitename":"admin","sites":[
|
"sitename": "admin",
|
||||||
|
"sites": [
|
||||||
{
|
{
|
||||||
"image": "pictures/email.png",
|
"image": "pictures/email.png",
|
||||||
"button": "btn-primary",
|
"button": "btn-primary",
|
||||||
@ -112,28 +103,24 @@
|
|||||||
"link": "http://www.uni-bamberg.de/typo3",
|
"link": "http://www.uni-bamberg.de/typo3",
|
||||||
"name": "Uni-Typo3 Login"
|
"name": "Uni-Typo3 Login"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"image": "pictures/phpmyadmin.png",
|
"image": "pictures/phpmyadmin.png",
|
||||||
"button": "btn-primary",
|
"button": "btn-primary",
|
||||||
"link": "https://phpmyadmin.wiai.de",
|
"link": "https://phpmyadmin.wiai.de",
|
||||||
"name": "PHPMyAdmin"
|
"name": "PHPMyAdmin"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"image": "pictures/limesurvey.png",
|
"image": "pictures/limesurvey.png",
|
||||||
"button": "btn-primary",
|
"button": "btn-primary",
|
||||||
"link": "https://survey.wiai.de/admin/",
|
"link": "https://survey.wiai.de/admin/",
|
||||||
"name": "Limesurvey Admin"
|
"name": "Limesurvey Admin"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"image": "pictures/schluessel.png",
|
"image": "pictures/schluessel.png",
|
||||||
"button": "btn-primary",
|
"button": "btn-primary",
|
||||||
"link": "https://intern.wiai.de/extras/wiaikeys.php",
|
"link": "https://intern.wiai.de/extras/wiaikeys.php",
|
||||||
"name": "Wiai-Schlüsselliste"
|
"name": "Wiai-Schlüsselliste"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"image": "pictures/schluessel.png",
|
"image": "pictures/schluessel.png",
|
||||||
"button": "btn-primary",
|
"button": "btn-primary",
|
||||||
@ -142,8 +129,9 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
{"sitename":"links","sites":[
|
"sitename": "links",
|
||||||
|
"sites": [
|
||||||
{
|
{
|
||||||
"image": "pictures/uni_logo.png",
|
"image": "pictures/uni_logo.png",
|
||||||
"button": "btn-primary",
|
"button": "btn-primary",
|
||||||
@ -156,21 +144,18 @@
|
|||||||
"link": "http://www.feki.de",
|
"link": "http://www.feki.de",
|
||||||
"name": "Feki.de"
|
"name": "Feki.de"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"image": "pictures/platzhalter.jpg",
|
"image": "pictures/platzhalter.jpg",
|
||||||
"button": "btn-primary",
|
"button": "btn-primary",
|
||||||
"link": "http://www.uni-bamberg.de/leistungen/studium/online_dienste",
|
"link": "http://www.uni-bamberg.de/leistungen/studium/online_dienste",
|
||||||
"name": "Online Dienste"
|
"name": "Online Dienste"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"image": "pictures/platzhalter.jpg",
|
"image": "pictures/platzhalter.jpg",
|
||||||
"button": "btn-primary",
|
"button": "btn-primary",
|
||||||
"link": "https://fn2stud.zuv.uni-bamberg.de/FN2AUTH/FN2AuthServlet?op=Login",
|
"link": "https://fn2stud.zuv.uni-bamberg.de/FN2AUTH/FN2AuthServlet?op=Login",
|
||||||
"name": "FlexNow2"
|
"name": "FlexNow2"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"image": "pictures/vc.png",
|
"image": "pictures/vc.png",
|
||||||
"button": "btn-primary",
|
"button": "btn-primary",
|
||||||
@ -183,42 +168,36 @@
|
|||||||
"link": "http://www.uni-bamberg.de/auslandsamt",
|
"link": "http://www.uni-bamberg.de/auslandsamt",
|
||||||
"name": "Auslandsamt"
|
"name": "Auslandsamt"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"image": "pictures/platzhalter.jpg",
|
"image": "pictures/platzhalter.jpg",
|
||||||
"button": "btn-primary",
|
"button": "btn-primary",
|
||||||
"link": "http://univis.uni-bamberg.de/",
|
"link": "http://univis.uni-bamberg.de/",
|
||||||
"name": "Univis"
|
"name": "Univis"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"image": "pictures/platzhalter.jpg",
|
"image": "pictures/platzhalter.jpg",
|
||||||
"button": "btn-primary",
|
"button": "btn-primary",
|
||||||
"link": "https://www.uni-bamberg.de/ub",
|
"link": "https://www.uni-bamberg.de/ub",
|
||||||
"name": "Uni Bib"
|
"name": "Uni Bib"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"image": "pictures/email.png",
|
"image": "pictures/email.png",
|
||||||
"button": "btn-primary",
|
"button": "btn-primary",
|
||||||
"link": "https://mailex.uni-bamberg.de/",
|
"link": "https://mailex.uni-bamberg.de/",
|
||||||
"name": "Stud. Email"
|
"name": "Stud. Email"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"image": "pictures/platzhalter.jpg",
|
"image": "pictures/platzhalter.jpg",
|
||||||
"button": "btn-primary",
|
"button": "btn-primary",
|
||||||
"link": "http://www.studierendenvertretung-bamberg.de/",
|
"link": "http://www.studierendenvertretung-bamberg.de/",
|
||||||
"name": "Stud. Vertretung"
|
"name": "Stud. Vertretung"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"image": "pictures/essen.png",
|
"image": "pictures/essen.png",
|
||||||
"button": "btn-primary",
|
"button": "btn-primary",
|
||||||
"link": "https://www.studentenwerk-wuerzburg.de/bamberg/essen-trinken/sonderspeiseplaene.html",
|
"link": "https://www.studentenwerk-wuerzburg.de/bamberg/essen-trinken/sonderspeiseplaene.html",
|
||||||
"name": "Essen ERBA"
|
"name": "Essen ERBA"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"image": "pictures/essen.png",
|
"image": "pictures/essen.png",
|
||||||
"button": "btn-primary",
|
"button": "btn-primary",
|
||||||
@ -227,8 +206,9 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
{"sitename":"sowi","sites":[
|
"sitename": "sowi",
|
||||||
|
"sites": [
|
||||||
{
|
{
|
||||||
"image": "pictures/platzhalter.jpg",
|
"image": "pictures/platzhalter.jpg",
|
||||||
"button": "btn-primary",
|
"button": "btn-primary",
|
||||||
@ -241,14 +221,12 @@
|
|||||||
"link": "https://intern.wiai.de/extras/sowi.php",
|
"link": "https://intern.wiai.de/extras/sowi.php",
|
||||||
"name": "Mitglieder Sowi"
|
"name": "Mitglieder Sowi"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"image": "pictures/limesurvey.png",
|
"image": "pictures/limesurvey.png",
|
||||||
"button": "btn-primary",
|
"button": "btn-primary",
|
||||||
"link": "https://survey.wiai.de/",
|
"link": "https://survey.wiai.de/",
|
||||||
"name": "Limesurvey"
|
"name": "Limesurvey"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"image": "pictures/schluessel.png",
|
"image": "pictures/schluessel.png",
|
||||||
"button": "btn-primary",
|
"button": "btn-primary",
|
||||||
@ -257,5 +235,4 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|||||||
@ -40,9 +40,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
||||||
<ul id="content">
|
<div id="content"/>
|
||||||
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div><!--/.container-->
|
</div><!--/.container-->
|
||||||
|
|||||||
14
main.js
14
main.js
@ -10,9 +10,8 @@ jQuery.fn.extend({
|
|||||||
$.each(data, function (key, attributes2) {
|
$.each(data, function (key, attributes2) {
|
||||||
var sitename = attributes2.sitename;
|
var sitename = attributes2.sitename;
|
||||||
var site_div = $("<div>");
|
var site_div = $("<div>");
|
||||||
var site_title = $("<h1>");
|
$(site_div).attr('id', sitename);
|
||||||
$(site_title).text = sitename;
|
var site_list = $("<ul>");
|
||||||
$(site_title).appendTo(site_div);
|
|
||||||
$.each(attributes2.sites, function (key, attributes) {
|
$.each(attributes2.sites, function (key, attributes) {
|
||||||
var my_link = (typeof attributes['link'] != 'undefined') ? attributes['link'] : "";
|
var my_link = (typeof attributes['link'] != 'undefined') ? attributes['link'] : "";
|
||||||
var my_button = (typeof attributes['button'] != 'undefined') ? attributes['button'] : "";
|
var my_button = (typeof attributes['button'] != 'undefined') ? attributes['button'] : "";
|
||||||
@ -44,9 +43,12 @@ jQuery.fn.extend({
|
|||||||
}
|
}
|
||||||
$(new_anchor).appendTo(new_div);
|
$(new_anchor).appendTo(new_div);
|
||||||
console.log(new_div);
|
console.log(new_div);
|
||||||
$(new_div).appendTo(site_div);
|
$(new_div).appendTo(site_list);
|
||||||
});$(site_div).appendTo(self);
|
});
|
||||||
});}
|
$(site_list).appendTo(site_div);
|
||||||
|
$(site_div).appendTo(self);
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user