Calculator Tools Calculator Tools
Create

Barra De Progresso De JunyTony

Sep 22, 2023

About this app

A colorful progress bar app created by JunyTony.

Barra De Progresso De JunyTony 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>Barra De Progresso De JunyTony</title>
<meta name="description" content="A colorful progress bar app created by JunyTony.">
<meta name="keywords" content="progress bar, JunyTony, colorful, web 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() {
const progressBar = document.querySelector(".progress-bar");
const progressText = document.querySelector(".progress-text");

let progress = 0;
const interval = setInterval(() => {
progress++;
progressBar.style.width = `${progress}%`;
progressText.textContent = `${progress}%`;

if (progress === 100) {
clearInterval(interval);
}
}, 50);
});

} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>

<style>
/* App CSS Goes Here */
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f2f2f2;
}

.progress-container {
width: 300px;
background-color: #fff;
border-radius: 5px;
padding: 10px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.progress-bar {
width: 0%;
height: 20px;
background-color: #ff6b6b;
border-radius: 5px;
transition: width 0.5s ease-in-out;
}

.progress-text {
text-align: center;
color: #333;
font-weight: bold;
margin-top: 5px;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<div class="progress-container">
<div class="progress-bar"></div>
<div class="progress-text">0%</div>
</div>
</div>
</body>
</html>