forked from server/landingpage
sanitized DOM
This commit is contained in:
parent
bb9f3cbe6c
commit
b2e2a80f9b
479
caddy.json
479
caddy.json
@ -1,261 +1,238 @@
|
|||||||
[
|
[
|
||||||
{"sitename":"wiai","sites":[
|
|
||||||
{
|
{
|
||||||
"image": "pictures/board.png",
|
"sitename": "wiai",
|
||||||
"button": "btn-primary",
|
"sites": [
|
||||||
"link": "https://www.wiai.de/board",
|
|
||||||
"name": "Forum"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"image": "pictures/otrs.png",
|
|
||||||
"button": "btn-primary",
|
|
||||||
"link": "https://otrs.wiai.de/",
|
|
||||||
"name": "OTRS"
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"image": "pictures/klausuren.png",
|
|
||||||
"button": "btn-primary",
|
|
||||||
"link": "https://klausuren.wiai.de/",
|
|
||||||
"name": "Klausuren"
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"image": "pictures/limesurvey.png",
|
|
||||||
"button": "btn-primary",
|
|
||||||
"link": "https://survey.wiai.de/",
|
|
||||||
"name": "Limesurvey"
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"image": "pictures/git.png",
|
|
||||||
"button": "btn-primary",
|
|
||||||
"link": "https://git.wiai.de",
|
|
||||||
"name": "Git"
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"image": "pictures/etherpad.png",
|
|
||||||
"button": "btn-primary",
|
|
||||||
"link": "https://pad.wiai.de",
|
|
||||||
"name": "Etherpad"
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"image": "pictures/platzhalter.jpg",
|
|
||||||
"button": "btn-primary",
|
|
||||||
"link": "https://calc.wiai.de",
|
|
||||||
"name": "Ethercalc"
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"image": "pictures/roofis.png",
|
|
||||||
"button": "btn-primary",
|
|
||||||
"link": "https://suche.wiai.de",
|
|
||||||
"name": "Roofis"
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"image": "pictures/strichliste.png",
|
|
||||||
"button": "btn-primary",
|
|
||||||
"link": "https://pay.wiai.de/",
|
|
||||||
"name": "Strichliste"
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"image": "pictures/fslogo.png",
|
|
||||||
"button": "btn-primary",
|
|
||||||
"link": "https://www.wiai.de/dashboard/",
|
|
||||||
"name": "wiai.de"
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"image": "pictures/fslogo.png",
|
|
||||||
"button": "btn-primary",
|
|
||||||
"link": "https://www.uni-bamberg.de/wiai/fs/",
|
|
||||||
"name": "FS - Homepage"
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"image": "pictures/mitglieder.png",
|
|
||||||
"button": "btn-primary",
|
|
||||||
"link": "https://intern.wiai.de/extras/wiai.php",
|
|
||||||
"name": "Mitglieder"
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"image": "pictures/redmine.png",
|
|
||||||
"button": "btn-primary",
|
|
||||||
"link": "https://redmine.wiai.de/",
|
|
||||||
"name": "Redmine"
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"image": "pictures/platzhalter.jpg",
|
|
||||||
"button": "btn-primary",
|
|
||||||
"link": "https://intern.wiai.de/list-pads/",
|
|
||||||
"name": "Pad List"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
{"sitename":"admin","sites":[
|
|
||||||
{
|
|
||||||
"image": "pictures/email.png",
|
|
||||||
"button": "btn-primary",
|
|
||||||
"link": "https://mailex.uni-bamberg.de",
|
|
||||||
"name": "Email Account FS"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"image": "pictures/typo3.png",
|
|
||||||
"button": "btn-primary",
|
|
||||||
"link": "http://www.uni-bamberg.de/typo3",
|
|
||||||
"name": "Uni-Typo3 Login"
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"image": "pictures/phpmyadmin.png",
|
|
||||||
"button": "btn-primary",
|
|
||||||
"link": "https://phpmyadmin.wiai.de",
|
|
||||||
"name": "PHPMyAdmin"
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"image": "pictures/limesurvey.png",
|
|
||||||
"button": "btn-primary",
|
|
||||||
"link": "https://survey.wiai.de/admin/",
|
|
||||||
"name": "Limesurvey Admin"
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"image": "pictures/schluessel.png",
|
|
||||||
"button": "btn-primary",
|
|
||||||
"link": "https://intern.wiai.de/extras/wiaikeys.php",
|
|
||||||
"name": "Wiai-Schlüsselliste"
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
{
|
||||||
"image": "pictures/schluessel.png",
|
"image": "pictures/board.png",
|
||||||
"button": "btn-primary",
|
"button": "btn-primary",
|
||||||
"link": "https://intern.wiai.de/extras/sowikeys.php",
|
"link": "https://www.wiai.de/board",
|
||||||
"name": "Sowi-Schlüsselliste"
|
"name": "Forum"
|
||||||
}
|
},
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
{"sitename":"links","sites":[
|
|
||||||
{
|
|
||||||
"image": "pictures/uni_logo.png",
|
|
||||||
"button": "btn-primary",
|
|
||||||
"link": "http://www.uni-bamberg.de/",
|
|
||||||
"name": "Uni Homepage"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"image": "pictures/feki.png",
|
|
||||||
"button": "btn-primary",
|
|
||||||
"link": "http://www.feki.de",
|
|
||||||
"name": "Feki.de"
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"image": "pictures/platzhalter.jpg",
|
|
||||||
"button": "btn-primary",
|
|
||||||
"link": "http://www.uni-bamberg.de/leistungen/studium/online_dienste",
|
|
||||||
"name": "Online Dienste"
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"image": "pictures/platzhalter.jpg",
|
|
||||||
"button": "btn-primary",
|
|
||||||
"link": "https://fn2stud.zuv.uni-bamberg.de/FN2AUTH/FN2AuthServlet?op=Login",
|
|
||||||
"name": "FlexNow2"
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"image": "pictures/vc.png",
|
|
||||||
"button": "btn-primary",
|
|
||||||
"link": "http://vc.uni-bamberg.de/moodle",
|
|
||||||
"name": "Virtueller Campus"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"image": "pictures/platzhalter.jpg",
|
|
||||||
"button": "btn-primary",
|
|
||||||
"link": "http://www.uni-bamberg.de/auslandsamt",
|
|
||||||
"name": "Auslandsamt"
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"image": "pictures/platzhalter.jpg",
|
|
||||||
"button": "btn-primary",
|
|
||||||
"link": "http://univis.uni-bamberg.de/",
|
|
||||||
"name": "Univis"
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
{
|
||||||
"image": "pictures/platzhalter.jpg",
|
"image": "pictures/otrs.png",
|
||||||
"button": "btn-primary",
|
"button": "btn-primary",
|
||||||
"link": "https://www.uni-bamberg.de/ub",
|
"link": "https://otrs.wiai.de/",
|
||||||
"name": "Uni Bib"
|
"name": "OTRS"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"image": "pictures/klausuren.png",
|
||||||
|
"button": "btn-primary",
|
||||||
|
"link": "https://klausuren.wiai.de/",
|
||||||
|
"name": "Klausuren"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"image": "pictures/limesurvey.png",
|
||||||
|
"button": "btn-primary",
|
||||||
|
"link": "https://survey.wiai.de/",
|
||||||
|
"name": "Limesurvey"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"image": "pictures/git.png",
|
||||||
|
"button": "btn-primary",
|
||||||
|
"link": "https://git.wiai.de",
|
||||||
|
"name": "Git"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"image": "pictures/etherpad.png",
|
||||||
|
"button": "btn-primary",
|
||||||
|
"link": "https://pad.wiai.de",
|
||||||
|
"name": "Etherpad"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"image": "pictures/platzhalter.jpg",
|
||||||
|
"button": "btn-primary",
|
||||||
|
"link": "https://calc.wiai.de",
|
||||||
|
"name": "Ethercalc"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"image": "pictures/roofis.png",
|
||||||
|
"button": "btn-primary",
|
||||||
|
"link": "https://suche.wiai.de",
|
||||||
|
"name": "Roofis"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"image": "pictures/strichliste.png",
|
||||||
|
"button": "btn-primary",
|
||||||
|
"link": "https://pay.wiai.de/",
|
||||||
|
"name": "Strichliste"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"image": "pictures/fslogo.png",
|
||||||
|
"button": "btn-primary",
|
||||||
|
"link": "https://www.wiai.de/dashboard/",
|
||||||
|
"name": "wiai.de"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"image": "pictures/fslogo.png",
|
||||||
|
"button": "btn-primary",
|
||||||
|
"link": "https://www.uni-bamberg.de/wiai/fs/",
|
||||||
|
"name": "FS - Homepage"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"image": "pictures/mitglieder.png",
|
||||||
|
"button": "btn-primary",
|
||||||
|
"link": "https://intern.wiai.de/extras/wiai.php",
|
||||||
|
"name": "Mitglieder"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"image": "pictures/redmine.png",
|
||||||
|
"button": "btn-primary",
|
||||||
|
"link": "https://redmine.wiai.de/",
|
||||||
|
"name": "Redmine"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"image": "pictures/platzhalter.jpg",
|
||||||
|
"button": "btn-primary",
|
||||||
|
"link": "https://intern.wiai.de/list-pads/",
|
||||||
|
"name": "Pad List"
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
|
||||||
"image": "pictures/email.png",
|
|
||||||
"button": "btn-primary",
|
|
||||||
"link": "https://mailex.uni-bamberg.de/",
|
|
||||||
"name": "Stud. Email"
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"image": "pictures/platzhalter.jpg",
|
|
||||||
"button": "btn-primary",
|
|
||||||
"link": "http://www.studierendenvertretung-bamberg.de/",
|
|
||||||
"name": "Stud. Vertretung"
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"image": "pictures/essen.png",
|
|
||||||
"button": "btn-primary",
|
|
||||||
"link": "https://www.studentenwerk-wuerzburg.de/bamberg/essen-trinken/sonderspeiseplaene.html",
|
|
||||||
"name": "Essen ERBA"
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"image": "pictures/essen.png",
|
|
||||||
"button": "btn-primary",
|
|
||||||
"link": "https://www.studentenwerk-wuerzburg.de/essen-trinken/speiseplaene/plan/show/feldkirchenstrasse-bamberg.html",
|
|
||||||
"name": "Mensaplan"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
{"sitename":"sowi","sites":[
|
|
||||||
{
|
{
|
||||||
"image": "pictures/platzhalter.jpg",
|
"sitename": "admin",
|
||||||
"button": "btn-primary",
|
"sites": [
|
||||||
"link": "https://www.uni-bamberg.de/sowi/fs",
|
{
|
||||||
"name": "Sowi Homepage"
|
"image": "pictures/email.png",
|
||||||
|
"button": "btn-primary",
|
||||||
|
"link": "https://mailex.uni-bamberg.de",
|
||||||
|
"name": "Email Account FS"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"image": "pictures/typo3.png",
|
||||||
|
"button": "btn-primary",
|
||||||
|
"link": "http://www.uni-bamberg.de/typo3",
|
||||||
|
"name": "Uni-Typo3 Login"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"image": "pictures/phpmyadmin.png",
|
||||||
|
"button": "btn-primary",
|
||||||
|
"link": "https://phpmyadmin.wiai.de",
|
||||||
|
"name": "PHPMyAdmin"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"image": "pictures/limesurvey.png",
|
||||||
|
"button": "btn-primary",
|
||||||
|
"link": "https://survey.wiai.de/admin/",
|
||||||
|
"name": "Limesurvey Admin"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"image": "pictures/schluessel.png",
|
||||||
|
"button": "btn-primary",
|
||||||
|
"link": "https://intern.wiai.de/extras/wiaikeys.php",
|
||||||
|
"name": "Wiai-Schlüsselliste"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"image": "pictures/schluessel.png",
|
||||||
|
"button": "btn-primary",
|
||||||
|
"link": "https://intern.wiai.de/extras/sowikeys.php",
|
||||||
|
"name": "Sowi-Schlüsselliste"
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"image": "pictures/mitglieder.png",
|
"sitename": "links",
|
||||||
"button": "btn-primary",
|
"sites": [
|
||||||
"link": "https://intern.wiai.de/extras/sowi.php",
|
{
|
||||||
"name": "Mitglieder Sowi"
|
"image": "pictures/uni_logo.png",
|
||||||
|
"button": "btn-primary",
|
||||||
|
"link": "http://www.uni-bamberg.de/",
|
||||||
|
"name": "Uni Homepage"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"image": "pictures/feki.png",
|
||||||
|
"button": "btn-primary",
|
||||||
|
"link": "http://www.feki.de",
|
||||||
|
"name": "Feki.de"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"image": "pictures/platzhalter.jpg",
|
||||||
|
"button": "btn-primary",
|
||||||
|
"link": "http://www.uni-bamberg.de/leistungen/studium/online_dienste",
|
||||||
|
"name": "Online Dienste"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"image": "pictures/platzhalter.jpg",
|
||||||
|
"button": "btn-primary",
|
||||||
|
"link": "https://fn2stud.zuv.uni-bamberg.de/FN2AUTH/FN2AuthServlet?op=Login",
|
||||||
|
"name": "FlexNow2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"image": "pictures/vc.png",
|
||||||
|
"button": "btn-primary",
|
||||||
|
"link": "http://vc.uni-bamberg.de/moodle",
|
||||||
|
"name": "Virtueller Campus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"image": "pictures/platzhalter.jpg",
|
||||||
|
"button": "btn-primary",
|
||||||
|
"link": "http://www.uni-bamberg.de/auslandsamt",
|
||||||
|
"name": "Auslandsamt"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"image": "pictures/platzhalter.jpg",
|
||||||
|
"button": "btn-primary",
|
||||||
|
"link": "http://univis.uni-bamberg.de/",
|
||||||
|
"name": "Univis"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"image": "pictures/platzhalter.jpg",
|
||||||
|
"button": "btn-primary",
|
||||||
|
"link": "https://www.uni-bamberg.de/ub",
|
||||||
|
"name": "Uni Bib"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"image": "pictures/email.png",
|
||||||
|
"button": "btn-primary",
|
||||||
|
"link": "https://mailex.uni-bamberg.de/",
|
||||||
|
"name": "Stud. Email"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"image": "pictures/platzhalter.jpg",
|
||||||
|
"button": "btn-primary",
|
||||||
|
"link": "http://www.studierendenvertretung-bamberg.de/",
|
||||||
|
"name": "Stud. Vertretung"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"image": "pictures/essen.png",
|
||||||
|
"button": "btn-primary",
|
||||||
|
"link": "https://www.studentenwerk-wuerzburg.de/bamberg/essen-trinken/sonderspeiseplaene.html",
|
||||||
|
"name": "Essen ERBA"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"image": "pictures/essen.png",
|
||||||
|
"button": "btn-primary",
|
||||||
|
"link": "https://www.studentenwerk-wuerzburg.de/essen-trinken/speiseplaene/plan/show/feldkirchenstrasse-bamberg.html",
|
||||||
|
"name": "Mensaplan"
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
{
|
"sitename": "sowi",
|
||||||
"image": "pictures/limesurvey.png",
|
"sites": [
|
||||||
"button": "btn-primary",
|
{
|
||||||
"link": "https://survey.wiai.de/",
|
"image": "pictures/platzhalter.jpg",
|
||||||
"name": "Limesurvey"
|
"button": "btn-primary",
|
||||||
},
|
"link": "https://www.uni-bamberg.de/sowi/fs",
|
||||||
|
"name": "Sowi Homepage"
|
||||||
{
|
},
|
||||||
"image": "pictures/schluessel.png",
|
{
|
||||||
"button": "btn-primary",
|
"image": "pictures/mitglieder.png",
|
||||||
"link": "https://intern.wiai.de/extras/sowikeys.php",
|
"button": "btn-primary",
|
||||||
"name": "Sowi-Schlüsselliste"
|
"link": "https://intern.wiai.de/extras/sowi.php",
|
||||||
|
"name": "Mitglieder Sowi"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"image": "pictures/limesurvey.png",
|
||||||
|
"button": "btn-primary",
|
||||||
|
"link": "https://survey.wiai.de/",
|
||||||
|
"name": "Limesurvey"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"image": "pictures/schluessel.png",
|
||||||
|
"button": "btn-primary",
|
||||||
|
"link": "https://intern.wiai.de/extras/sowikeys.php",
|
||||||
|
"name": "Sowi-Schlüsselliste"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|||||||
@ -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-->
|
||||||
|
|||||||
80
main.js
80
main.js
@ -3,51 +3,53 @@ jQuery.fn.extend({
|
|||||||
var self = $(this);
|
var self = $(this);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: dataurl,
|
url: dataurl,
|
||||||
async:true,
|
async: true,
|
||||||
contentType:"application/json",
|
contentType: "application/json",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function(data){
|
success: function (data) {
|
||||||
$.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'] : "";
|
var my_name = (typeof attributes['name'] != 'undefined') ? attributes['name'] : "";
|
||||||
var my_name = (typeof attributes['name'] != 'undefined') ? attributes['name'] : "";
|
var my_image = ((typeof attributes['image'] != 'undefined') && (attributes['image'] == "empty")) ? my_name : attributes['image'];
|
||||||
var my_image = ((typeof attributes['image'] != 'undefined') && (attributes['image'] == "empty")) ? my_name : attributes['image'];
|
|
||||||
|
|
||||||
var new_div = $("<li>");
|
var new_div = $("<li>");
|
||||||
var new_anchor = $("<a>");
|
var new_anchor = $("<a>");
|
||||||
$(new_anchor).attr("href", my_link);
|
$(new_anchor).attr("href", my_link);
|
||||||
$(new_anchor).attr("target", "_blank");
|
$(new_anchor).attr("target", "_blank");
|
||||||
$(new_anchor).addClass("btn");
|
$(new_anchor).addClass("btn");
|
||||||
$(new_anchor).addClass(my_button);
|
$(new_anchor).addClass(my_button);
|
||||||
$(new_anchor).attr("style", "height:150px");
|
$(new_anchor).attr("style", "height:150px");
|
||||||
if ((typeof my_image != 'undefined') && (my_image != "empty")) {
|
if ((typeof my_image != 'undefined') && (my_image != "empty")) {
|
||||||
var new_content = $("<span>");
|
var new_content = $("<span>");
|
||||||
if (my_image != my_name) {
|
if (my_image != my_name) {
|
||||||
$(new_anchor).html(my_name);
|
$(new_anchor).html(my_name);
|
||||||
new_content = $("<img>");
|
new_content = $("<img>");
|
||||||
$(new_content).addClass("img-responsive");
|
$(new_content).addClass("img-responsive");
|
||||||
$(new_content).attr("src", my_image);
|
$(new_content).attr("src", my_image);
|
||||||
}else{
|
} else {
|
||||||
var new_br = $("<br>");
|
var new_br = $("<br>");
|
||||||
$(new_br).appendTo(new_anchor);
|
$(new_br).appendTo(new_anchor);
|
||||||
new_content = $("<div>");
|
new_content = $("<div>");
|
||||||
$(new_content).attr("style", "width:100px;height:100px");
|
$(new_content).attr("style", "width:100px;height:100px");
|
||||||
$(new_content).html(my_name);
|
$(new_content).html(my_name);
|
||||||
}
|
|
||||||
$(new_content).appendTo(new_anchor);
|
|
||||||
}
|
}
|
||||||
|
$(new_content).appendTo(new_anchor);
|
||||||
|
}
|
||||||
$(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);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -56,17 +58,17 @@ jQuery.fn.extend({
|
|||||||
var self = $(this);
|
var self = $(this);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "vcf/api.php",
|
url: "vcf/api.php",
|
||||||
async:true,
|
async: true,
|
||||||
contentType:"text/html",
|
contentType: "text/html",
|
||||||
dataType: "html",
|
dataType: "html",
|
||||||
success: function(data){
|
success: function (data) {
|
||||||
$(self).html(data);
|
$(self).html(data);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function () {
|
||||||
$("#content").linklist();
|
$("#content").linklist();
|
||||||
$("#impressum").impress();
|
$("#impressum").impress();
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user