Calculator Tools Calculator Tools
Create

Barra de Progresso

Jan 3, 2024

About this app

Uma barra de progresso que redireciona para o plimplim.tv quando atinge 100%

Barra de Progresso 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</title>
<meta name="description" content="Uma barra de progresso que redireciona para o plimplim.tv quando atinge 100%">
<meta name="keywords" content="barra de progresso, plimplim.tv, vermelho, amarelo, azul">

<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");

// Set the initial progress to 0
var progress = 0;

// Update the progress every 100 milliseconds
var interval = setInterval(function() {
// Increase the progress by 1
progress += 1;

// Update the progress bar
progressBar.style.width = progress + "%";

// Update the progress number
progressBar.innerHTML = progress + "%";

// Check if the progress has reached 100
if (progress >= 100) {
// Redirect to plimplim.tv
window.location.href = "https://plimplim.tv";

// Clear the interval
clearInterval(interval);
}
}, 1200); // 2 minutes in milliseconds = 120000, dividing by 100 to match the progress percentage

});

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

<style>
/* App CSS Goes Here */
#progress-bar {
height: 30px;
background-color: #f00;
position: relative;
overflow: hidden;
border-radius: 5px;
}

#progress-bar .progress {
height: 100%;
background-color: #00f;
width: 0;
transition: width 1s ease-in-out;
position: absolute;
}

#progress-bar .progress.yellow {
background-color: #ff0;
}

#progress-bar .progress.blue {
background-color: #00f;
}

#progress-bar .progress.red {
background-color: #f00;
}

#progress-bar .progress-number {
color: #fff;
font-weight: bold;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
</style>
</head>
<body>
<div id="main-container" class="container">
<div id="progress-bar">
<div class="progress"></div>
<div class="progress-number">0%</div>
</div>
</div>
</body>
</html>