47 lines
1.4 KiB
HTML
47 lines
1.4 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>
|
|
<p 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>
|
|
</p>
|
|
<!-- make submit possible only if file is choosen -->
|
|
<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>
|
|
|