
@ -0,0 +1,327 @@ |
|||
/*! |
|||
* Bootstrap Reboot v4.4.1 (https://getbootstrap.com/) |
|||
* Copyright 2011-2019 The Bootstrap Authors |
|||
* Copyright 2011-2019 Twitter, Inc. |
|||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) |
|||
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md) |
|||
*/ |
|||
*, |
|||
*::before, |
|||
*::after { |
|||
box-sizing: border-box; |
|||
} |
|||
|
|||
html { |
|||
font-family: sans-serif; |
|||
line-height: 1.15; |
|||
-webkit-text-size-adjust: 100%; |
|||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); |
|||
} |
|||
|
|||
article, aside, figcaption, figure, footer, header, hgroup, main, nav, section { |
|||
display: block; |
|||
} |
|||
|
|||
body { |
|||
margin: 0; |
|||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; |
|||
font-size: 1rem; |
|||
font-weight: 400; |
|||
line-height: 1.5; |
|||
color: #212529; |
|||
text-align: left; |
|||
background-color: #fff; |
|||
} |
|||
|
|||
[tabindex="-1"]:focus:not(:focus-visible) { |
|||
outline: 0 !important; |
|||
} |
|||
|
|||
hr { |
|||
box-sizing: content-box; |
|||
height: 0; |
|||
overflow: visible; |
|||
} |
|||
|
|||
h1, h2, h3, h4, h5, h6 { |
|||
margin-top: 0; |
|||
margin-bottom: 0.5rem; |
|||
} |
|||
|
|||
p { |
|||
margin-top: 0; |
|||
margin-bottom: 1rem; |
|||
} |
|||
|
|||
abbr[title], |
|||
abbr[data-original-title] { |
|||
text-decoration: underline; |
|||
-webkit-text-decoration: underline dotted; |
|||
text-decoration: underline dotted; |
|||
cursor: help; |
|||
border-bottom: 0; |
|||
-webkit-text-decoration-skip-ink: none; |
|||
text-decoration-skip-ink: none; |
|||
} |
|||
|
|||
address { |
|||
margin-bottom: 1rem; |
|||
font-style: normal; |
|||
line-height: inherit; |
|||
} |
|||
|
|||
ol, |
|||
ul, |
|||
dl { |
|||
margin-top: 0; |
|||
margin-bottom: 1rem; |
|||
} |
|||
|
|||
ol ol, |
|||
ul ul, |
|||
ol ul, |
|||
ul ol { |
|||
margin-bottom: 0; |
|||
} |
|||
|
|||
dt { |
|||
font-weight: 700; |
|||
} |
|||
|
|||
dd { |
|||
margin-bottom: .5rem; |
|||
margin-left: 0; |
|||
} |
|||
|
|||
blockquote { |
|||
margin: 0 0 1rem; |
|||
} |
|||
|
|||
b, |
|||
strong { |
|||
font-weight: bolder; |
|||
} |
|||
|
|||
small { |
|||
font-size: 80%; |
|||
} |
|||
|
|||
sub, |
|||
sup { |
|||
position: relative; |
|||
font-size: 75%; |
|||
line-height: 0; |
|||
vertical-align: baseline; |
|||
} |
|||
|
|||
sub { |
|||
bottom: -.25em; |
|||
} |
|||
|
|||
sup { |
|||
top: -.5em; |
|||
} |
|||
|
|||
a { |
|||
color: #007bff; |
|||
text-decoration: none; |
|||
background-color: transparent; |
|||
} |
|||
|
|||
a:hover { |
|||
color: #0056b3; |
|||
text-decoration: underline; |
|||
} |
|||
|
|||
a:not([href]) { |
|||
color: inherit; |
|||
text-decoration: none; |
|||
} |
|||
|
|||
a:not([href]):hover { |
|||
color: inherit; |
|||
text-decoration: none; |
|||
} |
|||
|
|||
pre, |
|||
code, |
|||
kbd, |
|||
samp { |
|||
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; |
|||
font-size: 1em; |
|||
} |
|||
|
|||
pre { |
|||
margin-top: 0; |
|||
margin-bottom: 1rem; |
|||
overflow: auto; |
|||
} |
|||
|
|||
figure { |
|||
margin: 0 0 1rem; |
|||
} |
|||
|
|||
img { |
|||
vertical-align: middle; |
|||
border-style: none; |
|||
} |
|||
|
|||
svg { |
|||
overflow: hidden; |
|||
vertical-align: middle; |
|||
} |
|||
|
|||
table { |
|||
border-collapse: collapse; |
|||
} |
|||
|
|||
caption { |
|||
padding-top: 0.75rem; |
|||
padding-bottom: 0.75rem; |
|||
color: #6c757d; |
|||
text-align: left; |
|||
caption-side: bottom; |
|||
} |
|||
|
|||
th { |
|||
text-align: inherit; |
|||
} |
|||
|
|||
label { |
|||
display: inline-block; |
|||
margin-bottom: 0.5rem; |
|||
} |
|||
|
|||
button { |
|||
border-radius: 0; |
|||
} |
|||
|
|||
button:focus { |
|||
outline: 1px dotted; |
|||
outline: 5px auto -webkit-focus-ring-color; |
|||
} |
|||
|
|||
input, |
|||
button, |
|||
select, |
|||
optgroup, |
|||
textarea { |
|||
margin: 0; |
|||
font-family: inherit; |
|||
font-size: inherit; |
|||
line-height: inherit; |
|||
} |
|||
|
|||
button, |
|||
input { |
|||
overflow: visible; |
|||
} |
|||
|
|||
button, |
|||
select { |
|||
text-transform: none; |
|||
} |
|||
|
|||
select { |
|||
word-wrap: normal; |
|||
} |
|||
|
|||
button, |
|||
[type="button"], |
|||
[type="reset"], |
|||
[type="submit"] { |
|||
-webkit-appearance: button; |
|||
} |
|||
|
|||
button:not(:disabled), |
|||
[type="button"]:not(:disabled), |
|||
[type="reset"]:not(:disabled), |
|||
[type="submit"]:not(:disabled) { |
|||
cursor: pointer; |
|||
} |
|||
|
|||
button::-moz-focus-inner, |
|||
[type="button"]::-moz-focus-inner, |
|||
[type="reset"]::-moz-focus-inner, |
|||
[type="submit"]::-moz-focus-inner { |
|||
padding: 0; |
|||
border-style: none; |
|||
} |
|||
|
|||
input[type="radio"], |
|||
input[type="checkbox"] { |
|||
box-sizing: border-box; |
|||
padding: 0; |
|||
} |
|||
|
|||
input[type="date"], |
|||
input[type="time"], |
|||
input[type="datetime-local"], |
|||
input[type="month"] { |
|||
-webkit-appearance: listbox; |
|||
} |
|||
|
|||
textarea { |
|||
overflow: auto; |
|||
resize: vertical; |
|||
} |
|||
|
|||
fieldset { |
|||
min-width: 0; |
|||
padding: 0; |
|||
margin: 0; |
|||
border: 0; |
|||
} |
|||
|
|||
legend { |
|||
display: block; |
|||
width: 100%; |
|||
max-width: 100%; |
|||
padding: 0; |
|||
margin-bottom: .5rem; |
|||
font-size: 1.5rem; |
|||
line-height: inherit; |
|||
color: inherit; |
|||
white-space: normal; |
|||
} |
|||
|
|||
progress { |
|||
vertical-align: baseline; |
|||
} |
|||
|
|||
[type="number"]::-webkit-inner-spin-button, |
|||
[type="number"]::-webkit-outer-spin-button { |
|||
height: auto; |
|||
} |
|||
|
|||
[type="search"] { |
|||
outline-offset: -2px; |
|||
-webkit-appearance: none; |
|||
} |
|||
|
|||
[type="search"]::-webkit-search-decoration { |
|||
-webkit-appearance: none; |
|||
} |
|||
|
|||
::-webkit-file-upload-button { |
|||
font: inherit; |
|||
-webkit-appearance: button; |
|||
} |
|||
|
|||
output { |
|||
display: inline-block; |
|||
} |
|||
|
|||
summary { |
|||
display: list-item; |
|||
cursor: pointer; |
|||
} |
|||
|
|||
template { |
|||
display: none; |
|||
} |
|||
|
|||
[hidden] { |
|||
display: none !important; |
|||
} |
|||
/*# sourceMappingURL=bootstrap-reboot.css.map */ |
After Width: | Height: | Size: 89 KiB |
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 44 KiB |
After Width: | Height: | Size: 56 KiB |
After Width: | Height: | Size: 40 KiB |
After Width: | Height: | Size: 47 KiB |
After Width: | Height: | Size: 40 KiB |
After Width: | Height: | Size: 8.8 KiB |
After Width: | Height: | Size: 6.4 KiB |
After Width: | Height: | Size: 6.3 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 9.9 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 9.5 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 9.3 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 6.0 KiB |
After Width: | Height: | Size: 5.2 KiB |
After Width: | Height: | Size: 6.5 KiB |
After Width: | Height: | Size: 4.8 KiB |
After Width: | Height: | Size: 8.2 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 6.4 KiB |
After Width: | Height: | Size: 6.9 KiB |
After Width: | Height: | Size: 7.9 KiB |
After Width: | Height: | Size: 8.7 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 6.5 KiB |
After Width: | Height: | Size: 7.4 KiB |
After Width: | Height: | Size: 4.1 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 7.8 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 8.9 KiB |
After Width: | Height: | Size: 6.7 KiB |
After Width: | Height: | Size: 8.2 KiB |
After Width: | Height: | Size: 9.6 KiB |
After Width: | Height: | Size: 6.9 KiB |
After Width: | Height: | Size: 6.5 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 7.7 KiB |
@ -0,0 +1,166 @@ |
|||
<!DOCTYPE html> |
|||
<html> |
|||
|
|||
<head> |
|||
<meta charset="utf-8"> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> |
|||
|
|||
<link rel="stylesheet" type="text/css" href="css/bootstrap-reboot.css"> |
|||
<link rel="stylesheet" type="text/css" href="css/bootstrap.css"> |
|||
<link rel="stylesheet" type="text/css" href="css/bootstrap-grid.css"> |
|||
|
|||
<script src="js/jquery.js"></script> |
|||
|
|||
<title>E - letenka</title> |
|||
<style > |
|||
body{ |
|||
background-image: url(img/original.jpeg); |
|||
background-size: cover; |
|||
background-repeat: no-repeat; |
|||
} |
|||
</style> |
|||
</head> |
|||
|
|||
<body> |
|||
<div class="container"> |
|||
|
|||
|
|||
<div class="row"> |
|||
<div class="col-md-3"> |
|||
<h3>E - letenka</h3> |
|||
<a>zadejte datum/čas</a> |
|||
<form method="POST" action="" id="main-form"> |
|||
<input type="date" name="den-odletu" min="2020-03-04" id="den-odletu" class="form-control"> |
|||
<a>zadejte destinaci</a> |
|||
<div class="form-group"> |
|||
<select name="cil"> |
|||
<option value="Brno"> Brno </option> |
|||
<option value="Berlín">Berlín</option> |
|||
<option value="Praha">Praha</option> |
|||
<option value="Pardubice"> Pardubice </option> |
|||
<option value="Bratislava">Bratislava</option> |
|||
<option value="Ostrava">Ostrava</option> |
|||
</select> |
|||
</div> |
|||
<a>zadejte třídu</a> |
|||
<div class="form-group"> |
|||
<select name="trida"> |
|||
|
|||
<option value="normal">normal</option> |
|||
<option value="bussiness">Bussiness</option> |
|||
<option value="economy">Economy</option> |
|||
</select> |
|||
</div> |
|||
<a>zadejte počet osob</a> |
|||
<div class="form-group"> |
|||
|
|||
<input placeholder="Počet osob" value="1" type="number" min="1" value="pocet" id="pocetOsob"> |
|||
|
|||
</div> |
|||
<a > vyberte sedadlo</a> |
|||
<div class="form-group"> |
|||
<table id="letadlo"> |
|||
</table> |
|||
|
|||
</div> |
|||
<input type="submit" name="book" value="Rezervovat let" class="btn btn-primary"> |
|||
</form> |
|||
</div> |
|||
<div class="col-md-9 border-left"> |
|||
<br> |
|||
<div id="order-box"> |
|||
|
|||
</div> |
|||
|
|||
</div> |
|||
</div> |
|||
</div> |
|||
</body> |
|||
|
|||
</html> |
|||
|
|||
<script> |
|||
|
|||
|
|||
|
|||
|
|||
$(this).ready(function(){ |
|||
|
|||
let pocetMistLetadlo = 9; |
|||
let rady = 3; |
|||
|
|||
let osoby = $("#pocetOsob").val(); |
|||
let vybrano = 0; |
|||
|
|||
$("#pocetOsob").attr("max",pocetMistLetadlo); |
|||
|
|||
$("#pocetOsob").change(function(){ |
|||
osoby = $("#pocetOsob").val(); |
|||
}); |
|||
|
|||
$("#main-form").submit(function(e){ |
|||
e.preventDefault(); |
|||
alert("Chcete Rezervovat tento let?"); |
|||
}); |
|||
|
|||
|
|||
for(let i = 1; i <= rady;i++){ |
|||
|
|||
$("#letadlo").append("<tr>"); |
|||
|
|||
for(let j = 1; j <= (pocetMistLetadlo/rady);j++){ |
|||
|
|||
$("#letadlo tr:last-child").append("<td>"+ j +"</td>"); |
|||
$("#letadlo td:last-child").css("background-color","orange"); |
|||
$("#letadlo td:last-child").attr("id",i+"-"+j); |
|||
|
|||
} |
|||
} |
|||
|
|||
let send = false; |
|||
|
|||
$("#main-form").submit(function(e){ |
|||
|
|||
let formData = $("#main-form").serializeArray(); |
|||
|
|||
console.log(formData[0]["name"]); |
|||
console.log(formData[0]["value"]); |
|||
|
|||
if(!send){ |
|||
for(let i = 0;i < formData.length;i++){ |
|||
|
|||
$("#order-box").append(formData[i]["name"]+": "); |
|||
$("#order-box").append(formData[i]["value"]); |
|||
$("#order-box").append("<br>"); |
|||
} |
|||
send = true; |
|||
|
|||
} |
|||
|
|||
|
|||
if(send){ |
|||
e.preventDefault(); |
|||
} |
|||
else{ |
|||
alert("Objednávka byla zrušena."); |
|||
|
|||
} |
|||
|
|||
}); |
|||
|
|||
$("#letadlo td").click(function(e){ |
|||
$(e.target).text(); |
|||
|
|||
if(vybrano >= osoby){ |
|||
alert("Moc osob"); |
|||
return false; |
|||
} |
|||
|
|||
$(e.target).css("background-color","red"); |
|||
vybrano = vybrano+1; |
|||
|
|||
}); |
|||
|
|||
|
|||
}); |
|||
</script> |