Update qemu/static/index.html
Browse files- qemu/static/index.html +95 -95
qemu/static/index.html
CHANGED
|
@@ -1,95 +1,95 @@
|
|
| 1 |
-
<!DOCTYPE html>
|
| 2 |
-
<html lang="en">
|
| 3 |
-
<head>
|
| 4 |
-
<meta charset="UTF-8">
|
| 5 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>QEMU Virtual Machine</title>
|
| 7 |
-
<style>
|
| 8 |
-
* {
|
| 9 |
-
margin: 0;
|
| 10 |
-
padding: 0;
|
| 11 |
-
box-sizing: border-box;
|
| 12 |
-
}
|
| 13 |
-
|
| 14 |
-
html, body {
|
| 15 |
-
width: 100%;
|
| 16 |
-
height: 100%;
|
| 17 |
-
overflow: hidden;
|
| 18 |
-
background: #000;
|
| 19 |
-
}
|
| 20 |
-
|
| 21 |
-
.container {
|
| 22 |
-
width: 100%;
|
| 23 |
-
height: 100%;
|
| 24 |
-
display: flex;
|
| 25 |
-
flex-direction: column;
|
| 26 |
-
}
|
| 27 |
-
|
| 28 |
-
.display {
|
| 29 |
-
flex: 1;
|
| 30 |
-
border: 1px solid #333;
|
| 31 |
-
background: #111;
|
| 32 |
-
position: relative;
|
| 33 |
-
}
|
| 34 |
-
|
| 35 |
-
#vncDisplay {
|
| 36 |
-
position: absolute;
|
| 37 |
-
top: 0;
|
| 38 |
-
left: 0;
|
| 39 |
-
right: 0;
|
| 40 |
-
bottom: 0;
|
| 41 |
-
}
|
| 42 |
-
|
| 43 |
-
.controls {
|
| 44 |
-
height: 40px;
|
| 45 |
-
background: #1a1a1a;
|
| 46 |
-
border-bottom: 1px solid #333;
|
| 47 |
-
display: flex;
|
| 48 |
-
align-items: center;
|
| 49 |
-
padding: 0 10px;
|
| 50 |
-
gap: 10px;
|
| 51 |
-
}
|
| 52 |
-
|
| 53 |
-
button {
|
| 54 |
-
background: #333;
|
| 55 |
-
border: 1px solid #444;
|
| 56 |
-
color: #fff;
|
| 57 |
-
padding: 5px 15px;
|
| 58 |
-
border-radius: 3px;
|
| 59 |
-
cursor: pointer;
|
| 60 |
-
}
|
| 61 |
-
|
| 62 |
-
button:hover {
|
| 63 |
-
background: #444;
|
| 64 |
-
}
|
| 65 |
-
|
| 66 |
-
select {
|
| 67 |
-
background: #333;
|
| 68 |
-
border: 1px solid #444;
|
| 69 |
-
color: #fff;
|
| 70 |
-
padding: 5px;
|
| 71 |
-
border-radius: 3px;
|
| 72 |
-
}
|
| 73 |
-
</style>
|
| 74 |
-
</head>
|
| 75 |
-
<body>
|
| 76 |
-
<div class="container">
|
| 77 |
-
<div class="controls">
|
| 78 |
-
<button id="bootBtn">Boot</button>
|
| 79 |
-
<button id="shutdownBtn">Shutdown</button>
|
| 80 |
-
<select id="resolution">
|
| 81 |
-
<option value="1920,1080">1920x1080</option>
|
| 82 |
-
<option value="1280,720">1280x720</option>
|
| 83 |
-
<option value="800,600">800x600</option>
|
| 84 |
-
</select>
|
| 85 |
-
<button id="fullscreenBtn">Fullscreen</button>
|
| 86 |
-
</div>
|
| 87 |
-
<div class="display">
|
| 88 |
-
<div id="vncDisplay"></div>
|
| 89 |
-
</div>
|
| 90 |
-
</div>
|
| 91 |
-
|
| 92 |
-
<script src="/static/js/noVNC.js"></script>
|
| 93 |
-
<script src="/static/js/vm_control.js"></script>
|
| 94 |
-
</body>
|
| 95 |
-
</html>
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>QEMU Virtual Machine</title>
|
| 7 |
+
<style>
|
| 8 |
+
* {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
box-sizing: border-box;
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
html, body {
|
| 15 |
+
width: 100%;
|
| 16 |
+
height: 100%;
|
| 17 |
+
overflow: hidden;
|
| 18 |
+
background: #000;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
.container {
|
| 22 |
+
width: 100%;
|
| 23 |
+
height: 100%;
|
| 24 |
+
display: flex;
|
| 25 |
+
flex-direction: column;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
.display {
|
| 29 |
+
flex: 1;
|
| 30 |
+
border: 1px solid #333;
|
| 31 |
+
background: #111;
|
| 32 |
+
position: relative;
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
#vncDisplay {
|
| 36 |
+
position: absolute;
|
| 37 |
+
top: 0;
|
| 38 |
+
left: 0;
|
| 39 |
+
right: 0;
|
| 40 |
+
bottom: 0;
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
.controls {
|
| 44 |
+
height: 40px;
|
| 45 |
+
background: #1a1a1a;
|
| 46 |
+
border-bottom: 1px solid #333;
|
| 47 |
+
display: flex;
|
| 48 |
+
align-items: center;
|
| 49 |
+
padding: 0 10px;
|
| 50 |
+
gap: 10px;
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
button {
|
| 54 |
+
background: #333;
|
| 55 |
+
border: 1px solid #444;
|
| 56 |
+
color: #fff;
|
| 57 |
+
padding: 5px 15px;
|
| 58 |
+
border-radius: 3px;
|
| 59 |
+
cursor: pointer;
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
button:hover {
|
| 63 |
+
background: #444;
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
select {
|
| 67 |
+
background: #333;
|
| 68 |
+
border: 1px solid #444;
|
| 69 |
+
color: #fff;
|
| 70 |
+
padding: 5px;
|
| 71 |
+
border-radius: 3px;
|
| 72 |
+
}
|
| 73 |
+
</style>
|
| 74 |
+
</head>
|
| 75 |
+
<body>
|
| 76 |
+
<div class="container">
|
| 77 |
+
<div class="controls">
|
| 78 |
+
<button id="bootBtn">Boot</button>
|
| 79 |
+
<button id="shutdownBtn">Shutdown</button>
|
| 80 |
+
<select id="resolution">
|
| 81 |
+
<option value="1920,1080">1920x1080</option>
|
| 82 |
+
<option value="1280,720">1280x720</option>
|
| 83 |
+
<option value="800,600">800x600</option>
|
| 84 |
+
</select>
|
| 85 |
+
<button id="fullscreenBtn">Fullscreen</button>
|
| 86 |
+
</div>
|
| 87 |
+
<div class="display">
|
| 88 |
+
<div id="vncDisplay"></div>
|
| 89 |
+
</div>
|
| 90 |
+
</div>
|
| 91 |
+
|
| 92 |
+
<script src="/static/js/noVNC.js"></script>
|
| 93 |
+
<script src="/static/js/vm_control.js"></script>
|
| 94 |
+
</body>
|
| 95 |
+
</html>
|