Advertisement
afterlife88

Untitled

Sep 27th, 2015
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. (function () {
  2. var baseUri = "/api/girls";
  3.  
  4. function loadPictures() {
  5. $.ajax({
  6. url: baseUri,
  7. success: function (pictures) {
  8. var listpictures = $("#pictures");
  9.  
  10. listpictures.empty();
  11. var img = $('<img id="dynamic">');
  12. for (var i = 0; i < pictures.length; i++) {
  13. listpictures.append(img.attr('src', pictures[i].Photo400));
  14. img.appendTo('#pictures');
  15. }
  16.  
  17. }
  18. });
  19. }
  20. $(document).ready(function () {
  21.  
  22. loadPictures();
  23. });
  24. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement