Always show total vote count
This commit is contained in:
parent
4b62828661
commit
aa05c12ab7
@ -31,8 +31,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="result" ng-if="total > 100">
|
<div id="result">
|
||||||
{{total}} votes
|
<span ng-if="total == 0">No votes yet</span>
|
||||||
|
<span ng-if="total == 1">{{total}} vote</span>
|
||||||
|
<span ng-if="total >= 2">{{total}} votes</span>
|
||||||
</div>
|
</div>
|
||||||
<script src="socket.io.js"></script>
|
<script src="socket.io.js"></script>
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script>
|
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script>
|
||||||
|
@ -47,6 +47,7 @@ body{
|
|||||||
vertical-align:middle;
|
vertical-align:middle;
|
||||||
}
|
}
|
||||||
#result{
|
#result{
|
||||||
|
z-index: 3;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 40px;
|
bottom: 40px;
|
||||||
right: 20px;
|
right: 20px;
|
||||||
|
Loading…
Reference in New Issue
Block a user