Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function () {
- var baseUri = "/api/girls";
- function loadPictures() {
- $.ajax({
- url: baseUri,
- success: function (pictures) {
- var listpictures = $("#pictures");
- listpictures.empty();
- var img = $('<img id="dynamic">');
- for (var i = 0; i < pictures.length; i++) {
- listpictures.append(img.attr('src', pictures[i].Photo400));
- img.appendTo('#pictures');
- }
- }
- });
- }
- $(document).ready(function () {
- loadPictures();
- });
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement