Skip to content

Instantly share code, notes, and snippets.

@rtekie
Created August 26, 2012 20:02
Show Gist options
  • Save rtekie/3483190 to your computer and use it in GitHub Desktop.
Save rtekie/3483190 to your computer and use it in GitHub Desktop.
// Build the list of urls.
var markup = "<ul data-role='listview' data-split-icon='delete'>";
for (var i=0; i<myUrls.length; i++) {
markup = markup + "<li><a href='#qrcode?url=" + myUrls[i] + "'>" + getHostname(myUrls[i]) + "</a>" + "<a href='#delurl?url=" + myUrls[i] + "' data-rel='dialog'>Delete</a></li>";
}
markup = markup + "</ul>";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment