-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
63 lines (51 loc) · 1.77 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
<script type="text/javascript" src="helpers.js"></script>
<script type="text/javascript" src="rallydata.js"></script>
<script type="text/javascript">
var rallyData;
function show()
{
}
function displayPath( path, currentLeg )
{
var str = "";
for (var i = 0; i < path.length; i++ ) {
str += path.asString + "\n";
}
document.getElementById("path").innerHTML = '<pre>'+ str + '</pre>';
}
function onPassPoint(form) {
var inputs = form.getElementsByTagName('input');
var odoMeter = inputs[0].value;
return false;
}
function checkOdoDist (element) {
}
function display_controls() {
document.getElementById("controls").innerHTML = "\
<form method=\"post\" action=\"\" onsubmit=\"return onPassPoint(this)\">\
realOdo: <input type=\"text\" style=\"width: 40px\" name=\"realodo\" id=\"realodo1\" onkeyup=\"checkOdoDist(this)\"/>\
<button type=\"submit\" id=\"on_pass\">Pass point</button>\
</form>\
<form method=\"post\" action=\"\" onsubmit=\"return onCheckpoint(this)\">\
<button type=\"submit\" id=\"on_checkpoint\">Checkpoint</button>\
</form>";
}
</script>
</head>
<body onload="showGraph()">
Current:
<div id="current"></div>
Path:
<div id="path"></div>
<br><br>
Controls:
<div id="controls"></div>
Input:
<div id="input"></div>
</body>
</html>