Advertisement
Guest User

Untitled

a guest
Apr 16th, 2014
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. function updateHistory(video) {
  2. blacklist[video["id"]] = true;
  3. myhistory.push(video);
  4. var html = "<li class="history">" +
  5. "<img class= "img-rounded" src="{0}"/>" +
  6. "<p><b title="{2}"><a class="extendedLink" href="javascript:watchHistoricVideo('{1}');"><span></span>{2}</a></b><br>" +
  7. "by {3}<br>" +
  8. "{4} | {5} views</p>" +
  9. "</li>";
  10.  
  11. $("#myhistory").prepend(html.format(video["thumbnail"],
  12. video["id"],
  13. video["title"],
  14. video["uploader"],
  15. video["length"],
  16. video["views"]));
  17. }
  18.  
  19. <div class="row-fluid">
  20. <div class="span12 box">
  21.  
  22. <div class="box-head">
  23.  
  24. <h3><i class="icon-white icon-bookmark"></i>History</h3>
  25. </div>
  26. <div class="box-content">
  27. <div class="content-inner">
  28. <div id="myhistory"></div>
  29. </div>
  30. </div>
  31. </div>
  32. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement