Colorful Digital 33 App
About this app
Experience the vibrant and colorful activities with the 33 App, packed with interactive features and playful designs. Join us for a fun journey!
Colorful Digital 33 App Welcome to the Colorful 33 App! Click the button to change the box color and increase your score! Score: 0 Change Color
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>Colorful Digital 33 App</title>
<meta name="description" content="Experience the vibrant and colorful activities with the 33 App, packed with interactive features and playful designs. Join us for a fun journey!">
<meta name="keywords" content="33, digital app, fun, interactive, colorful, vibrant, games">
<!-- Libraries -->
<!-- jQuery (3.6.0) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js" crossorigin="anonymous"></script>
<!-- Bootstrap CSS (5.3.3) -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" crossorigin="anonymous">
<!-- Bootstrap JS (5.3.3) -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.min.js" crossorigin="anonymous"></script>
<!-- Font Awesome (6.6.0) -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.6.0/css/fontawesome.min.css" crossorigin="anonymous">
<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() {
// Initial setup
let score = 0;
// Elements
const scoreDisplay = document.getElementById('score');
const colorButton = document.getElementById('color-btn');
const colorBox = document.getElementById('color-box');
// Function to generate a random color
function getRandomColor() {
const letters = '0123456789ABCDEF';
let color = '#';
for (let i = 0; i < 6; i++) {
color += letters[Math.floor(Math.random() * 16)];
}
return color;
}
// Change color and increase score
function changeColor() {
const newColor = getRandomColor();
colorBox.style.backgroundColor = newColor;
score++;
scoreDisplay.innerText = `Score: ${score}`;
}
// Event Listener
colorButton.addEventListener('click', changeColor);
});
} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>
<style>
body {
background-color: #f0f8ff;
color: #333;
font-family: Arial, sans-serif;
}
#main-container {
text-align: center;
margin-top: 50px;
}
#color-box {
width: 200px;
height: 200px;
margin: 20px auto;
border: 5px solid #000;
border-radius: 10px;
transition: background-color 0.5s ease;
}
button {
background: linear-gradient(135deg, #f06, #ffb347);
border: none;
color: white;
padding: 15px 30px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
border-radius: 50px;
cursor: pointer;
transition: transform 0.3s;
}
button:hover {
transform: scale(1.1);
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>Welcome to the Colorful 33 App!</h1>
<p>Click the button to change the box color and increase your score!</p>
<div id="color-box"></div>
<h2 id="score">Score: 0</h2>
<button id="color-btn">Change Color</button>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!