-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex-copy.html
170 lines (167 loc) · 10.8 KB
/
index-copy.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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<!DOCTYPE html>
<html lang="en" ng-app="quiz">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap 101 Template</title>
<!-- Bootstrap -->
<!--Import Google Icon Font-->
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!--Import materialize.css-->
<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection" />
<link rel="stylesheet" type="text/css" href="fonts/roboto/Roboto-Thin.woff2">
<!--
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
-->
<link href="styles/styles.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="navbar-fixed">
<nav>
<div class="nav-wrapper"> <a href="#" class="brand-logo">Logo</a>
<ul id="nav-mobile" class="right hide-on-med-and-down">
<li><a href="sass.html">Sass</a></li>
<li><a href="badges.html">Components</a></li>
<li><a href="collapsible.html">JavaScript</a></li>
</ul>
</div>
</nav>
</div>
<div ng-controller="QuizController">
<div class="row">
<div class="col s12">
<div class="progress">
<div class="determinate" style="width: {{percentAnswered}}%;margin-top:0px;"></div>
</div>
</div>
</div>
<div class="row">
<div class="col s3" style="background:white;">
<!-- Grey navigation panel -->
<ul class="collapsible popout" data-collapsible="accordion">
<li>
<div class="collapsible-header"><i class="material-icons">filter_drama</i>First<span class="new badge" data-badge-caption=" ">{{totalQuestions-notAnswered}}/{{totalQuestions}}</span></div>
<div class="collapsible-body">
<h5 style="color:black;text-align:center;">Progress: {{(totalQuestions-notAnswered)}}/{{totalQuestions}} </h5>
<div class="row">
<div class="col s12">
<div class="progress">
<div class="determinate" style="width: {{percentAnswered}}%;margin-top:0px;"></div>
</div>
</div>
</div>
<h3 style="color:black;text-align:center;">Questions:</h3>
<p>
<input class="with-gap" type="radio" />
<label for="test3"> : Answered</label>
<input class="with-gap" type="radio" />
<label for="test3"> : Not Answered</label>
</p> <a class="btn-floating btn-small btn-outline ghost-btn" ng-repeat="question in Questions" ng-class="{'teal accent-2': question.responseStatus, 'btn-danger': !question.responseStatus}"><span class="badge" ng-click="switchQues(question.quesNo)">{{question.quesNo}}</a>
<br>
<p>
<input class="with-gap" type="radio" />
<label for="test3"> : Answered</label>
<input class="with-gap" type="radio" />
<label for="test3"> : Not Answered</label>
</p>
</div>
</li>
<li>
<div class="collapsible-header"><i class="material-icons">filter_drama</i>Second<span class="new badge" data-badge-caption=" ">{{totalQuestions-notAnswered}}/{{totalQuestions}}</span></div>
<div class="collapsible-body">
<h5 style="color:black;text-align:center;">Progress: {{(totalQuestions-notAnswered)}}/{{totalQuestions}} </h5>
<div class="row">
<div class="col s12">
<div class="progress">
<div class="determinate" style="width: {{percentAnswered}}%;margin-top:0px;"></div>
</div>
</div>
</div>
<h3 style="color:black;text-align:center;">Questions:</h3>
<p>
<input class="with-gap" type="radio" />
<label for="test3"> : Answered</label>
<input class="with-gap" type="radio" />
<label for="test3"> : Not Answered</label>
</p> <a class="btn-floating btn-small btn-outline ghost-btn" ng-repeat="question in Questions" ng-class="{'teal accent-2': question.responseStatus, 'btn-danger': !question.responseStatus}"><span class="badge" ng-click="switchQues(question.quesNo)">{{question.quesNo}}</a>
<br>
<p>
<input class="with-gap" type="radio" />
<label for="test3"> : Answered</label>
<input class="with-gap" type="radio" />
<label for="test3"> : Not Answered</label>
</p>
</div>
</li>
<li>
<div class="collapsible-header"><i class="material-icons">filter_drama</i>Third<span class="new badge" data-badge-caption=" ">{{totalQuestions-notAnswered}}/{{totalQuestions}}</span></div>
<div class="collapsible-body">
<h5 style="color:black;text-align:center;">Progress: {{(totalQuestions-notAnswered)}}/{{totalQuestions}} </h5>
<div class="row">
<div class="col s12">
<div class="progress">
<div class="determinate" style="width: {{percentAnswered}}%;margin-top:0px;"></div>
</div>
</div>
</div>
<h3 style="color:black;text-align:center;">Questions:</h3>
<p>
<input class="with-gap" type="radio" />
<label for="test3"> : Answered</label>
<input class="with-gap" type="radio" />
<label for="test3"> : Not Answered</label>
</p> <a class="btn-floating btn-small btn-outline ghost-btn" ng-repeat="question in Questions" ng-class="{'teal accent-2': question.responseStatus, 'btn-danger': !question.responseStatus}"><span class="badge" ng-click="switchQues(question.quesNo)">{{question.quesNo}}</a>
<br>
<p>
<input class="with-gap" type="radio" />
<label for="test3"> : Answered</label>
<input class="with-gap" type="radio" />
<label for="test3"> : Not Answered</label>
</p>
</div>
</li>
</ul>
<!-- <div class="ques-pallette"> </div>--></div>
<div class="col s9">
<!-- Teal page content -->
<ul class="collection with-header">
<li class="collection-header">
<h4>{{" "+(quesActive+1)+". "}}{{Questions[quesActive].detail}}</h4></li>
<li class="collection-item" ng-show="Questions[quesActive].showImage"> <img ng-src="{{Questions[quesActive].imageURL}}"> </li>
<li class="collection-item">
<p ng-repeat="option in Questions[quesActive].options" class="{{'Q'+Questions[quesActive].quesNo}}">
<input name="{{Questions[quesActive].quesNo}}" id="{{'Q'+Questions[quesActive].quesNo+'option'+$index}}" type="radio" class="with-gap {{'Q'+Questions[quesActive].quesNo}}" ng-click="markAnswer($index)" ng-checked="{{Questions[quesActive].responseStatus && Questions[quesActive].optionSelected == $index}}" />
<label for="{{'Q'+Questions[quesActive].quesNo+'option'+$index}}">{{option.optionNo+". "+option.text}}</label>
</p>
<br>
<button class="btn btn-outline btn-success" ng-disabled="!Questions[quesActive].responseStatus" ng-click="clearResponse()">Clear Response</button>
<button class="btn btn-outline btn-success" ng-click="prevQues()">Prev Question</button>
<button class="btn btn-outline btn-success" ng-click="nextQues()">Next Question</button>
<button class="btn btn-outline btn-success" ng-click="continue()" data-toggle="tooltip" data-placement="bottom" title="Continue to next Unanswered Question">Continue..</button>
</li>
</ul>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.3.7/js/tether.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.0/angular.min.js"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="js/hammer.min.js"></script>
<script type="text/javascript" src="js/materialize.min.js"></script>
<script src="js/app.js"></script>
<script src="js/Controllers/QuizService.js"></script>
<script src="js/Controllers/DataService.js"></script>
<script src="js/Controllers/QuizLoginController.js"></script>
<script src="js/Controllers/QuizController.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/2.2.0/ui-bootstrap.min.js"></script>
</body>
</html>