Reactors React to Cartoon Episode
About this app
Reactors React to Cartoon Episode Reactors React to Cartoon Episode
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>Reactors React to Cartoon Episode</title>
<meta name="description" content="Reactors React to Cartoon Episode">
<meta name="keywords" content="reactors, cartoon, episode, YouTube">
<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() {
// Video URL and Reactors
const videoURL = "https://www.youtube.com/watch?v=XGmMPl-bMAg";
const reactors = [
{ name: "Markiplier", reactionURL: "https://www.youtube.com/watch?v=REPLACE_WITH_REACTION_URL" },
{ name: "Vannamelon", reactionURL: "https://www.youtube.com/watch?v=REPLACE_WITH_REACTION_URL" },
{ name: "PewDiePie", reactionURL: "https://www.youtube.com/watch?v=REPLACE_WITH_REACTION_URL" },
{ name: "iHasCupquake", reactionURL: "https://www.youtube.com/watch?v=REPLACE_WITH_REACTION_URL" },
{ name: "shane", reactionURL: "https://www.youtube.com/watch?v=REPLACE_WITH_REACTION_URL" },
{ name: "EthGoesBOOM", reactionURL: "https://www.youtube.com/watch?v=REPLACE_WITH_REACTION_URL" },
{ name: "Joey Graceffa", reactionURL: "https://www.youtube.com/watch?v=REPLACE_WITH_REACTION_URL" },
{ name: "Jacksepticeye", reactionURL: "https://www.youtube.com/watch?v=REPLACE_WITH_REACTION_URL" },
{ name: "YOGSCAST Lewis & Simon", reactionURL: "https://www.youtube.com/watch?v=REPLACE_WITH_REACTION_URL" },
{ name: "PointlessBlogGames", reactionURL: "https://www.youtube.com/watch?v=REPLACE_WITH_REACTION_URL" },
{ name: "Yammy", reactionURL: "https://www.youtube.com/watch?v=REPLACE_WITH_REACTION_URL" }
];
// Function to generate random index for reactors array
function getRandomIndex(max) {
return Math.floor(Math.random() * max);
}
// Function to handle button click
function handleClick(reactor) {
window.location.href = reactor.reactionURL.replace("REPLACE_WITH_REACTION_URL", videoURL);
}
// Create buttons for each reactor
const buttonContainer = document.getElementById("button-container");
reactors.forEach(function(reactor) {
const button = document.createElement("button");
button.innerHTML = reactor.name;
button.className = "btn btn-primary";
button.addEventListener("click", function() {
handleClick(reactor);
});
buttonContainer.appendChild(button);
});
// Create button for real video
const realVideoButton = document.createElement("button");
realVideoButton.innerHTML = "Real Video";
realVideoButton.className = "btn btn-primary";
realVideoButton.addEventListener("click", function() {
window.location.href = videoURL;
});
buttonContainer.appendChild(realVideoButton);
});
} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>
<style>
/* App CSS Goes Here */
body {
background-color: #f7f7f7;
font-family: 'Arial', sans-serif;
}
.container {
max-width: 600px;
margin: 0 auto;
padding: 20px;
}
.btn {
margin-bottom: 10px;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>Reactors React to Cartoon Episode</h1>
<div id="button-container">
<!-- Buttons will be dynamically generated here -->
</div>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!