-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathindex.html
117 lines (103 loc) · 4.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
<!DOCTYPE html>
<head>
<!-- Google Tag Manager -->
<script>(function (w, d, s, l, i) {
w[ l ] = w[ l ] || []; w[ l ].push({
'gtm.start':
new Date().getTime(), event: 'gtm.js'
}); var f = d.getElementsByTagName(s)[ 0 ],
j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src =
'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-TGVFZ65');</script>
<!-- End Google Tag Manager -->
<!-- SEO Tags -->
<title> Image Splitter </title>
<meta charset='UTF-8'>
<meta name='description' content='Splits images into square tiles.'>
<meta name='author' content='Ruyi Li'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<meta property='og:description' content='Splits images into square tiles.'>
<meta property='og:title' content='Image Splitter'>
<meta property='og:site_name' content='image-splitter'>
<meta property='og:type' content='website'>
<meta property='og:url' content='https://ruyili.ca/image-splitter'>
<meta charset="utf-8">
<!-- Stylesheets -->
<link href="style.css" rel="stylesheet">
<!-- Scripts -->
<script type="text/javascript" src="https://kit.fontawesome.com/01289a7069.js"></script>
<script type="text/javascript" src="js/jszip.min.js"></script>
<script type="text/javascript" src="js/filesaver.js"></script>
<script type="text/javascript" src="js/gif-frames.min.js"></script>
<script type="text/javascript" src="js/gif.js"></script>
<script type="text/javascript" src="js/gif.worker.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TGVFZ65" height="0" width="0"
style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<h1> Image Splitter </h1>
<h2> A small tool to split images into square tiles, like large Discord emojis. </h2>
<table>
<tr>
<td>
<form>
<label for="file">
Upload file
</label>
<input type="file" id="file">
<em> No file selected. </em>
<label for="size">
Size of each emoji in pixels:
</label>
<input type="number" value="128" id="size">
<label for="delay">
Delay between frames in milliseconds:
</label>
<input type="number" value="10" id="delay">
<label for="prefix">
Prefix for the image files:
</label>
<input type="text" id="prefix" placeholder="Prefix...">
<label for="shrink">
Shrink image to fit one server?
<i class="fas fa-check"></i>
<i class="fas fa-times"></i>
</label>
<input type="checkbox" id="shrink">
<input type="submit" value="Split" id="submit">
</form>
</td>
<td id="preview">
Preview:
<div></div>
</td>
<td>
<a> Download </a>
<strong></strong>
<p></p>
</td>
</tr>
<tr>
<td>
<h4> Copy this to display the emojis after you've finished uploading them. </h4>
<h4> This will be included as a text file in the downloaded zip file. </h4>
<textarea readonly></textarea>
</td>
</tr>
</table>
<div id="footer">
<h1>
Image Splitter v1.3.1.
Created by
<a href="https://ruyili.ca">Ruyi Li</a>.
</h1>
<h2>
This project is open source! Click
<a href="https://github.com/RuyiLi/image-splitter">here</a>
to view the repository.
</h2>
</div>
</body>