Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- JS
- // Populare the fragments
- $.each(videos, function(i) {
- $('#fragments li[class=template]')
- .clone()
- .attr("id", "video_" + i)
- .removeClass("template")
- .appendTo('#fragments')
- .append($('<a>')
- .attr("href", "#playback")
- .text(this.title));
- });
- $('#fragments li[class=template]').remove()
- HTML
- <ul id="fragments" data-role="listview" data-inset="true">
- <li class="template"></li>
- </ul>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement