Spaces:
No application file
No application file
File size: 3,399 Bytes
709c85a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
# 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>
|