");
- $(new_content).attr("style", "width:100px;height:100px");
- $(new_content).html(my_name);
- }
- $(new_content).appendTo(new_anchor);
+ if ((typeof my_image != 'undefined') && (my_image != "empty")) {
+ var new_content = $("
");
+ if (my_image != my_name) {
+ $(new_anchor).html(my_name);
+ new_content = $("
");
+ $(new_content).addClass("img-responsive");
+ $(new_content).attr("src", my_image);
+ } else {
+ var new_br = $("
");
+ $(new_br).appendTo(new_anchor);
+ new_content = $("");
+ $(new_content).attr("style", "width:100px;height:100px");
+ $(new_content).html(my_name);
}
+ $(new_content).appendTo(new_anchor);
+ }
$(new_anchor).appendTo(new_div);
console.log(new_div);
- $(new_div).appendTo(site_div);
- });$(site_div).appendTo(self);
- });}
- });
+ $(new_div).appendTo(site_list);
+ });
+ $(site_list).appendTo(site_div);
+ $(site_div).appendTo(self);
+ });
+ }
+ });
}
});
@@ -56,17 +58,17 @@ jQuery.fn.extend({
var self = $(this);
$.ajax({
url: "vcf/api.php",
- async:true,
- contentType:"text/html",
+ async: true,
+ contentType: "text/html",
dataType: "html",
- success: function(data){
+ success: function (data) {
$(self).html(data);
}
});
}
});
-$(document).ready(function(){
+$(document).ready(function () {
$("#content").linklist();
$("#impressum").impress();
});