fixtury_dxf_converter/templates/upload_form.html

50 lines
1.5 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- apply pico css-->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@1/css/pico.min.css">
<!-- apply htmx -->
<script src="https://unpkg.com/htmx.org@1.7.0"></script>
<title>converter</title>
</head>
<body>
<header class="container"><h1>XLSX to DXF Converter</h1></header>
<main class="container">
<form action="" method="post" enctype="multipart/form-data">
<input type="file" id="file-input" name="file" accept=".xls, .csv, .xlsx" required>
<div class="grid">
<label for="range">Velikost textu
</label>
<input type="range" min="0.5" max="10" value="1" step="0.5" id="range" name="range">
<label id="font_size">1</label>
</div>
<label for="file-name">Název výstupního DXF</label>
<input type="text" id="file-name" name="output_file" placeholder="název výstupního DXF:" value="vystupni_body">
<input type="submit" id="submit-button" value="Nahrát a stáhnout hotový">
</form>
</main>
</body>
<script>
document.getElementById('range').addEventListener('input', function() {
document.getElementById('font_size').innerText = this.value;
});
</script>
<style>
#font_size {
margin-left: 10px;
padding-bottom: 5px;
font-size: 24px;
text-align: center;
}
</style>
</html>