Question: Is there any way that I could be able to make a progress bar go backwards? I have seen an example that told me to turn the progress bar 180 degrees, but that seems like a very dirty way to do it. What I'm looking for is so the progress bar can be time controlled, and so that a by pressing a button, I would add three seconds to the timer, thus pulling back the bar a bit (Say the timer is at 7 seconds, pressing the button would add a second, bringing it to 8 seconds thus pulling back the timer a little bit). If I could incorporate this with a countdown timer as well, it would be cool, but not 100% needed. Here is what I have so far. Changes that need to be made is so that the timer goes backwards instead of forwards, and so I could be able to add time on to it by pressing a button.

HTML:

Javascript:

```
$(document).ready(function(){
var interval = 2, //How much to increase the progressbar per frame
    updatesPerSecond = 1000/60, //Set the nr of updates per second (fps)
    progress =  $('progress'),
    animator = function(){
        progress.val(progress.val()+interval);
        $('#val').text(progress.val());
        if ( progress.val()+interval < progress.attr('max')){
           setTimeout(animator, updatesPerSecond);
        } else { 
            $('#val').text('Done');
            progress.val(progress.attr('max'));
        }
    }

setTimeout(animator, updatesPerSecond);
});

```

[JSFiddle](http://jsfiddle.net/526hM/1161/)

Answer: 
You used assignemnt operator `=`, not a [comparsion operator](http://php.net/manual/en/language.operators.comparison.php).

So:

```
if ($pool->status == 'ONLINE') {}

```

Not:

```
if ($pool->status = 'ONLINE') {}

```

You can go with yoda condition:

```
if ('ONLINE' == $pool->status) {}

```

Because that would throw an error when you mistake operators.

These mistakes are hard to debug, especially for not experienced programmers.
You are using assignment operator in your if statement, instead of conditional equals operator. It is the different between using `=` and `==`

```
foreach($pools as $pool){
        if ($pool->status == 'ONLINE') {
            $pool->cstatus = '
            <i class="zmdi zmdi-shield-check zmdi-hc-lg text-success" data-toggle="tooltip" data-placement="right" title="" data-original-title="OK"></i>
            ';
        }
        else {
            $pool->cstatus = '
            <i class="zmdi zmdi-help zmdi-hc-lg text-muted" data-placement="right" title="" data-original-title="Status unknown."></i>
            ';
        }
    }

```