-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
94 lines (86 loc) · 4.02 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<title>Document</title>
</head>
<body class="p-2 text-dark bg-opacity-10">
<div>
<select id="languageSelector">
</select>
</div>
<div class="container-md" style="max-width:570px" id="card">
<div class="card shadow-lg" style="border-radius:4px; border:none; max-width:570px">
<div class="card-body banner">
<div class="container">
<h4 class="card-title mb-3 text-uppercase" style="font-weight:700" id='calculationtitle'>Kalkuláció
</h4>
</div>
<!-- form -->
<form id="calculation-form" onsubmit="return false">
<!-- book size -->
<div class="container">
<div class="row g-2">
<div class="col-sm mb-3 form-floating">
<select class="form-select" id="sizeofbook" name='sizeofbook' required>
<option Selected></option>
</select>
<label for="sizeofbook" id='languageBooksize'>Könyv méret (cm)</label>
</div>
<!-- book width -->
<div class="col-sm mb-3 form-floating" id="width" style="display:none">
<input class="form-control" type="number" name="booksizewidth" min="0" id="booksizewidth"
class="form-control" placeholder="" required />
<label for="booksizewidth" id='languageWidth'>Szélesség (cm)</label>
</div>
<!-- book height -->
<div class="col-sm mb-3 form-floating" id="height" style="display:none">
<input class="form-control" type="number" name="booksizeheight" min="0" id="booksizeheight"
class="form-control" placeholder="" required />
<label for="booksizeheight" id='languageHeight'>Hosszúság (cm)</label>
</div>
</div>
</div>
<div class="container">
<div class="row g-2">
<!-- spine -->
<div class="col-sm mb-3 form-group form-floating">
<input type="number" name="booksizespine" min="0" id="booksizespine" class="form-control" placeholder=""
required />
<label for="booksizespine" id='languageSpine'>Gerinc (cm)</label>
</div>
<!-- quantity -->
<div class="col-sm mb-3 form-group form-floating">
<input type="number" name="bookquantity" min="1" id="bookquantity" class="form-control" placeholder=""
required />
<label for="bookquantity" id='languageQuantity'>Mennyiség (db)</label>
</div>
</div>
<!-- material -->
<div class="col-sm mb-3 form-floating">
<select class="form-select" id="typeOfMaterial" name='typeOfMaterial' required>
<option Selected></option>
</select>
<label for="typeOfMaterial" id='languageMaterial'>Anyag</label>
</div>
<!-- button -->
<div class="mb-3 d-grid gap-2">
<button class="btn btn-secondary" id="calculate" type="button">Számolja ki!</button>
<!-- calculation results -->
<input class="form-control text-center" type="text" id="needInMeter" id="basic-addon1" disabled>
</div>
</div>
</form>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-/bQdsTh/da6pkI1MST/rWKFNjaCP5gBSY4sEBT38Q/9RBh9AH40zEOg7Hlq2THRZ"
crossorigin="anonymous"></script>
<script src="bundle.js"></script>
</body>
</html>