-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
52 lines (48 loc) · 2.5 KB
/
index.html
File metadata and controls
52 lines (48 loc) · 2.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Text Formatter and Color Picker for SubEditBot</title>
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<!-- Font Awesome for icons -->
</head>
<body>
<div class="container">
<div class="profile-picture">
<img src="profile_picture.jpeg" alt="Profile Picture">
</div>
<h1>Text Formatter and Color Picker for SubEditBot</h1>
<label for="inputText"></label><textarea id="inputText" rows="5"
placeholder="Paste your text here..."></textarea>
<div class="button-group">
<button onclick="toggleFormat('b')"><i class="fas fa-bold"></i></button>
<button onclick="toggleFormat('i')"><i class="fas fa-italic"></i></button>
<button onclick="toggleFormat('u')"><i class="fas fa-underline"></i></button>
</div>
<div class="color-picker">
<h2>Pick a colour</h2>
<input type="color" id="colorPicker" onchange="applyColor()">
</div>
<h2>Align Subtitle</h2>
<div class="alignment-container">
<div class="alignment-buttons">
<button onclick="toggleAlignment('{\\an7}')"><b>↖</b></button>
<button onclick="toggleAlignment('{\\an8}')"><b>↑</b></button>
<button onclick="toggleAlignment('{\\an9}')"><b>↗</b></button>
<button onclick="toggleAlignment('{\\an4}')"><b>←</b></button>
<button onclick="toggleAlignment('{\\an5}')"><b>✧</b></button>
<button onclick="toggleAlignment('{\\an6}')"><b>→</b></button>
<button onclick="toggleAlignment('{\\an1}')"><b>↙</b></button>
<button onclick="toggleAlignment('{\\an2}')"><b>↓</b></button>
<button onclick="toggleAlignment('{\\an3}')"><b>↘</b></button>
</div>
</div>
<label for="outputText"></label><textarea id="outputText" rows="5"
placeholder="Formatted text will appear here..." readonly></textarea>
<button class="copy-button" onclick="copyToClipboard()"><i class="far fa-copy"></i> Copy Formatted Text</button>
</div>
<script src="script.js"></script>
</body>
</html>