-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
129 lines (118 loc) · 6.14 KB
/
Copy pathindex.html
File metadata and controls
129 lines (118 loc) · 6.14 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
<!DOCTYPE html>
<!-- ChatBot by Moses - Frenzy Model 1.1 -->
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Moses Chatbot | Frenzy Model</title>
<link rel="preload" href="videos/desktop-video.mp4" as="video" type="video/mp4">
<link rel="preload" href="videos/light-video.mp4" as="video" type="video/mp4">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@32,400,0,0" />
<link rel="stylesheet" href="style.css" />
<!-- Web App Manifest -->
<link rel="manifest" href="manifest.json">
<!-- Service Worker Registration -->
<script>
// Register Service Worker for offline functionality
if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
// Use relative path for local development
navigator.serviceWorker.register('./sw.js')
.then(function(registration) {
console.log('ServiceWorker registration successful with scope: ', registration.scope);
// Check if content is cached (offline ready)
caches.has('static-cache-v1').then(function(hasCache) {
if (hasCache) {
console.log('Offline AI model is cached and ready!');
// Show offline ready indicator
const indicator = document.createElement('div');
indicator.style.cssText = `
position: fixed;
top: 10px;
left: 10px;
background: #4CAF50;
color: white;
padding: 5px 10px;
border-radius: 4px;
font-size: 12px;
z-index: 1000;
`;
indicator.textContent = '🟢 Offline Ready';
document.body.appendChild(indicator);
// Remove after 3 seconds
setTimeout(() => indicator.remove(), 3000);
}
});
})
.catch(function(error) {
console.log('ServiceWorker registration failed: ', error);
});
});
} else {
console.log('Service Workers are not supported in this browser');
}
</script>
</head>
<body>
<div class="video-container">
<video id="dark-video" autoplay muted loop playsinline>
<source src="videos/desktop-video.mp4" type="video/mp4" />
Your browser does not support HTML5 video.
</video>
<video id="light-video" autoplay muted loop playsinline style="display: none;">
<source src="videos/light-video.mp4" type="video/mp4" />
Your browser does not support HTML5 video.
</video>
</div>
<div class="container">
<header class="app-header">
<h1 class="heading">𝓜𝒐𝒔𝒆𝒔 𝓒𝖍𝓪𝓽𝖇𝓸𝓽</h1>
<h4 class="sub-heading">𝙷𝚘𝚠 𝚌𝚊𝚗 𝙸 𝚑𝚎𝚕𝚙 𝚢𝚘𝚞 𝚝𝚘𝚍𝚊𝚢?</h4>
</header>
<ul class="suggestions">
<li class="suggestions-item">
<p class="text">𝙳𝚎𝚜𝚒𝚐𝚗 𝚊 𝚑𝚘𝚖𝚎 𝚘𝚏𝚏𝚒𝚌𝚎 𝚜𝚎𝚝𝚞𝚙 𝚏𝚘𝚛 𝚛𝚎𝚖𝚘𝚝𝚎 𝚠𝚘𝚛𝚔 𝚞𝚗𝚍𝚎𝚛 ₹500.</p>
<span class="icon material-symbols-rounded">draw</span>
</li>
<li class="suggestions-item">
<p class="text">𝙷𝚘𝚠 𝚌𝚊𝚗 𝙸 𝚕𝚎𝚟𝚎𝚕 𝚞𝚙 𝚖𝚢 𝚠𝚎𝚋 𝚍𝚎𝚟𝚎𝚕𝚘𝚙𝚖𝚎𝚗𝚝 𝚎𝚡𝚙𝚎𝚛𝚝𝚒𝚜𝚎 𝚒𝚗 2025?</p>
<span class="icon material-symbols-rounded">lightbulb</span>
</li>
<li class="suggestions-item">
<p class="text">𝚠𝚑𝚘 𝚋𝚞𝚒𝚕𝚝 𝚢𝚘𝚞?</p>
<span class="icon material-symbols-rounded">explore</span>
</li>
<li class="suggestions-item">
<p class="text">𝙲𝚛𝚎𝚊𝚝𝚎 𝚊 𝚁𝚎𝚊𝚌𝚝 𝙹𝚂 𝚌𝚘𝚖𝚙𝚘𝚗𝚎𝚗𝚝 𝚏𝚘𝚛 𝚝𝚑𝚎 𝚜𝚒𝚖𝚙𝚕𝚎 𝚝𝚘𝚍𝚘 𝚕𝚒𝚜𝚝 𝚊𝚙𝚙.</p>
<span class="icon material-symbols-rounded">code_blocks</span>
</li>
</ul>
<div class="chats-container"></div>
<div class="prompt-container">
<div class="prompt-wrapper">
<form action="#" class="prompt-form">
<input type="text" placeholder="Ask Frenzy" class="prompt-input" required />
<div class="prompt-actions">
<div class="file-upload-wrapper">
<img src="#" class="file-preview" />
<input id="file-input" type="file" accept="image/*, .pdf, .txt, .csv" hidden />
<button type="button" class="file-icon material-symbols-rounded">description</button>
<button id="cancel-file-btn" type="button" class="material-symbols-rounded">close</button>
<button id="add-file-btn" type="button" class="material-symbols-rounded">attach_file</button>
</div>
<button id="stop-response-btn" type="button" class="material-symbols-rounded">stop_circle</button>
<button id="send-prompt-btn" class="material-symbols-rounded">arrow_upward</button>
</div>
</form>
<button id="theme-toggle-btn" class="material-symbols-rounded">light_mode</button>
<button id="delete-chats-btn" class="material-symbols-rounded">delete</button>
</div>
<p class="disclaimer-text">𝖥𝗋𝖾𝗇𝗓𝗒 𝖼𝖺𝗇 𝗆𝖺𝗄𝖾 𝗆𝗂𝗌𝗍𝖺𝗄𝖾𝗌, 𝗌𝗈 𝖽𝗈𝗎𝖻𝗅𝖾-𝖼𝗁𝖾𝖼𝗄 𝗂𝗍.</p>
<p class="disclaimer-text">© 𝖢𝗈𝗉𝗒𝗋𝗂𝗀𝗁𝗍 @𝖨𝗌𝗌𝖺𝖼 𝖬𝗈𝗌𝖾𝗌. 𝖲𝗈 𝖢𝗈𝗇𝗍𝖺𝖼𝗍 𝖮𝗐𝗇𝖾𝗋.</p>
</div>
</div>
<!-- Load the offline AI model -->
<script src="models/offline-ai-model.js"></script>
<script src="script.js"></script>
</body>
</html>