-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (43 loc) · 2.17 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
<html>
<head>
<title> The Flag</title>
<script src="bower_components/angular/angular.js"></script>
<script src="app.js"></script>
<link rel="stylesheet" href="bower_components/flag-icon-css/css/flag-icon.css">
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="bower_components/animate.css/animate.min.css">
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
</head>
<body ng-app="FlagGame" ng-controller="flagCtrl as flag">
<div class=" row ">
<h1 class=" col-xs-12 " style="text-align: center"> Guess the Country!! </h1>
</div>
<div class="row ">
<span class="flag-icon flag-icon-{{flag.code}} col-md-offset-3 col-md-6 col-sm-offset-4 col-sm-3 col-xs-12 flagstyle "></span>
</div>
<div ng-if="flag.buttonText1">
</br>
<span class="row col-xs-12 col-md-12" style="text-align:center; font-size: 1.5em"> Options</span>
<div class="row">
<button ng-click="flag.check(flag.buttonText1)" class="btn btn-primary col-lg-3 col-xs-12 col-sm-6 col-md-6"> {{flag.buttonText1}} </button>
<button ng-click="flag.check(flag.buttonText2)" class="btn btn-primary col-lg-3 col-xs-12 col-sm-6 col-md-6 ">{{flag.buttonText2}}</button>
<button ng-click="flag.check(flag.buttonText3)" class="btn btn-primary col-lg-3 col-xs-12 col-sm-6 col-md-6">{{flag.buttonText3}}</button>
<button ng-click="flag.check(flag.buttonText4)" class="btn btn-primary col-lg-3 col-xs-12 col-sm-6 col-md-6 ">{{flag.buttonText4}}</button>
</div>
</div>
<button ng-click="flag.flagGen()" ng-if="flag.skipButton==true" class="btn btn-success row col-xs-offset-6 btn-lg">{{flag.controlButton}}</button>
</br>
<div class="alert alert-success" ng-if="flag.response==true">
Congratulations! You got the <strong>Correct Answer</strong>
</div>
</br>
<div class="panel panel-info">
<div class="panel-heading">
<h3 class="panel-title">Your score : {{flag.score}}</h3>
</div>
<div class="panel-body">
High Score : {{flag.highScore}}
</div>
</div>
</body>
</html>