public/option.js
// urls is an array of urls
urls is an array of urls
urls is an array of urls
function render_page(urls) {
  var html = ""
  for (var i=0; i < urls.length; i++) {
    url = urls[i]
    html += "<li><p>" + url + "</p>"
    html += "<button id=" + url + " class='delete_button'" + ">Delete</button></li>"
  }
  $("#blacklist_wrapper").html(html)
}
function render_page ( urls ) { var html = "" for ( var i = 0 ; i < urls . length ; i ++ ) { url = urls [ i ] html += "<li><p>" + url + "</p>" html += "<button id=" + url + " class='delete_button'" + ">Delete</button></li>" } $ ( "#blacklist_wrapper" ) . html ( html ) }
urls is an array of urls
urls is an array of urls