-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhelp.html
More file actions
368 lines (339 loc) · 17.4 KB
/
Copy pathhelp.html
File metadata and controls
368 lines (339 loc) · 17.4 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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Help Center - NotYVidGen</title>
<link rel="icon" type="image/x-icon" href="assets/icons/favicon.ico" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="css/common.css" />
<link rel="stylesheet" href="css/help.css" />
<link rel="stylesheet" href="css/animations.css" />
<link rel="stylesheet" href="css/responsive.css" />
<!-- Security Module - Must be loaded first -->
<script src="js/security.js"></script>
<script src="/config/auth.js"></script>
<script src="/config/client.js"></script>
<style>
.loading-screen-help {
position: fixed;
inset: 0;
z-index: 9999;
background: var(--bg-primary, #F2F2F2);
display: flex;
align-items: center;
justify-content: center;
transition: opacity 0.4s ease, visibility 0.4s ease;
}
.loading-screen-help.hidden {
opacity: 0;
visibility: hidden;
pointer-events: none;
}
.loading-container-help {
text-align: center;
}
.loading-container-help img {
width: 48px;
height: 48px;
animation: pulse 1.5s ease-in-out infinite;
}
.loading-container-help p {
margin-top: 12px;
color: var(--text-secondary, #424242);
font-size: 14px;
}
</style>
</head>
<body>
<div id="loading-screen-help" class="loading-screen-help">
<div class="loading-container-help">
<img src="assets/icons/logo.svg" alt="NotYVidGen" width="48" height="48" />
<p>Loading...</p>
</div>
</div>
<div class="help-page" id="help-page" style="display: none;">
<nav class="navbar">
<div class="navbar-brand">
<img src="assets/icons/logo.svg" alt="NotYVidGen" width="32" height="32" />
<span>NotYVidGen</span>
</div>
<button class="hamburger-btn" id="hamburger-btn" aria-label="Toggle menu">
<svg viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M4 6h16M4 12h16M4 18h16"/>
</svg>
</button>
<div class="navbar-links">
<a href="/" class="navbar-link" id="nav-home">Home</a>
<a href="/about.html" class="navbar-link">About</a>
<a href="/help.html" class="navbar-link active">Help</a>
<a href="/privacy.html" class="navbar-link hide-mobile">Privacy</a>
<a href="/terms.html" class="navbar-link hide-mobile">Terms</a>
<a href="/source.html" class="navbar-link hide-mobile">Source</a>
<div class="navbar-user" id="navbar-user" style="display: none;">
<div class="user-avatar" id="user-avatar-nav" onclick="window.location.href='/home.html'">
<img src="assets/icons/logo.svg" alt="User" />
</div>
</div>
</div>
</nav>
<div class="nav-drawer-overlay" id="nav-drawer-overlay"></div>
<div class="nav-drawer" id="nav-drawer">
<div class="nav-drawer-header">
<div class="navbar-brand">
<img src="assets/icons/logo.svg" alt="NotYVidGen" width="28" height="28" />
<span>NotYVidGen</span>
</div>
<button class="nav-drawer-close" id="nav-drawer-close">✕</button>
</div>
<div class="nav-drawer-links">
<a href="/" class="nav-drawer-link">🏠 Home</a>
<a href="/about.html" class="nav-drawer-link">ℹ️ About</a>
<a href="/help.html" class="nav-drawer-link active">❓ Help</a>
<a href="/privacy.html" class="nav-drawer-link">🔒 Privacy</a>
<a href="/terms.html" class="nav-drawer-link">📜 Terms</a>
<a href="/source.html" class="nav-drawer-link">📦 Source</a>
<a href="/license.html" class="nav-drawer-link">📄 License</a>
</div>
<div class="nav-drawer-footer">
<div id="drawer-auth-section">
<button class="btn btn-primary btn-sm" id="drawer-login-btn" style="width:100%;">Sign In</button>
</div>
</div>
</div>
<div class="container">
<div class="help-hero animate-fade-in">
<h1>Help Center</h1>
<p>Find answers to common questions and learn how to get the most out of NotYVidGen</p>
</div>
<div class="help-search">
<input type="text" id="help-search" placeholder="Search for help topics..." />
</div>
<div class="help-sections">
<div class="help-section">
<h2>Getting Started</h2>
<div class="card">
<div class="help-item" data-tags="start signin login">
<div class="question">
<span>How do I get started with NotYVidGen?</span>
<span class="icon">▼</span>
</div>
<div class="answer">Simply sign in with your Google account, accept the terms, and you're ready to generate videos. Upload your images and click generate!</div>
</div>
<div class="help-item" data-tags="signin login google">
<div class="question">
<span>Do I need an account?</span>
<span class="icon">▼</span>
</div>
<div class="answer">Yes, you need to sign in with your Google account to use the service. This helps us manage your history and preferences securely.</div>
</div>
<div class="help-item" data-tags="cost free">
<div class="question">
<span>Is NotYVidGen free to use?</span>
<span class="icon">▼</span>
</div>
<div class="answer">Yes, NotYVidGen is completely free to use. No credit card or payment required.</div>
</div>
</div>
</div>
<div class="help-section">
<h2>Video Generation</h2>
<div class="card">
<div class="help-item" data-tags="upload image">
<div class="question">
<span>What image formats are supported?</span>
<span class="icon">▼</span>
</div>
<div class="answer">We support JPG, PNG, WebP, and BMP formats. Images should be under 20MB.</div>
</div>
<div class="help-item" data-tags="prompt">
<div class="question">
<span>Is the prompt required?</span>
<span class="icon">▼</span>
</div>
<div class="answer">No, the prompt is optional. If you don't provide one, the AI will automatically analyze your images and generate a transition.</div>
</div>
<div class="help-item" data-tags="duration length">
<div class="question">
<span>How long can my video be?</span>
<span class="icon">▼</span>
</div>
<div class="answer">You can choose between 3, 5, 8, or 12 seconds. The default is 5 seconds.</div>
</div>
<div class="help-item" data-tags="quality">
<div class="question">
<span>What quality options are available?</span>
<span class="icon">▼</span>
</div>
<div class="answer">We offer Standard, High, and Premium quality options. Higher quality takes more time to generate.</div>
</div>
</div>
</div>
<div class="help-section">
<h2>Troubleshooting</h2>
<div class="card">
<div class="help-item" data-tags="error fail failed">
<div class="question">
<span>Generation failed - what should I do?</span>
<span class="icon">▼</span>
</div>
<div class="answer">Try using different images, check your internet connection, and try again. If the problem persists, contact support.</div>
</div>
<div class="help-item" data-tags="upload uploads">
<div class="question">
<span>Why won't my image upload?</span>
<span class="icon">▼</span>
</div>
<div class="answer">Check that your image is under 20MB and in a supported format (JPG, PNG, WebP, BMP). Also ensure you have a stable internet connection.</div>
</div>
<div class="help-item" data-tags="browser chrome firefox">
<div class="question">
<span>Which browsers are supported?</span>
<span class="icon">▼</span>
</div>
<div class="answer">We support all modern browsers including Chrome, Firefox, Safari, and Edge. For the best experience, use the latest version.</div>
</div>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="container">
<div class="footer-content">
<span class="footer-brand">NotYVidGen v1.0.0</span>
<span class="footer-copy">Made with ❤️ in India</span>
</div>
</div>
</footer>
</div>
<script>
// Hamburger menu
(function() {
const hamburgerBtn = document.getElementById('hamburger-btn');
const drawer = document.getElementById('nav-drawer');
const overlay = document.getElementById('nav-drawer-overlay');
const closeBtn = document.getElementById('nav-drawer-close');
function openDrawer() {
drawer.classList.add('open');
overlay.classList.add('show');
document.body.style.overflow = 'hidden';
}
function closeDrawer() {
drawer.classList.remove('open');
overlay.classList.remove('show');
document.body.style.overflow = '';
}
if (hamburgerBtn) hamburgerBtn.addEventListener('click', openDrawer);
if (closeBtn) closeBtn.addEventListener('click', closeDrawer);
if (overlay) overlay.addEventListener('click', closeDrawer);
document.querySelectorAll('.nav-drawer-link').forEach(link => {
link.addEventListener('click', closeDrawer);
});
document.addEventListener('keydown', function(e) {
if (e.key === 'Escape' && drawer.classList.contains('open')) {
closeDrawer();
}
});
})();
// Loading & Session
(function() {
const loadingScreen = document.getElementById('loading-screen-help');
const helpPage = document.getElementById('help-page');
const navHome = document.getElementById('nav-home');
const userAvatar = document.getElementById('user-avatar-nav');
const navbarUser = document.getElementById('navbar-user');
const drawerLoginBtn = document.getElementById('drawer-login-btn');
const authData = sessionStorage.getItem('notyvidgen_auth');
if (authData) {
try {
const data = JSON.parse(authData);
if (data.user) {
navHome.href = '/home.html';
if (navbarUser) {
navbarUser.style.display = 'flex';
}
if (userAvatar) {
if (data.user.picture) {
userAvatar.innerHTML = `<img src="${data.user.picture}" alt="${data.user.name}" />`;
} else {
userAvatar.textContent = data.user.name ? data.user.name.charAt(0).toUpperCase() : 'U';
}
userAvatar.style.cursor = 'pointer';
userAvatar.onclick = function() {
window.location.href = '/home.html';
};
}
if (drawerLoginBtn) {
drawerLoginBtn.textContent = 'Go to Dashboard';
drawerLoginBtn.className = 'btn btn-primary btn-sm';
drawerLoginBtn.style.width = '100%';
drawerLoginBtn.onclick = function() {
window.location.href = '/home.html';
};
}
}
} catch(e) {}
} else {
if (drawerLoginBtn) {
drawerLoginBtn.textContent = 'Sign In';
drawerLoginBtn.className = 'btn btn-primary btn-sm';
drawerLoginBtn.style.width = '100%';
drawerLoginBtn.onclick = function() {
window.location.href = '/';
};
}
}
setTimeout(function() {
loadingScreen.classList.add('hidden');
helpPage.style.display = 'block';
// Help functionality
const helpItems = document.querySelectorAll('.help-item');
const searchInput = document.getElementById('help-search');
helpItems.forEach(item => {
item.addEventListener('click', () => {
const wasOpen = item.classList.contains('open');
helpItems.forEach(i => i.classList.remove('open'));
if (!wasOpen) {
item.classList.add('open');
item.scrollIntoView({ behavior: 'smooth', block: 'center' });
}
});
});
if (searchInput) {
searchInput.addEventListener('input', (e) => {
const query = e.target.value.toLowerCase();
const sections = document.querySelectorAll('.help-section');
sections.forEach(section => {
const items = section.querySelectorAll('.help-item');
let hasVisible = false;
items.forEach(item => {
const text = item.textContent.toLowerCase();
const tags = item.dataset.tags || '';
const match = text.includes(query) || tags.includes(query);
if (query === '') {
item.style.display = '';
hasVisible = true;
} else if (match) {
item.style.display = '';
hasVisible = true;
} else {
item.style.display = 'none';
}
});
const header = section.querySelector('h2');
if (header) {
header.style.display = hasVisible ? '' : 'none';
}
});
});
}
if (helpItems.length > 0) {
helpItems[0].classList.add('open');
}
}, 300);
})();
</script>
</body>
</html>