| 1 |
<!-- |
| 2 |
Responsive web interface for expEYES Junior connected to server |
| 3 |
Copyright 2016, Authors : Rakesh K M([email protected]), Manoj.S.Nair([email protected]), Jishnu R([email protected]) [Amrita School of Engineering, Amritapuri Campus, Kollam 690525, Kerala] |
| 4 |
License : GNU GPL version 3 |
| 5 |
--> |
| 6 |
<!DOCTYPE html> |
| 7 |
<html lang="en"> |
| 8 |
<head> |
| 9 |
<meta charset="utf-8"> |
| 10 |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| 11 |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
| 12 |
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> |
| 13 |
<meta name="description" content="expEYES Web Interface by JARMS"> |
| 14 |
<meta name="author" content="JARMS 2016"> |
| 15 |
<link rel="icon" href="images/favicon.ico"> |
| 16 |
<title>expEYES | Control Panel</title> |
| 17 |
<!-- Bootstrap core CSS --> |
| 18 |
<link href="css/bootstrap.custom.css" rel="stylesheet"> |
| 19 |
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug --> |
| 20 |
<link href="css/ie10-viewport-bug-workaround.css" rel="stylesheet"> |
| 21 |
<!-- Custom styles for this page --> |
| 22 |
<link href="css/jumbotron-narrow.css" rel="stylesheet"> |
| 23 |
<script src="/javascript/jquery/jquery.min.js"></script> |
| 24 |
<script src="/javascript/bootstrap5/js/bootstrap.min.js"></script> |
| 25 |
<script src="js/ie-emulation-modes-warning.js"></script> |
| 26 |
<!-- CDN Files--> |
| 27 |
<!--<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> |
| 28 |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> |
| 29 |
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>--> |
| 30 |
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> |
| 31 |
<!--[if lt IE 9]> |
| 32 |
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> |
| 33 |
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> |
| 34 |
<![endif]--> |
| 35 |
</head> |
| 36 |
<body> |
| 37 |
<script type="text/javascript"> |
| 38 |
$(document).ready(function(){ |
| 39 |
$("#start").click(function(){ |
| 40 |
dataType: 'json'; |
| 41 |
$.post('/cgi-bin/expeyes_status.cgi', |
| 42 |
function(data){ |
| 43 |
if (isNaN(data.a1)||isNaN(data.a2)||isNaN(data.in1)||isNaN(data.in2)){ |
| 44 |
alert(data.a2) |
| 45 |
} |
| 46 |
$('.A1').text(data.a1); |
| 47 |
$('.A2').text(data.a2); |
| 48 |
$('.IN1').text(data.in1); |
| 49 |
$('.IN2').text(data.in2); |
| 50 |
$('#status').text("expEYES : Connected"); |
| 51 |
}); |
| 52 |
}); |
| 53 |
}); |
| 54 |
$(document).ready(function(){ |
| 55 |
$("#submit").click(function(){ |
| 56 |
$.post('/cgi-bin/expeyes_setoutput.cgi', |
| 57 |
{pvs: $('#pvs').val(), |
| 58 |
od1: $('#od1').val(), |
| 59 |
sqr1: $('#sqr1').val(), |
| 60 |
sqr2: $('#sqr2').val() |
| 61 |
} ); |
| 62 |
}); |
| 63 |
}); |
| 64 |
</script> |
| 65 |
<div class="container"> |
| 66 |
<!-- Nav Menu --> |
| 67 |
<div class="header clearfix"> |
| 68 |
<nav> |
| 69 |
<ul class="nav nav-pills pull-right"> |
| 70 |
<li role="presentation"><a href="http://school.example.com">Home</a></li> |
| 71 |
<li role="presentation" class="active"><a href="#">Experiments</a></li> |
| 72 |
<li role="presentation"><a href="#">Account</a></li> |
| 73 |
<li role="presentation"><a href="#">Logout</a></li> |
| 74 |
</ul> |
| 75 |
</nav> |
| 76 |
<!-- Page Heading --> |
| 77 |
<h3 class="page-header"><strong>Amrita AutoDAQ 2016</strong></h3> |
| 78 |
</div> |
| 79 |
<!-- Experiment Section --> |
| 80 |
<div class="exp_info"> |
| 81 |
<h2 class="text-center">expEYES Junior</br> |
| 82 |
<small class="text-center">Experiments for Young Engineers and Scientists</small></h2></br> |
| 83 |
<p class="text-center"> This is a dashboard for controlling expEYES connected to the server.</p> |
| 84 |
</div> |
| 85 |
<div class="jumbotron"> |
| 86 |
<div class="container"> |
| 87 |
<!-- Video Feed Section --> |
| 88 |
<div class="row"> |
| 89 |
<div class="col-md-6"> |
| 90 |
<div class="row"> |
| 91 |
<div class="panel-heading"><h4 id="status">expEYES : Disconnected</h4></div> |
| 92 |
<div id="expeyes_pic" class="col-md-12" style="width:auto"> |
| 93 |
<img src="images/expeyes.png" alt="expeyes" class="img-rounded col-md-12 col-sd-12 col-xs-12 center-block"> |
| 94 |
</div> |
| 95 |
</div> |
| 96 |
</br> |
| 97 |
<div class="col-md-12"> |
| 98 |
<div class="row center-block"> |
| 99 |
<button id="start" class="btn center-block btn-success">Request Status</button> |
| 100 |
</div> |
| 101 |
</div> |
| 102 |
</div> |
| 103 |
</br> |
| 104 |
<!-- Experiment Control Panel --> |
| 105 |
<div class="col-md-6"> |
| 106 |
<div class="row"> |
| 107 |
<div class="panel panel-default"> |
| 108 |
<div class="panel-heading"><h4>Input Pins : Status</h4></div> |
| 109 |
<div class="panel-body" style="text-align:center"> |
| 110 |
<div class="col-md-12"><small><strong>A1 : </strong></small><span class="A1">0.0000</span> V</div> |
| 111 |
<div class="col-md-12"><small><strong>A2 : </strong></small><span class="A2">0.0000</span> V</div> |
| 112 |
<div class="col-md-12"><small><strong>IN1 : </strong></small><span class="IN1">0.0000</span> V</div> |
| 113 |
<div class="col-md-12"><small><strong>IN2 : </strong></small><span class="IN2">0.0000</span> V</div> |
| 114 |
</div> |
| 115 |
</div> |
| 116 |
</div> |
| 117 |
</div> |
| 118 |
<div class="col-md-6"> |
| 119 |
<div class="row"> |
| 120 |
<div class="panel panel-default"> |
| 121 |
<div class="panel-heading"> |
| 122 |
<div class="panel-title"> |
| 123 |
<h4>Set Output Pins</h4> |
| 124 |
</div> |
| 125 |
</div> |
| 126 |
<div class="panel-body"> |
| 127 |
<div class="form form-vertical"> |
| 128 |
<div class="control-group col-md-6"> |
| 129 |
<label>PVS</label> |
| 130 |
<div class="controls"> |
| 131 |
<input type="text" id="pvs" class="form-control" placeholder="0 to +5V"> |
| 132 |
</div> |
| 133 |
</div> |
| 134 |
<div class="control-group col-md-6"> |
| 135 |
<label>OD1</label> |
| 136 |
<div class="controls"> |
| 137 |
<select id="od1" class="form-control"><option>0</option><option>1</option></select> |
| 138 |
</div> |
| 139 |
</div> |
| 140 |
<div class="control-group col-md-6"> |
| 141 |
<label>SQR1</label> |
| 142 |
<div class="controls"> |
| 143 |
<input type="text" id="sqr1" class="form-control" placeholder="0.7-100k Hz" style="padding:6px 10px"> |
| 144 |
</div> |
| 145 |
</div> |
| 146 |
<div class="control-group col-md-6"> |
| 147 |
<label>SQR2</label> |
| 148 |
<div class="controls"> |
| 149 |
<input type="text" id="sqr2" class="form-control" placeholder="0.7-100k Hz" style="padding:6px 10px"> |
| 150 |
</div> |
| 151 |
</div> |
| 152 |
<div class="control-group"> |
| 153 |
<label> </label> |
| 154 |
<div class="controls"> |
| 155 |
<button type="submit" id="submit" class="btn btn-primary"> |
| 156 |
Submit |
| 157 |
</button> |
| 158 |
</div> |
| 159 |
</div> |
| 160 |
</div> |
| 161 |
</div><!--/panel content--> |
| 162 |
</div> |
| 163 |
</div><!--/panel--> |
| 164 |
</div> |
| 165 |
</div> |
| 166 |
</div> |
| 167 |
</div> |
| 168 |
<!-- About Us Modal content--> |
| 169 |
<div id="about_us" class="modal fade" role="dialog"> |
| 170 |
<div class="modal-dialog modal-lg"> |
| 171 |
<div class="modal-content"> |
| 172 |
<div class="modal-header"> |
| 173 |
<button type="button" class="close" data-dismiss="modal">×</button> |
| 174 |
<h4 class="modal-title text-center">Amrita AutoDAQ 2016</h4> |
| 175 |
</div> |
| 176 |
<div class="modal-body col-md-12"> |
| 177 |
<h4 class="text-center"><strong>Team</strong></h4> |
| 178 |
<div class="col-md-6"> |
| 179 |
<p class="text-center">Abhijith</p> |
| 180 |
<p class="text-center">Jishnu</p> |
| 181 |
<p class="text-center">Manoj</p> |
| 182 |
<p class="text-center">Rakesh</p> |
| 183 |
<p class="text-center">Sucheth</p> |
| 184 |
<p class="text-center">Gayathri Narayanan</p> |
| 185 |
</div> |
| 186 |
<div class="col-md-6"> |
| 187 |
<p class="text-center">Anand Ramachandran</p> |
| 188 |
<p class="text-center">Ullas Ramanadhan</p> |
| 189 |
</div> |
| 190 |
<div class="col-md-12"> |
| 191 |
<div class="col-md-6"> |
| 192 |
<p class="text-center" style="font-size:12px"> |
| 193 |
<strong>Department of Electronics and Communication Engineering.</strong></p> |
| 194 |
</div> |
| 195 |
<div class="col-md-6"> |
| 196 |
<p class="text-center" style="font-size:12px"> |
| 197 |
<strong>Amrita Center for Wireless Networks and Applications.</strong></p> |
| 198 |
</div> |
| 199 |
<div class="col-md-12" style="font-size:14px"> |
| 200 |
<p class="text-center"><strong>Amrita Vishwa Vidyapeetham</br>Amritapuri Campus</strong></p> |
| 201 |
<p class="text-center">Contact : <a href="mailto:[email protected]">[email protected]</a></p> |
| 202 |
</div> |
| 203 |
</div> |
| 204 |
</div> |
| 205 |
<!-- Footer content--> |
| 206 |
<div class="modal-footer"> |
| 207 |
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button> |
| 208 |
</div> |
| 209 |
</div> |
| 210 |
</div> |
| 211 |
</div> |
| 212 |
<footer class="footer"> |
| 213 |
<p data-toggle="modal" data-target="#about_us">Made with love by JARMS | Amrita Vishwa Vidyapeetham<span class=pull-right><?php echo 'Server :'.$_SERVER{'SERVER_NAME'}.' | '.'Client :'.$_SERVER['REMOTE_ADDR'];?><span></p> |
| 214 |
</footer> |
| 215 |
</div> |
| 216 |
<!-- container --> |
| 217 |
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug --> |
| 218 |
<script src="js/ie10-viewport-bug-workaround.js"></script> |
| 219 |
</body> |
| 220 |
</html> |