-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
462 lines (431 loc) · 24 KB
/
Copy pathindex.html
File metadata and controls
462 lines (431 loc) · 24 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
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="MianScribe - Advanced Writing Assistant">
<title>MianScribe</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="assets/css/style.css">
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.0/dist/chart.umd.min.js"></script>
</head>
<body>
<div class="mesh-bg"></div>
<div class="container" id="appContainer">
<!-- HEADER -->
<header class="header glass">
<div class="header-left">
<div class="logo">
<div class="logo-ring">
<span class="logo-icon">✍️</span>
<div class="logo-ring-pulse"></div>
</div>
<div>
<h1 class="app-title">
<span class="title-mian">Mian</span><span class="title-scribe">Scribe</span>
</h1>
<p class="tagline">Write Better · Faster · Smarter</p>
</div>
</div>
</div>
<div class="header-center">
<div class="live-stats">
<div class="live-stat">
<span class="live-label">Words</span>
<span class="live-value" id="headerWords">0</span>
</div>
<div class="live-divider"></div>
<div class="live-stat">
<span class="live-label">Read Time</span>
<span class="live-value" id="headerTime">0s</span>
</div>
<div class="live-divider"></div>
<div class="live-stat">
<span class="live-label">Chars</span>
<span class="live-value" id="headerChars">0</span>
</div>
<div class="live-divider"></div>
<div class="live-stat">
<span class="live-label">Goal</span>
<span class="live-value" id="headerGoal">—</span>
</div>
</div>
</div>
<div class="header-right">
<button class="hdr-btn" id="focusModeBtn" title="Focus Mode (F11)">🧘 Focus</button>
<button class="hdr-btn" id="toggleAnalyticsBtn">📊 Analytics</button>
<button class="theme-btn" id="themeToggle"><span id="themeIcon">🌙</span></button>
</div>
</header>
<!-- MAIN GRID -->
<div class="main-grid">
<!-- EDITOR PANEL -->
<main class="panel glass editor-panel">
<!-- Toolbar -->
<div class="toolbar">
<div class="toolbar-left">
<div class="tool-group">
<span class="tool-label">Size</span>
<input type="range" id="fontSize" min="14" max="26" value="16" class="slider">
<span class="pill" id="fontSizeVal">16px</span>
</div>
<div class="tool-group">
<span class="tool-label">Font</span>
<select id="fontFamily" class="sel">
<option value="inter">Inter</option>
<option value="serif">Serif</option>
<option value="mono">Mono</option>
</select>
</div>
<div class="tool-group">
<label class="toggle-wrap">
<input type="checkbox" id="hardLimit">
<span class="toggle-track"></span>
<span class="tool-label">Hard Limit</span>
</label>
</div>
</div>
<div class="toolbar-right">
<span class="saved-badge" id="savedBadge">● Auto-saved</span>
<span class="last-saved-time" id="lastSavedTime"></span>
<button class="hdr-btn-sm" id="draftsBtn" title="Version History">🕐 Drafts <span class="draft-count" id="draftCount">0</span></button>
</div>
</div>
<!-- Transform Bar -->
<div class="transform-bar">
<span class="transform-label">🔤 Transform:</span>
<div class="transform-btns">
<button class="t-btn" id="upperCase" title="UPPERCASE">AA</button>
<button class="t-btn" id="lowerCase" title="lowercase">aa</button>
<button class="t-btn" id="capitalize" title="Capitalize Words">Aa</button>
<button class="t-btn" id="sentenceCase" title="Sentence case">A.</button>
<button class="t-btn" id="toggleCase" title="tOGGLE cASE">aA</button>
</div>
</div>
<!-- Textarea -->
<div class="editor-wrap">
<textarea id="textArea" class="text-area" placeholder="Start writing your masterpiece…" spellcheck="true"></textarea>
</div>
<!-- Writing Goal Bar -->
<div class="goal-bar" id="goalBar">
<div class="goal-info">
<span class="goal-label">🎯 Daily Goal</span>
<span class="goal-progress-text" id="goalProgressText">0 / 1000 words</span>
<span class="goal-pct" id="goalPct">0%</span>
</div>
<div class="goal-track">
<div class="goal-fill" id="goalFill"></div>
</div>
</div>
<!-- Stats Row -->
<div class="stats-row">
<div class="stat-card">
<div class="stat-icon-wrap">🔤</div>
<div>
<span class="stat-label">Characters</span>
<span class="stat-value" id="charCount">0</span>
</div>
</div>
<div class="stat-card">
<div class="stat-icon-wrap">📝</div>
<div>
<span class="stat-label">Words</span>
<span class="stat-value" id="wordCount">0</span>
</div>
</div>
<div class="stat-card">
<div class="stat-icon-wrap">⏳</div>
<div>
<span class="stat-label">Remaining</span>
<span class="stat-value" id="remaining">280</span>
</div>
</div>
</div>
<!-- Limit Row -->
<div class="limit-row">
<div class="limit-left">
<span class="tool-label">Limit</span>
<input type="number" id="charLimit" value="280" min="10" max="100000" class="limit-input">
<div class="presets">
<button class="preset" data-limit="280" title="X / Twitter">𝕏</button>
<button class="preset" data-limit="2200" title="Instagram Caption">📸</button>
<button class="preset" data-limit="3000" title="LinkedIn">in</button>
<button class="preset" data-limit="160" title="Meta Description">🔍</button>
<button class="preset" data-limit="500">Short</button>
<button class="preset" data-limit="2000">Long</button>
</div>
</div>
<div class="limit-right">
<span class="tool-label">Usage</span>
<span class="usage-value" id="usage">0%</span>
</div>
</div>
<!-- Progress -->
<div class="progress-track">
<div class="progress-fill" id="progress"></div>
</div>
<!-- Action Buttons -->
<div class="actions">
<button class="action-btn primary" id="copyBtn">📋 Copy</button>
<button class="action-btn secondary" id="clearBtn">🔄 Clear</button>
<button class="action-btn accent" id="micBtn">🎤 Speak</button>
<button class="action-btn success" id="saveBtn">💾 Save</button>
</div>
<!-- Import / Export -->
<div class="io-section">
<div class="io-group">
<h3 class="io-title">📥 Import</h3>
<input type="file" id="fileInput" accept=".txt,.md,.rtf" style="display:none">
<button class="io-btn" id="importBtn">📁 Upload File</button>
</div>
<div class="io-divider"></div>
<div class="io-group">
<h3 class="io-title">📤 Export</h3>
<div class="io-btns">
<button class="io-btn" id="exportTxt">📄 TXT</button>
<button class="io-btn" id="exportMd">📝 MD</button>
<button class="io-btn" id="exportRtf">📃 RTF</button>
<button class="io-btn" id="exportHtml">🌐 HTML</button>
</div>
</div>
</div>
<!-- Writing Tips Ticker -->
<div class="tips-section">
<div class="tips-header">
<span class="tips-icon">💬</span>
<span class="tips-title">Writer's Corner</span>
<span class="tips-badge" id="tipsBadge">Tip</span>
</div>
<p class="tips-text" id="tipsText"></p>
</div>
<!-- About MianScribe -->
<div class="about-section">
<div class="about-header">
<span class="about-logo-text"><span class="footer-mian">Mian</span><span class="footer-scribe">Scribe</span></span>
</div>
<p class="about-desc">MianScribe is a powerful, distraction-free writing tool designed for writers, bloggers, content creators, and developers who care about their craft. It gives you everything you need to write with focus, measure your progress, and publish with confidence — all running in your browser with zero setup.</p>
<div class="about-features">
<div class="about-feature-item">
<span class="about-feature-icon">✍️</span>
<div>
<span class="about-feature-title">Smart Editor</span>
<span class="about-feature-text">Clean writing area with font controls, hard character limits, and text transforms.</span>
</div>
</div>
<div class="about-feature-item">
<span class="about-feature-icon">📊</span>
<div>
<span class="about-feature-title">Deep Analytics</span>
<span class="about-feature-text">Readability score, passive voice detection, keyword density, and live word growth charts.</span>
</div>
</div>
<div class="about-feature-item">
<span class="about-feature-icon">🎯</span>
<div>
<span class="about-feature-title">Writing Goals</span>
<span class="about-feature-text">Set daily word targets, track your streak, and celebrate every milestone.</span>
</div>
</div>
<div class="about-feature-item">
<span class="about-feature-icon">🧘</span>
<div>
<span class="about-feature-title">Focus Mode</span>
<span class="about-feature-text">Full-screen distraction-free writing with a minimal UI that fades away as you type.</span>
</div>
</div>
<div class="about-feature-item">
<span class="about-feature-icon">🕐</span>
<div>
<span class="about-feature-title">Version History</span>
<span class="about-feature-text">Auto-saves up to 10 drafts so you never lose a single word.</span>
</div>
</div>
<div class="about-feature-item">
<span class="about-feature-icon">📤</span>
<div>
<span class="about-feature-title">Multi-Format Export</span>
<span class="about-feature-text">Export your work as TXT, Markdown, RTF, or HTML — ready to publish anywhere.</span>
</div>
</div>
</div>
<div class="about-multimian">
<div class="about-multimian-header">
<span class="about-multimian-name">MultiMian</span>
<span class="about-multimian-tag">Creator</span>
</div>
<p class="about-multimian-text">MianScribe is built and maintained by <a href="https://github.com/Mianhassam96" target="_blank" class="footer-link">MultiMian</a> — a developer passionate about building clean, fast, and useful tools for the web. No frameworks, no bloat. Just pure Vanilla JavaScript crafted with care.</p>
<a href="https://github.com/Mianhassam96/MianScribe" target="_blank" class="about-github-btn">
<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12z"/></svg>
View on GitHub
</a>
</div>
<div class="about-stack-row">
<span class="about-tag">✍️ Writing</span>
<span class="about-tag">📊 Analytics</span>
<span class="about-tag">🎯 Goals</span>
<span class="about-tag">🧘 Focus</span>
<span class="about-tag">📤 Export</span>
<span class="about-tag">🎤 Speech</span>
<span class="about-tag">🕐 Drafts</span>
<span class="about-tag">🌙 Dark Mode</span>
</div>
</div>
</main>
<!-- ANALYTICS PANEL -->
<aside class="panel glass analytics-panel" id="analyticsPanel">
<div class="panel-hdr">
<h2 class="panel-title">📊 Analytics</h2>
<button class="close-btn" id="closeAnalytics">✕</button>
</div>
<div class="a-grid">
<div class="a-card">
<span class="a-icon">📄</span>
<div>
<span class="a-label">Sentences</span>
<span class="a-value" id="sentences">0</span>
</div>
</div>
<div class="a-card">
<span class="a-icon">¶</span>
<div>
<span class="a-label">Paragraphs</span>
<span class="a-value" id="paragraphs">0</span>
</div>
</div>
<div class="a-card">
<span class="a-icon">⏱</span>
<div>
<span class="a-label">Read Time</span>
<span class="a-value" id="readTime">—</span>
</div>
</div>
<div class="a-card">
<span class="a-icon">📏</span>
<div>
<span class="a-label">Avg Word</span>
<span class="a-value" id="avgWord">0</span>
</div>
</div>
</div>
<!-- Readability -->
<div class="readability-section">
<div class="readability-row">
<span class="a-label">Readability</span>
<span class="readability-badge" id="readabilityBadge">—</span>
</div>
<div class="readability-row">
<span class="a-label">Passive Voice</span>
<span class="a-value-sm" id="passiveCount">0</span>
</div>
<div class="readability-row">
<span class="a-label">Long Sentences</span>
<span class="a-value-sm" id="longSentCount">0</span>
</div>
<div class="readability-row">
<span class="a-label">Keyword Density</span>
<span class="a-value-sm" id="topKeyword">—</span>
</div>
</div>
<!-- Score Ring -->
<div class="score-section">
<div class="score-ring-wrap">
<svg class="score-ring" viewBox="0 0 80 80">
<defs>
<linearGradient id="ringGrad" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" stop-color="#6366f1"/>
<stop offset="100%" stop-color="#ec4899"/>
</linearGradient>
</defs>
<circle class="ring-bg" cx="40" cy="40" r="32"/>
<circle class="ring-fill" id="ringFill" cx="40" cy="40" r="32"
stroke="url(#ringGrad)"
stroke-dasharray="201"
stroke-dashoffset="201"/>
</svg>
<div class="score-center">
<span class="score-num" id="scoreNum">0</span>
<span class="score-lbl">Score</span>
</div>
</div>
<div class="score-info">
<p class="score-title" id="scoreTitle">Start Writing</p>
<p class="score-desc" id="scoreDesc">Your writing score will appear as you type.</p>
</div>
</div>
<!-- Writing Goal Settings -->
<div class="goal-settings">
<h3 class="insights-title">🎯 Writing Goal</h3>
<div class="goal-inputs">
<div class="goal-input-group">
<label class="a-label">Daily Goal (words)</label>
<input type="number" id="dailyGoalInput" class="limit-input" value="1000" min="10" max="100000">
</div>
<div class="goal-streak">
<span class="a-label">Streak</span>
<span class="streak-value" id="streakValue">🔥 0 days</span>
</div>
</div>
</div>
<!-- Charts -->
<div class="charts-section">
<h3 class="insights-title">📈 Word Growth</h3>
<canvas id="wordGrowthChart" height="120"></canvas>
</div>
<!-- Keyboard Shortcuts -->
<div class="shortcuts-section">
<h3 class="insights-title">⌨️ Shortcuts</h3>
<div class="shortcuts-grid">
<div class="shortcut-row"><kbd>Ctrl+S</kbd><span>Save</span></div>
<div class="shortcut-row"><kbd>Ctrl+E</kbd><span>Export TXT</span></div>
<div class="shortcut-row"><kbd>Ctrl+Shift+C</kbd><span>Copy</span></div>
<div class="shortcut-row"><kbd>F11</kbd><span>Focus Mode</span></div>
<div class="shortcut-row"><kbd>Esc</kbd><span>Exit Focus</span></div>
</div>
</div>
<!-- Insights -->
<div class="insights-section">
<h3 class="insights-title">💡 Insights</h3>
<ul class="insights-list" id="insightsList">
<li>Start typing to see insights…</li>
</ul>
</div>
</aside>
</div>
<!-- FOOTER -->
<footer class="footer">
<div class="footer-brand">
<!-- <span class="footer-logo-text"><span class="footer-mian">Mian</span><span class="footer-scribe">Scribe</span></span> -->
<!-- <span class="footer-dot">·</span> -->
<!-- <span class="footer-by">by <a href="https://github.com/Mianhassam96" target="_blank" class="footer-link">MultiMian</a></span> -->
</div>
<p class="footer-copy">Empowering writers, one word at a time — <a href="https://github.com/Mianhassam96" target="_blank" class="footer-link">MultiMian</a> © 2026</p>
</footer>
</div>
<!-- Toast -->
<div class="toast" id="toast"></div>
<!-- Drafts Modal -->
<div class="modal-overlay" id="draftsModal">
<div class="modal glass">
<div class="modal-hdr">
<h3 class="modal-title">🕐 Version History</h3>
<button class="close-btn" id="closeDrafts">✕</button>
</div>
<div class="drafts-list" id="draftsList"></div>
</div>
</div>
<!-- Focus Mode Overlay -->
<div class="focus-overlay" id="focusOverlay">
<div class="focus-header">
<span class="focus-stats" id="focusStats">Words: 0</span>
<button class="focus-exit-btn" id="focusExitBtn">✕ Exit Focus</button>
</div>
<textarea id="focusTextArea" class="focus-textarea" placeholder="Start writing…" spellcheck="true"></textarea>
<div class="focus-footer">
<div class="focus-progress-track">
<div class="focus-progress-fill" id="focusProgressFill"></div>
</div>
</div>
</div>
<script src="assets/js/app.js"></script>
</body>
</html>