blob: e739c3733167bd9ca19e052d154e5f562e68365a (
plain)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
{{define "credentials"}}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<style type="text/css">
body {
background-image: url("/files/background.png");
}
.vertical-center {
min-height: 100%; /* Fallback for browsers do NOT support vh unit */
min-height: 100vh; /* These two lines are counted as one :-) */
display: flex;
align-items: center;
}
</style>
</head>
<body>
<div class="container">
<div class="row">
<div class="col"></div>
<div class="col-6">
<div class="vertical-center">
<div class="card card-body">
<h1>
Your personal companion is ready!
</h1>
<p>
Please store these credentials securely as you will need them to login to your companion.
</p>
<p>
You can login to the companion here: <kbd
style="white-space: nowrap;">{{.Username}}.{{.Hostname}}</kbd>.
</p>
<table class="table table-hover">
<thead>
<tr>
<th scope="col">Username</th>
<th scope="col">Accesscode</th>
</tr>
</thead>
<tbody>
<tr>
<th><kbd>{{.Username}}</kbd></th>
<td><kbd>{{.Accesscode}}</kbd></td>
</tr>
</tbody>
</table>
<button class="btn btn-primary" type="button" disabled id="before-a">
<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true" id="before-b"></span>
<span id="before-b-text">
Loading...
</span>
</button>
<a href="http://{{.Username}}.{{.Hostname}}" class="btn btn-primary" role="button" id="after" style="display: none;">Login</a>
</div>
</div>
</div>
<div class="col"></div>
</div>
</div>
</body>
<script type="text/javascript">
$(document).ready(function() {
setTimeout(function() {
$("#before-b-text").text("starting the container");
}, 2000);
setTimeout(function() {
$("#before-b-text").text("adding the container to the circus network");
}, 4000);
setTimeout(function() {
$("#before-b-text").text("starting the companion frontend");
}, 6000);
setTimeout(function() {
$("#before-b-text").text("loading challenges");
}, 8000);
setTimeout(function() {
$("#before-a").hide();
$("#before-b").hide();
$("#after").show();
}, 12000);
});
</script>
</html>
{{end}}
|