Always show total vote count

This commit is contained in:
Aanand Prasad 2016-06-09 12:18:28 +01:00 committed by Ben Firshman
parent 4b62828661
commit aa05c12ab7
2 changed files with 5 additions and 2 deletions

View File

@ -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>

View File

@ -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;