Skip to content

Commit 95323a7

Browse files
Add files via upload
upload files
1 parent d59ef3b commit 95323a7

9 files changed

Lines changed: 357 additions & 0 deletions

File tree

MindFuck.png

62.6 KB
Loading

app.js

Lines changed: 182 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,182 @@
1+
//Function: Mirror & reset page function.
2+
function mirrorPage () {
3+
document.body.style.transform = "scaleX(-1)";
4+
setTimeout(function() {
5+
// Second mirror
6+
document.body.style.transform = "scaleX(1)";
7+
}, 500);
8+
// Third mirror
9+
setTimeout(function() {
10+
document.body.style.transform = "scaleX(-1)";
11+
}, 1000);
12+
13+
// Reload the page after 2 seconds from the start
14+
setTimeout(function() {
15+
location.reload();
16+
}, 2000);
17+
}
18+
19+
//Function messUp :
20+
let radius = 100; // Set a fixed radius for the spinning effect
21+
22+
// Initialize variable R
23+
let R = 0;
24+
25+
// Define variables used in animation
26+
let x1 = 1, x2 = 2, x3 = 3, x4 = 100, x5 = 150;
27+
let y1 = 1, y2 = 2, y3 = 3, y4 = 100, y5 = 150;
28+
29+
// call function here: [button click]
30+
function messUp () {
31+
//Rotate any script-tag's you like ,or all tag-name /*
32+
33+
let DI = document.querySelectorAll( '*');
34+
35+
36+
let DIL = DI.length;
37+
38+
//animate the elements
39+
function A() {
40+
for (let i = 0; i < DIL; i++) {
41+
let DIS = DI[i].style;
42+
DIS.position = 'absolute';
43+
DIS.left = (Math.sin(R * x1 + i * x2 + x3) * x4 + x5) + "px";
44+
DIS.top = (Math.cos(R * y1 + i * y2 + y3) * y4 + y5) + "px";
45+
}
46+
R++;
47+
}
48+
49+
// Start the animation with a 200 ms interval//Try differens speed
50+
let intervalID = setInterval(A, 200);
51+
52+
// Stop the animation after 2 seconds
53+
setTimeout(function() {
54+
clearInterval(intervalID); // Stop the animation(4 sec)
55+
location.reload(); //reload after 4 sec animation(spinn)
56+
}, 4000); //Costumice
57+
}
58+
59+
//Function:Spinn page faste-and-faster
60+
function spinnPage () {
61+
document.documentElement.style.transitionDuration="5s";
62+
document.documentElement.style.transitionTimingFunction="ease-in";
63+
document.documentElement.style.transform="rotate(3600deg)";
64+
}
65+
66+
//Function:Turn smootly 180dgs to rigth.Images change,and turnRigth pop up("resetImg").
67+
function turnRight() {
68+
// Turn Left transformation
69+
['', '-ms-', '-webkit-', '-o-', '-moz-'].forEach(function(prefix) {
70+
document.body.style[prefix + 'transition'] = 'transform 4s';
71+
document.body.style[prefix + 'transform'] = 'rotate(180deg)';
72+
});
73+
74+
// Timeout to show the reset image ("resetImg") and the old image ("img2")
75+
setTimeout(function() {
76+
document.getElementById("resetImg").style.display = "inline";
77+
document.getElementById("img2").style.display = "inline";
78+
document.getElementById("img1").style.display = "none";
79+
}, 5000);
80+
}
81+
//Turn Rigth (reset page)
82+
function resetPage() {
83+
// Reset the transformation
84+
['', '-ms-', '-webkit-', '-o-', '-moz-'].forEach(function(prefix) {
85+
document.body.style[prefix + 'transform'] = 'rotate(0deg)';
86+
});
87+
document.getElementById("resetImg").style.display = "none";
88+
document.getElementById("img2").style.display = "none";
89+
document.getElementById("img1").style.display = "inline";
90+
}
91+
92+
// Initially hide the images
93+
document.getElementById("resetImg").style.display = "none";
94+
document.getElementById("img2").style.display = "none";
95+
document.getElementById("img1").style.display = "inline";
96+
97+
//Function:A pretty nice CSS color show :
98+
function colorFlash () {
99+
window.location.href="color.html";
100+
}
101+
102+
//Function: Rotate 360dgs in 3 steps.
103+
function rotate360 () {
104+
// First rotation 1/3
105+
document.body.style.transform = "rotate(0deg)";
106+
setTimeout(function() {
107+
document.body.style.transform = "rotate(120deg)";
108+
}, 500); // 500 milliseconds
109+
// Secound rotation 2/3
110+
setTimeout(function() {
111+
document.body.style.transform = "rotate(240deg)";
112+
}, 1000); // 500ms after the first.
113+
// Third rotation 3/3 =360deg rotated.
114+
setTimeout(function() {
115+
document.body.style.transform = "rotate(360deg)";
116+
}, 1500); // 500ms after the second.
117+
118+
// Reload the page after 2 seconds from the start
119+
setTimeout(function() {
120+
location.reload();
121+
}, 3000);
122+
}
123+
124+
//Function:Running-warning text,then after 2 secund empty ugly grey page.
125+
function go_empty() { // Change a few key variables when txt starts running.
126+
127+
alert("Was that smart? \nWhen finished, just reload for the start page :)");
128+
document.body.style.backgroundColor = "black";
129+
h1.innerHTML = "EMPTY HARD DISK";
130+
h1.style.color = "white";
131+
img1.style.display = "none";
132+
img2.style.display = "none";
133+
btns.style.display = "none";
134+
h3.style.display = "none";
135+
// p.style.display = "none";
136+
137+
// Set up needs & speeds for running text.
138+
let timePerLetter = 40;
139+
let textContainer = document.getElementById("text");
140+
textContainer.innerHTML = ""; // Clear previous text
141+
textContainer.style.color = "white";
142+
143+
function printOut(str) {
144+
var i = 0;
145+
(function main() {
146+
var char = str[i++];
147+
// Check for newline character and replace it with <br>
148+
if (char === '\n') {
149+
textContainer.innerHTML += "<br>"; // Add a line break in HTML
150+
} else {
151+
textContainer.innerHTML += char; // Add the character to the text
152+
}
153+
154+
if (i < str.length) {
155+
setTimeout(main, timePerLetter);
156+
} else {
157+
setTimeout(function() { // Timeout give user time to read runner-text before txt disaperas and screen turns ugly grey.
158+
textContainer.innerHTML = "";
159+
h1.innerHTML = "";
160+
document.body.style.backgroundColor = "grey";
161+
}, 3000);
162+
}
163+
})();
164+
}
165+
166+
// Message with newlines
167+
const message = "The hard disk is empty.\nNo files are possible to recover.\nPlease install an OS before you can use this unit.\nAll copyrights reserved by:\n Fed.11/99-ADv/SACR.USA Dist. of Alabama 047/.HP International, Sacramento, California USA.";
168+
printOut(message);
169+
}
170+
171+
172+
//Function Freez is tested on Andriod phone
173+
174+
//Function Freez is tested on Andriod phone & tablets from version 8 to 16.[ works in year 2025]
175+
function freez () {
176+
var ok = confirm("Temporary removed to bee valued by \nGoogle Vulnerability Reward Program(VRP) \n You can see demo by click OK")
177+
if (ok) {
178+
window.location.href="https://www.youtube.com/watch?v=B6MhzzawJak&t=2s";
179+
} else {
180+
181+
}
182+
}

color.html

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<title>ColorFlash</title>
5+
<meta charset="utf-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<style>
8+
body {
9+
background-color: black;
10+
text-align: center; /* Center text horizontally */
11+
color: white;
12+
}
13+
14+
img {
15+
max-width: 100%; /* Limit image width to screen size */
16+
height: auto;
17+
}
18+
19+
@media (max-width: 600px) {
20+
img {
21+
width: 100%; /* Full width on small screens */
22+
}
23+
}
24+
25+
html {
26+
animation: adjustHue 10s alternate infinite;
27+
}
28+
29+
@keyframes adjustHue {
30+
0% { filter: hue-rotate(0deg); }
31+
100% { filter: hue-rotate(360deg); }
32+
}
33+
34+
@keyframes grow {
35+
to { font-size: 109px; }
36+
}
37+
38+
h1 { color: coral !important; }
39+
h2 { color: pink !important; }
40+
h3 { color: green !important; }
41+
p { color: red !important; }
42+
sub { color: blue !important; }
43+
sup { color: green !important; }
44+
h1, h2, h3, p {
45+
animation: grow 40s linear forwards;
46+
}
47+
</style>
48+
</head>
49+
<body>
50+
<h3 style="margin-top: 20px;"> 🖐 Hi, wait... 👀 </h3>
51+
52+
<h1>HELLO WORLD</h1>
53+
<h3>CSS with <sub>sub_down</sub> and <sup>sup_up tags</sup></h3>
54+
<p>Enjoy Pure CSS Power </p>
55+
<img src="ransome.jpg" alt="Image Description">
56+
</body>
57+
</html>
58+

index.html

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<title>jsFunctions&#128272;</title>
5+
<meta charset="utf-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<link rel="stylesheet" href="style.css">
8+
</head>
9+
<body>
10+
<h3 id="h3" style="margin-top: 20px;"> 🖐 👀 </h3>
11+
<h1 id="h1">javaScript codes with test-buttons.</h1>
12+
<img id="img1" src="vinkel.jpg">
13+
<img id="img2" src="MindFuck.png" >
14+
<img src="turnLeft.png" id="resetImg" style="display: none;" onclick="resetPage()">
15+
16+
<div id="text"></div>
17+
<div class="button-container" id="btns">
18+
<button id="mirrorPageBtn" onclick="mirrorPage()">Mirror</button>
19+
<button id="messUpBtn" onclick="messUp()">MessUp</button>
20+
<button id="spinnPageBtn" onclick="spinnPage()">Spinner</button>
21+
<button id="turnRightBtn" onclick="turnRight()">Turn Right</button>
22+
<button id="colorFlashBtn" onclick="colorFlash()">Color Flash</button>
23+
<button id="step360Btn" onclick="rotate360()">3 Step=360dgs</button>
24+
<button id="goEmptyBtn" onclick="go_empty()">Go Empty</button>
25+
<button id="freezeBtn" onclick="freez()">Freeze⚠️</button>
26+
</div>
27+
<script src="app.js"></script>
28+
</body>
29+
</html>
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+

ransome.jpg

32.9 KB
Loading

repo.png

134 KB
Loading

style.css

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
body {
2+
background-color: red;
3+
text-align: center;
4+
}
5+
6+
.button-container {
7+
display: flex;
8+
gap: 10px;
9+
flex-wrap: wrap;
10+
justify-content: center;
11+
}
12+
13+
#resetImg, #img2 {
14+
display: none;
15+
}
16+
17+
#resetImg {
18+
display: none;
19+
border: 5px solid white;
20+
margin-top: 20px;
21+
}
22+
23+
button {
24+
padding: 12px 24px;
25+
border: none;
26+
border-radius: 15px;
27+
color: white;
28+
font-size: 1rem;
29+
cursor: pointer;
30+
margin: 10px;
31+
32+
}
33+
34+
#messUpBtn {
35+
background-color: #FFFF00; /* yellow */
36+
color: black;
37+
}
38+
#mirrorPageBtn {
39+
background-color: #333333; /* dark grey */
40+
}
41+
#spinnPageBtn {
42+
background-color: #4CAF50; /* Green */
43+
}
44+
#turnRightBtn {
45+
background-color: #2196F3; /* Blue */
46+
}
47+
#colorFlashBtn {
48+
background-color: #FF9800; /* Orange */
49+
}
50+
#step360Btn {
51+
background-color: #9C27B0; /* Purple */
52+
}
53+
#goEmptyBtn {
54+
background-color: #FF5722; /* Deep Orange */
55+
}
56+
#freezeBtn {
57+
background-color: #607D8B; /* Blue Grey */
58+
}

turnLeft.png

989 Bytes
Loading

vinkel.jpg

15.7 KB
Loading

0 commit comments

Comments
 (0)