-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
executable file
·116 lines (100 loc) · 4.8 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>سرديّة</title>
<meta charset="utf-8" />
<meta
http-equiv="Content-Security-Policy"
content="script-src 'self' 'unsafe-eval'; object-src 'self'"
/>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
/>
<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=Beiruti:[email protected]&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<div class="plugin-window" id="plugin-window">
<!-- start header section -->
<header class="header" id="header">
<div class="header-text" id="header-text">
<img src="images/logo.svg" alt="logo for sardiyah" width="auto" height="27">
</div>
<label class="switch">
<input type="checkbox" id="toggleSwitch">
<span class="slider round"></span>
</label>
</header>
<!-- end header section -->
<!-- start content section -->
<section class="content" id="content">
<div class="title-row">
<h1 class="replaced-words-title" id="replaced-words-title">Replaced words</h1>
<button class="add-button" id="edit-button">
<img src="images/add.svg" alt="add button icon">
</button>
<select class="lang-select" id="language-select">
<option value="en">English</option>
<option value="ar">Arabic</option>
</select>
</div>
<div class="table-container">
<table class="replaced-words-table">
<thead>
<tr>
<th id="word-header">Word</th>
<th id="replacement-header">Replacement</th>
</tr>
</thead>
<tbody id="table-body">
<!-- Rows will be added here programmatically -->
</tbody>
</table>
</div>
</section>
<!-- end contecnt section -->
<!-- start welcome section -->
<section class="welcome" id="welcome" >
<hr>
<img src="images/welcome.svg" alt="welcome page" width="100%" height="auto">
</section>
<!-- end welcome section -->
<!-- start replacment-word section -->
<section id="input-dialog" class="input-dialog">
<div class="dialog-content">
<form id="input-form">
<label for="word-input" id="word-label">Word</label>
<input type="text" name="word" id="word-input" placeholder="Word" required>
<label for="replacement-input" id="replacement-label">Replacement</label>
<input type="text" name="replacement" id="replacement-input" placeholder="Replacement" required>
<div class="error-message" id="error-message"></div>
<div class="dialog-buttons">
<button class="dialog-submit" id="dialog-submit" type="submit"></button>
<button class="dialog-close" id="dialog-close" type="button"></button>
</div>
</form>
<div id="loading-indicator" style="display: none;">
<span class="loader"></span>
</div>
</div>
</section>
<!-- end replacment-word section -->
<!-- start footer section -->
<footer id="footer">
<p>© <time datetime="2024">2024</time> Sardiya</p>
</footer>
<!-- end footer section -->
</div>
<!-- https://script.google.com/macros/s/AKfycbwqV-kCvRonl9MXdSOP7l7LsMh4ZA-Ro0eLsDvrruF228OI4UT1-AW5JFuijnNqsg5V/exec -->
<script type="module" src="script.js"></script>
<script src="script.js"></script>
<script src="translations/en.js"></script>
<script src="translations/ar.js"></script>
<script src="popup.js"></script>
</body>
</html>