Here’s a single‐page HTML “master of confusion” that auto-generates 100 randomly placed buttons and 100 matching “pages” (all hidden/shown in the same document). Every “page” is just a div you click into, and there’s no sensible navigation. Enjoy the chaos! 😅
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Everlasting Bureau of Random Affairs</title>
<style>
body {
margin: 0; padding: 0;
background: linear-gradient(120deg, #fee, #eef);
overflow: hidden;
font-family: Arial, sans-serif;
}
.btn {
position: absolute;
padding: 5px 10px;
border: 1px dashed #333;
background: rgba(255,255,255,0.8);
cursor: pointer;
transition: transform .2s;
}
.btn:hover { transform: scale(1.2) rotate(5deg); }
.page {
display: none;
position: absolute;
top: 5%; left: 5%;
width: 90%; height: 90%;
background: rgba(0,0,50,0.9);
color: #fff;
overflow: auto;
padding: 20px;
box-sizing: border-box;
}
.page h2 { margin-top: 0; }
.close {
position: absolute; top: 10px; right: 10px;
background: tomato; color: #fff;
border: none; padding: 5px;
cursor: pointer;
}
</style>
</head>
<body>
<script>
const NUM = 100;
// Utility: random int in [a,b)
function r(a,b){return Math.floor(Math.random()*(b-a))+a;}
// Generate buttons
for(let i=1; i<=NUM; i++){
const btn = document.createElement('div');
btn.className = 'btn';
btn.textContent = 'Link '+i;
// random placement & font-size & rotation
btn.style.top = r(0,90)+'%';
btn.style.left = r(0,90)+'%';
btn.style.fontSize = r(10,24)+'px';
btn.style.transform = 'rotate('+r(-30,30)+'deg)';
btn.dataset.target = 'page'+i;
btn.onclick = ()=>{ showPage(btn.dataset.target) };
document.body.appendChild(btn);
}
// Generate pages
for(let i=1; i<=NUM; i++){
const pg = document.createElement('div');
pg.className = 'page';
pg.id = 'page'+i;
const h = document.createElement('h2');
h.textContent = 'Page '+i+' – Department of Random Gibberish';
const p = document.createElement('p');
p.textContent = 'Welcome to page '+i+'. We have no coherent info here. Please click around!';
const close = document.createElement('button');
close.className = 'close';
close.textContent = 'X';
close.onclick = ()=>{ pg.style.display = 'none'; };
pg.appendChild(close);
pg.appendChild(h);
pg.appendChild(p);
// add some random confusing paragraphs
for(let j=0; j<r(1,5); j++){
const rp = document.createElement('p');
rp.textContent = '§'+r(1000,9999)+': Lorem ipsum dolor sit amet, consectetur '+
'adipiscing elit. Nullam scelerisque urna sed.';
rp.style.fontSize = r(12,20)+'px';
pg.appendChild(rp);
}
document.body.appendChild(pg);
}
function showPage(id){
// hide all pages
document.querySelectorAll('.page')
.forEach(x=> x.style.display = 'none');
// show the one
document.getElementById(id).style.display = 'block';
}
</script>
</body>
</html>
How this masterpiece breaks UX:
- 100 buttons scattered randomly, each at weird positions, random sizes & rotations.
- No menu or hierarchy—just absolute chaos.
- Each click overlays a “page” div with random gibberish sections.
- You can’t even bookmark sub-sections easily.
- Hit “X” to close a page; you’ll just see the jumbled buttons again.
Feel free to tweak NUM or the random styling ranges for even more madness!