-
Notifications
You must be signed in to change notification settings - Fork 196
/
index.html
66 lines (65 loc) · 2.74 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset='utf-8'>
<meta name="viewport" content="width=800">
<title>J I C - a Javascript Image Compressor</title>
<!-- JQUERY UI DEPENDENCIES FOR SLIDER -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script src="http://code.jquery.com/ui/1.8.18/jquery-ui.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.8.18/themes/base/jquery-ui.css" type="text/css" media="all"/>
<link rel="stylesheet" href="http://static.jquery.com/ui/css/demo-docs-theme/ui.theme.css" type="text/css" media="all"/>
<!-- BOOTSTRAP CSS STYLES FOR GOOD LOOKING -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-responsive.min.css">
<!-- DEMO CUSTOM STYLES -->
<link rel="stylesheet" href="css/demo.css">
<!-- HERE IS THE MAGIC ... -->
<script src="js/JIC.js" type="text/javascript"></script>
<script src="js/demo.js" type="text/javascript"></script>
</head>
<body>
<a href="https://github.com/brunobar79/J-I-C"><img id='github_widget' src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" /></a>
<section id="wrapper">
<header>
<h1>J I C - a Javascript Image Compressor</h1>
<span class='slogan'>A simple HTML5 Canvas & File API demo <font>(no additional libraries required!)</font></span>
</header>
<article id='article'>
<div class='holder' id="holder">
<div id='holder_helper'>
<h2 id="holder_helper_title">Drag & Drop your Image here!</h2>
</div>
<img id="source_image" class='img_container'/>
</div>
<div class='holder' id='holder_result'>
<img id="result_image" class='img_container' />
</div>
<div class='clear'></div>
<div class='col' id='left-col'>
<fieldset>
<legend>Compressor settings</legend>
<div id="slider-range-min"></div>
<div id='controls-wrapper'>
Compression ratio : <input id="jpeg_encode_quality" size='3' readonly='true' type="text" value="30"/> %
<div id='buttons-wrapper'>
<a class='btn btn-large btn-primary' id="jpeg_encode_button">Compress</a>
<a class='btn btn-large btn-success' id="jpeg_upload_button">Upload</a>
</div>
</div>
</fieldset>
</div>
<div class='col' id='right-col'>
<fieldset>
<legend>Console output</legend>
<div id='console_out'></div>
</fieldset>
</div>
<div class='clear'></div>
</article>
<footer>
Created by <a id="built" href="http://twitter.com/brunobar79">@brunobar79</a>
</footer>
</section>
</body>
</html>