Hello,
how can I make the button disabled while the progress bar
is working And when the progress bar is finished, the button is enabled.
Thank you.
<!DOCTYPE html>
<html lang='en' class=''>
<head>
<link rel='stylesheet prefetch' href='https://netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css'>
<link rel='stylesheet prefetch' href='https://netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap-theme.min.css'>
<style class="cp-pen-styles">
#progressTimer {
width: 560px;
height: 5px;
}
</style>
</head>
<body>
<div id="progressTimer"></div>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='https://www.jqueryscript.net/demo/Easy-jQuery-Progress-Bar-Timer-Plugin-For-Bootstrap-3-progressTimer/js/jquery.progressTimer.js'></script>
<script>
$("#progressTimer").progressTimer({
timeLimit: 180,
warningThreshold: 10,
baseStyle: 'progress-bar-warning',
warningStyle: 'progress-bar-danger',
completeStyle: 'progress-bar-info',
onFinish: function () {
console.log("I'm done");
}
});
</script>
<div>
<table>
@Html.ActionLink("Go", "Index", "Home", null, new { @class = "btn btn-info" })
</table>
</div>
</body>
</html>