create code.use
Browse files
Code.use
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="ru">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Генерация видео</title>
|
| 7 |
+
<style>
|
| 8 |
+
body {
|
| 9 |
+
font-family: Arial, sans-serif;
|
| 10 |
+
margin: 20px;
|
| 11 |
+
}
|
| 12 |
+
#upload {
|
| 13 |
+
margin-bottom: 10px;
|
| 14 |
+
}
|
| 15 |
+
#prompt {
|
| 16 |
+
margin-bottom: 10px;
|
| 17 |
+
}
|
| 18 |
+
#generate {
|
| 19 |
+
padding: 10px 20px;
|
| 20 |
+
background-color: #4CAF50;
|
| 21 |
+
color: white;
|
| 22 |
+
border: none;
|
| 23 |
+
cursor: pointer;
|
| 24 |
+
}
|
| 25 |
+
</style>
|
| 26 |
+
</head>
|
| 27 |
+
<body>
|
| 28 |
+
<h1>Генерация видео</h1>
|
| 29 |
+
<input type="file" id="upload" accept="image/*" placeholder="Выберите фото (необязательно)">
|
| 30 |
+
<input type="text" id="prompt" placeholder="Введите ваш промт">
|
| 31 |
+
<button id="generate">Сгенерировать видео</button>
|
| 32 |
+
|
| 33 |
+
<script>
|
| 34 |
+
document.getElementById('generate').addEventListener('click', function() {
|
| 35 |
+
const image = document.getElementById('upload').files[0];
|
| 36 |
+
const prompt = document.getElementById('prompt').value;
|
| 37 |
+
|
| 38 |
+
if (!prompt) {
|
| 39 |
+
alert('Пожалуйста, введите промт.');
|
| 40 |
+
return;
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
// Здесь будет логика генерации видео
|
| 44 |
+
alert('Видео сгенерировано!');
|
| 45 |
+
});
|
| 46 |
+
</script>
|
| 47 |
+
</body>
|
| 48 |
+
</html>
|