-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
120 lines (114 loc) · 4.37 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
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head>
<title>Mash Academy</title>
<script src="lib/jquery-2.1.1.js"></script>
<script src="lib/angular.js"></script>
<script src="lib/d3.js"></script>
<script src="lib/topojson.js"></script>
<script src="lib/angular-touch.js"></script>
<script src="lib/angular-slider.js"></script>
<script src="lib/moment.js"></script>
<script src="lib/velocity.js"></script>
<script src="lib/velocity.ui.js"></script>
<script src="scripts/app.js"></script>
<script src="scripts/map.js"></script>
<script src="scripts/toolbox.js"></script>
<script src="scripts/selected.js"></script>
<script src="scripts/selector.js"></script>
<script src="scripts/DataCtrl.js"></script>
<link rel="stylesheet" href="styles/style.css">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300' rel='stylesheet' type='text/css'>
</head>
<body ng-app="MashAcademy" ng-controller="MashAcademy">
<table class="top-pane">
<tr>
<td class="side-cell">
</td>
<td>
<div class="title"><img src="content/logo.png" /></div>
</td>
<td class="side-cell">
<div class="name-area">{{ studentName }}</div>
</td>
</tr>
</table>
<div class="left-pane">
<toolbox></toolbox>
<selected></selected>
</div>
<div class="right-pane" ng-controller="DataCtrl">
<div ng-style="{ width: hasControl('Time') ? '80%' : '100%' }" style="float:left;height:100%;">
<map ng-if="hasControl('Map')"></map>
</div>
<div ng-if="hasControl('Time')" style="width:20%;float:left;height:100%;">
<table style="height:100%;position:relative;margin:auto;">
<tr>
<td>
<div>
<selector value="slider.sliderValue"></selector>
</div>
</td>
</tr>
</table>
</div>
<!--<slider ng-if="hasControl('Time')" floor="{{minTime}}" ceiling="{{maxTime}}" step="86400000" ng-model="sliderValue" translate-fn="toDate"></slider>-->
</div>
<!-- Sorry, I only had time to do HTML table layout :) -->
<table class="bottom-pane">
<tr>
<td class="back-button-cell">
<table ng-if="currentQuestionIndex > 0" class="back-button selectionoff" ng-click="previousQuestion()"><tr><td>◄ Back</td></tr></table>
</td>
<td class="bottom-center-cell">
<div class="question-answer-area">
<div class="">
<p class="question">{{ currentQuestion.question }}</p>
<div class="answer-area">
<div ng-if="currentQuestion.type == 'text'">
<input class="answer-text-box" type="text" ng-model="answer" placeholder="Type answer here" style="width:350px;" />
<button class="answer-button selectionoff" ng-click="currentQuestion.marker(answer)">Check</button>
</div>
<div ng-if="currentQuestion.type == 'choice'">
<button ng-repeat="option in currentQuestion.options" class="answer-button selectionoff" ng-click="currentQuestion.marker(option)">{{ option }}</button>
</div>
<table class="error-area" ng-if="errorShowing">
<tr>
<td>Sorry, that's not right. Try again!</td>
</tr>
</table>
<table class="success-area" ng-if="currentQuestion.passed">
<tr>
<td>Yeah, that's right! Move on to the next question.</td>
</tr>
</table>
</div>
</div>
</div>
<!--<div class="answer-error-area"></div>-->
</td>
<td class="next-button-cell">
<table ng-if="currentQuestionIndex < questions.length - 1" class="next-button selectionoff" ng-click="nextQuestion()"><tr><td>Next ►</td></tr></table>
</td>
</tr>
</table>
<div class="helper" ng-if="showHelper">
<img class="helper-arrow" src="content/large-arrow.svg" />
<p class="helper-text">Click and drag data and controls into the workshop</p>
</div>
<div class="splash">
<table class="top-splash">
<tr>
<td>
<img src="content/logo.png" style="margin:-10% auto 2% auto;display:block;" />
<input class="student-text-box" type="text" ng-model="name" placeholder="Hey, please enter your name!" style="width:600px;text-align:center;" />
<button class="student-button selectionoff" ng-click="logIn(name)" ng-class="{ 'valid': name }">OK</button>
</td>
</tr>
</table>
<div class="bottom-splash">
</div>
</div>
</body>
</html>