-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfullpage.html
More file actions
201 lines (197 loc) · 10.5 KB
/
Copy pathfullpage.html
File metadata and controls
201 lines (197 loc) · 10.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title data-i18n="pageTitle">Diff Checker - Text Compare</title>
<link rel="stylesheet" href="popup.css" />
</head>
<body class="fullpage">
<script src="fullpage-init.js"></script>
<div class="app">
<div class="app-top">
<header class="header">
<div class="header-brand">
<div class="header-logo">
<img
class="header-logo__img"
src="icons/icon128.png"
alt=""
width="40"
height="40"
decoding="async"
/>
</div>
<div class="header-main">
<h1 data-i18n="appTitle">Diff Checker</h1>
<p class="subtitle" data-i18n="subtitle">Compare two texts line by line - + added - - removed</p>
</div>
</div>
<div class="header-actions">
<button
type="button"
id="header-settings"
class="header-icon-btn"
popovertarget="settings-panel"
data-i18n-title="settingsTitle"
data-i18n-aria-label="settingsAriaLabel"
aria-expanded="false"
aria-controls="settings-panel"
>
<svg class="header-icon-btn__icon" viewBox="0 0 24 24" aria-hidden="true">
<path fill="currentColor" d="M19.14 12.94c.04-.31.06-.63.06-.94 0-.31-.02-.63-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.488.488 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.63.06.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6A3.6 3.6 0 1 1 15.6 12 3.6 3.6 0 0 1 12 15.6z"/>
</svg>
</button>
</div>
</header>
<div class="diff-toolbar">
<button type="button" id="diff-run" class="btn primary" data-i18n="runButton">Compare</button>
<button type="button" id="diff-copy" class="btn secondary" disabled data-i18n="copySummaryButton">Copy summary</button>
<button type="button" id="diff-clear" class="btn ghost" data-i18n="clearButton">Clear</button>
<span id="diff-stats" class="diff-stats" aria-live="polite"></span>
</div>
</div>
<div id="settings-panel" class="settings-panel" popover="auto">
<div class="settings-panel__inner">
<div class="settings-field">
<label for="language-select" class="settings-field__label" data-i18n="languageLabel">Language</label>
<div class="settings-field__controls">
<select
id="language-select"
class="lang-select settings-field__select"
aria-label="Language"
data-i18n-aria-label="languageLabel"
>
<option value="auto" data-i18n="languageOptionAuto">Auto</option>
</select>
<button
type="button"
id="theme-toggle"
class="header-icon-btn theme-toggle-btn"
title=""
aria-label=""
aria-pressed="false"
>
<svg class="header-icon-btn__icon theme-icon theme-icon--sun" viewBox="0 0 24 24" aria-hidden="true">
<path fill="currentColor" d="M12 18a6 6 0 1 1 0-12 6 6 0 0 1 0 12Zm0-2a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM11 1h2v3h-2V1Zm0 19h2v3h-2v-3ZM3.515 4.929l1.414-1.414L6.343 4.93 4.93 6.343 3.515 4.93ZM17.657 17.657l1.414-1.414 1.414 1.414-1.414 1.414-1.414-1.414ZM1 11h3v2H1v-2Zm19 0h3v2h-3v-2ZM4.93 17.657 3.515 19.07l1.414 1.414 1.414-1.414-1.414-1.414ZM19.07 4.93l1.414-1.414-1.414-1.414-1.414 1.414 1.414 1.414Z"/>
</svg>
<svg class="header-icon-btn__icon theme-icon theme-icon--moon" viewBox="0 0 24 24" aria-hidden="true">
<path fill="currentColor" d="M21.752 15.002A9.718 9.718 0 0 1 9.502 2.248 9.99 9.99 0 0 0 12 22a9.99 9.99 0 0 0 9.752-6.998Z"/>
</svg>
</button>
</div>
</div>
<div class="settings-field">
<label for="open-mode-select" class="settings-field__label" data-i18n="openModeLabel">Open Diff Checker</label>
<select id="open-mode-select" class="lang-select settings-field__select" aria-describedby="open-mode-hint">
<option value="tab" data-i18n="openModeTab">In a new tab</option>
<option value="popup" data-i18n="openModePopup">In the extension popup</option>
</select>
<p id="open-mode-hint" class="settings-field__hint" data-i18n="openModeHint">Applies when you click the extension icon.</p>
</div>
</div>
</div>
<main class="diff-main" id="diff-main">
<div class="diff-columns" id="diff-columns">
<div class="diff-col diff-col--left">
<label for="diff-left" data-i18n="leftLabel">Left (A)</label>
<div class="editor-shell">
<div class="editor-gutter" aria-hidden="true">
<pre id="diff-left-lines" class="editor-lines">1</pre>
</div>
<textarea id="diff-left" spellcheck="false" placeholder="First text..." data-i18n-placeholder="leftPlaceholder"></textarea>
</div>
</div>
<div class="diff-col diff-col--right">
<label for="diff-right" data-i18n="rightLabel">Right (B)</label>
<div class="editor-shell">
<div class="editor-gutter" aria-hidden="true">
<pre id="diff-right-lines" class="editor-lines">1</pre>
</div>
<textarea id="diff-right" spellcheck="false" placeholder="Second text..." data-i18n-placeholder="rightPlaceholder"></textarea>
</div>
</div>
</div>
<div
class="diff-splitter"
id="diff-splitter"
role="separator"
aria-orientation="horizontal"
aria-label="Diff summary height - drag"
data-i18n-aria-label="splitterAriaLabel"
tabindex="0"
title="Drag to resize top section and diff summary"
data-i18n-title="splitterTitle"
></div>
<div class="diff-result-block" id="diff-result-block">
<div class="result-head">
<span class="result-head__title" data-i18n="resultTitle">Diff summary</span>
<div class="diff-nav" role="group" aria-label="Navigate differences" data-i18n-aria-label="navGroupAriaLabel">
<button type="button" id="diff-nav-up" class="btn btn-icon" disabled title="Previous difference" aria-label="Previous difference" data-i18n-title="navPrevTitle" data-i18n-aria-label="navPrevAriaLabel">↑</button>
<span id="diff-nav-pos" class="diff-nav__pos" aria-live="polite"></span>
<button type="button" id="diff-nav-down" class="btn btn-icon" disabled title="Next difference" aria-label="Next difference" data-i18n-title="navNextTitle" data-i18n-aria-label="navNextAriaLabel">↓</button>
</div>
</div>
<div class="diff-output-wrap">
<div id="diff-output" class="diff-output diff-output--panel" role="region" aria-label="Line differences" data-i18n-aria-label="diffOutputAriaLabel"></div>
<button type="button" class="diff-fs-btn" id="diff-fs-btn" title="Fullscreen" aria-label="Show diff summary in fullscreen" data-i18n-title="fullscreenEnterTitle" data-i18n-aria-label="fullscreenEnterAriaLabel">⛶</button>
</div>
</div>
</main>
<footer class="app-footer" aria-label="External links">
<div class="social-links">
<a
class="social-link"
href="https://github.com/halituzan/DiffChecker-Extension"
target="_blank"
rel="noopener noreferrer"
aria-label="GitHub"
title="GitHub"
>
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M12 2C6.48 2 2 6.58 2 12.24c0 4.52 2.87 8.35 6.84 9.7.5.1.68-.22.68-.5 0-.24-.01-.9-.01-1.76-2.78.62-3.36-1.21-3.36-1.21-.45-1.19-1.11-1.5-1.11-1.5-.91-.64.07-.63.07-.63 1 .07 1.53 1.06 1.53 1.06.9 1.57 2.36 1.12 2.94.86.09-.67.35-1.12.63-1.38-2.22-.26-4.56-1.14-4.56-5.08 0-1.12.39-2.03 1.03-2.75-.1-.27-.45-1.35.1-2.81 0 0 .85-.28 2.78 1.05A9.4 9.4 0 0 1 12 6.84c.85 0 1.71.12 2.5.35 1.93-1.33 2.78-1.05 2.78-1.05.55 1.46.2 2.54.1 2.81.64.72 1.03 1.63 1.03 2.75 0 3.95-2.34 4.82-4.57 5.07.36.32.68.94.68 1.9 0 1.37-.01 2.47-.01 2.8 0 .27.18.6.69.5A10.23 10.23 0 0 0 22 12.24C22 6.58 17.52 2 12 2z"></path>
</svg>
</a>
<a
class="social-link"
href="https://x.com/uzandev"
target="_blank"
rel="noopener noreferrer"
aria-label="Twitter / X"
title="Twitter / X"
>
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M18.9 2H22l-6.77 7.74L23 22h-6.1l-4.78-6.46L6.5 22H3.4l7.25-8.3L1 2h6.2l4.32 5.9L18.9 2zm-1.07 18h1.7L6.27 3.9H4.45L17.83 20z"></path>
</svg>
</a>
<a
class="social-link"
href="https://www.linkedin.com/in/halituzan"
target="_blank"
rel="noopener noreferrer"
aria-label="LinkedIn"
title="LinkedIn"
>
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M6.94 8.5A2.44 2.44 0 1 1 7 3.62a2.44 2.44 0 0 1-.06 4.88zM4.8 9.93h4.3V22H4.8V9.93zM11.6 9.93h4.11v1.64h.06c.57-1.07 1.97-2.2 4.06-2.2 4.34 0 5.14 2.95 5.14 6.78V22h-4.3v-5.3c0-1.27-.02-2.9-1.71-2.9-1.72 0-1.98 1.39-1.98 2.81V22h-4.3V9.93z"></path>
</svg>
</a>
<a
class="social-link"
href="https://halituzan.com"
target="_blank"
rel="noopener noreferrer"
aria-label="Website"
title="Website"
>
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm7.93 9h-3.1a15.8 15.8 0 0 0-1.1-5.06A8.03 8.03 0 0 1 19.93 11zM12 4.08c.92 1.2 1.7 3.22 2.03 5.92H9.97C10.3 7.3 11.08 5.28 12 4.08zM8.27 5.94A15.8 15.8 0 0 0 7.17 11h-3.1a8.03 8.03 0 0 1 4.2-5.06zM4.07 13h3.1c.16 1.8.55 3.56 1.1 5.06A8.03 8.03 0 0 1 4.07 13zM12 19.92c-.92-1.2-1.7-3.22-2.03-5.92h4.06c-.33 2.7-1.11 4.72-2.03 5.92zm3.73-1.86c.55-1.5.94-3.26 1.1-5.06h3.1a8.03 8.03 0 0 1-4.2 5.06z"></path>
</svg>
</a>
</div>
</footer>
</div>
<script src="diff-lines.js"></script>
<script src="popup.js"></script>
</body>
</html>