Skip to content

Commit aa05c12

Browse files
aanandbfirsh
authored andcommitted
Always show total vote count
1 parent 4b62828 commit aa05c12

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

result-app/views/index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@
3131
</div>
3232
</div>
3333
</div>
34-
<div id="result" ng-if="total > 100">
35-
{{total}} votes
34+
<div id="result">
35+
<span ng-if="total == 0">No votes yet</span>
36+
<span ng-if="total == 1">{{total}} vote</span>
37+
<span ng-if="total >= 2">{{total}} votes</span>
3638
</div>
3739
<script src="socket.io.js"></script>
3840
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script>

result-app/views/stylesheets/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ body{
4747
vertical-align:middle;
4848
}
4949
#result{
50+
z-index: 3;
5051
position: absolute;
5152
bottom: 40px;
5253
right: 20px;

0 commit comments

Comments
 (0)