-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgraph.html
More file actions
60 lines (50 loc) · 1.78 KB
/
Copy pathgraph.html
File metadata and controls
60 lines (50 loc) · 1.78 KB
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
<html>
<head>
<title>Code Red Scouting</title>
<link rel= "stylesheet" href="css/default.css" type="text/css">
</head>
<body>
<div class= "formb1">
<script type="text/javascript">
function enter(e){
var unicode=e.keyCode? e.keyCode : e.charCode;
if(unicode==13){
loadGraphs();
//document.getElementById("images").innerHTML=phpGET("/php/graph.php",new array,("team"),new array(document.getElementById("t").value));
}
}
function loadGraphs()
{
var xmlhttp;
if (window.XMLHttpRequest){
xmlhttp=new XMLHttpRequest();
}else{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function(){
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("images").innerHTML=xmlhttp.responseText;
}
}
//document.write("/php/graph.php?team="+document.getElementById("t").value);
xmlhttp.open("GET","/php/graph.php?team="+document.getElementById("t").value,true);
xmlhttp.send();
//alert("steve");
}
</script>
</head>
<body>
<div class= "formb1">
<a href="index.html"><img src="assets/Scouting4.png" alt="Scouting4.png" width="639" height="200"></a>
</br><ul id="header"><li><a href="match_entry.html">Match entry</a></li><li><a href="robot_attributes.html">Robot Data</a></li><li><a href="heatmap.html">Heatmap Enter</a></li></ul><ul id="header"><li><a href="match_view.html">View Matches</a></li><li><a href="php/robot_view.php">View Robots</a></li><li><a href="graph.html">Graphs</a></li><li><a href="analysis.html">Analysis</a></li><li><a href="heatmap_view.html">Heatmap View</a></li></ul>
<h1>Graphics:</h1>
<!--<form>-->
Team number:<input type="number" name="team" id="t" onkeypress="enter(event)"> </br>
<button type="button" onClick="loadGraphs()">display</button>
<!--</form>-->
</br></br>
<div id="images"></div>
</body>
</div>
</html>