-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
102 lines (95 loc) · 4.82 KB
/
index.html
File metadata and controls
102 lines (95 loc) · 4.82 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
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
<!--
AUTHOR: Ryan Conklin
DATE: 4/29/2016
COURSE: CIT414
DESCRIPTION: A project made to demonstrate the capabilities of WebGL through an interactive molecule exploration application.
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">
<title>Interactive Molecules</title>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet" />
<link href="css/chem_styles.css" rel="stylesheet" />
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">WebGL Chem</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<!-- <li class="active"><a href="#">Link</a></li>-->
<li class="dropdown">
<a href="#" id="detailDropdown" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Details<span class="caret"></span></a>
<ul class="dropdown-menu">
<li>
<div class="details">
<label for="moleculeMakeup">Composition: </label>
<span id="moleculeMakeup"></span>
<br>
<label for="atomDescription">Info:</label>
<div style="overflow-Y:scroll;height: 10em;padding: 0 20px;">
<p id="atomDescription"></p>
<a href="#" id="atomReadMoreLink" target="new">Read More...</a>
</div>
<br>
</div>
</li>
</ul>
</li>
</ul>
<form class="navbar-form navbar-left">
<select id="moleculeSelect"></select>
</form>
<ul class="nav navbar-nav navbar-right">
<!--<li><a href="#">Link</a></li>-->
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Options <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a><input id="autoRotate" type="checkbox" checked /> <label for="autoRotate">Auto-Rotate</label></a></li>
<!--<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li role="separator" class="divider"></li>
<li><a href="#">Separated link</a></li>-->
</ul>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container-fluid -->
</nav>
<div id="output">Loading...</div>
<script type="text/javascript" src="js/jquery2.2.0.min.js"></script>
<script src="js/bootstrap.min.js" type="text/javascript"></script>
<script type="text/javascript" src="js/three/three.js"></script>
<!-- <script type="text/javascript" src="js/three/TrackballControls.js"></script> -->
<script type="text/javascript" src="js/threex/dynamictexture.js"></script>
<!-- Javascript code that runs our Three.js -->
<script type="text/javascript" src="js/main.min.js"></script>
<script>
$('li.dropdown').on({
"shown.bs.dropdown": function() { this.close = false; },
"click": function() { this.close = true; },
"hide.bs.dropdown": function() { return this.close; }
});
</script>
</body>
</html>