71 lines
1.2 KiB
HTML
71 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
|
|
<html>
|
|
<head>
|
|
|
|
<title>testing</title>
|
|
|
|
</head>
|
|
<style>
|
|
body{
|
|
//color : white;
|
|
}
|
|
canvas{
|
|
display:block;
|
|
//width: 100%;
|
|
//height: 50%;
|
|
border : nono;
|
|
}
|
|
</style>
|
|
|
|
<body style="background-color:white">
|
|
|
|
<span id='clock' style="font-size:30px"></span>
|
|
<p></p>
|
|
<canvas id='floor' witdh = "2048" height = "1024"> Your browser doe snot support HTML canvas</canvas>
|
|
|
|
<p id='text'></p>
|
|
|
|
</body>
|
|
|
|
<!-- ################################################ -->
|
|
<script>
|
|
|
|
/****
|
|
let data;
|
|
|
|
function GetMassFromAZ(){
|
|
let client = new XMLHttpRequest();
|
|
client.onreadystatechange = function() {
|
|
data = client.responseText;
|
|
alert(data);
|
|
}
|
|
client.open('GET', "/Users/user/Desktop/test.txt", false);
|
|
client.send();
|
|
}
|
|
|
|
GetMassFromAZ();
|
|
|
|
document.getElementById('text').innerHTML = data;
|
|
*/
|
|
|
|
|
|
function time() {
|
|
let clock = document.getElementById('clock');
|
|
|
|
let d = new Date();
|
|
clock.textContent = d;
|
|
|
|
}
|
|
time();
|
|
setInterval(time, 1000);
|
|
|
|
// set a timer to update the color of the circle every second
|
|
//setInterval(drawCircle, 1000);
|
|
|
|
</script>
|
|
|
|
<script src="geo.js"></script>
|
|
|
|
</html>
|