-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
128 lines (122 loc) · 3.75 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>We Have A Filter For That</title>
<meta name="description" content="A cool thing made with Glitch" />
<link
id="favicon"
rel="icon"
href="https://glitch.com/edit/favicon-app.ico"
type="image/x-icon"
/>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- import the webpage's stylesheet -->
<link rel="stylesheet" href="/style.css" />
<!-- import the webpage's client-side javascript file -->
<script src="/client.js" defer></script>
</head>
<body>
<header>
<div class="row">
<h1>
We Have A Filter For That
</h1>
<p>
Share your support for Elizabeth Warren by making your social media
pics Liberty Green!
</p>
</div>
</header>
<main>
<div class="row">
<div
class="image-preview-container"
id="image-preview-container"
style="display:none;"
>
<canvas
id="myCanvas"
class="image-preview mar-bottom"
width="400"
height="400"
></canvas>
<div class="form-row mar-bottom_lg">
<div class="form-row-range">
<label for="contrast" class="range-label">Adjust Contrast</label>
<input
type="range"
min="0"
max="2"
value="1.2"
step="0.1"
id="contrast"
/>
</div>
<div class="form-row-range">
<label for="brightness" class="range-label"
>Adjust Brightness</label
>
<input
type="range"
min="-128"
max="128"
value="0"
step="1"
id="brightness"
/>
</div>
</div>
<p id="save-text" class="mar-bottom_lg">
<a href="#" id="screencap-btn">Save your photo</a>
</p>
</div>
</div>
<div class="row">
<button id="upload-btn" class="upload-btn mar-bottom_lg">
Upload your photo
</button>
<input
type="file"
accept="image/jpeg, image/png"
name="image"
id="image-file"
class="image-file-input"
onchange="loadFile(event)"
/>
</div>
</main>
<footer>
<div class="row">
<p>
💸Donate to Elizabeth Warren's
<a href="https://secure.actblue.com/donate/web-homepage-q4"
>campaign</a
>.
</p>
<p>
🇺🇸And make sure you're
<a href="https://vote.gov/">registered to vote</a>.
</p>
<p>
💡 Idea by <a href="https://twitter.com/nickoneill">Nick O'Neill</a> & <a href="https://twitter.com/syntheticmethod">Rebecca Kaufman</a>.
</p>
<p>
💻 Code by <a href="https://twitter.com/steph_monette">Steph Monette</a> & <a href="https://glitch.com/@potch">Potch</a>.
</p>
<p>
🎏 Built with Glitch! See the
<a href="https://glitch.com/edit/#!/libertygreen">source code</a>.
</p>
<p>
We do not store your image. (So make sure you save it now!)
</p>
</div>
</footer>
<!-- include the Glitch button to show what the webpage is about and
to make it easier for folks to view source and remix -->
<div class="glitchButton" style="position:fixed;top:20px;right:20px;"></div>
<script src="https://button.glitch.me/button.js"></script>
</body>
</html>