-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
55 lines (40 loc) · 1.63 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
<!DOCTYPE html>
<html>
<title>Docker_online</title>
<head>
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.1/cs /all.css" integrity="sha384-5sAR7xN1Nv6T6+dT2mhtzEpVJvfS3NScPQTrOxhwjIuvcA67KV2R5Jz6kr4abQsz" crossorigin="anonymous">
<link rel = "stylesheet" href = "index.css">
</head>
<body>
<script>
function lw()
{
var i = document.getElementById("docker_cmd").value
var xhr = new XMLHttpRequest();
xhr.open("GET","http://{ IP-Address of CGI-server }/cgi-bin/{{\CGI-FILE }}?docker_cmd="+i,true);
xhr.send();
xhr.onload = function()
{
var output = xhr.responseText;
document.getElementById("output1").innerHTML = output
}
}
</script>
<h1>DOCKER CLUB</h1>
<div class="icon">
<i class="fas fa-user-circle"></i>
</div>
<div class="formcontainer">
<div class="container">
<label for="docker_cmd"><strong>DOCKER COMMAND</strong></label>
<input id = "docker_cmd" type="text" placeholder="Enter Command" name="Docker">
</div>
<button onclick= "lw()"><strong>RUN</strong></button>
</div>
<br>
<pre>
<div id = "output1">OUTPUT ............. </div>
</pre>
</body>
</html>