Roulette Production - Spin & Win!
About this app
Experience the excitement of roulette with our interactive web app! Spin the wheel and place your bets in this colorful, user-friendly environment.
Colorful Calculator - Fun Math Made Easy! C 7 8 9 / 4 5 6 * 1 2 3 - 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>Colorful Calculator - Fun Math Made Easy!</title>
<meta name="description" content="A vibrant, interactive calculator web app for performing basic arithmetic operations easily and delightfully!">
<meta name="keywords" content="Calculator, Math, Arithmetic, Addition, Subtraction, Multiplication, Division, Interactive">
<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">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap" rel="stylesheet">
<style>
body {
background: linear-gradient(to right, #84fab0, #8fd3f4);
font-family: 'Roboto', sans-serif;
color: #333;
text-align: center;
margin: 0;
padding: 50px;
}
#calculator {
background-color: #fff;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
padding: 20px;
width: 300px;
margin: auto;
}
#display {
font-size: 2em;
margin-bottom: 20px;
height: 40px;
border: 2px solid #333;
border-radius: 10px;
padding: 10px;
background-color: #fafafa;
}
.button {
padding: 15px;
font-size: 1.5em;
border-radius: 8px;
margin: 5px;
border: none;
cursor: pointer;
transition: background-color 0.3s;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.button:hover {
background-color: #f3c857;
}
.operator {
background-color: #fa7b7b;
color: white;
}
.operator:hover {
background-color: #e16464;
}
</style>
<script type="text/javascript">
try {
let currentInput = '';
function pressButton(value) {
currentInput += value;
document.getElementById('display').innerHTML = currentInput;
}
function calculate() {
try {
const result = eval(currentInput);
document.getElementById('display').innerHTML = result;
currentInput = result.toString();
} catch (error) {
document.getElementById('display').innerHTML = 'Error';
currentInput = '';
}
}
function clearInput() {
currentInput = '';
document.getElementById('display').innerHTML = '';
}
document.addEventListener("DOMContentLoaded", function() {
document.querySelectorAll('.button').forEach(button => {
button.addEventListener('click', () => pressButton(button.innerText));
});
document.getElementById('equals').addEventListener('click', calculate);
document.getElementById('clear').addEventListener('click', clearInput);
});
} catch (error) {
throw error;
}
</script>
</head>
<body>
<div id="calculator">
<div id="display"></div>
<div>
<button class="button" id="clear">C</button>
<button class="button">7</button>
<button class="button">8</button>
<button class="button">9</button>
<button class="button operator">/</button>
</div>
<div>
<button class="button">4</button>
<button class="button">5</button>
<button class="button">6</button>
<button class="button operator">*</button>
</div>
<div>
<button class="button">1</button>
<button class="button">2</button>
<button class="button">3</button>
<button class="button operator">-</button>
</div>
<div>
<button class="button">0</button>
<button class="button" id="equals">=</button>
<button class="button operator">+</button>
</div>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!