-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
89 lines (75 loc) · 2.96 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
<!doctype html>
<html id="html">
<head>
<title>Pixel Sort</title>
<link rel="stylesheet" type="text/css" href="vendor/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="vendor/back-to-top/css/style.css">
<link rel="stylesheet" type="text/css" href="vendor/slick/slick.css">
<link rel="stylesheet" type="text/css" href="vendor/slick/slick-theme.css">
<link rel="stylesheet" type="text/css" href="styles/style.css">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300' rel='stylesheet' type='text/css'>
<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-39816128-3', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<header>
<h1>Pixel Sorter</h1>
<h2>Upload an image and pixel sort it into glitched artwork</h2>
</header>
<section>
<div class="instructions">
<h2>Drag and drop or choose an image to sort! For larger images wait a couple seconds for it to load. Change the parameters to create glitched art!</h2>
<div id="params">
<input type="file" id="upload">
<p>sort direction
<select id="direction">
<option selected value="0">horizontal</option>
<option value="1">vertical</option>
</select>
</p>
<p>mode
<select id="mode">
<option selected value="0">black</option>
<option value="2">white</option>
<option value="1">brightness</option>
</select>
</p>
</div>
</div>
</section>
<div class="parallax-window" data-parallax="scroll" data-image-src="img/space.jpg" style="height: 300px"></div>
<section>
<h2>Submit your artwork to be added to the gallery!</h2>
<div class="gallery">
<div class="images"></div>
</div>
</section>
<div class="parallax-window" data-parallax="scroll" data-image-src="img/space.jpg" style="height: 300px;"></div>
<section class="sortedImages">
<h2>Your Sorted Image Appears Here:</h2>
</section>
<a href="#0" class="cd-top">Top</a>
<footer>
<p><a href="http://github.com/baumant/pixelsorter">View on Github</a> - <a href="../">Contact</a></p>
</footer>
<div id="load">SORTING...</div>
</body>
<script type="text/javascript" src="vendor/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="vendor/upload.js"></script>
<script type="text/javascript" src="vendor/parallax.min.js"></script>
<script type="text/javascript" src="vendor/back-to-top/js/main.js"></script>
<script type="text/javascript" src="vendor/slick/slick.js"></script>
<script type="text/javascript" src="gallery.js"></script>
<script type="text/javascript" src="sortpixels.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.sortedImages').css('height', '300px');
});
</script>
</html>