Made it not bad
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<body>
|
<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">
|
<div class="centered">
|
||||||
<canvas id=cnv width=300 height=300></canvas>
|
<canvas id=cnv width=300 height=300></canvas>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -21,9 +21,9 @@
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<body>
|
<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">
|
<div class="centered">
|
||||||
<canvas width=300 height=300 id=cnv onmousedown="onMouse"></canvas>
|
<canvas width=300 height=300 id=cnv></canvas>
|
||||||
<br>
|
<br>
|
||||||
<input type="range" min=0 max=100 value=0 id="progress" onchange="doChange()" oninput="doInput()" >
|
<input type="range" min=0 max=100 value=0 id="progress" onchange="doChange()" oninput="doInput()" >
|
||||||
</div>
|
</div>
|
||||||
@@ -58,11 +58,6 @@
|
|||||||
bar.progress = progress.value/100;
|
bar.progress = progress.value/100;
|
||||||
}
|
}
|
||||||
|
|
||||||
function onMouse(e){
|
|
||||||
console.log("Hello");
|
|
||||||
bar.progress = Math.atan2(e.offsetY, e.offsetX);
|
|
||||||
}
|
|
||||||
|
|
||||||
function doChange(){
|
function doChange(){
|
||||||
let request = new XMLHttpRequest();
|
let request = new XMLHttpRequest();
|
||||||
request.open("POST", "/api/progress");
|
request.open("POST", "/api/progress");
|
||||||
|
|||||||
Reference in New Issue
Block a user