Calculator Tools Calculator Tools
Create

Fun Colorful App

Dec 14, 2025

About this app

A fun and colorful app for interactive experiences. Enjoy great functionalities and visuals.

Fun Colorful App Welcome to Fun Colorful App! Change Colors

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>Fun Colorful App</title>
<meta name="description" content="A fun and colorful app for interactive experiences. Enjoy great functionalities and visuals.">
<meta name="keywords" content="Fun App, Colorful, Interactive, Web App">

<!-- Libraries -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.min.js" crossorigin="anonymous"></script>
<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.

// This will run when the DOM is ready.
document.addEventListener("DOMContentLoaded", function() {
// Function to change colors on button click
const changeColor = () => {
const colors = ['#ff4d4d', '#4dff4d', '#4d4dff', '#ffff4d', '#ff4dff'];
document.body.style.backgroundColor = colors[Math.floor(Math.random() * colors.length)];
};

// Initiating color change on button click
document.getElementById('colorButton').addEventListener('click', changeColor);
});

} catch (error) {
throw error;
}
</script>

<style>
/* App CSS Goes Here */
body {
background: linear-gradient(135deg, #f0e68a, #8af0e6);
color: #333;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
transition: background-color 0.5s ease;
font-family: 'Arial', sans-serif;
}
h1 {
font-size: 3em;
margin-bottom: 20px;
text-shadow: 2px 2px #ffffff;
}
.btn {
background-color: #0d6efd;
color: white;
font-size: 1.5em;
border-radius: 30px;
padding: 10px 20px;
border: none;
transition: background-color 0.3s ease;
}
.btn:hover {
background-color: #0056b3;
cursor: pointer;
}
.container {
text-align: center;
padding: 30px;
box-shadow: 0 4px 20px rgba(0,0,0,0.2);
border-radius: 15px;
background-color: rgba(255, 255, 255, 0.9);
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>Welcome to Fun Colorful App!</h1>
<button id="colorButton" class="btn">Change Colors</button>
</div>
</body>
</html>