forked from ShiftLeftSecurity/shiftleft-java-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
61 lines (61 loc) · 1.53 KB
/
Copy pathindex.html
File metadata and controls
61 lines (61 loc) · 1.53 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
61
<html>
<head>
<style>
*
{
padding:0px;
margin:0px;
color:green;
}
body{
background-color: white;
}
#wrapper
{
margin:100px;
padding:20px;
}
#wrapper form
{
margin-left:25%;
margin-right:25%;
}
#output
{
margin-top:20px;
border: solid green 2px;
height: 200px;
overflow: scroll;
}
</style>
<script src="jquery.min.js"></script>
</head>
<body>
<div id="wrapper">
<div id="input">
<form >
<input type="text" id="searchvalue"/>
<input type="button" value="Go"/>
</form>
</div>
<div id="output"></div>
</div>
<script>
function loadDoc() {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("output").innerHTML = this.responseText;
var a = JSON.parse(this.responseText);
}
};
var custno = "customers/"+document.getElementById("searchvalue").value;
xhttp.open("GET", custno, true);
xhttp.send();
}
$("input")[0].oninput = function () {
loadDoc();
};
</script>
</body>
</html>