Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -446,36 +446,36 @@ def main():
|
|
| 446 |
<meta name="apple-mobile-web-app-capable" content="yes">
|
| 447 |
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
| 448 |
<meta name="apple-mobile-web-app-title" content="PawMatch AI">
|
| 449 |
-
<link rel="manifest" href="
|
| 450 |
-
<link rel="apple-touch-icon" href="
|
| 451 |
|
| 452 |
<script>
|
| 453 |
-
window.addEventListener('load', async () => {
|
| 454 |
-
try {
|
| 455 |
-
if ('serviceWorker' in navigator) {
|
| 456 |
const registration = await navigator.serviceWorker.register(
|
| 457 |
-
'
|
| 458 |
-
{
|
| 459 |
);
|
| 460 |
console.log('Service Worker 註冊成功', registration);
|
| 461 |
-
}
|
| 462 |
-
}
|
| 463 |
console.error('Service Worker 註冊失敗:', error);
|
| 464 |
-
}
|
| 465 |
-
}
|
| 466 |
</script>
|
| 467 |
-
|
| 468 |
-
|
| 469 |
-
|
| 470 |
-
|
| 471 |
-
|
| 472 |
-
|
| 473 |
-
|
| 474 |
-
|
| 475 |
-
|
| 476 |
-
|
| 477 |
-
|
| 478 |
-
|
| 479 |
""")
|
| 480 |
|
| 481 |
# 先創建歷史組件實例(但不創建標籤頁)
|
|
|
|
| 446 |
<meta name="apple-mobile-web-app-capable" content="yes">
|
| 447 |
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
| 448 |
<meta name="apple-mobile-web-app-title" content="PawMatch AI">
|
| 449 |
+
<link rel="manifest" href="manifest.json">
|
| 450 |
+
<link rel="apple-touch-icon" href="assets/icon-192.png">
|
| 451 |
|
| 452 |
<script>
|
| 453 |
+
window.addEventListener('load', async () => {
|
| 454 |
+
try {
|
| 455 |
+
if ('serviceWorker' in navigator) {
|
| 456 |
const registration = await navigator.serviceWorker.register(
|
| 457 |
+
'service-worker.js',
|
| 458 |
+
{ scope: './' }
|
| 459 |
);
|
| 460 |
console.log('Service Worker 註冊成功', registration);
|
| 461 |
+
}
|
| 462 |
+
} catch (error) {
|
| 463 |
console.error('Service Worker 註冊失敗:', error);
|
| 464 |
+
}
|
| 465 |
+
});
|
| 466 |
</script>
|
| 467 |
+
<header style='text-align: center; padding: 20px; margin-bottom: 20px;'>
|
| 468 |
+
<h1 style='font-size: 2.5em; margin-bottom: 10px; color: #2D3748;'>
|
| 469 |
+
🐾 PawMatch AI
|
| 470 |
+
</h1>
|
| 471 |
+
<h2 style='font-size: 1.2em; font-weight: normal; color: #4A5568; margin-top: 5px;'>
|
| 472 |
+
Your Smart Dog Breed Guide
|
| 473 |
+
</h2>
|
| 474 |
+
<div style='width: 50px; height: 3px; background: linear-gradient(90deg, #4299e1, #48bb78); margin: 15px auto;'></div>
|
| 475 |
+
<p style='color: #718096; font-size: 0.9em;'>
|
| 476 |
+
Powered by AI • Breed Recognition • Smart Matching • Companion Guide
|
| 477 |
+
</p>
|
| 478 |
+
</header>
|
| 479 |
""")
|
| 480 |
|
| 481 |
# 先創建歷史組件實例(但不創建標籤頁)
|