html
html
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
<!-- Basic Ice Cup created by Charisse Guray -->
<!-- Surprise sneakily added by Konan -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Free Ice-Cream With Surprise</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Cairo+Play:wght@200..1000&family=Caveat:wght@400..700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Tangerine&&family=Kalnia+Glaze:wght@100..700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0&icon_names=oil_barrel" />
</head>
<body>
<header>
<h1>< ><br>Tasty Icecream<br>< / ></h1>
<h2> >.< </h2>
<h6> (with special flavours) </h6><br>
</header>
<!-- Legende -->
<div class="legend">
<h2>~~~<br>Our Menu<br>~~~~</h2>
<div class="legend-section">
<h3>Icecream:</h3>
<ul>
<li><span class="legend-color chocolate"></span> Chocolate</li>
Enter to Rename, Shift+Enter to Preview
css
css
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
body {
display: flex;
justify-content: center;
align-items: center;
background-color: #f8f8f8;
color: rgb(90, 90, 90);
height: 135vh;
font-family: 'Comic Sans MS', cursive, sans-serif;
}
header {
position: relative;
text-align: center;
font-family: 'Tangerine', serif, Arial;
height: 160vh;
width: auto;
top: 15%;
left: 25%;
}
h1 {
position: relative;
margin: 2px;
text-align: center;
font-size: 2.65em;
padding-bottom: 2px;
}
Enter to Rename, Shift+Enter to Preview
js
js
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
document.addEventListener('DOMContentLoaded', function () {
// Toggle blue scoop skull
document.getElementById('blueDesaster').addEventListener('click', function () {
let skull = this.querySelector('.skull-icon');
if (!skull) {
skull = document.createElement('span');
skull.className = 'skull-icon';
skull.innerHTML = '<i class="fas fa-skull"></i>';
this.appendChild(skull);
} else {
// Toggle visibility
skull.style.display = (skull.style.display === 'none' || skull.style.display === '') ? 'block' : 'none';
}
});
// Toggle radiation logo
document.getElementById('toxicSludge').addEventListener('click', function () {
let radiation = this.querySelector('.radiation-icon');
if (!radiation) {
radiation = document.createElement('span');
radiation.className = 'radiation-icon';
radiation.innerHTML = '<i class="fas fa-radiation"></i>';
this.appendChild(radiation);
} else {
// Toggle visibility
radiation.style.display = (radiation.style.display === 'none' || radiation.style.display === '') ? 'block' : 'none';
}
});
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Uruchom