The Number 5 Game
About this app
Join Number 5, Miss Crawly, and Rick in a camping adventure with their friends!
The Number 5 Game The Number 5 Game
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>The Number 5 Game</title>
<meta name="description" content="Join Number 5, Miss Crawly, and Rick in a camping adventure with their friends!">
<meta name="keywords" content="number 5, miss crawly, rick, sing, camping, adventure, game">
<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">
<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() {
// Array of characters
const characters = [
{
name: "Number 5",
image: "https://image.flaticon.com/icons/png/512/3388/3388892.png"
},
{
name: "Miss Crawly",
image: "https://image.flaticon.com/icons/png/512/3388/3388891.png"
},
{
name: "Rick",
image: "https://image.flaticon.com/icons/png/512/3388/3388888.png"
},
{
name: "Number 1",
image: "https://image.flaticon.com/icons/png/512/3388/3388884.png"
},
{
name: "Number 2",
image: "https://image.flaticon.com/icons/png/512/3388/3388883.png"
},
{
name: "Number 3",
image: "https://image.flaticon.com/icons/png/512/3388/3388882.png"
},
{
name: "Number 4",
image: "https://image.flaticon.com/icons/png/512/3388/3388881.png"
},
{
name: "Number 6",
image: "https://image.flaticon.com/icons/png/512/3388/3388887.png"
},
{
name: "Number 7",
image: "https://image.flaticon.com/icons/png/512/3388/3388886.png"
},
{
name: "Number 8",
image: "https://image.flaticon.com/icons/png/512/3388/3388885.png"
},
{
name: "Number 9",
image: "https://image.flaticon.com/icons/png/512/3388/3388880.png"
}
];
// Function to create character cards
function createCharacterCard(character) {
const card = document.createElement("div");
card.classList.add("card", "text-center");
card.style.width = "18rem";
const image = document.createElement("img");
image.src = character.image;
image.alt = character.name;
image.classList.add("card-img-top");
const cardBody = document.createElement("div");
cardBody.classList.add("card-body");
const cardTitle = document.createElement("h5");
cardTitle.classList.add("card-title");
cardTitle.textContent = character.name;
cardBody.appendChild(cardTitle);
card.appendChild(image);
card.appendChild(cardBody);
return card;
}
// Create character cards
const characterContainer = document.getElementById("character-container");
characters.forEach(function(character) {
const characterCard = createCharacterCard(character);
characterContainer.appendChild(characterCard);
});
});
} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>
<style>
/* App CSS Goes Here */
body {
background-color: #f9f9f9;
font-family: 'Roboto', sans-serif;
}
h1 {
text-align: center;
margin-bottom: 30px;
color: #333;
}
.card {
margin: 10px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
transition: 0.3s;
background-color: #fff;
}
.card:hover {
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}
.card-img-top {
width: 150px;
height: 150px;
margin: 0 auto;
margin-top: 20px;
object-fit: contain;
}
.card-title {
margin-top: 20px;
font-size: 18px;
font-weight: bold;
}
#character-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>The Number 5 Game</h1>
<div id="character-container" class="row"></div>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!