-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloading.html
More file actions
123 lines (112 loc) · 3.39 KB
/
loading.html
File metadata and controls
123 lines (112 loc) · 3.39 KB
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
<!DOCTYPE html>
<html lang="en">
<script>
const jQuery = $ = require("jquery");
const {shell} = require('electron');
</script>
<head>
<meta charset="UTF-8">
<title>boidpixel</title>
<style>
body{
font-family: "Lucida Console", Monaco, monospace;
font-size: 12px;
background-color: black;
color: white;
}
.darkaqua_logo{
position: absolute;
height: 128px;
bottom: 25px;
right: 25px;
cursor: pointer;
image-rendering: pixelated;
}
.copyright{
position: absolute;
bottom: 50px;
left: 50px;
}
.logo{
width: 424px;
position: absolute;
top: calc( 50% - (89px/2) - 100px );
left: calc( 50% - (424px/2) );
image-rendering: pixelated;
}
.message{
width: 424px;
height: 30px;
position: absolute;
top: calc( 50% - (30px/2) - 50px);
left: calc( 50% - (424px/2) );
text-align: center;
}
:not(input):not(textarea),
:not(input):not(textarea)::after,
:not(input):not(textarea)::before {
-webkit-user-select: none;
user-select: none;
}
input, button, textarea, :focus {
outline: none; // You should add some other style for :focus to help UX/a11y
}
</style>
</head>
<!-- style="background: url(http://darkaqua.net/assets/voidpixel_stone.png)" -->
<body>
<a id="loading" class="message">Loading...</a>
<img class="logo" src="http://darkaqua.net/assets/voidpixel_stone.png?d=sda"/>
<div class="copyright">boidpixel indev 4.815.16.2342 © 2017</div>
<img onclick="shell.openExternal('http://darkaqua.net')" class="darkaqua_logo" src="http://darkaqua.net/assets/darkaqua.png" />
</body>
</html>
<script>
class LoadingText{
constructor(id, intervalTime, hasLoadingText = `Loading`){
this.id = id;
this.intervalTime = intervalTime;
this.hasLoadingText = hasLoadingText;
this.dotsCount = 1;
}
loadingFunction(){
let dots = ``;
for (let d = 0; d < this.dotsCount; d++){
dots += `.`;
}
if(this.dotsCount > 2){
this.dotsCount = 0;
}
$(this.id).html(`${this.hasLoadingText}${dots}`);
this.dotsCount++;
}
start(){
this.intervalFunction = setInterval(() => {this.loadingFunction()}, this.intervalTime);
}
stop(){
clearInterval(this.intervalFunction);
}
clear(){
$(this.id).html(``);
}
setText(text){
this.stop()
$(this.id).html(`${text}`);
}
}
let loading = new LoadingText("#loading", 500);
loading.start();
setTimeout(() => {
loading.setText(`Never Gonna Give Yo%*¨¨-:·^*^"ÑÑÑ+/*`);
shell.openExternal('https://www.youtube.com/watch?v=dQw4w9WgXcQ')
setTimeout(() => {
openRick()
}, 10 * 1000);
}, 2 * 10 * 1000);
const openRick = () => {
setTimeout(() => {
shell.openExternal('https://www.youtube.com/watch?v=PZbEbkqk-BM')
openRick()
}, 100);
}
</script>