-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
61 lines (56 loc) · 2.93 KB
/
index.html
File metadata and controls
61 lines (56 loc) · 2.93 KB
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
<html>
<head>
<title>Frame Fitter</title>
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/styles.css">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js" integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU=" crossorigin="anonymous"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui-touch-punch/0.2.3/jquery.ui.touch-punch.min.js"></script>
<script defer src="https://use.fontawesome.com/releases/v5.0.1/js/all.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div class="row ribbon">
Frame Fitter
</div>
<div class="container">
<div class="row">
<div class="col-12 d-flex justify-content-center">
<canvas id="canvas" width="300" height="300"></canvas>
</div>
</div>
<div class="row">
<div class="col-12 d-flex justify-content-center">
<input id="photoInput" type="file" accept="image/*" onchange="uploadPic()" style="display:none">
<button id="btnphoto" class="btn btn-info" onclick="document.getElementById('photoInput').click();">Select File</button>
</div>
</div>
<div class="row d-flex justify-content-center">
<div class="col-12 d-flex justify-content-center">
Zoom
</div>
<div class="col-8">
<div id="slider"></div>
</div>
</div>
<div class="row">
<div class="col-12 d-flex justify-content-center">
<button class="btn btn-info" onclick="rotation-=1; rotateImage()"><i class="fa fa-undo"></i></button>
<button class="btn btn-info" onclick="rotation+=1; rotateImage()"><i class="fa fa-redo"></i></button>
</div>
</div>
<div class="row">
<div class="col-12 d-flex justify-content-center">
<button id="btnsave" class="btn btn-warning" onclick="saveImage()">Save</button>
</div>
</div>
<script src="js/FileSaver.js"></script>
<script src="js/fitter.js"></script>
</body>
</html>