-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
194 lines (150 loc) · 5.11 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
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<html dir="ltr" lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, intial-scale=1"/>
<title>~</title>
</head>
<style>
/* Change your colors and cursor speed here */
/* "--user-color" changes color of "[User@Firefox ~]$" */
/* "--command-color" changes color of the commands and "./status.sh" */
/* "--file-color" changes the color of the cated out file */
/* "--link-color" changes the color of links */
/* "--cursor-speed", "--background-color" and "--foreground-color" should be obvious */
:root {
--background-color: #282A36;
--foreground-color: #F8F8F2;
--user-color: #F8F8F2;
--command-color: #F8F8F2;
--file-color: #F8F8F2;
--link-color: #F1FA8C;
--cursor-speed: .90s;
}
html,
body {
width: 100%;
height: 100%;
margin: 0px;
padding: 0px;
}
body {
display: flex;
flex-direction: column;
justify-content: space-around;
background-color: var(--background-color);
}
#wrapper {
display: flex;
flex-direction: column;
align-items: center;
}
p,
a,
label {
font-family: monospace, monospace;
font-size: 1.1em;
margin: 0px;
}
a {
color: var(--link-color);
text-decoration: none;
}
.user {
color: var(--user-color);
}
.command {
color: var(--command-color);
}
.file {
color: var(--file-color);
}
.clock {
color: var(--foreground-color);
}
.date {
color: var(--foreground-color);
}
.links {
color: var(--foreground-color);
}
.cursor {
color: var(--foreground-color);
-moz-animation: blink var(--cursor-speed) linear infinite;
animation: blink var(--cursor-speed) linear infinite;
}
@-moz-keyframes blink {
0% { opacity: 1; }
50% { opacity: 1; }
50.01% { opacity: 0; }
100% { opacity: 0; }
}
@keyframes blink {
0% { opacity: 1; }
50% { opacity: 1; }
50.01% { opacity: 0; }
100% { opacity: 0; }
}
input[type=text] {
background-color: var(--background-color);
color: var(--command-color);
border: none;
font-family: monospace, monospace;
font-size: 1.1em;
margin: 0px;
width: 5%;
//transition: width 0.4s ease-in-out;
}
input[type=text]:focus {
width: 50%
}
</style>
<script src="config.js"></script>
<script src="main.js"></script>
<body>
<div id="wrapper">
<div>
<div class="cli">
<p><span class="user">[<span id=userName></span>@<span id=hostName></span> ~]$</span> <span class="command">./status.sh</span></p>
</div>
<div id="status.sh">
<p class="clock">'Time: <span id=clock></span>'</p>
<p class="date">'Date: <span id=date></span>'</p>
</div>
<div class="cli">
<p><span class="user">[<span id=userName2></span>@<span id=hostName2></span> ~]$</span> <span class="command">cat</span> <span class="file">links.txt</span></p>
</div>
<div>
<p class="links">
'<span id=fav1></span>',<br>
'<span id=fav2></span>',<br>
'<span id=fav3></span>',<br>
'<span id=fav4></span>',<br>
'<span id=fav5></span>',<br>
'<span id=fav6></span>',
</p>
</div>
<div class="cli">
<p><span class="user">[<span id=userName3></span>@<span id=hostName3></span> ~]$<input type="text" id="cliInput" onkeyup="enterTrigger()"></span><span class="cursor">█</span></p>
</div>
<div class="cli">
<p id="output"><span class="user"></span></p>
</div>
<div class="cli">
<p id="output2"><span class="user"></span></p>
</div>
<div class="cli">
<p id="output3"><span class="user"></span></p>
</div>
<div class="cli">
<p id="output4"><span class="user"></span></p>
</div>
<div class="cli">
<p id="output5"><span class="user"></span></p>
</div>
<div class="cli">
<p id="output6"><span class="user"></span></p>
</div>
</div>
</div>
</body>
</html>