-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
105 lines (100 loc) · 5.18 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
<!DOCTYPE html>
<html lang="en" ng-app="turtleFacts">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Turtle Facts and Quiz</title>
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"
integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7"
crossorigin="anonymous">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container">
<div class="page-header">
<h1>1 Turtle Facts Quiz</h1>
<h3>Learn about all turtles below before you decide to take on <strong>TURTLE QUIz</strong>
</h3>
</div>
<div ng-controller="listCtrl as list" ng-hide="list.quizMetrics.quizActive">
<form class="form-inline well well-sm clearfix">
<span class="glyphicon glyphicon-search"></span>
<input type="text"
placeholder="Search..."
class="form-control"
ng-model="list.search">
<button class="btn btn-warning pull-right" ng-click="list.activateQuiz()">
<strong>Start Quiz</strong>
</button>
</form>
<div class="row">
<div class="col-sm-6" ng-repeat="turtle in list.data | filter:list.search">
<div class="well well-sm">
<div class="row">
<div class="col-md-6">
<img ng-src="{{turtle.image_url}}" class="img-rounded img-responsive" alt="">
</div>
<div class="col-md-6">
<h4>{{turtle.type}}</h4>
<p><strong>Location:</strong>{{turtle.locations}}</p>
<p><strong>Size:</strong>{{turtle.size}}</p>
<p><strong>Average Lifespan:</strong>{{turtle.lifespan}}</p>
<p><strong>Diet:</strong>{{turtle.diet}}</p>
<button class="btn btn-primary"
data-toggle="modal"
data-target="#turtle-info"
ng-click="list.changeActiveTurtle(turtle)">Learn More</button>
</div>
</div>
</div>
</div>
</div>
<div class="modal" id="turtle-info">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h2>{{list.activeTurtle.type}}</h2>
</div>
<div class="modal-body">
<div class="row">
<div class="col-xs-8 col-xs-offset-2">
<img ng-src="{{list.activeTurtle.image_url}}" class="img-rounded img-responsive" >
</div>
</div>
<div class="row top-buffer">
<div class="col-md-6">
<p><strong>Location:</strong>{{list.activeTurtle.locations}}</p>
<p><strong>Size:</strong>{{list.activeTurtle.size}}</p>
<p><strong>Average Lifespan:</strong>{{list.activeTurtle.lifespan}}</p>
<p><strong>Diet:</strong>{{list.activeTurtle.diet}}</p>
</div>
<div class="col-xs-11 top-buffer">
<p>{{list.activeTurtle.description}}</p>
<button class="btn btn-danger pull-right"
data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- List Controller -->
<!-- Quiz Controller -->
<div ng-controller="quizCtrl as quiz" ng-show="quiz.quizMetrics.quizActive">
<h1>Quiz Started</h1>
</div>
</div>
<!--Third Party-->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.0-rc.2/angular.min.js"></script>
<script src="https://code.jquery.com/jquery-2.2.0.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<!--Our Application Script-->
<script src="js/app.js"></script>
<script src="js/controllers/list.js"></script>
<script src="js/controllers/quiz.js"></script>
<script src="js/controllers/factories/quizMetrics.js"></script>
</body>
</html>