Filling Progress bar from players online query?
#2

Код:
<div class="progress">
  <div class="progress-bar" role="progressbar" aria-valuenow="<?php echo $players['players']; ?>" aria-valuemin="0" aria-valuemax="100" style="width: <?php echo $players['players']; ?>%;">
    <span class="sr-only"><?php echo $players['players']; ?> current players</span>
  </div>
</div>
If you get the max players too, set aria-valuemax=MAX PLAYERS

This won't update live though, it'll only show the up to date when you reload the page.
Reply


Messages In This Thread
Filling Progress bar from players online query? - by SparkyCode - 05.10.2015, 15:38
Re: Filling Progress bar from players online query? - by StuartD - 05.10.2015, 16:50
Re: Filling Progress bar from players online query? - by SparkyCode - 05.10.2015, 17:10
Re: Filling Progress bar from players online query? - by StuartD - 05.10.2015, 17:13
Re: Filling Progress bar from players online query? - by SparkyCode - 05.10.2015, 17:23
Re: Filling Progress bar from players online query? - by Vince - 05.10.2015, 17:29
Re: Filling Progress bar from players online query? - by SparkyCode - 05.10.2015, 17:49

Forum Jump:


Users browsing this thread: 1 Guest(s)