Merge pull request #2 from UDXS/master

Made it not bad
This commit is contained in:
Ben
2018-09-26 17:52:29 +01:00
committed by GitHub
2 changed files with 3 additions and 8 deletions

View File

@@ -21,7 +21,7 @@
</style>
<body>
<h1 style="font-family:'Roboto'; font-size:72px; color:white;text-align:center">****Track</h1>
<h1 style="font-family:'Roboto'; font-size:72px; color:white;text-align:center">WankTrack</h1>
<div class="centered">
<canvas id=cnv width=300 height=300></canvas>
</div>

View File

@@ -21,9 +21,9 @@
</style>
<body>
<h1 style="font-family:'Roboto'; font-size:64px; color:white;text-align:center">****Track Reporter</h1>
<h1 style="font-family:'Roboto'; font-size:64px; color:white;text-align:center">WankTrack Reporter</h1>
<div class="centered">
<canvas width=300 height=300 id=cnv onmousedown="onMouse"></canvas>
<canvas width=300 height=300 id=cnv></canvas>
<br>
<input type="range" min=0 max=100 value=0 id="progress" onchange="doChange()" oninput="doInput()" >
</div>
@@ -58,11 +58,6 @@
bar.progress = progress.value/100;
}
function onMouse(e){
console.log("Hello");
bar.progress = Math.atan2(e.offsetY, e.offsetX);
}
function doChange(){
let request = new XMLHttpRequest();
request.open("POST", "/api/progress");