-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
150 lines (119 loc) · 4.95 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
<!DOCTYPE html>
<html class="ui-mobile-rendering">
<head>
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;"">
<link rel="stylesheet" href="css/jquery.mobile-1.1.1.min.css"/>
<link rel="stylesheet" href="css/jquery.jqplot.min.css"/>
<!-- Templates -->
<!-- Home Page -->
<script type="text/template" id="home">
<div data-role="header">
<h1>FLAIR</h1>
<a href="#visualisation" data-icon="gear" class="ui-btn-right">Visualisation</a>
</div>
<div data-role="content">
<% if (sites.length > 0) { %>
<h3>Choose a site:</h3>
<ul id="sites" data-role="listview">
<% _.each(sites, function(site) { %>
<li><a href="#site/<%= site.id %>"><%= site.location.name %></a></li>
<% }); %>
</ul>
<% } %>
<br/>
<a href="#" id="bootstrap" data-role="button">Load default sites</a>
</div>
</script>
<!-- Visualisation Page -->
<script type="text/template" id="visualisation">
<div data-role="header">
<a href="#" data-icon="back" class="ui-btn-left">Home</a>
<h1>Visualisation</h1>
</div>
<div data-role="content">
<!-- This will be replaced when we load the visualisations -->
<div style="text-align:center" id="visualisation-loader">
<img src="css/images/ajax-loader.png" alt="Loading..."/>
</div>
</div>
</script>
<!-- Site Page -->
<script type="text/template" id="site">
<div data-role="header">
<a href="#" data-icon="back" class="ui-btn-left">Home</a>
<h1><%= site.location.name %></h1>
</div>
<div data-role="content" id="site<%= site.id %>-content">
<h2><%= site.location.name %></h2>
<p>You need to complete the following experiments at this site:</p>
<ul id="experiments" data-role="listview">
<% _.each(site.experiments, function(experiment) { %>
<li>
<a href="#site/<%= site.id %>/experiment/<%= experiment.id %>">
<%= experiment.experimentType %>
</a>
</li>
<% }); %>
</ul>
</div>
</script>
<!-- Experiment Page -->
<script type="text/template" id="experiment">
<div data-role="header">
<a href="<%= previous %>" data-icon="back" class="ui-btn-left">Back</a>
<h1><%= experiment.experimentType %></h1>
</div>
<div data-role="content" id="<%= pageId %>-content">
<h3><%= experiment.experimentType %></h3>
<p><%= experiment.help %></p>
<div class="form">
<!-- The View JS will put the form here -->
</div>
<a href="<%= next %>" data-role="button" class="next">Next</a>
</div>
</script>
<!-- Scripts -->
<!-- Libs -->
<!-- Phonegap as required by the phonegap build service -->
<script src="phonegap.js"></script>
<script src="lib/jquery-1.7.2.min.js"></script>
<script src="app/jqm-config.js"></script>
<script src="lib/jquery.mobile-1.1.1.min.js"></script>
<script src="lib/underscore-min.js"></script>
<script src="lib/backbone-min.js"></script>
<script src="lib/backbone-relational.js"></script>
<script src="lib/backbone-forms/backbone-forms.min.js"></script>
<script src="lib/backbone-forms/editors/list.js"></script>
<script src="lib/jquery.jqplot.min.js"></script>
<!-- App -->
<!-- Global namespaced object which all of our custom functions will go into -->
<script type="text/javascript">
window.FLAIR = window.FLAIR || {};
window.FLAIR.visualisations = window.FLAIR.visualisations || {};
</script>
<!-- Custom charting function -->
<script src="app/visualisations/riverCrossSection.js"></script>
<!-- Custom templates for backbone-forms -->
<script src="app/templates/backbone-forms-jquery-mobile-templates.js"></script>
<!-- Custom Backbone.sync -->
<script src="app/custom-sync.js"></script>
<!-- Models & Collections-->
<script src="app/models/experiment.js"></script>
<script src="app/collections/experiment.js"></script>
<script src="app/models/site.js"></script>
<script src="app/collections/exercise.js"></script>
<!-- Views -->
<script src="app/views/home.js"></script>
<script src="app/views/visualisation.js"></script>
<script src="app/views/site.js"></script>
<script src="app/views/experiment.js"></script>
<!-- Router -->
<script src="app/router/router.js"></script>
<!-- Bootstrap -->
<script src="app/bootstrap.js"></script>
<!-- Main entry point -->
<script src="app/main.js"></script>
</head>
<body></body>
</html>