forked from bro-my-username-got-blocked/basic
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest2.html
More file actions
111 lines (110 loc) · 3.81 KB
/
test2.html
File metadata and controls
111 lines (110 loc) · 3.81 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
<!DOCTYPE html>
<html>
<head>
<title>_</title>
<script src="./js/script.js"></script>
<link rel="stylesheet" href="./css/index.css">
</head>
<body>
<div class="quote-box">
<p id="quoteOfTheDay" class="quote-text"></p>
</div>
<button id="button" onclick="loadIframeContent()" style="position:fixed; top:10px; left:10px">WindowMaker</button>
<button id="button" onclick="loadIframer()" style="position:fixed;top:55px;left:10px;">WebsiteLoader</button>
<button id="button" onclick="GameLoader()" style="position:fixed;top:100px;left:10px;">Games(Fullscreen)</button>
<button id="button" onclick="ProxyFullscreen()" style="position:fixed;top:145px;left:10px">Proxy (Fullscreen)</button>
<button id="button" onclick="Settings()" style="position:fixed;top:190px;left:10px">Settings</button>
<button id="panicButton" style="display: none;" onclick="panicButton()">PANIC</button>
<div id="alarmClock">
<div id="clockFace">
<p id="clockTime"></p>
<p id="clockAmPm"></p>
</div>
</div>
<iframe id="contentFrame" style="display:none; width:100%; height:100vh; z-index:-1;"></iframe>
<button id="backButton" onclick="hideIframeContent()" style="display: none; position: fixed; bottom: 10px; left: 10px;">《</button>
<script>
setInterval(Constant(), 1000)
let panicURL;
function Constant() {
let zIndex = 1000;
const canvas = document.createElement('canvas');
const ctx = canvas.getContext('2d');
let particles = [];
function Particle(x, y) {
this.x = x;
this.y = y;
this.vx = Math.random() * 10 - 5;
this.vy = Math.random() * 10 - 5;
this.color = '#' + Math.floor(Math.random() * 16777215).toString(16);
this.size = Math.random() * 10 + 5;
this.alpha = 1;
this.sides = Math.floor(Math.random() * 7) + 3; // Random number of sides between 3 and 9
this.initialSides = this.sides; // Store the initial number of sides
this.explodeTime = Date.now() + 500; // Set the time to explode (2 seconds)
}
Particle.prototype.update = function() {
const explosionsEnabled = localStorage.getItem('explosions') === 'true'; // Check if explosions are enabled
if (explosionsEnabled && Date.now() > this.explodeTime) {
this.size = 0; // Reduce size to 0 when it's time to explode
this.alpha = 0; // Set alpha to 0 to make it invisible
}
this.x += this.vx;
this.y += this.vy;
};
Particle.prototype.draw = function() {
ctx.globalAlpha = this.alpha;
ctx.fillStyle = this.color;
ctx.beginPath();
const angle = (Math.PI * 2) / this.sides;
ctx.moveTo(this.x + this.size * Math.cos(0), this.y + this.size * Math.sin(0));
for (let i = 1; i <= this.sides; i++) {
ctx.lineTo(
this.x + this.size * Math.cos(angle * i),
this.y + this.size * Math.sin(angle * i)
);
}
ctx.closePath();
ctx.fill();
};
function draw() {
ctx.clearRect(0, 0, canvas.width, canvas.height);
particles.forEach(function(particle) {
particle.update(); // Update particle state
particle.draw(); // Draw particle
});
particles = particles.filter(function(particle) {
return particle.alpha > 0; // Remove invisible particles
});
requestAnimationFrame(draw);
}
canvas.style.position = 'fixed';
canvas.style.top = '0';
canvas.style.left = '0';
canvas.style.zIndex = '-1';
canvas.style.pointerEvents = 'none';
document.body.appendChild(canvas);
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
window.addEventListener('resize', function() {
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
});
document.addEventListener('mousemove', function(event) {
for (let i = 0; i < 5; i++) {
particles.push(new Particle(event.clientX, event.clientY));
}
});
if(localStorage.getItem('draw') === 'false') {
}
else {
draw();
}
}
function panicButton() {
panicURL = localStorage.getItem("panicURL")
window.open(panicURL || "https://drive.google.com/drive/u/0/home");
}
</script>
</body>
</html>