-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
154 lines (143 loc) · 6.65 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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="keywords" content="vanishing points, puntos de fuga, concept art" />
<link rel="icon" href="images/icon.png" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous" />
<link rel="stylesheet" href="./style.css" />
<title>Puntos de fuga WEB Vanishing Points</title>
<script type="module" src="./helper.js"></script>
<script type="module" src="./script.js"></script>
</head>
<body id="body">
<!-- Image canvas & Drawing canvas-->
<canvas id="bgCanvas"></canvas>
<canvas id="canvas" tabindex="1"></canvas>
<!-- Canvas button - only for iPad -->
<div class="canvas-button" id="canvasButton">
<button class="btn" id="canvasMoveScale">
<img class="vp" id="moveScaleImg" src="./images/pinch.png" />
</button>
</div>
<!-- Toolbar-->
<div class="uicontainer-landscape d-flex justify-content-between">
<div class="btn-group" id="btn-group-h" role="group">
<button class="btn btn-dark" id="undo" disabled="true"></button>
<button class="btn btn-dark" id="redo" disabled="true"></button>
</div>
<div class="btn-group" id="btn-group-h1" role="group">
<a id="downloadLink" href="" hidden="true"></a>
<label for="loadImg" class="btn btn-info rounded-left" id="uploadImg"></label>
<input type="file" id="loadImg" accept="image/png, image/jpeg" onclick="" />
<button class="btn btn-success" id="downloadGrid"></button>
<button class="btn btn-danger" id="clearCanvas"></button>
</div>
<div class="btn-group" id="btn-group-h2" role="group">
<button class="btn btn-dark" id="settings" data-toggle="modal" data-target="#settingsModal"></button>
<button class="btn btn-primary" id="info" data-toggle="modal" data-target="#infoModal"></button>
</div>
</div>
<!-- create & manipulate VPs-->
<div class="uicontainer-portrait" id="container-v">
<div class="btn-group-vertical" id="btn-group-v" role="group">
<button class="btn btn-warning" id="createVP"></button>
<button class="btn" id="vp1">
<img class="vp" id="vp1Image" src="./images/1.png" />
</button>
<button class="btn" id="vp2">
<img class="vp" id="vp2Image" src="./images/2.png" />
</button>
<button class="btn" id="horizon">
<img class="vp" id="hImage" src="./images/H.png" />
</button>
<button class="btn" id="vp3">
<img class="vp" id="vp3Image" src="./images/3.png" />
</button>
<div class="btn-group2" id="btn-group-h3">
<button class="btn btn-dark" id="less">
<img class="icon_big" src="images/less.png" />
</button>
<button class="btn btn-dark" id="more">
<img class="icon_big" src="images/more.png" />
</button>
</div>
<button class="btn btn-danger" id="deleteVP"></button>
</div>
</div>
<!-- For VP radial lines-->
<div class="alert alert-light" id="alert" role="alert"></div>
<!-- Info Modal -->
<div class="modal fade" id="infoModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="infoModal_title"></h4>
</div>
<div class="modal-body" id="infoModal_text">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal" id="infoOkButton"></button>
</div>
</div>
</div>
</div>
<!-- Settings Modal -->
<div class="modal fade" id="settingsModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="settingsModal_title"></h4>
</div>
<div class="modal-body" id="settingsModal_text">
<p>
<div class="form-check form-check-inline" id="check1">
<input class="form-check-input" type="radio" name="settings1" id="toolsLeft" value="left">
<label class="form-check-label" for="toolsLeft" id="leftLabel"></label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="settings1" id="toolsRight" value="right">
<label class="form-check-label" for="toolsRight" id="rightLabel"></label>
</div>
</p>
<p>
<div class="form-check form-check-inline" id="check2" hidden>
<input class="form-check-input" type="radio" name="settings2" id="ifaceColor" value="colorful">
<label class="form-check-label" for="ifaceColor" id="ifaceColorLabel"></label>
</div>
<div class="form-check form-check-inline" hidden>
<input class="form-check-input" type="radio" name="settings2" id="ifaceNeutral" value="neutral">
<label class="form-check-label" for="ifaceNeutral" id="ifaceNeutralLabel"></label>
</div>
</p>
<p>
<div class="form-check form-check-inline" id="check3">
<input class="form-check-input" type="radio" name="settings3" id="colors1" value="pyb">
<label class="form-check-label" for="colors1" id="colors1Label"></label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="settings3" id="colors2" value="rgb">
<label class="form-check-label" for="colors2" id="colors2Label"></label>
</div>
</p>
<p>
<div class="form-check form-check-inline" id="transparencySlider">
<input type="range" id="slider" min="0" max="100">
<label for="transparencySlider" id="sliderLabel"></label>
</div>
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal" id="settingsOkButton"></button>
</div>
</div>
</div>
</div>
<!-- Include jQuery -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<!-- Include Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"></script>
</body>
</html>