Calculator Tools Calculator Tools
Create

My Heroes

Sep 18, 2023

About this app

A fun single page web app featuring JunyTony, Homem-Aranha, Mr. Beast, and Mecuri_88

My Heroes

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>My Heroes</title>
<meta name="description" content="A fun single page web app featuring JunyTony, Homem-Aranha, Mr. Beast, and Mecuri_88">
<meta name="keywords" content="app, web app, single page web app, JunyTony, Homem-Aranha, Mr. Beast, Mecuri_88">

<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/css?family=Roboto" 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() {
// Define the heroes data
const heroes = [
{
name: 'JunyTony',
image: 'https://via.placeholder.com/150',
description: 'JunyTony is a talented content creator known for his unique and entertaining videos.'
},
{
name: 'Homem-Aranha',
image: 'https://via.placeholder.com/150',
description: 'Homem-Aranha, also known as Spider-Man, is a superhero with incredible acrobatic abilities and the power to shoot webs.'
},
{
name: 'Mr. Beast',
image: 'https://via.placeholder.com/150',
description: 'Mr. Beast is a popular YouTuber known for his philanthropic stunts and creative content.'
},
{
name: 'Mecuri_88',
image: 'https://via.placeholder.com/150',
description: 'Mecuri_88 is a skilled gamer and streamer who entertains his audience with his gameplay and commentary.'
}
];

// Render the heroes
const mainContainer = document.getElementById('main-container');
heroes.forEach(hero => {
const heroCard = document.createElement('div');
heroCard.classList.add('card', 'mb-3');

const heroImage = document.createElement('img');
heroImage.classList.add('card-img-top');
heroImage.src = hero.image;
heroImage.alt = hero.name;

const heroCardBody = document.createElement('div');
heroCardBody.classList.add('card-body');

const heroName = document.createElement('h5');
heroName.classList.add('card-title');
heroName.textContent = hero.name;

const heroDescription = document.createElement('p');
heroDescription.classList.add('card-text');
heroDescription.textContent = hero.description;

heroCardBody.appendChild(heroName);
heroCardBody.appendChild(heroDescription);

heroCard.appendChild(heroImage);
heroCard.appendChild(heroCardBody);

mainContainer.appendChild(heroCard);
});
});

} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>

<style>
body {
font-family: 'Roboto', sans-serif;
background-color: #f8f9fa;
}

.card {
border: none;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
background-color: #fff;
transition: transform 0.3s ease-in-out;
}

.card:hover {
transform: translateY(-5px);
}

.card-img-top {
border-radius: 10px 10px 0 0;
}

.card-title {
font-size: 1.25rem;
font-weight: bold;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<!-- App HTML Goes Here -->
</div>
</body>
</html>