-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
229 lines (192 loc) · 10.4 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
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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
<!DOCTYPE html>
<html>
<head>
<title>Pride PFP Maker</title>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=0.5'> <!-- should be good for most phones ? -->
<link rel='stylesheet' href='src/index.css'>
<link rel='shortcut icon' href='src/assets/favicon_16.png' type='image/png'>
<link rel='apple-touch-icon' href='src/assets/logo_128.png'>
<link rel='image_src' href='src/assets/logo_128.png'>
<meta property='og:type' content='website'>
<meta property='og:title' content='Pride PFP Maker'>
<meta property='og:url' content='https://nectarboy.github.io/pride-pfp-maker'>
<meta property='og:image' itemprop="image primaryImageOfPage" content='https://github.com/nectarboy/pride-pfp-maker/blob/main/src/assets/logo_128.png?raw=true'>
<meta property='og:description' content='customize your PFPs with pride flags !'>
<meta name='description' content='customize your PFPs with pride flags !'>
<meta name='keywords' content='pride, pride pfp maker, pride icon maker, pride month, pride pfp, pride flag ring icon'>
<meta name='author' content='github.com/nectarboy'>
<!-- PfpPride scripts -->
<script src='src/pfppride/pfppride.js'></script>
<script src='src/pfppride/presetflags.js'></script>
<script src='src/pfppride/editor.js'></script>
</head>
<body>
<!-- Top bar -->
<div class='topBar'>
<div class='topSub'> <!-- stfu -->
<span class='topTitle'>
<img src='src/assets/favicon_24.png'>
<i class='topTitle'>Pride PFP Maker</i> |
</span>
<span class='topDesc'>customize your PFPs with pride flags ! v1.2</span>
<br>
<marquee id='prideAlertMuthaFucka'></span></marquee>
<script>
if ((new Date()).getMonth() === 5) {
const el = document.createElement('span');
el.className = 'prideText';
el.innerHTML = 'happy pride month | '.repeat(12);
document.getElementById('prideAlertMuthaFucka').appendChild(el);
}
// if u see this ur gay as balls
</script>
</div>
</div>
<br>
<!-- Main dividers -->
<div class='outerBox'>
<!-- Upload div -->
<div id='uploadDiv' class='mainBox' style='display: none'>
<div class='bigLayer' style='overflow-y: hidden'>
<span>
drap and drop an image !<br>
(or click that icon)
</span>
<hr class='line'>
<!-- Upload image -->
<div class='centerImgFrame'>
<span class='centerImgHelper'></span>
<input type='file' id='uploadButton' style='display: none'>
<label for='uploadButton'>
<img src='src/assets/upload.png' id='uploadButton' class='centerImg uploadImg' draggable='false'>
</label>
</div>
</div>
</div>
<!-- Export div -->
<div id='exportDiv' class='mainBox' style='display: none'>
<div class='bigLayer' style='overflow-y: hidden'>
<span>
right click and save the image !<br>
(tap and hold if on mobile)
</span>
<hr class='line'>
<div id='continueEditing' class='button otherFlagButton'>
<span>Continue</span>
<br><span>Editing</span>
</div>
<!-- Upload image -->
<div class='centerImgFrame'>
<span class='centerImgHelper'></span>
<img id='exportEl' class='exportImg'>
</div>
</div>
</div>
<!-- Editor div -->
<div id='editorDiv' class='mainBox' style='display: none'>
<table class='editorTable'>
<tr>
<!-- Left side -->
<td class='leftSide'>
<div class='sideWrap'>
<!-- Preview -->
<div class='mediumLayer'>
<span>
this is your profile pic !<br>
drag it to move the image position !
</span>
<hr class='line'>
<canvas id='mainCanvas' class='pfpPreview' width='500' height='500'></canvas>
</div>
<br>
<!-- Flag Select -->
<div class='smallLayer'>
<span>change the pride flag !</span>
<hr class='line'>
<!-- fuck tables >:( -->
<div id='flagButtonDiv' class='flagButtonDiv'>
<!-- Custom flag image input -->
<input type='file' id='otherFlagInput' style='display: none'>
</div>
</div>
</div>
</td>
<!-- Right side -->
<td class='rightSide'>
<div class='sideWrap'>
<!-- Settings -->
<div class='bigLayer'>
<div class='exportDivWrapper'>
<span>more settings !</span>
<hr class='line'>
<div>
<!-- Image scale -->
<span>image zoom</span>
<br>
<input type='range' id='imgScaleInput' class='slider' min='0' max='3' step='0.025'>
<br>
<!-- Ring scale -->
<span>ring scale</span>
<br>
<input type='range' id='ringScaleInput' class='slider' min='0' max='1' step='0.025'>
<br>
</div>
<br>
<div class='flagButtonDiv'>
<!-- Reset image scale -->
<div id='resetImageScaleButton' class='button otherFlagButton'>
<span>Default Image</span>
<br><span>Zoom</span>
</div>
<!-- Reset ring scale -->
<div id='resetRingScaleButton' class='button otherFlagButton'>
<span>Default</span>
<br><span>Ring Scale</span>
</div>
<!-- Reset image offset -->
<div id='resetDragOffButton' class='button otherFlagButton'>
<span>Center Image</span>
<br><span>Position</span> <!-- i use code names ok ~w~ -->
</div>
</div>
<br>
<br>
<div class='flagButtonDiv'>
<!-- Flag mode text -->
<span id='flagModeText'>flag mode: ring</span>
<div class='verticalCenter'>
<!-- Flag mode toggle -->
<div id='flagModeToggle' class='toggle'>
<div id='flagModeToggleHandle' class='toggleHandle'></div>
</div>
<!-- Flag mode preview canvas -->
<div style='padding: 8px'>
<canvas id='flagModePreview' class='pfpModePreview' width=32 height=32></canvas>
</div>
</div>
</div>
<!-- Export settings and stuff -->
<div class='exportDiv'>
<div>
<button id='chooseNewButton' class='button newImgButton'>Choose New Image</button>
<div style='height: 12px'></div>
<button id='exportButton' class='button greenButton'>Export and Open Image</button>
</div>
</div>
</div>
</div>
</div>
</td>
</tr>
</table>
</div>
</div>
<br>
<div style='text-align: center'>
<span class='topDesc'>nectarboy | 2022 | <a class='topDesc' href='https://github.com/nectarboy/pride-pfp-maker/'>source</a></span>
</div>
<!-- Index script ( INDEX.JS !!!??) -->
<script src='src/index.js'></script>
</body>
</html>