95 lines
5.0 KiB
HTML
95 lines
5.0 KiB
HTML
|
<html lang="ru">
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<title>Нереальные тесты</title>
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
|
<script type="module" src="./node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
|
||
|
<link href="./node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"/>
|
||
|
<link href="./node_modules/@fortawesome/fontawesome-free/css/all.min.css" rel="stylesheet"/>
|
||
|
<link rel="stylesheet" href="./style.css">
|
||
|
</head>
|
||
|
<body class="d-flex flex-column">
|
||
|
<header>
|
||
|
<nav class="navbar navbar-expand-md navbar-dark">
|
||
|
<div class="container-fluid">
|
||
|
<a class="navbar-brand" href="/">
|
||
|
<name>
|
||
|
<img src="icon.png" class="img-fluid" alt="...">
|
||
|
Нереальные тесты
|
||
|
</name>
|
||
|
</a>
|
||
|
</div>
|
||
|
</nav>
|
||
|
</header>
|
||
|
<main class="container-fluid p-2">
|
||
|
<div class="row justify-content-center">
|
||
|
<form id = "items-form" class="col-md-6 m-0">
|
||
|
<div class="mb-2">
|
||
|
<label class="form-label" for="testName">Название теста</label>
|
||
|
<input id="name" name="testName" class="form-control" type="text" required>
|
||
|
</div>
|
||
|
<div class="mb-2">
|
||
|
<label class="form-label" for="testDescrition">Описание</label>
|
||
|
<input id="description" name="testDescrition" class="form-control" type="text" required>
|
||
|
</div>
|
||
|
<div class="mb-2">
|
||
|
<label class="form-label" for="file">Файл картинки</label>
|
||
|
<input id = "image" type="file" class="form-control" id="file">
|
||
|
</div>
|
||
|
<div class="mb-2 w-100" style="height: 500px;">
|
||
|
<img id="image-preview" src="image.jpg" class="h-100 w-100" style="object-fit: cover;" alt="">
|
||
|
</div>
|
||
|
<div class="mb-2" style="background-color: #445069; display: flex;
|
||
|
flex-direction: column;">
|
||
|
<div class="p-2">
|
||
|
<label class="form-label" for="file">Файл картинки</label>
|
||
|
<input type="file" class="form-control" id="file">
|
||
|
</div>
|
||
|
<div class="p-2 w-100" style="height: 500px;">
|
||
|
<img src="image.jpg" class="h-100 w-100" style="object-fit: cover;" alt="">
|
||
|
</div>
|
||
|
<div class="p-2">
|
||
|
<label class="form-label" for="taskText">Текст вопроса</label>
|
||
|
<input id="taskText" name="taskText" class="form-control" type="text">
|
||
|
</div>
|
||
|
<div class="p-2">
|
||
|
Ответы на вопрос:
|
||
|
<div class="form-check me-3">
|
||
|
<input class="form-check-input" id="checkbox1" name="checkbox1" type="checkbox">
|
||
|
<input id="checkbox1text" name="checkbox1text" class="form-control" type="text" placeholder="ответ 1">
|
||
|
</div>
|
||
|
<div class="form-check me-3">
|
||
|
<input class="form-check-input" id="checkbox2" name="checkbox1" type="checkbox">
|
||
|
<input id="checkbox2text" name="checkbox2text" class="form-control" type="text" placeholder="ответ 2">
|
||
|
</div>
|
||
|
<div class="form-check me-3">
|
||
|
<input class="form-check-input" id="checkbox3" name="checkbox1" type="checkbox">
|
||
|
<input id="checkbox3text" name="checkbox3text" class="form-control" type="text" placeholder="ответ 3">
|
||
|
</div>
|
||
|
<div class="form-check me-3">
|
||
|
<input class="form-check-input" id="checkbox4" name="checkbox1" type="checkbox">
|
||
|
<input id="checkbox4text" name="checkbox4text" class="form-control" type="text" placeholder="ответ 4">
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div id = "btAddTask" class="btn btn-primary startButton" style="background-color: #445069;">Добавить вопрос</div>
|
||
|
<div class="text-center m-3">
|
||
|
<button class="btn btn-primary w-50 startButton" type="submit">Готово</button>
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
</main>
|
||
|
<footer class="footer d-flex flex-shrink-0 justify-content-center align-items-center">
|
||
|
Автор, 2022
|
||
|
</footer>
|
||
|
<script type="module">
|
||
|
import validation from "./js/validation";
|
||
|
import { linesPageForm } from "./js/lines"
|
||
|
|
||
|
document.addEventListener('DOMContentLoaded', () => {
|
||
|
validation();
|
||
|
linesPageForm();
|
||
|
});
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|