fac_verify iets correcter de localstorage laten tonen

Ook iets betere layout op tablet/ mobile

svn path=/Website/branches/v2016.3/; revision=32594
This commit is contained in:
Jos Groot Lipman
2017-01-29 11:40:15 +00:00
parent 14e16092cd
commit f857201c09

View File

@@ -53,9 +53,11 @@ if (Request.Form("saveas").count > 0)
Response.AddHeader("content-disposition","attachment; filename=FACILITOR_verify_" + custID + "_" + toDateString(new Date()) + ".html"); Response.AddHeader("content-disposition","attachment; filename=FACILITOR_verify_" + custID + "_" + toDateString(new Date()) + ".html");
} }
%> %>
<!DOCTYPE html>
<head> <head>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <meta http-equiv="Content-Type" content="text/html;charset=windows-1252">
<META HTTP-EQUIV="Expires" CONTENT="-1"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<style> <style>
th, td { th, td {
font-family: Verdana; font-family: Verdana;
@@ -287,17 +289,17 @@ if (Request.Form("saveas").count > 0)
output = "<table class='inside'>"; output = "<table class='inside'>";
for (var i = 0; i < localStorage.length; i++) { for (var i = 0; i < localStorage.length; i++) {
output += "<tr><td>" + localStorage.key(i) + '</td><td>' + localStorage.getItem(localStorage.key(i)) + '</td></tr>'; output += "<tr><td>" + localStorage.key(i) + '</td><td>' + localStorage.getItem(localStorage.key(i)) + '</td></tr>';
output += "</table>"
} }
output += "</table>";
} else { } else {
output = 'There is no data stored for this domain.'; output = 'There is no data stored for this domain.';
} }
} else { } else {
output = 'Your browser does not support local storage.' output = 'Your browser does not support local storage.'
} }
var span = document.createElement("span"); var div = document.createElement("div");
span.innerHTML = output; div.innerHTML = output;
document.getElementById('checkLocalStorage').appendChild( span ); document.getElementById('checkLocalStorage').appendChild( div );
} }
</script> </script>
</head> </head>
@@ -450,7 +452,7 @@ function testfolder(relpath, mustbethere)
<a href='fac_verify_sha.asp' target="_new1">Click</a> to verify files<br> <a href='fac_verify_sha.asp' target="_new1">Click</a> to verify files<br>
</td> </td>
<td valign='top'> <td valign='top'>
<form method='post' taget='_new'> <form method='post' target='_new'>
<input name='saveas' type='hidden'><input type='submit' value='Save as'> <input name='saveas' type='hidden'><input type='submit' value='Save as'>
<input type='button' onclick='reload()' value='Refresh'> <input type='button' onclick='reload()' value='Refresh'>
</form> </form>