Progress Bar App
About this app
App de Barra de progresso de 1 Milhão até 100 milhões com números na tela em 1 min
Progress Bar App 0
Related apps
Put this on your site
Source
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Progress Bar App</title>
<meta name="description" content="App de Barra de progresso de 1 Milhão até 100 milhões com números na tela em 1 min">
<meta name="keywords" content="progress bar, números, 1 milhão, 100 milhões, 1 minuto">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<script type="text/javascript">
try {
// App Javascript Goes Here. Place your entire script content inside the try block for error handling.
document.addEventListener("DOMContentLoaded", function() {
var progressBar = document.getElementById("progress-bar");
var counter = document.getElementById("counter");
var startValue = 1000000;
var endValue = 100000000;
var duration = 60000;
var increment = (endValue - startValue) / duration;
var currentValue = startValue;
var interval = setInterval(function() {
currentValue += increment;
progressBar.style.width = (currentValue / endValue) * 100 + "%";
counter.innerHTML = Math.floor(currentValue).toLocaleString();
if (currentValue >= endValue) {
clearInterval(interval);
}
}, 1);
});
} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>
<style>
/* App CSS Goes Here */
body {
font-family: 'Arial', sans-serif;
background-color: #f8f9fa;
}
.progress-container {
margin-top: 50px;
text-align: center;
}
.progress-bar {
height: 30px;
background-color: #e9ecef;
border-radius: 15px;
overflow: hidden;
}
.progress-bar-inner {
height: 100%;
background-color: #007bff;
transition: width 0.3s ease-in-out;
}
.counter {
margin-top: 10px;
font-size: 24px;
font-weight: bold;
color: #007bff;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<div class="progress-container">
<div class="progress-bar" id="progress-bar">
<div class="progress-bar-inner"></div>
</div>
<div class="counter" id="counter">0</div>
</div>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!