Sparta V7 Remix - Time Traveling Experience
About this app
Experience the exhilarating journey through time with the Sparta V7 remix, a vibrant app that blends the thrill of history with catchy remix beats. Time travel has never been this fun!
Sparta V7 Remix - Time Traveling Experience Next Event
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>Sparta V7 Remix - Time Traveling Experience</title>
<meta name="description" content="Experience the exhilarating journey through time with the Sparta V7 remix, a vibrant app that blends the thrill of history with catchy remix beats. Time travel has never been this fun!">
<meta name="keywords" content="Sparta, Remix, Time Travel, Music, Fun, History, Interactive, Vibrant, App">
<!-- Libraries -->
<!-- jQuery (3.6.0) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js" crossorigin="anonymous"></script>
<!-- Bootstrap CSS (5.3.3) -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" crossorigin="anonymous">
<!-- Bootstrap JS (5.3.3) -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.min.js" crossorigin="anonymous"></script>
<!-- Font Awesome (6.6.0) -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.6.0/css/fontawesome.min.css" crossorigin="anonymous">
<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 events = [
{ era: "Ancient Greece", description: "Join the Spartans and engage in epic battles!", sound: "https://www.soundjay.com/button/sounds/button-16.mp3" },
{ era: "Renaissance", description: "Experience the burst of art and transformation in society.", sound: "https://www.soundjay.com/button/sounds/button-17.mp3" },
{ era: "Industrial Revolution", description: "Feel the pulse of machinery and innovation to the beat.", sound: "https://www.soundjay.com/button/sounds/button-18.mp3" },
{ era: "Future", description: "A glimpse into tomorrow beyond your wildest dreams!", sound: "https://www.soundjay.com/button/sounds/button-19.mp3" },
];
let currentEventIndex = 0;
const eventContainer = document.getElementById('event-container');
const nextButton = document.getElementById('next-button');
const audioElement = document.getElementById('audio');
function displayEvent(event) {
eventContainer.innerHTML = `
<h2>${event.era}</h2>
<p>${event.description}</p>
`;
audioElement.src = event.sound;
audioElement.play();
}
nextButton.addEventListener('click', function() {
currentEventIndex = (currentEventIndex + 1) % events.length;
displayEvent(events[currentEventIndex]);
});
displayEvent(events[currentEventIndex]);
});
} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>
<style>
/* App CSS Goes Here */
body {
background: linear-gradient(135deg, #74ebd5, #acb6e5);
color: #222;
font-family: 'Arial', sans-serif;
}
h2 {
font-size: 2.5rem;
margin-top: 20px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
p {
font-size: 1.2rem;
}
#main-container {
text-align: center;
padding: 50px;
border-radius: 10px;
box-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
background: rgba(255, 255, 255, 0.8);
}
#next-button {
margin-top: 15px;
padding: 10px 25px;
font-size: 1.2rem;
background-color: #ff6f61;
border: none;
border-radius: 5px;
cursor: pointer;
color: white;
transition: background-color 0.3s;
}
#next-button:hover {
background-color: #ff4f50;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<div id="event-container"></div>
<button id="next-button">Next Event</button>
<audio id="audio" preload="auto"></audio>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!