Object Show Generator
About this app
Generate your own object show
Object Show Generator Object Show Generator Number of Contestants: Number of Rounds: Generate Object Show
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>Object Show Generator</title>
<meta name="description" content="Generate your own object show">
<meta name="keywords" content="object show, generator">
<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() {
// Function to generate object show
function generateObjectShow() {
// Get the input values
var contestants = parseInt($('#contestants').val()) || 10;
var rounds = parseInt($('#rounds').val()) || 5;
// Generate the object show
var objectShow = '';
for (var i = 1; i <= rounds; i++) {
objectShow += '<h3>Round ' + i + '</h3>';
objectShow += '<ul>';
for (var j = 1; j <= contestants; j++) {
objectShow += '<li>Contestant ' + j + '</li>';
}
objectShow += '</ul>';
}
// Display the object show
$('#object-show').html(objectShow);
}
// Event listener for generate button
$('#generate-btn').click(function() {
generateObjectShow();
});
// Initial object show generation
generateObjectShow();
});
} 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;
}
#main-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
}
h1 {
color: #333;
margin-bottom: 20px;
}
.form-group {
margin-bottom: 20px;
}
.form-label {
font-weight: bold;
}
.form-input {
width: 100%;
padding: 10px;
border-radius: 5px;
border: 1px solid #ccc;
}
#generate-btn {
padding: 10px 20px;
background-color: #333;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
}
#object-show {
margin-top: 20px;
}
ul {
list-style-type: none;
padding: 0;
margin: 0;
}
li {
margin-bottom: 5px;
padding: 10px;
background-color: #fff;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>Object Show Generator</h1>
<div class="form-group">
<label class="form-label" for="contestants">Number of Contestants:</label>
<input class="form-input" type="number" id="contestants" min="1" value="10">
</div>
<div class="form-group">
<label class="form-label" for="rounds">Number of Rounds:</label>
<input class="form-input" type="number" id="rounds" min="1" value="5">
</div>
<button id="generate-btn">Generate Object Show</button>
<div id="object-show"></div>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!