Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function updateHistory(video) {
- blacklist[video["id"]] = true;
- myhistory.push(video);
- var html = "<li class="history">" +
- "<img class= "img-rounded" src="{0}"/>" +
- "<p><b title="{2}"><a class="extendedLink" href="javascript:watchHistoricVideo('{1}');"><span></span>{2}</a></b><br>" +
- "by {3}<br>" +
- "{4} | {5} views</p>" +
- "</li>";
- $("#myhistory").prepend(html.format(video["thumbnail"],
- video["id"],
- video["title"],
- video["uploader"],
- video["length"],
- video["views"]));
- }
- <div class="row-fluid">
- <div class="span12 box">
- <div class="box-head">
- <h3><i class="icon-white icon-bookmark"></i>History</h3>
- </div>
- <div class="box-content">
- <div class="content-inner">
- <div id="myhistory"></div>
- </div>
- </div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement