-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
108 lines (97 loc) · 4.54 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
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html ng-app class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css" rel="stylesheet">
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.no-icons.min.css" rel="stylesheet">
<!-- <link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet"> -->
<script src="js/vendor/modernizr-2.6.2.min.js"></script>
</head>
<body>
<!-- style="background:url(http://www.journalderosemont.com/media/photos/unis/2011/04/26/2011-04-26-02-36-13-Vote.jpg) center no-repeat;background-size: 70% auto; background-color: #F0F0F0; background-position: top right" -->
<!-- could be navbar-fixed-top ... -->
<div class="navbar navbar-default navbar-static-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Élections municipales 2013 - Gatineau</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Accueil</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
<div class="container">
<div ng-controller="ElectionCtrl" class="ng-cloak">
<h3>Résultats des élections municipales 2013 à {{data.ville.nom}} </h3>
<a class="btn btn-success" ng-click="refresh()" href="#">
<i ng-class="{true:'icon-refresh icon-spin', false:'icon-repeat'}[refreshing]"></i> Actualiser
</a>
<label>Recherche:</label>
<input type="text" ng-model="searchText" placeholder="Candidat / District">
<div class="text-muted"><small>Dernière mise à jour: {{data.maj}}</small></div>
<hr>
<ul class="media-list">
<li class="media" ng-repeat="poste in data.ville.postes | filter:searchText:c7nComparator"">
<!-- Remove Riding picture gor now
<a class="pull-left" href="#">
<img class="media-object img-rounded" src="http://placehold.it/64x64" alt="...">
</a>
-->
<div class="media-body">
<h4 class="media-heading"> {{poste.type_poste=='M' ? 'Mairie ' : 'District '+poste.nom}}</h4>
<!-- {{poste.type_poste }} {{poste.id}} -->
<p class="text-muted">Nombre de vote rejetés: {{poste.nb_votes_rejet}}</p>
<div class="media" ng-repeat="candidat in poste.candidats">
<a class="pull-left" href="#">
<img class="media-object img-circle" src="{{getPhoto(candidat)}}" width="50" alt="photo candidat">
</a>
<div class="media-body">
<h5 class="media-heading">{{candidat.prenom }} {{candidat.nom}}
<span ng-if="candidat.parti">({{candidat.parti}})</span>
</h5>
<p class="text-muted">Nombre de votes: {{candidat.nb_vote}}</p>
</div>
</div>
</div>
</li>
</ul>
<!-- old ul/li markup
<ul>
<li ng-repeat="poste in data.ville.postes">
{{poste.type_poste }} {{poste.id}} ({{poste.nom}})
<ul>
<li ng-repeat="candidat in poste.candidats">
{{candidat.prenom }} {{candidat.nom}} ({{candidat.parti}})
</li>
</ul>
</li>
</ul>
-->
</div>
</div> <!-- /container -->
<!-- bootstrap js not needed (and requires jQuery, which was removed)
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
-->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0-rc.2/angular.min.js"></script>
<script src="js/latinise.js"></script>
<script src="js/controller.js"></script>
<!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->
</body>
</html>