-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_script.py
More file actions
207 lines (207 loc) · 6.23 KB
/
Copy pathtest_script.py
File metadata and controls
207 lines (207 loc) · 6.23 KB
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
content = '''<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Dart vs Airship</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
:root {
color-scheme: light dark;
}
body {
margin: 0;
font-family: 'Segoe UI', Arial, sans-serif;
background: radial-gradient(circle at top, #e0f2ff 0%, #f1f5f9 55%, #dce2f0 100%);
color: #0f172a;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
}
.dart-wrapper {
width: min(640px, 100%);
background: rgba(255, 255, 255, 0.92);
border-radius: 18px;
border: 1px solid rgba(15, 23, 42, 0.08);
box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
padding: 28px;
box-sizing: border-box;
}
h1 {
margin: 0 0 0.35rem 0;
font-size: clamp(1.8rem, 3vw, 2.2rem);
text-align: center;
}
.subtitle {
margin: 0 0 20px 0;
text-align: center;
color: #475569;
}
.playfield {
position: relative;
width: 100%;
height: 240px;
background: linear-gradient(180deg, rgba(148, 197, 255, 0.5) 0%, rgba(148, 197, 255, 0.02) 70%);
border-radius: 16px;
overflow: hidden;
border: 1px solid rgba(15, 23, 42, 0.12);
}
.playfield::after {
content: '';
position: absolute;
inset: auto 0 0 0;
height: 54px;
background: linear-gradient(180deg, rgba(148, 163, 184, 0.08) 0%, rgba(148, 163, 184, 0.28) 100%);
}
.stone-display {
position: absolute;
top: 12px;
left: 12px;
display: flex;
align-items: center;
gap: 8px;
padding: 6px 12px;
border-radius: 999px;
background: rgba(15, 23, 42, 0.75);
color: #f8fafc;
font-size: 0.85rem;
font-weight: 600;
text-decoration: none;
opacity: 0;
pointer-events: none;
transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.stone-display.has-stones {
opacity: 1;
pointer-events: auto;
}
.stone-display.reward-active {
background: #0f766e;
transform: scale(1.05);
}
.stone-icon {
width: 16px;
height: 16px;
border-radius: 50%;
background: radial-gradient(circle at 30% 30%, #e2e8f0 0%, #94a3b8 45%, #475569 100%);
box-shadow: inset -1px -1px 3px rgba(15, 23, 42, 0.45);
}
.airship-link {
position: absolute;
top: 36px;
left: 0;
width: 110px;
height: 55px;
display: block;
transform: translateX(0);
pointer-events: none;
text-decoration: none;
}
.airship-link.reward-active {
pointer-events: auto;
cursor: pointer;
}
.airship {
width: 100%;
height: 100%;
background: url('resources/airship.jpg') center/cover no-repeat;
border-radius: 999px;
box-shadow: 0 12px 24px rgba(30, 64, 175, 0.35);
}
.dart {
position: absolute;
bottom: 10px;
width: 26px;
height: 90px;
transform: translate(-50%, 0);
transform-origin: center bottom;
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
}
.dart-tip {
width: 0;
height: 0;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-top: 20px solid #f97316;
}
.dart-body {
width: 6px;
height: 44px;
background: linear-gradient(180deg, #1d4ed8 0%, #1e3a8a 100%);
}
.dart-feather {
width: 24px;
height: 18px;
background: linear-gradient(120deg, #facc15, #f97316);
clip-path: polygon(0 0, 100% 40%, 100% 60%, 0 100%);
}
.controls {
margin-top: 24px;
display: flex;
flex-direction: column;
gap: 18px;
}
.slider-row {
display: flex;
flex-direction: column;
gap: 8px;
}
input[type="range"],
input[type="number"] {
width: 100%;
padding: 8px 10px;
border-radius: 8px;
border: 1px solid #cbd5e1;
background: #f8fafc;
color: inherit;
box-sizing: border-box;
}
button {
align-self: center;
padding: 12px 26px;
font-size: 1rem;
font-weight: 600;
border-radius: 999px;
border: none;
background: linear-gradient(135deg, #2563eb, #1d4ed8);
color: #fff;
cursor: pointer;
box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
transition: transform 0.18s ease, box-shadow 0.18s ease;
}
button:disabled {
opacity: 0.65;
cursor: not-allowed;
box-shadow: none;
}
button:not(:disabled):hover {
transform: translateY(-2px);
box-shadow: 0 18px 32px rgba(37, 99, 235, 0.45);
}
.control-buttons {
display: flex;
gap: 12px;
justify-content: center;
flex-wrap: wrap;
}
.status {
text-align: center;
font-size: 1.05rem;
font-weight: 600;
min-height: 1.2em;
}
.status[data-tone="win"] {
color: #047857;
}
.status[data-tone="miss"] {
color: #b91c1c;
}
.meta {
text-align: center;
font-size: 0.85rem;
}'''
print(len(content))