Delete upload.html
Browse files- upload.html +0 -178
upload.html
DELETED
@@ -1,178 +0,0 @@
|
|
1 |
-
<!DOCTYPE html>
|
2 |
-
<html lang="en">
|
3 |
-
<head>
|
4 |
-
<meta charset="UTF-8" />
|
5 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
6 |
-
<title>WhiteCell.AI – Upload</title>
|
7 |
-
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@600&display=swap" rel="stylesheet">
|
8 |
-
<style>
|
9 |
-
body {
|
10 |
-
margin: 0;
|
11 |
-
font-family: 'Orbitron', sans-serif;
|
12 |
-
background: radial-gradient(ellipse at center, #050b14 0%, #000000 100%);
|
13 |
-
color: #e0f2ff;
|
14 |
-
height: 100vh;
|
15 |
-
display: flex;
|
16 |
-
justify-content: center;
|
17 |
-
align-items: center;
|
18 |
-
overflow: hidden;
|
19 |
-
}
|
20 |
-
|
21 |
-
.background-animation {
|
22 |
-
position: fixed;
|
23 |
-
top: 0;
|
24 |
-
left: 0;
|
25 |
-
width: 100vw;
|
26 |
-
height: 100vh;
|
27 |
-
background: radial-gradient(circle at 30% 30%, #0a1628 0%, #020611 100%);
|
28 |
-
z-index: -1;
|
29 |
-
overflow: hidden;
|
30 |
-
}
|
31 |
-
|
32 |
-
#stars div {
|
33 |
-
position: absolute;
|
34 |
-
width: 2px;
|
35 |
-
height: 2px;
|
36 |
-
background-color: rgba(255, 255, 255, 0.8);
|
37 |
-
border-radius: 50%;
|
38 |
-
animation: twinkle 4s infinite ease-in-out;
|
39 |
-
}
|
40 |
-
|
41 |
-
@keyframes twinkle {
|
42 |
-
0%, 100% { opacity: 0.2; transform: scale(1); }
|
43 |
-
50% { opacity: 1; transform: scale(1.4); }
|
44 |
-
}
|
45 |
-
|
46 |
-
.upload-panel {
|
47 |
-
background: rgba(0, 255, 255, 0.05);
|
48 |
-
padding: 2.5rem;
|
49 |
-
border-radius: 1.5rem;
|
50 |
-
border: 1px solid rgba(0, 255, 255, 0.2);
|
51 |
-
box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
|
52 |
-
text-align: center;
|
53 |
-
max-width: 420px;
|
54 |
-
width: 100%;
|
55 |
-
}
|
56 |
-
|
57 |
-
h2 {
|
58 |
-
font-size: 1.6rem;
|
59 |
-
color: #00ffff;
|
60 |
-
text-shadow: 0 0 10px #00ffff;
|
61 |
-
margin-bottom: 1rem;
|
62 |
-
}
|
63 |
-
|
64 |
-
label {
|
65 |
-
font-size: 0.9rem;
|
66 |
-
color: #8eefff;
|
67 |
-
}
|
68 |
-
|
69 |
-
select, input[type="number"] {
|
70 |
-
padding: 0.5rem 1rem;
|
71 |
-
border-radius: 0.7rem;
|
72 |
-
border: 1px solid #00eaff;
|
73 |
-
background: #06131f;
|
74 |
-
color: #e0f2ff;
|
75 |
-
width: 200px;
|
76 |
-
margin-top: 0.3rem;
|
77 |
-
margin-bottom: 1rem;
|
78 |
-
text-align: center;
|
79 |
-
}
|
80 |
-
|
81 |
-
.drop-zone {
|
82 |
-
border: 2px dashed #00eaff;
|
83 |
-
padding: 1.5rem;
|
84 |
-
border-radius: 1rem;
|
85 |
-
width: 90%;
|
86 |
-
cursor: pointer;
|
87 |
-
position: relative;
|
88 |
-
background: rgba(0, 255, 255, 0.03);
|
89 |
-
margin-bottom: 1rem;
|
90 |
-
}
|
91 |
-
|
92 |
-
.drop-zone input[type="file"] {
|
93 |
-
position: absolute;
|
94 |
-
width: 100%;
|
95 |
-
height: 100%;
|
96 |
-
opacity: 0;
|
97 |
-
cursor: pointer;
|
98 |
-
top: 0;
|
99 |
-
left: 0;
|
100 |
-
}
|
101 |
-
|
102 |
-
.file-name {
|
103 |
-
margin-top: 0.6rem;
|
104 |
-
font-size: 0.85rem;
|
105 |
-
color: #8eefff;
|
106 |
-
}
|
107 |
-
|
108 |
-
.start-button {
|
109 |
-
background: #00bfff;
|
110 |
-
border: none;
|
111 |
-
color: white;
|
112 |
-
padding: 0.9rem 2rem;
|
113 |
-
border-radius: 1rem;
|
114 |
-
font-size: 1.1rem;
|
115 |
-
box-shadow: 0 0 20px #00eaff;
|
116 |
-
cursor: pointer;
|
117 |
-
transition: all 0.3s ease;
|
118 |
-
}
|
119 |
-
|
120 |
-
.start-button:hover {
|
121 |
-
box-shadow: 0 0 30px #00ffff;
|
122 |
-
transform: scale(1.05);
|
123 |
-
}
|
124 |
-
</style>
|
125 |
-
</head>
|
126 |
-
<body>
|
127 |
-
<!-- ⭐ พื้นหลังอวกาศ -->
|
128 |
-
<div class="background-animation">
|
129 |
-
<div id="stars"></div>
|
130 |
-
</div>
|
131 |
-
|
132 |
-
<!-- 🧬 กล่องอัปโหลด -->
|
133 |
-
<div class="upload-panel">
|
134 |
-
<h2>🧬 Upload Microscopic Image</h2>
|
135 |
-
<form method="POST" enctype="multipart/form-data" action="/upload">
|
136 |
-
<label>เพศ:</label><br>
|
137 |
-
<select name="sex" required>
|
138 |
-
<option value="">เลือกเพศ</option>
|
139 |
-
<option value="male">ชาย</option>
|
140 |
-
<option value="female">หญิง</option>
|
141 |
-
</select><br>
|
142 |
-
|
143 |
-
<label>อายุ:</label><br>
|
144 |
-
<input type="number" name="age" min="1" max="120" required><br>
|
145 |
-
|
146 |
-
<div class="drop-zone">
|
147 |
-
<label for="fileInput" class="start-button">📂 Choose Image</label>
|
148 |
-
<input type="file" name="file" id="fileInput" required style="display: none;" onchange="updateFileName()">
|
149 |
-
<p id="file-name">No file selected...</p>
|
150 |
-
</div>
|
151 |
-
|
152 |
-
|
153 |
-
<button type="submit" class="start-button">🚀 Begin AI Scan</button>
|
154 |
-
</form>
|
155 |
-
</div>
|
156 |
-
|
157 |
-
<!-- ✨ Script จุดดาว -->
|
158 |
-
<script>
|
159 |
-
const starsContainer = document.getElementById('stars');
|
160 |
-
for (let i = 0; i < 100; i++) {
|
161 |
-
const star = document.createElement('div');
|
162 |
-
star.style.top = Math.random() * 100 + 'vh';
|
163 |
-
star.style.left = Math.random() * 100 + 'vw';
|
164 |
-
const size = Math.random() * 1.5 + 1;
|
165 |
-
star.style.width = size + 'px';
|
166 |
-
star.style.height = size + 'px';
|
167 |
-
star.style.animationDuration = (Math.random() * 4 + 3) + 's';
|
168 |
-
starsContainer.appendChild(star);
|
169 |
-
}
|
170 |
-
|
171 |
-
function updateFileName() {
|
172 |
-
const input = document.getElementById('fileInput');
|
173 |
-
const nameDisplay = document.getElementById('file-name');
|
174 |
-
nameDisplay.textContent = input.files.length > 0 ? input.files[0].name : "No file selected...";
|
175 |
-
}
|
176 |
-
</script>
|
177 |
-
</body>
|
178 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|