-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
77 lines (73 loc) · 3.61 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
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Image Resizing with Canvas</title>
<meta name="description" content="Learn how to resize images using JavaScript and the HTML5 Canvas element using controls, commonly seen in photo editing applications." />
<meta name="keywords" content="canvas, javascript, HTML5, resizing, images" />
<meta name="author" content="Codrops" />
<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" type="text/css" href="css/normalize.css" />
<link rel="stylesheet" type="text/css" href="css/demo.css" />
<link rel="stylesheet" type="text/css" href="css/component.css" />
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/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" />
</head>
<body>
<div class="container">
<div class="content">
<br />
<div class="warning">
</div>
<div class="component">
<div class="overlay pointer-events-none">
<div class="overlay-inner">
</div>
</div>
<img class="resize-image" src="img/image.jpg" alt="image for resizing">
</div>
<div class="control-panal">
<div>
<input type="button" value="Fit Width" id="fitWidth" class="bt" data-width="300" />
<input type="button" value="Fit Height" id="fitHeight" class="bt" data-height="200" />
<input id="reset" type="button" class="bt" value="Reset" />
<hr />
<div id="slide_panel">
<div id="slider"></div>
<span style="margin-bottom:70px;" class="slide_desc">Make bigger</span>
<span style="margin-bottom:70px;" class="slide_desc">Resize photo</span>
<span style="" class="slide_desc">Make bigger</span>
<!-- <input type="text" id="slider_value" style="border:0; color:#f6931f; font-weight:bold;" /> -->
</div>
<div class="clearfix"></div>
<br />
<label style="margin-top:10px;">
<input type="checkbox" id="freesplacement" /> Free Placement
</label>
<hr />
<button id="clockwise" class="bt">Rotate right</button>
<button id="counterclockwise" class="bt">Rotate left</button>
<!--<span><input type="checkbox" /> Free space</span>-->
<hr />
<input type="button" value="Submit" id="submitCrop" class="bt" />
<input type="button" value="Cancle" class="bt" />
</div>
</div>
</div>
</div>
<script src="js/jquery-2.1.1.min.js"></script>
<script src="https://code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script>
<script src="js/component.js"></script>
<script type="text/javascript">
$(function () {
// Kick everything off with the target image
$.resizeableImage($('.resize-image')).init();
});
</script>
</body>
</html>