Calculator Tools Calculator Tools
Create

Pop It Eletrônico 2.0

Jan 4, 2024

About this app

Pop It Eletrônico 2.0 - A fun electronic version of the popular Pop It fidget toy

Pop It Eletrônico 2.0 Pop It Eletrônico 2.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>Pop It Eletrônico 2.0</title>
<meta name="description" content="Pop It Eletrônico 2.0 - A fun electronic version of the popular Pop It fidget toy">
<meta name="keywords" content="pop it, fidget toy, electronic toy, pop it electronic, pop it game">

<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">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">

<script type="text/javascript">
try {
// App Javascript Goes Here. Place your entire script content inside the try block for error handling.
var colors = ["#FF3D00", "#FF9100", "#FFEA00", "#00E676", "#00B0FF", "#651FFF", "#F50057", "#FF5722", "#00C853", "#2962FF", "#D50000", "#FFAB00", "#FFD600", "#00C853", "#0091EA", "#3D5AFE", "#AA00FF", "#FF3D00", "#00C853", "#00E676", "#651FFF", "#FFEA00", "#FFAB00", "#FF9100", "#FFD600", "#FF5722", "#D50000", "#2962FF", "#00B0FF", "#0091EA", "#3D5AFE", "#AA00FF"];
var currentColorIndex = 0;

function changeColor() {
var body = document.querySelector("body");
var color = colors[currentColorIndex];
body.style.backgroundColor = color;
currentColorIndex = (currentColorIndex + 1) % colors.length;
}

// This will run when the DOM is ready.
document.addEventListener("DOMContentLoaded", function() {
// Set interval to change background color every 2 seconds
setInterval(changeColor, 2000);
});

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

<style>
/* App CSS Goes Here */
body {
font-family: 'Roboto', sans-serif;
text-align: center;
background-color: #FF3D00;
color: #fff;
margin: 0;
padding: 0;
}

.container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
}

h1 {
font-size: 40px;
margin-bottom: 20px;
}

.pop-it {
width: 200px;
height: 200px;
background-color: #fff;
border-radius: 10px;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
cursor: pointer;
transition: all 0.3s ease-in-out;
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
}

.pop-it .circle {
width: 60px;
height: 60px;
background-color: #FF3D00;
border-radius: 50%;
margin: 10px;
display: none;
}

.pop-it .circle.active {
display: block;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>Pop It Eletrônico 2.0</h1>
<div class="pop-it" onclick="this.classList.toggle('active')">
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
</div>
</div>
</body>
</html>