-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
174 lines (148 loc) · 8.59 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Document</title>
<meta http-equiv="x-ua-compatible" content="IE=edge">
<link href='//fonts.googleapis.com/css?family=Lato:300,400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<header id="header" class="header">
<p class="header-before">Before</p>
<img src="img/bg.jpg" alt="" class="header-img">
<p class="header-after">After</p>
<div class="header-intro">
<h1 class="header-title">Online pre-set photo filters</h1>
<a href="#editor-section" id="toEditor" class="btn btn-primary">Get Started</a>
</div>
</header>
<section id="editor-section" class="editor-section">
<div class="photo-section">
<div class="photo-wrapper">
<div class="canvas-wrapper">
<label for="canvas-upload">
<p class="upload-text">Upload Photo</small></p>
<canvas id="canvas" class="canvas" width="854" height="480"></canvas>
<input type="file" id="canvas-upload" class="file-upload">
</label>
</div>
<p class="filename-text"><input type="text" id="filename" class="input" value="your-photo-filtered" style="width: 209px">.jpg<span id="measureText"></span></p>
<p>
<input type="number" id="changeWidth" class="input" min="10" max="4000" value="0">×<input type="number" id="changeHeight" class="input" min="10" max="4000" value="0"><button id="btnWidth" class="btn btn-secondary btn-small">Resize</button><br>
<a class="btn btn-download">Download</a>
</p>
</div>
</div>
<div id="editorSidebar" class="editor-sidebar">
<button class="btn-collapse btn-collapse-filters"><span class="arrow-small arrow-down"></span><h3 class="sidebar-title">Filters</h3></button>
<div class="effects-wrapper filters-wrapper">
<button class="btn btn-secondary btn-scroll" data-up="chooseFilter" disabled><span class="up-arrow"></span></button>
<form id="chooseFilter" class="effects-group" data-scroll="0">
<input type="radio" value="default" name="pickfilter" id="filter-default" class="radio-effect" checked>
<label class="effect-preview" for="filter-default">
<img src="img/default.jpg" alt="No filter">
<div class="effect-name">No filter</div>
</label>
<input type="radio" value="filter1" name="pickfilter" id="filter1" class="radio-effect">
<label class="effect-preview" for="filter1">
<img src="img/filter1.jpg" alt="Filter 1">
<div class="effect-name">Boost</div>
</label>
<input type="radio" value="filter2" name="pickfilter" id="filter2" class="radio-effect">
<label class="effect-preview" for="filter2">
<img src="img/filter2.jpg" alt="Filter 2">
<div class="effect-name">B & W</div>
</label>
<input type="radio" value="filter3" name="pickfilter" id="filter3" class="radio-effect">
<label class="effect-preview" for="filter3">
<img src="img/filter3.jpg" alt="Filter 3">
<div class="effect-name">Soft Boost</div>
</label>
<input type="radio" value="filter4" name="pickfilter" id="filter4" class="radio-effect">
<label class="effect-preview" for="filter4">
<img src="img/filter4.jpg" alt="Filter 4">
<div class="effect-name">Vintage</div>
</label>
<input type="radio" value="filter5" name="pickfilter" id="filter5" class="radio-effect">
<label class="effect-preview" for="filter5">
<img src="img/filter5.jpg" alt="Filter 5">
<div class="effect-name">Red</div>
</label>
<input type="radio" value="filter6" name="pickfilter" id="filter6" class="radio-effect">
<label class="effect-preview" for="filter6">
<img src="img/filter6.jpg" alt="Filter 6">
<div class="effect-name">Blue</div>
</label>
<input type="radio" value="filter7" name="pickfilter" id="filter7" class="radio-effect">
<label class="effect-preview" for="filter7">
<img src="img/filter7.jpg" alt="Filter 7">
<div class="effect-name">Green</div>
</label>
<input type="radio" value="filter8" name="pickfilter" id="filter8" class="radio-effect">
<label class="effect-preview" for="filter8">
<img src="img/filter8.jpg" alt="Filter 8">
<div class="effect-name">Subdued</div>
</label>
</form>
<button class="btn btn-secondary btn-scroll" data-down="chooseFilter"><span class="down-arrow"></span></button>
</div>
<button class="btn-collapse btn-collapse-borders"><span class="arrow-small"></span><h3 class="sidebar-title">Borders</h3></button>
<div class="effects-wrapper borders-wrapper hidden">
<button class="btn btn-secondary btn-scroll" data-up="chooseBorder" disabled><span class="up-arrow"></span></button>
<form id="chooseBorder" class="effects-group" data-scroll="0">
<input type="radio" value="default" name="pickborder" id="border-default" class="radio-effect" checked>
<label class="effect-preview" for="border-default">
<img src="img/default.jpg" alt="No border">
<div class="effect-name">No border</div>
</label>
<input type="radio" value="border1" name="pickborder" id="border1" class="radio-effect">
<label class="effect-preview" for="border1">
<img src="img/border1.jpg" alt="Border 1">
<div class="effect-name">White border</div>
</label>
<input type="radio" value="border2" name="pickborder" id="border2" class="radio-effect">
<label class="effect-preview" for="border2">
<img src="img/border2.jpg" alt="Border 2">
<div class="effect-name">White border 2</div>
</label>
<input type="radio" value="border3" name="pickborder" id="border3" class="radio-effect">
<label class="effect-preview" for="border3">
<img src="img/border3.jpg" alt="Border 3">
<div class="effect-name">Vignette</div>
</label>
<input type="radio" value="border4" name="pickborder" id="border4" class="radio-effect">
<label class="effect-preview" for="border4">
<img src="img/border4.jpg" alt="Border 4">
<div class="effect-name">Movie bars</div>
</label>
<input type="radio" value="border5" name="pickborder" id="border5" class="radio-effect">
<label class="effect-preview" for="border5">
<img src="img/border5.jpg" alt="Border 5">
<div class="effect-name">Zig-zag</div>
</label>
</form>
<button class="btn btn-secondary btn-scroll" data-down="chooseBorder"><span class="down-arrow"></span></button>
</div>
<p class="upload-container">
<label class="btn btn-secondary btn-upload">
<input type="file" id="sidebar-upload" class="file-upload">
Upload image
</label>
<br><small>Don't forget to download your image</small>
</p>
</div>
</section>
<footer class="footer">Made as an HTML5, canvas, and JavaScript learning project by <a href="http://twitter.com/gianab">Giana Blantin</a>. Header photo from <a href="http://gratisography.com/">Gratisography</a>. Background pattern from <a href="http://subtlepatterns.com/">Subtle Patterns</a>.</footer>
<script src="js/scripts.js"></script>
<script src="js/filters.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-64758862-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>