Skip to content

Instantly share code, notes, and snippets.

@srinathweb
Created July 7, 2015 04:18
Show Gist options
  • Select an option

  • Save srinathweb/88765ac5a3a79ca548d2 to your computer and use it in GitHub Desktop.

Select an option

Save srinathweb/88765ac5a3a79ca548d2 to your computer and use it in GitHub Desktop.
table to list
$(document).ready(function() {
var ul = $("<ul>");
$("table tr").each(function(){
var li = $("<li>")
$("th, td", this).each(function(){
var p = $("<p>").html(this.innerHTML);
li.append(p);
});
ul.append(li);
})
$("table").replaceWith(ul);
});
@srinathweb

Copy link
Copy Markdown
Author

if(window.innerWidth <= 800 && window.innerHeight <= 600) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment