Browse Source

Update 'msi.html'

Version demo del msi, aun falta por trabajar el circulo
david.ortiz11 6 years ago
parent
commit
fae6b7d55b
1 changed files with 129 additions and 134 deletions
  1. 129
    134
      msi.html

+ 129
- 134
msi.html View File

@@ -1,135 +1,130 @@
1
-<!doctype html>
2
-<html lang="en">
3
-	<head>
4
-		<!-- Required meta tags -->
5
-	    <meta charset="utf-8">
6
-	    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
7
-	    <!-- Link to CSS -->
8
-		<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
9
-		<link rel="stylesheet" type="text/css" href="css/style.css">
10
-		<title>MSI</title>
11
-		<!-- Collapse Navbar (needs some work) -->
12
-		<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
13
-  			<a class="navbar-brand" href="#"><img src="https://upload.wikimedia.org/wikipedia/en/thumb/c/c8/Francisco_Oller.jpg/220px-Francisco_Oller.jpg" width="30" height="30" class="d-inline-block align-top" alt=""> Proyecto Oller</a>
14
-  				<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
15
-    				<span class="navbar-toggler-icon"></span>
16
-  				</button>
17
-
18
-  			<div class="collapse navbar-collapse" id="navbarSupportedContent">
19
-	    		<ul class="navbar-nav mr-auto">
20
-	      			<li class="nav-item active">
21
-	        			<a class="nav-link" href="#">Home</a>
22
-	      			</li>
23
-			      	<li class="nav-item">
24
-				    	<a class="nav-link" href="#">Link</a>
25
-			      	</li>
26
-	      			<li class="nav-item dropdown">
27
-	        			<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
28
-	          			Dropdown
29
-	        			</a>
30
-	        			<div class="dropdown-menu" aria-labelledby="navbarDropdown">
31
-	          				<a class="dropdown-item" href="#">Action</a>
32
-	          				<a class="dropdown-item" href="#">Another action</a>
33
-	          				<div class="dropdown-divider"></div>
34
-	          					<a class="dropdown-item" href="#">Something else here</a>
35
-	        				</div>
36
-	      			</li>
37
-	      			<li class="nav-item">
38
-	        			<a class="nav-link disabled" href="#">Disabled</a>
39
-	      			</li>
40
-    			</ul>
41
-	    		<form class="form-inline my-2 my-lg-0">
42
-	      			<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
43
-	      			<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
44
-	    		</form>
45
-	  		</div>
46
-		</nav>
47
-
48
-	</head>
49
-	<body>
50
-	    <!-- Optional JavaScript (No se para que es esto.) -->
51
-	    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
52
-	    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
53
-	    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
54
-	    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
55
-	    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
56
-
57
-
58
-		<script type="text/javascript" src="scripts/getImages.js"></script>
59
-		
60
-
61
-	    <!-- Image Selector -->
62
-	    <div class="row" id="row">
63
-	        <nav class="col-md-1 d-none d-md-block bg-light sidebar" style="height: 100%;">
64
-          		<div class="sidebar-sticky">
65
-            		<ul class="nav flex-column">
66
-	              		<li class="nav-item">
67
-                			<a class="nav-link" href="#">
68
-                  			<span data-feather="shopping-cart"></span>
69
-                  			Home
70
-                			</a>
71
-              			</li>
72
-              			<li class="nav-item">
73
-                			<a class="nav-link" href="#">
74
-                  			<span data-feather="file"></span>
75
-                  			XRF
76
-                			</a>
77
-              			</li>
78
-              			<li class="nav-item">
79
-                			<a class="nav-link" href="#">
80
-                  			<span data-feather="file"></span>
81
-                  			FSR
82
-                			</a>
83
-              			</li>
84
-              			<li class="nav-item">
85
-							<a class="nav-link active" href="msi.html">
86
-		                  	<span data-feather="home"></span>
87
-		                  	MSI <span class="sr-only">(current)</span>
88
-                			</a>
89
-              			</li>
90
-            		</ul>
91
-          		</div>
92
-        	</nav>
93
-			<div class="col-md-9">
94
-				<div class="msi">
95
-					<div class="msi-foreground" id="1">
96
-						<img onclick="edit()" src="images/front.jpg" class="foreground" id="msi-fore"/>
97
-						<p id="fore"></p>
98
-						
99
-						<canvas id="myCanvas" width="500" height="500" style="border:1px solid #d3d3d3;">
100
-						Your browser does not support the HTML5 canvas tag.</canvas>
101
-					</div>
102
-					​
103
-
104
-					<div class="msi-background">
105
-						<img class="background" id="msi-back"/>
106
-
107
-					</div>​
108
-				</div>
109
-			</div>
110
-			<div class="col-md-2">
111
-			 	<form>
112
-					<div class="form-group">
113
-				    	<label for="foreground">Front Image</label>
114
-				    	<select class="form-control" id="foreground" onchange="getFore(this)">
115
-				    		<option></option>
116
-				      		<option>front.png</option>
117
-						    <option>back.png</option>
118
-				    	</select>
119
-				  	</div>
120
-				  	<div class="form-group">
121
-				    	<label for="background">Background Image</label>
122
-				    	<select class="form-control" id="background" onchange="getBack(this)">
123
-				    		<option></option>					
124
-				      		<option>back.png</option>
125
-						    <option>front.png</option>
126
-				    	</select>
127
-				  	</div>
128
-						<div style="height:100px; width:100px" class="back" id="back"></div>
129
-						<div style="height:100px; width:100px" class="movestatus"></div>
130
-						<div style="height:100px; width:100px" id="dimensions"></div>
131
-				</form>
132
-			</div>	
133
-		</div>
134
-	</body>
1
+<!doctype html>
2
+<html lang="en">
3
+	<head>
4
+		<!-- Required meta tags -->
5
+	    <meta charset="utf-8">
6
+	    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
7
+	    <!-- Link to CSS -->
8
+		<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
9
+		<link rel="stylesheet" type="text/css" href="style/msi.css">
10
+
11
+		<title>MSI</title>
12
+		
13
+	</head>
14
+	<body onload="paint_canvas()">
15
+	    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
16
+
17
+	    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
18
+	    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
19
+	    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
20
+	    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
21
+
22
+	    <!-- Draw the circle -->
23
+		<script type="text/javascript" src="scripts/draw-circle.js"></script>
24
+	    <!-- Image Selector -->
25
+	    <div class="row" id="row">
26
+	    	<div class="col-md-3">
27
+				<!-- Sidebar -->
28
+			    <nav id="sidebar" class="sidenav">
29
+			    	<li>
30
+			    		<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">&times;</a>
31
+			    	</li>
32
+			
33
+		   	        <li class="active">
34
+		                <a href="#XRFcolors" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">XRF</a>
35
+		                <ul class="collapse list-unstyled" id="XRFcolors">
36
+		                    <li>
37
+		                    	<a href="#">Home 1</a>
38
+		                    </li>
39
+		                    <li>
40
+		                    	<a href="#">Home 2</a>
41
+		                    </li>
42
+		                    <li>
43
+		                        <a href="#">Home 3</a>
44
+		                    </li>
45
+		                </ul>
46
+		            </li>
47
+		            <li>
48
+		                <a href="#FORScolors" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">FORS</a>
49
+		                <ul class="collapse list-unstyled" id="FORScolors">
50
+		                    <li>
51
+		                        <a href="#">Page 1</a>
52
+		                    </li>
53
+		                    <li>
54
+		                        <a href="#">Page 2</a>
55
+		                    </li>
56
+		                    <li>
57
+		                        <a href="#">Page 3</a>
58
+		                    </li>
59
+		                </ul>
60
+		            </li>
61
+		            <li>
62
+		                <a href="/MSI/msi.html">MSI</a>
63
+		            </li>  
64
+		    	</nav>
65
+
66
+		    	<span style="font-size:30px;cursor:pointer" onclick="openNav()">&#9776;</span>
67
+	    	</div>
68
+			<div class="col-md-6" style="background-color: white;">
69
+				<div class="canvas" id="pointer_div">
70
+					<canvas style="background-image: url('images/paisaje-frances-infrared.png');" id="back-canvas" width="562px" height="620px"></canvas>
71
+					<img id="oller" style="display: none;" src="images/paisaje-frances.png" width="562px" height="620px">
72
+				</div>
73
+			</div>
74
+			<div class="col-md-3">
75
+				<div class="row">
76
+					<div class="col-md-6" id="radio-form">
77
+						<p><b>Front Image:</b></p>
78
+						<div class="form-check">
79
+	  						<input onclick="front()" class="form-check-input" type="radio" name="front-radio" id="front-visual" value="visual" checked>
80
+	  						<label class="form-check-label" for="front-visual">Visual</label>
81
+						</div>
82
+						<div class="form-check">
83
+	  						<input onclick="front()" class="form-check-input" type="radio" name="front-radio" id="front-infrared" value="infrared">
84
+	  						<label class="form-check-label" for="front-infrared">Infrared</label>
85
+						</div>
86
+						<div class="form-check">
87
+	  						<input onclick="front()" class="form-check-input" type="radio" name="front-radio" id="front-ultraviolet" value="ultraviolet" disabled>
88
+	  						<label class="form-check-label" for="front-ultraviolet">Ultraviolet</label>
89
+						</div>
90
+						<div class="form-check">
91
+	  						<input onclick="front()" class="form-check-input" type="radio" name="front-radio" id="front-xray" value="x-ray" disabled>
92
+	  						<label class="form-check-label" for="front-xray">X-Ray</label>
93
+						</div>		
94
+					</div>
95
+					<div class="col-md-6" id="radio-form">
96
+						<p><b>Contrast Image:</b></p>
97
+						<div class="form-check">
98
+	  						<input onclick="back()" class="form-check-input" type="radio" name="back-radio" id="back-visual" value="visual">
99
+	  						<label class="form-check-label" for="back-visual">Visual</label>
100
+						</div>
101
+						<div class="form-check">
102
+	  						<input onclick="back()" class="form-check-input" type="radio" name="back-radio" id="back-infrared" value="infrared" checked>
103
+	  						<label class="form-check-label" for="back-infrared">Infrared</label>
104
+						</div>
105
+						<div class="form-check">
106
+	  						<input onclick="back()" class="form-check-input" type="radio" name="back-radio" id="back-ultraviolet" value="ultraviolet" disabled>
107
+	  						<label class="form-check-label" for="back-ultraviolet">Ultraviolet</label>
108
+						</div>
109
+						<div class="form-check">
110
+	  						<input onclick="back()" class="form-check-input" type="radio" name="back-radio" id="back-xray" value="x-ray" disabled>
111
+	  						<label class="form-check-label" for="back-xray">X-Ray</label>		
112
+						</div>
113
+					</div>
114
+					
115
+					<div class="col-md-12">
116
+						<button id="clear" onclick="clear_radios()" type="button" class="btn btn-dark">Clear</button>
117
+					</div>
118
+
119
+					<div class="col-md-12">
120
+						<p id="radius-paragraph"><b>Radius Controller:</b></p>
121
+						<span class="radius-span"><b>25</b></span>
122
+					  	<input onchange="change(this.value)" type="range" min="25" max="100" class="slider" id="radius"/>
123
+						<span><b>100</b></span>
124
+					</div>
125
+				</div>
126
+
127
+			</div>
128
+		</div>	
129
+	</body>
135 130
 </html>