forked from argoproj/rollouts-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
39 lines (35 loc) · 1.49 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
<!DOCTYPE html>
<html lang="en" style="height:100%">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" type="text/css" href="main.css">
<title>Argo Rollouts</title>
</head>
<body>
<img class="logo" src="./logo.png"/>
<div class="textbox">
<h3 id="currentColor" style="text-align: center">Color<h3>
<label>500 Error Rate:</label> <output name="output500" id="output500">0%</output>
<input type="range" min="0" max="100" value="0" class="slider" id="return500" onchange="output500.value = return500.value + '%'">
<label>Latency Rate:</label> <output name="delayPercentText" id="delayPercentText">0%</output>
<input type="range" min="0" max="100" value="0" class="slider" id="delayPercent" onchange="delayPercentText.value = delayPercent.value + '%'">
<label>Latency Seconds:</label>
<input type="text" value="0" id="delayLength">
<div id="availableColors"></div>
</div>
</body>
<script type="module">
import {App} from './app.js';
const canvas = document.createElement("canvas");
document.body.appendChild(canvas);
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
window.addEventListener('resize', function() {
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
});
new App(canvas).run();
</script>
</html>