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
29
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
async function server(request: Request): Promise<Response> {
return new Response(`
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Unga Bunga Bezier Magic</title>
<style>
body {
font-family: 'Comic Sans MS', cursive, sans-serif;
background-color: #f0e6d2;
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><text x="10" y="50" font-size="50">🦴</text></svg>');
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
margin: 0;
padding: 20px;
box-sizing: border-box;
}
.container {
background-color: #d2b48c;
border: 8px solid #8b4513;
border-radius: 15px;
padding: 20px;
text-align: center;
max-width: 500px;
width: 100%;
box-shadow: 0 0 20px rgba(0,0,0,0.3);
}
h1 {
color: #8b4513;
font-size: 28px;
margin-bottom: 20px;
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
#curve {
background-color: #fff;
border: 4px solid #8b4513;
border-radius: 10px;
margin-bottom: 20px;
}
.sliders {
display: flex;
flex-direction: column;
gap: 10px;
margin-bottom: 20px;
}
.slider {
display: flex;
align-items: center;
justify-content: space-between;
}
.slider label {
flex: 1;
text-align: right;
margin-right: 10px;
font-weight: bold;
color: #5a3d2b;
}
.slider input {
flex: 2;
}
.explanation {
font-size: 16px;
color: #5a3d2b;
margin-bottom: 20px;
}
.source-link {
color: #8b4513;
text-decoration: none;
font-weight: bold;
}
.source-link:hover {
text-decoration: underline;
}
.easter-egg {
font-size: 24px;
cursor: pointer;
user-select: none;
}
#cssOutput {
background-color: #fff;
border: 2px solid #8b4513;
border-radius: 5px;
padding: 10px;
margin-top: 10px;
font-family: monospace;
white-space: pre-wrap;
}
#opacityDemo {
font-size: 48px;
margin: 20px 0;
}
</style>
</head>
<body>
<div class="container">
<h1>Unga Bunga Bezier Magic <span class="easter-egg" onclick="this.textContent = cavePaint()">🪨</span></h1>