Neuer Fancy Shit hinzugefügt

This commit is contained in:
Franz Schäfer 2016-05-25 20:05:33 +02:00
parent e9a12bc1b0
commit 81f4db0673

View File

@ -8,7 +8,11 @@ jQuery.fn.extend({
dataType: "json",
success: function(data){
$.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){
var my_link = (typeof attributes['link'] != 'undefined') ? attributes['link'] : "";
var my_button = (typeof attributes['button'] != 'undefined') ? attributes['button'] : "";
@ -40,8 +44,8 @@ jQuery.fn.extend({
}
$(new_anchor).appendTo(new_div);
console.log(new_div);
$(new_div).appendTo(self);
});
$(new_div).appendTo(site_div);
});$(site_div).appendTo(self);
});}
});
}