Skip to content

Commit 6df54e2

Browse files
committed
Update script.js with new utility functions
1 parent 1ef136d commit 6df54e2

1 file changed

Lines changed: 16 additions & 35 deletions

File tree

script.js

Lines changed: 16 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,18 @@
1-
const skidShadow = `--[[
2-
███████╗██╗ ██╗██╗██████╗ ██╗██╗ ███████╗██╗ ██╗██╗██████╗ ██████╗ ██╗██╗██╗██╗██╗
3-
██╔════╝██║ ██╔╝██║██╔══██╗██║██║ ██╔════╝██║ ██╔╝██║██╔══██╗██╔══██╗██║██║██║██║██║
4-
███████╗█████╔╝ ██║██║ ██║██║██║ ███████╗█████╔╝ ██║██║ ██║██║ ██║██║██║██║██║██║
5-
╚════██║██╔═██╗ ██║██║ ██║╚═╝╚═╝ ╚════██║██╔═██╗ ██║██║ ██║██║ ██║╚═╝╚═╝╚═╝╚═╝╚═╝
6-
███████║██║ ██╗██║██████╔╝██╗██╗ ███████║██║ ██╗██║██████╔╝██████╔╝██╗██╗██╗██╗██╗
7-
╚══════╝╚═╝ ╚═╝╚═╝╚═════╝ ╚═╝╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝╚═════╝ ╚═════╝ ╚═╝╚═╝╚═╝╚═╝╚═╝
8-
]]\n`;
1+
// Simple utility functions for static site
2+
console.log("Aishite static site loaded");
93

10-
function hex(s) { return s.split('').map(c => `\\x${c.charCodeAt(0).toString(16).toUpperCase()}`).join(''); }
11-
function rVar() { return "_" + Math.random().toString(36).substring(2, 12).toUpperCase(); }
4+
// Add smooth scrolling
5+
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
6+
anchor.addEventListener('click', function (e) {
7+
e.preventDefault();
8+
const target = document.querySelector(this.getAttribute('href'));
9+
if (target) {
10+
target.scrollIntoView({ behavior: 'smooth' });
11+
}
12+
});
13+
});
1214

13-
function buildSteroids() {
14-
const input = document.getElementById('inputCode').value;
15-
if (!input.trim()) return alert("Buffer is empty.");
16-
17-
// 1. SYNC LOADING (Ghost-Encoded Dots)
18-
const loadMsg = hex("pez.bf: INITIALIZING_SKID_PROTECT");
19-
const dots = [hex("·"), hex("··"), hex("···"), hex("··")];
20-
const loader = `task.spawn(function() local d={"${dots.join('","')}"} for i=1,20 do for _,v in pairs(d) do print("${loadMsg} "..v) task.wait(0.07) end end end)\n` + " ".repeat(10000) + "\n";
21-
22-
// 2. ENCRYPTION (1-0 and 100-900 Multi-Key)
23-
const keys = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 100, 200, 300, 400, 500, 600, 700, 800, 900, 10, 20, 30, 40, 50, 60, 70, 80, 90];
24-
const payload = input.split('').map((c, i) => `\\${(c.charCodeAt(0) + keys[i % keys.length]) % 256}`).join('');
25-
26-
// 3. CFF DISPATCHER (State-Machine Architecture)
27-
const vState = rVar();
28-
const vBuffer = rVar();
29-
let engine = `return(function(...)local ${vState}=30;local ${vBuffer}={}while ${vState}~=0 do `;
30-
engine += `if ${vState}==30 then ${vBuffer}.d=[[${payload}]]${vState}=15 `;
31-
engine += `elseif ${vState}==15 then ${vBuffer}.k={${keys.join(',')}}${vState}=45 `;
32-
engine += `elseif ${vState}==45 then local b=""for i=1,#${vBuffer}.d do b=b..string.char((${vBuffer}.d:byte(i)-${vBuffer}.k[(i-1)%#${vBuffer}.k+1])%256)end;${vBuffer}.r=loadstring(b)${vState}=60 `;
33-
engine += `elseif ${vState}==60 then return ${vBuffer}.r(...)else ${vState}=0 end end end)(...)`;
34-
35-
// Final Output: Skid-Trap Loader -> 10k Spaces -> SKID-SKID Banner -> Minified VM
36-
document.getElementById('outputCode').value = loader + skidShadow + engine.replace(/\s+/g, '');
37-
}
15+
// Initialize site
16+
window.addEventListener('DOMContentLoaded', function() {
17+
console.log("DOM loaded and ready");
18+
});

0 commit comments

Comments
 (0)