Progress Bar A to Z
About this app
A progress bar that goes from A to Z in 30 seconds
Progress Bar A to Z Progress Bar A to Z in 30 seconds
Related apps
Put this on your site
Source
<!DOCTYPE html>
<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 A to Z</title>
<meta name="description" content="A progress bar that goes from A to Z in 30 seconds">
<meta name="keywords" content="progress bar, A to Z, 30 seconds">
<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 progressValue = document.getElementById("progress-value");
var alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
var currentIndex = 0;
var timeLimit = 30;
function updateProgress() {
var percentage = (currentIndex / alphabet.length) * 100;
progressBar.style.width = percentage + "%";
progressBar.setAttribute("aria-valuenow", currentIndex);
progressValue.innerHTML = alphabet[currentIndex];
currentIndex++;
if (currentIndex < alphabet.length) {
setTimeout(updateProgress, timeLimit * 1000 / alphabet.length);
}
}
updateProgress();
});
} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>
<style>
#progress-bar-container {
height: 20px;
background-color: #f5f5f5;
border-radius: 4px;
overflow: hidden;
}
#progress-bar {
width: 0%;
height: 100%;
background-color: #007bff;
transition: width 0.3s ease-in-out;
}
#progress-value {
line-height: 20px;
color: #fff;
font-weight: bold;
padding: 0 10px;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>Progress Bar A to Z in 30 seconds</h1>
<div id="progress-bar-container">
<div id="progress-bar" class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="26">
<span id="progress-value"></span>
</div>
</div>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!