Bam o Urso
About this app
Bam o Urso - A Fun and Interactive Web App
Bam o Urso Bam o Urso 🐻 Fun Fact: Bears have an excellent sense of smell, better than dogs.
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>Bam o Urso</title>
<meta name="description" content="Bam o Urso - A Fun and Interactive Web App">
<meta name="keywords" content="Bam o Urso, Fun, Interactive, Web App">
<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">
<style>
body {
background-color: #f5f5f5;
font-family: 'Open Sans', sans-serif;
color: #333;
}
h1 {
margin-top: 50px;
text-align: center;
font-size: 36px;
font-weight: bold;
color: #333;
}
.bear-container {
display: flex;
justify-content: center;
align-items: center;
margin-top: 50px;
}
.bear {
width: 200px;
height: 200px;
background-color: #ffd700;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
font-size: 72px;
font-weight: bold;
color: #333;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
.fun-fact {
text-align: center;
font-size: 24px;
font-weight: bold;
margin-top: 50px;
}
</style>
<script type="text/javascript">
try {
document.addEventListener("DOMContentLoaded", function() {
// Generate a random number between 1 and 100
function getRandomNumber() {
return Math.floor(Math.random() * 100) + 1;
}
// Get a random fun fact about bears
function getFunFact() {
var funFacts = [
"Bears have an excellent sense of smell, better than dogs.",
"Polar bears are the largest land predators on Earth.",
"A group of bears is called a sleuth or sloth.",
"Bears have a great sense of balance and are able to walk on their hind legs.",
"Bears have a large hump of muscle on their shoulders, which helps them dig and climb.",
"Bears have very good hearing and can detect sounds from far away.",
"Bears are omnivores and eat a variety of plants and animals.",
"Some bears can run up to 40 miles per hour.",
"Bears have been known to eat up to 90 pounds of food in a single day.",
"Bears have a strong sense of territory and mark their territories with scent markings."
];
var randomIndex = Math.floor(Math.random() * funFacts.length);
return funFacts[randomIndex];
}
// Update the bear's number and fun fact
function updateBear() {
var randomNumber = getRandomNumber();
var funFact = getFunFact();
$(".bear").text(randomNumber);
$(".fun-fact").text(funFact);
}
// Update the bear when the page loads
updateBear();
// Update the bear when the bear container is clicked
$(".bear-container").click(function() {
updateBear();
});
});
} catch (error) {
throw error;
}
</script>
</head>
<body>
<div id="main-container" class="container">
<h1>Bam o Urso</h1>
<div class="bear-container">
<div class="bear">
🐻
</div>
</div>
<div class="fun-fact">
Fun Fact: Bears have an excellent sense of smell, better than dogs.
</div>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!