Ben 10 Omnitrix
About this app
Experience the Ben 10 Omnitrix with voice recognition and alien voice playback.
Ben 10 Omnitrix Ben 10 Omnitrix Tap the Play button and say the name of an alien! Play
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>Ben 10 Omnitrix</title>
<meta name="description" content="Experience the Ben 10 Omnitrix with voice recognition and alien voice playback.">
<meta name="keywords" content="Ben 10, Omnitrix, voice recognition, alien voice">
<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:300,400,500,700&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.
document.addEventListener("DOMContentLoaded", function() {
const alienVoices = {
greymatter: "Hello, I am Greymatter!",
fourarms: "Fourarms reporting for duty!",
heatblast: "Feel the heat! I am Heatblast!",
xlr8: "Zooming in! I am XLR8!",
diamondhead: "Shiny and tough! I am Diamondhead!",
upgrade: "Upgrading systems! I am Upgrade!",
ripjaws: "Swimming into action! I am Ripjaws!",
wildmutt: "Sniffing out the danger! I am Wildmutt!",
stinkfly: "Buzzing through the skies! I am Stinkfly!",
ghostfreak: "Boo! I am Ghostfreak!"
};
const omnitrix = document.getElementById("omnitrix");
const voiceInput = document.getElementById("voice-input");
const playButton = document.getElementById("play-button");
function playAlienVoice() {
const selectedAlien = voiceInput.value.toLowerCase();
const alienVoice = alienVoices[selectedAlien];
if (alienVoice) {
const audio = new Audio("alien-voices/" + selectedAlien + ".mp3");
audio.play();
omnitrix.innerText = alienVoice;
} else {
omnitrix.innerText = "Invalid alien selection!";
}
}
playButton.addEventListener("click", playAlienVoice);
});
} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>
<style>
body {
background-color: #f1f1f1;
font-family: 'Roboto', sans-serif;
}
#main-container {
max-width: 400px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
text-align: center;
}
h1 {
color: #333;
font-size: 24px;
margin-bottom: 20px;
}
#omnitrix {
color: #666;
font-size: 18px;
margin-bottom: 20px;
}
#voice-input {
width: 100%;
padding: 10px;
font-size: 16px;
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
#play-button {
background-color: #007bff;
color: #fff;
border: none;
padding: 10px 20px;
font-size: 16px;
border-radius: 4px;
cursor: pointer;
}
#play-button:hover {
background-color: #0056b3;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>Ben 10 Omnitrix</h1>
<div id="omnitrix">Tap the Play button and say the name of an alien!</div>
<input type="text" id="voice-input" placeholder="Enter Alien Name">
<button id="play-button">Play</button>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!