-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
210 lines (198 loc) · 9.23 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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>News Meme Generator</title>
<link href="https://fonts.googleapis.com/css?family=IBM+Plex+Sans:400,500,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=IBM+Plex+Serif" rel="stylesheet">
<link rel="stylesheet" href="style/master.css">
</head>
<script type="text/javascript" src="https://raw.github.com/eligrey/BlobBuilder.js/master/BlobBuilder.min.js"></script>
<script type="text/javascript" src="https://raw.github.com/eligrey/canvas-toBlob.js/master/canvas-toBlob.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="js/config.js"></script>
<script src="js/functions.js"></script>
<script src="js/main.js"></script>
<body onload="onload();">
<div class="container">
<div class="left">
<header>
<div class="title">
<div class="name">
News Meme Generator
</div>
<div class="info">
<div class="author">
Made by Mark Spurgeon <br/>
</div>
<div class="version">
⚙️ Version 1.3 - 06/04/2019
</div>
</div>
</div>
</header>
<div class="importance 1">
<h2>Link </h2>
<div class="box">
<p>Copy and paste the article link in here (though it works without a link too) 👇 </p>
<input type="text" id="url" name="url" placeholder="URL (you don't have to though)" />
</div>
<div class="box">
<p>Choose the best suited format for your image</p>
<select class="" name="format" id="format" style="margin-left:24px">
<option value="instagram-feed" default>Instagram Square (1280x1280px)</option>
<option value="instagram-story">Instagram Story (1080x1920px)</option>
<option value="twitter-feed">Twitter Feed (1024x512px)</option>
<option value="facebook-feed">Facebook Feed (1200x630px)</option>
<option value="youtube-thumbnail">Youtube Thumbnail (1280x720px)</option>
</select>
</div>
</div>
<div class="importance two">
<h2>Background image </h2>
<div class="box">
<input type="checkbox" id="showWatermark" name="showWatermark" checked><label for="showWatermark"> Show the watermark</label></br>
</div>
<div class="box">
<input type="file" id="customBackgroundImage" name="customBackgroundImage" accept="image/png, image/jpeg" >
</div>
</div>
<div class="importance two">
<h2>Kicker </h2>
<div class="box">
<input type="checkbox" id="showKicker" name="showKicker" checked><label for="showKicker"> Show the <i>kicker</i></label></br>
</div>
<div class="box">
Set the <i>kicker's</i> text : <input type="text" id="customKicker" name="customKicker" placeholder="Breaking News" />
</div>
</div>
<div class="importance two">
<h2>Headline </h2>
<div class="box">
Custom text colour : <input class="color-change" type="text" id="customHeadlineColor" name="customHeadlineColor" placeholder="#ffffff" />
Background colour: <input class="color-change" type="text" id="customHeadlineBackground" name="customHeadlineBackground" placeholder="rgba(10,10,0,0.5)" />
</div>
<div class="box">
Set the title : <input type="text" id="customHeadline" name="customHeadline" placeholder="10 things about stuff" />
</div>
</div>
<div class="importance two">
<h2>Author</h2>
<div class="box">
<input type="checkbox" id="showAuthor" name="showAuthor" checked><label for="showAuthor"> Show the author's face</label></br>
</div>
<div class="box">
Set new author:
<input type="text" id="customAuthorName" name="customAuthorName" placeholder="James Smith" />
Set new source:
<input type="text" id="customSource" name="customSource" placeholder="topolitique.ch" />
</div>
</div>
<div class="importance three" style="padding-top:12px">
<input class="button" type="button" value=" 🤖 Generate Image" onclick="generateImage();"/>
</div>
<div class="importance two">
<div class="box">
<p> 🕥 Wait a few seconds, and the image will appear there 👉 </p>
<p>Right-click on the image, something like <code>save as...</code> should appear, and download it!!</p>
</div>
</div>
<!-- Cheat sheet : colors -->
<div class="importance two">
<h3>Colour Cheat Sheet</h3>
<div class="box">
<div class="cheat">
<div class="cheat-color" style="background-color:#C30E00"></div>
<div class="cheat-text">#C30E00</div>
<div class="cheat-name">(Topo Red)</div>
</div>
<div class="cheat">
<div class="cheat-color" style="background-color:#FFF8E1"></div>
<div class="cheat-text">#FFF8E1</div>
<div class="cheat-name">(Nice Beige)</div>
</div>
<div class="cheat">
<div class="cheat-color" style="background-color:#212121"></div>
<div class="cheat-text">#212121</div>
<div class="cheat-name">(Nice Dark)</div>
</div>
<div class="cheat">
<div class="cheat-color" style="background-color:#757575"></div>
<div class="cheat-text">#757575</div>
<div class="cheat-name">(Nice Gray)</div>
</div>
<div class="cheat">
<div class="cheat-color" style="background-color:green"></div>
<div class="cheat-text">green</div>
</div>
</div>
<div class="box">
<div class="cheat">
<div class="cheat-color" style="background-color:#4054B2"></div>
<div class="cheat-text">#4054B2</div>
<div class="cheat-name">(Pastel Blue)</div>
</div>
<div class="cheat">
<div class="cheat-color" style="background-color:#FFC857"></div>
<div class="cheat-text">#FFC857</div>
<div class="cheat-name">(Pastel Yellow)</div>
</div>
<div class="cheat">
<div class="cheat-color" style="background-color:#C5283D"></div>
<div class="cheat-text">#C5283D</div>
<div class="cheat-name">(Pastel Red)</div>
</div>
<div class="cheat">
<div class="cheat-color" style="background-color:green"></div>
<div class="cheat-text">green</div>
</div>
<div class="cheat">
<div class="cheat-color" style="background-color:green"></div>
<div class="cheat-text">green</div>
</div>
</div>
<div class="box">
<div class="cheat">
<div class="cheat-color" style="background-color:purple"></div>
<div class="cheat-text">purple</div>
</div>
<div class="cheat">
<div class="cheat-color" style="background-color:blue"></div>
<div class="cheat-text">blue</div>
</div>
<div class="cheat">
<div class="cheat-color" style="background-color:green"></div>
<div class="cheat-text">green</div>
</div>
<div class="cheat">
<div class="cheat-color" style="background-color:red"></div>
<div class="cheat-text">red</div>
</div>
<div class="cheat">
<div class="cheat-color" style="background-color:white"></div>
<div class="cheat-text">white</div>
</div>
</div>
</div>
<div class="importance three">
<h3 class="disclaimer">⚠️ Disclaimer</h3>
<div class="box">
<p class="disclaimer">
This page retrieves images from the website that you have provided. However, it does not publish or store these files, it is your responsibility to ensure that you have the right to use and modify these images.
</p>
<p class="disclaimer">
All images provided by this page (markspurgeon.com/neme/), which include overlay images, are licensed under the Creative Commons (<a href="https://creativecommons.org/licenses/by/2.0/" target="_blank">CC BY 2.0</a>) license.
</p>
</div>
</div>
</div>
<div class="right">
<div id="canvas-block">
<p style="padding:256px;padding-bottom:0px;text-align:center;"><b>Here goes the generated image :)</b><p>
<p style="padding-top:0px;padding-left:128px;padding-right:128px;text-align:center;font-size:10pt">Check out the source code at <a target="_blank" href="https://github.com/the-duck/neme">https://github.com/the-duck/neme</a> <p>
</div>
</div>
</div>
</body>
</html>