-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
85 lines (70 loc) · 3.87 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
<!--added new file these file name is featurenew-->
<html>
<heda>
<meta charset="UTF-8">
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.8.2/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.28/angular-route.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<link rel="stylesheet" href="index.css">
<script src="app.js"></script>
<script src="controllers.js"></script>
</heda>
<body >
<div id="loader">
<header>
<nav>
<ul>
<li>
<label id="switch">
<i class="fas fa-adjust"></i>
<div>
<input type="checkbox" id="check" />
<span id="slider round"></span>
</div>
</label>
</li>
<li>Home</li>
<li >About</li>
</ul>
</nav>
</header>
<div id= "main" ng-app="country_app" ng-controller="load_info" id="light-theme">
<div id="imgsrc"><img style="background-color: white;"src="https://cdn5.vectorstock.com/i/thumbs/72/24/isometric-round-frame-made-world-flags-isolated-vector-22447224.jpg"><h1>{{headingdata}}</h1></div>
<div id="search_bar" ng-hide="searchbar">
<label>Search:</label> <input type="text" ng-model="search" placeholder="Enter country name..." >
Filter: <select ng-model="search_r" ng-hide='filterbar'>
<option ng-model="">All</option>
<option ng-model="Africa">Africa</option>
<option ng-model="America">Americas</option>
<option ng-model="Asia">Asia</option>
<option ng-model="Europe">Europe</option>
<option ng-model="Oceania">Oceania</option>
</select>
</div>
<div id="show_part" ng-show="showdata" >
<div id="view_part">
<ng-view></ng-view>
</div>
</div>
<div ng-hide="hidedata">
<div id="coun_box" >
<table >
<tr id="first_row">
<td>Country</td>
<td>Region</td>
<td>Flag</td>
</tr>
<tr ng-repeat="x in countrydata |filter:search |filter:search_r" ng-style="{'background-color':$index==selectedIndex ? 'darkgray':''}" ng-click="selectcountry_info(x,$index)"
id="table_row" script="{search !== x.name ? alert('sorry'):}">
<a href="#!cdata"> <td id="name_set">{{x.name}}</td></a>
<td>{{x.region}}</td>
<td id="flag_set"><img src="{{x.flag}}" style="width:80px;height:65px;"></td>
</tr>
</table>
</div>
</div>
<footer><h1>{{last}}</h1></footer>
</div>
</div>
</body>
</html>