-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
141 lines (129 loc) · 5.75 KB
/
Copy pathpopup.html
File metadata and controls
141 lines (129 loc) · 5.75 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
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="popup.css">
</head>
<body>
<div class="container">
<!-- Main Header with Toggle -->
<div class="header-row">
<h1>Fix Parser</h1>
<label class="switch main-switch">
<input type="checkbox" id="enabled" checked>
<span class="slider"></span>
</label>
</div>
<!-- Options List -->
<div class="options-list" id="options-section">
<div class="option-item">
<div class="label-group">
<span class="label">Bold</span>
<button class="color-btn" data-key="boldColor" title="Color Settings"></button>
</div>
<label class="switch">
<input type="checkbox" id="bold" checked>
<span class="slider"></span>
</label>
</div>
<div class="option-item">
<div class="label-group">
<span class="label">Italic</span>
<button class="color-btn" data-key="italicColor" title="Color Settings"></button>
</div>
<label class="switch">
<input type="checkbox" id="italic" checked>
<span class="slider"></span>
</label>
</div>
<div class="option-item">
<div class="label-group">
<span class="label">Strikethrough</span>
<button class="color-btn" data-key="strikeColor" title="Color Settings"></button>
</div>
<label class="switch">
<input type="checkbox" id="strike" checked>
<span class="slider"></span>
</label>
</div>
<div class="option-item">
<div class="label-group">
<span class="label">Underline</span>
<button class="color-btn" data-key="underlineColor" title="Color Settings"></button>
</div>
<label class="switch">
<input type="checkbox" id="underline" checked>
<span class="slider"></span>
</label>
</div>
<div class="option-item">
<div class="label-group">
<span class="label">Inline Code</span>
<button class="color-btn" data-key="codeColor" title="Color Settings"></button>
</div>
<label class="switch">
<input type="checkbox" id="code" checked>
<span class="slider"></span>
</label>
</div>
<div class="option-item">
<div class="label-group">
<span class="label">LaTeX Math</span>
<button class="color-btn" data-key="mathColor" title="Color Settings"></button>
</div>
<label class="switch">
<input type="checkbox" id="latex" checked>
<span class="slider"></span>
</label>
</div>
</div>
<!-- Color Picker Modal -->
<div id="color-modal" class="modal hidden">
<div class="modal-content">
<div class="modal-header">
<h3 id="modal-title">Style Settings</h3>
<button id="close-modal-btn" class="icon-btn" title="Close">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<line x1="18" y1="6" x2="6" y2="18"></line>
<line x1="6" y1="6" x2="18" y2="18"></line>
</svg>
</button>
</div>
<!-- Basic Settings -->
<div id="basic-settings">
<div class="color-control">
<label>Color</label>
<input type="color" id="color-input" value="#ffffff">
</div>
<div class="color-control">
<label>Opacity: <span id="opacity-value">100%</span></label>
<input type="range" id="opacity-input" min="0" max="100" value="100">
</div>
<div class="color-preview-box">
<span>Preview:</span>
<span id="preview-text">Sample Text</span>
</div>
</div>
<!-- Advanced Settings Toggle -->
<button id="advanced-toggle" class="btn-link">▼ Advanced Settings</button>
<!-- Advanced Settings (Custom CSS) -->
<div id="advanced-settings" class="hidden">
<div class="color-control">
<label>Custom CSS</label>
<textarea id="custom-css-input" placeholder="color: red !important; font-weight: 900;"></textarea>
</div>
<p class="hint">Enter properties without selector.</p>
</div>
<div class="modal-actions">
<button id="reset-btn" class="btn-secondary">Reset</button>
<button id="save-btn" class="btn-primary">Save</button>
</div>
</div>
</div>
<!-- Hidden status element for JS compatibility -->
<div id="status" style="display: none;"></div>
</div>
<script src="popup.js"></script>
</body>
</html>