Explore Ocean Animals
About this app
Learn about various ocean animals and their characteristics.
Explore Ocean Animals
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>Explore Ocean Animals</title>
<meta name="description" content="Learn about various ocean animals and their characteristics.">
<meta name="keywords" content="ocean, animals, marine life, sea creatures">
<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/css2?family=Roboto:wght@300;400&display=swap" rel="stylesheet">
<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() {
const animals = [
{
name: "Dolphin",
image: "🐬",
description: "Dolphins are highly intelligent marine mammals known for their playful behavior and remarkable communication skills.",
color: "#5BC0EB"
},
{
name: "Sea Turtle",
image: "🐢",
description: "Sea turtles are ancient reptiles that have been swimming in the oceans for millions of years. They are known for their long lifespan and their role in maintaining the health of coral reefs.",
color: "#FDE74C"
},
{
name: "Octopus",
image: "🐙",
description: "Octopuses are fascinating creatures with eight arms and a highly developed brain. They are known for their ability to change color and camouflage themselves in their surroundings.",
color: "#9BC53D"
},
{
name: "Shark",
image: "🦈",
description: "Sharks are apex predators of the ocean and have been around for millions of years. They play a crucial role in maintaining the balance of marine ecosystems.",
color: "#FF6B6B"
},
{
name: "Whale",
image: "🐋",
description: "Whales are the largest animals on Earth and are known for their majestic presence. They are highly social creatures and communicate through complex songs.",
color: "#C3423F"
}
];
// Display animal cards
const animalCards = animals.map(animal => {
return `
<div class="card mb-3" style="max-width: 540px;">
<div class="row g-0">
<div class="col-md-4 d-flex align-items-center justify-content-center" style="background-color: ${animal.color};">
<span class="fs-1">${animal.image}</span>
</div>
<div class="col-md-8">
<div class="card-body">
<h5 class="card-title">${animal.name}</h5>
<p class="card-text">${animal.description}</p>
</div>
</div>
</div>
</div>
`;
});
const mainContainer = document.getElementById('main-container');
mainContainer.innerHTML = `
<h1 class="text-center mb-4">Explore Ocean Animals</h1>
<div class="row">
${animalCards.join('')}
</div>
`;
});
} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>
<style>
body {
font-family: 'Roboto', sans-serif;
background-color: #F8F8F8;
color: #333333;
}
h1 {
color: #333333;
}
.card {
border: none;
background-color: #FFFFFF;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
.card-title {
font-size: 1.2rem;
font-weight: bold;
}
.card-text {
font-size: 0.9rem;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<!-- App HTML Goes Here -->
</div>
</body>
</html>
NEW APPS
These are apps made by the community!