We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b62828 commit aa05c12Copy full SHA for aa05c12
result-app/views/index.html
@@ -31,8 +31,10 @@
31
</div>
32
33
34
- <div id="result" ng-if="total > 100">
35
- {{total}} votes
+ <div id="result">
+ <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>
38
39
<script src="socket.io.js"></script>
40
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script>
result-app/views/stylesheets/style.css
@@ -47,6 +47,7 @@ body{
47
vertical-align:middle;
48
}
49
#result{
50
+ z-index: 3;
51
position: absolute;
52
bottom: 40px;
53
right: 20px;
0 commit comments