-
Notifications
You must be signed in to change notification settings - Fork 1
/
editor.html
72 lines (66 loc) · 3.28 KB
/
editor.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Advanced Meme Creator</title>
<link rel="stylesheet" href="editor/styles.css">
<script type="text/javascript">
(function(c,l,a,r,i,t,y){
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
})(window, document, "clarity", "script", "ly8bu4nldl");
</script>
</head>
<body>
<h1>Advanced Meme Creator</h1>
<div class="image-upload-container">
<div class="image-source-tabs">
<button id="uploadTab" class="image-source-tab active">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="17 8 12 3 7 8"></polyline><line x1="12" y1="3" x2="12" y2="15"></line></svg>
Upload
</button>
<button id="urlTab" class="image-source-tab">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg>
URL
</button>
</div>
<div class="image-source-content">
<div id="uploadSection" class="image-source-section active">
<input type="file" id="imageFile" accept="image/*">
</div>
<div id="urlSection" class="image-source-section">
<input type="text" id="imageUrl" placeholder="Enter image URL">
<button id="loadUrlImage">Load</button>
</div>
</div>
</div>
<div class="text-controls">
<input type="text" id="topTextInput" placeholder="Top Text">
<input type="text" id="bottomTextInput" placeholder="Bottom Text">
</div>
<div class="text-controls">
<input type="text" id="newTextInput" placeholder="Enter custom text">
<select id="fontSize">
<option value="24px">Small</option>
<option value="36px">Medium</option>
<option value="48px">Large</option>
</select>
<select id="fontFamily">
<option value="Impact">Impact</option>
<option value="Arial">Arial</option>
<option value="Times New Roman">Times New Roman</option>
</select>
<button id="addTextBtn">Add Text</button>
</div>
<div id="memeContainer" class="meme-container">
<img id="memeImage" src="/editor/assets/placeholder.png" alt="Meme">
<div id="topTextOutput" class="meme-text">Top Text</div>
<div id="bottomTextOutput" class="meme-text">Bottom Text</div>
</div>
<button id="createMeme">Create Meme</button>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script>
<script src="editor/script.js"></script>
</body>
</html>