-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
194 lines (169 loc) · 4.75 KB
/
index.html
File metadata and controls
194 lines (169 loc) · 4.75 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
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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Sun0011.top</title>
<meta property="wb:webmaster" content="2ee9ec1cb2f7e7b3" />
<script src="js/jquery.min.js"></script>
<script>
//window.location.href="http://60.205.227.194/"
</script>
<style>
@import url("https://fonts.googleapis.com/css?family=Montserrat:200,300,400,600");
.more-pens {
position: fixed;
left: 20px;
bottom: 20px;
z-index: 10;
font-family: "Montserrat";
font-size: 12px;
}
a.white-mode, a.white-mode:link, a.white-mode:visited, a.white-mode:active {
font-family: "Montserrat";
font-size: 12px;
text-decoration: none;
background: #212121;
padding: 4px 8px;
color: #f7f7f7;
}
a.white-mode:hover, a.white-mode:link:hover, a.white-mode:visited:hover, a.white-mode:active:hover {
background: #edf3f8;
color: #212121;
}
body {
margin: 0;
padding: 0;
overflow: hidden;
width: 100%;
height: 100%;
background: #000000;
}
.title {
z-index: 10;
position: absolute;
left: 50%;
top: 50%;
transform: translateX(-50%) translateY(-50%);
font-family: "Montserrat";
text-align: center;
width: 100%;
}
.title h1 {
position: relative;
color: #EEEEEE;
font-weight: 600;
font-size: 60px;
padding: 0;
margin: 0;
line-height: 1;
text-shadow: 0 0 30px #000155;
}
.title h1 span {
font-weight: 600;
padding: 0;
margin: 0;
color: #BBB;
}
.title h3 {
font-weight: 200;
font-size: 20px;
padding: 0;
margin: 0;
line-height: 1;
color: #EEEEEE;
letter-spacing: 2px;
text-shadow: 0 0 30px #000155;
}
</style>
</head>
<body>
<div class="title">
<h3>Sun0011.top - 2018</h3>
<h1>WELCOME</h1>
<h3>Today do better than yesterday, tomorrow is better than today.<br><br><br><br><br></h3>
<h3>HELLO <a href="#" target="_blank">WORD</a></h3>
</div>
<script>
'use strict';
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var max_particles = 1000;
var tela = document.createElement('canvas');
tela.width = $(window).width();
tela.height = $(window).height();
$("body").append(tela);
var canvas = tela.getContext('2d');
var Particle = function () {
function Particle(canvas, progress) {
_classCallCheck(this, Particle);
var random = Math.random();
this.progress = 0;
this.canvas = canvas;
this.x = $(window).width() / 2 + (Math.random() * 200 - Math.random() * 200);
this.y = $(window).height() / 2 + (Math.random() * 200 - Math.random() * 200);
this.w = $(window).width();
this.h = $(window).height();
this.radius = random > .2 ? Math.random() * 1 : Math.random() * 3;
this.color = random > .2 ? "#d8002c" : "#F9314C";
this.radius = random > .8 ? Math.random() * 2 : this.radius;
this.color = random > .8 ? "#7DFFF2" : this.color;
// this.color = random > .1 ? "#ffae00" : "#f0ff00" // Alien
this.variantx1 = Math.random() * 300;
this.variantx2 = Math.random() * 400;
this.varianty1 = Math.random() * 100;
this.varianty2 = Math.random() * 120;
}
Particle.prototype.render = function render() {
this.canvas.beginPath();
this.canvas.arc(this.x, this.y, this.radius, 0, 2 * Math.PI);
this.canvas.lineWidth = 2;
this.canvas.fillStyle = this.color;
this.canvas.fill();
this.canvas.closePath();
};
Particle.prototype.move = function move() {
// this.x += (Math.sin(this.progress/this.variantx1)*Math.cos(this.progress/this.variantx2));
// this.y += (Math.sin(this.progress/this.varianty1)*Math.cos(this.progress/this.varianty2));
this.x += Math.sin(this.progress / this.variantx1) * Math.cos(this.progress / this.variantx2);
this.y += Math.cos(this.progress / this.varianty2);
if (this.x < 0 || this.x > this.w - this.radius) {
return false;
}
if (this.y < 0 || this.y > this.h - this.radius) {
return false;
}
this.render();
this.progress++;
return true;
};
return Particle;
}();
var particles = [];
var init_num = popolate(max_particles);
function popolate(num) {
for (var i = 0; i < num; i++) {
setTimeout(function () {
particles.push(new Particle(canvas, i));
}.bind(this), i * 20);
}
return particles.length;
}
function clear() {
canvas.globalAlpha = 0.05;
canvas.fillStyle = '#000';
canvas.fillRect(0, 0, tela.width, tela.height);
canvas.globalAlpha = 1;
}
function update() {
particles = particles.filter(function (p) {
return p.move();
});
if (particles.length < init_num) {
popolate(1);
}
clear();
requestAnimationFrame(update.bind(this));
}
update();
</script>
</body>
</html>