Videoretro.ai / Code.txt
Doubleupai's picture
Create Code.txt
0b324eb verified
raw
history blame
3.4 kB
# Retro Style Video Generator
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Retro Style Video Generator</title>
<style>
body {
font-family: 'Arial', sans-serif;
background-color: #f0f0f0;
text-align: center;
}
.container {
margin: 50px auto;
width: 80%;
background-color: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
button {
padding: 10px 20px;
margin: 10px;
border: none;
border-radius: 5px;
background-color: #007BFF;
color: white;
cursor: pointer;
}
button:hover {
background-color: #0056b3;
}
.loading {
display: none;
margin-top: 20px;
}
</style>
</head>
<body>
<div class="container">
<h1>Retro Style Video Generator</h1>
<div>
<button id="textButton">Text in Video</button>
<button id="imageButton">Image in Video</button>
</div>
<div id="textInput" style="display:none;">
<input type="text" id="textPrompt" placeholder="Enter your text prompt">
<button id="goText">Go</button>
<div class="loading" id="loadingText">Loading...</div>
<video id="videoText" controls style="display:none;">
<source src="your-video-source.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
<div id="imageInput" style="display:none;">
<input type="file" id="imageUpload" accept="image/*">
<input type="text" id="imagePrompt" placeholder="Enter your image prompt">
<button id="goImage">Go</button>
<div class="loading" id="loadingImage">Loading...</div>
<video id="videoImage" controls style="display:none;">
<source src="your-video-source.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
</div>
<script>
document.getElementById('textButton').onclick = function() {
document.getElementById('textInput').style.display = 'block';
document.getElementById('imageInput').style.display = 'none';
};
document.getElementById('imageButton').onclick = function() {
document.getElementById('imageInput').style.display = 'block';
document.getElementById('textInput').style.display = 'none';
};
document.getElementById('goText').onclick = function() {
document.getElementById('loadingText').style.display = 'block';
// Simulate loading
setTimeout(function() {
document.getElementById('loadingText').style.display = 'none';
document.getElementById('videoText').style.display = 'block';
}, 2000);
};
document.getElementById('goImage').onclick = function() {
document.getElementById('loadingImage').style.display = 'block';
// Simulate loading
setTimeout(function() {
document.getElementById('loadingImage').style.display = 'none';
document.getElementById('videoImage').style.display = 'block';
}, 2000);
};
</script>
</body>
</html>