|
| 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 | +} |
0 commit comments