Bootstrap progress bar

I’m trying to get a progress bar to work ( http://jsfiddle.net/WEYKL/ ), is this right?

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Assignment #7</title>
    <!-- Bootstrap -->
    <link href="../css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
<link rel="stylesheet" type="text/css" href="css/style.css">
<script>
$(".progress-bar").animate({
    width: "100%"
}, 3000 );
</script>
</head>
<body>
<div class="col-xs-12 col-sm-12 progress-container">
    <div class="progress progress-striped active">
        <div class="progress-bar progress-bar-success" style="width:0%"></div>
    </div>
</div>
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="../js/bootstrap.min.js"></script>
</body>
</html>

Your progress bar seems to work fine, but is there a reason why you want it to only go 70% of the way across?

Sorry, didn’t explain myself.
I’m trying to replicate the progress bar (that only goes to 70%) Im trying to get that effect, heres whats in my

<script>
//animate progress bar
$(".progress-bar").animate({
    width: "100%"
}, 3000 );
//make  the progress bar dissapear after 3 seconds
jQuery("#progress-bar").delay(3000).fadeOut("slow");
//show output div after 3 seconds
$( "#output" ).slideUp( 300 ).delay( 3000 ).fadeIn( 400 );

</script>

I really like this progress bar (https://jsfiddle.net/qLgv2Lfm/8/) but im really confused on how to get it to work.
Heres my attempt… http://php_class.teamluke.net/Assignment_7/success.php

Why don’t you post a screen shot of the working progress bar in action?

Never mind, the fiddle seems pretty clear :tongue:

Looks like you fixed it.

I tried a little while ago and a blank page was rendered. (though view-source was there).

But now the “invalid regex” error is gone :thumbsup:

yes, I didn’t have the link to jquery

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.