forked from server/landingpage
Neuer Fancy Shit hinzugefügt
This commit is contained in:
parent
e9a12bc1b0
commit
81f4db0673
10
www/main.js
10
www/main.js
@ -8,7 +8,11 @@ jQuery.fn.extend({
|
|||||||
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_title = $("<h1>");
|
||||||
|
$(site_title).text = sitename;
|
||||||
|
$(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'] : "";
|
||||||
@ -40,8 +44,8 @@ jQuery.fn.extend({
|
|||||||
}
|
}
|
||||||
$(new_anchor).appendTo(new_div);
|
$(new_anchor).appendTo(new_div);
|
||||||
console.log(new_div);
|
console.log(new_div);
|
||||||
$(new_div).appendTo(self);
|
$(new_div).appendTo(site_div);
|
||||||
});
|
});$(site_div).appendTo(self);
|
||||||
});}
|
});}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user