Progress Bar App
About this app
A fun and interactive app that displays a progress bar from 50 million to 100 million with numbers on the screen in 1 minute.
Progress Bar App Progress Bar App
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="A fun and interactive app that displays a progress bar from 50 million to 100 million with numbers on the screen in 1 minute.">
<meta name="keywords" content="progress bar, numbers, interactive, app">
<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.
// This will run when the DOM is ready.
document.addEventListener("DOMContentLoaded", function() {
// Get the progress bar element
var progressBar = document.getElementById("progress-bar");
// Get the number element
var numberElement = document.getElementById("number");
// Set the initial value for the progress bar and number
var value = 50000000;
progressBar.value = value;
numberElement.innerHTML = value.toLocaleString();
// Calculate the increment value for each step
var increment = (100000000 - 50000000) / 60;
// Update the progress bar and number every second
setInterval(function() {
value += increment;
if (value <= 100000000) {
progressBar.value = value;
numberElement.innerHTML = value.toLocaleString();
}
}, 1000);
});
} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>
<style>
/* App CSS Goes Here */
body {
background-color: #f8f9fa;
font-family: 'Roboto', sans-serif;
}
.container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
}
h1 {
color: #212529;
font-size: 24px;
margin-bottom: 16px;
}
.progress-bar {
width: 100%;
height: 40px;
border-radius: 20px;
overflow: hidden;
background-color: #e9ecef;
}
.progress-bar::-webkit-progress-bar {
background-color: #e9ecef;
}
.progress-bar::-webkit-progress-value {
background-color: #007bff;
}
.progress-bar::-moz-progress-bar {
background-color: #007bff;
}
.number {
margin-top: 16px;
font-size: 18px;
color: #212529;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>Progress Bar App</h1>
<progress id="progress-bar" class="progress-bar" value="0" max="100000000"></progress>
<div id="number" class="number"></div>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!