19 lines
454 B
HTML
19 lines
454 B
HTML
<html>
|
|
<div style="visibility: hidden">
|
|
<form id="form" method="POST" action="/">
|
|
<input name="timestamp" id="timestamp" type="number"></input>
|
|
</form>
|
|
</div>
|
|
</html>
|
|
<script>
|
|
window.onload = function(e){
|
|
var d = new Date();
|
|
var timestamp = Math.round(d.getTime() / 1000);
|
|
input = document.getElementById("timestamp")
|
|
input.value = timestamp;
|
|
form = document.getElementById("form")
|
|
form.submit();
|
|
console.log(time);
|
|
}
|
|
</script>
|