Browse Source

letenka js

master
petr 4 years ago
commit
7e4d333652
  1. 3899
      css/bootstrap-grid.css
  2. 327
      css/bootstrap-reboot.css
  3. 10224
      css/bootstrap.css
  4. BIN
      img/Thumbs.db
  5. BIN
      img/original.jpeg
  6. BIN
      img/part1.jpg
  7. BIN
      img/part2.jpg
  8. BIN
      img/part3.jpg
  9. BIN
      img/part4.jpg
  10. BIN
      img/part5.jpg
  11. BIN
      img/part6.jpg
  12. BIN
      img/thumb_1.jpg
  13. BIN
      img/thumb_10.jpg
  14. BIN
      img/thumb_11.jpg
  15. BIN
      img/thumb_12.jpg
  16. BIN
      img/thumb_13.jpg
  17. BIN
      img/thumb_14.jpg
  18. BIN
      img/thumb_15.jpg
  19. BIN
      img/thumb_16.jpg
  20. BIN
      img/thumb_17.jpg
  21. BIN
      img/thumb_18.jpg
  22. BIN
      img/thumb_19.jpg
  23. BIN
      img/thumb_2.jpg
  24. BIN
      img/thumb_20.jpg
  25. BIN
      img/thumb_21.jpg
  26. BIN
      img/thumb_22.jpg
  27. BIN
      img/thumb_23.jpg
  28. BIN
      img/thumb_24.jpg
  29. BIN
      img/thumb_25.jpg
  30. BIN
      img/thumb_26.jpg
  31. BIN
      img/thumb_27.jpg
  32. BIN
      img/thumb_28.jpg
  33. BIN
      img/thumb_29.jpg
  34. BIN
      img/thumb_3.jpg
  35. BIN
      img/thumb_30.jpg
  36. BIN
      img/thumb_31.jpg
  37. BIN
      img/thumb_32.jpg
  38. BIN
      img/thumb_33.jpg
  39. BIN
      img/thumb_34.jpg
  40. BIN
      img/thumb_35.jpg
  41. BIN
      img/thumb_36.jpg
  42. BIN
      img/thumb_37.jpg
  43. BIN
      img/thumb_38.jpg
  44. BIN
      img/thumb_39.jpg
  45. BIN
      img/thumb_4.jpg
  46. BIN
      img/thumb_40.jpg
  47. BIN
      img/thumb_41.jpg
  48. BIN
      img/thumb_42.jpg
  49. BIN
      img/thumb_5.jpg
  50. BIN
      img/thumb_6.jpg
  51. BIN
      img/thumb_7.jpg
  52. BIN
      img/thumb_8.jpg
  53. BIN
      img/thumb_9.jpg
  54. 166
      index.html
  55. 10598
      js/jquery.js
  56. 10598
      js/jquery.js.webarchive

3899
css/bootstrap-grid.css

File diff suppressed because it is too large

327
css/bootstrap-reboot.css

@ -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 */

10224
css/bootstrap.css

File diff suppressed because it is too large

BIN
img/Thumbs.db

Binary file not shown.

BIN
img/original.jpeg

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

BIN
img/part1.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
img/part2.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
img/part3.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

BIN
img/part4.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

BIN
img/part5.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

BIN
img/part6.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

BIN
img/thumb_1.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

BIN
img/thumb_10.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

BIN
img/thumb_11.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

BIN
img/thumb_12.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
img/thumb_13.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
img/thumb_14.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

BIN
img/thumb_15.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
img/thumb_16.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

BIN
img/thumb_17.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
img/thumb_18.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
img/thumb_19.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

BIN
img/thumb_2.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
img/thumb_20.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
img/thumb_21.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

BIN
img/thumb_22.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

BIN
img/thumb_23.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

BIN
img/thumb_24.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

BIN
img/thumb_25.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

BIN
img/thumb_26.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
img/thumb_27.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
img/thumb_28.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
img/thumb_29.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

BIN
img/thumb_3.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

BIN
img/thumb_30.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

BIN
img/thumb_31.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

BIN
img/thumb_32.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

BIN
img/thumb_33.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

BIN
img/thumb_34.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

BIN
img/thumb_35.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

BIN
img/thumb_36.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
img/thumb_37.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
img/thumb_38.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

BIN
img/thumb_39.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
img/thumb_4.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

BIN
img/thumb_40.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

BIN
img/thumb_41.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

BIN
img/thumb_42.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

BIN
img/thumb_5.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

BIN
img/thumb_6.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

BIN
img/thumb_7.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

BIN
img/thumb_8.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
img/thumb_9.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

166
index.html

@ -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>

10598
js/jquery.js

File diff suppressed because it is too large

10598
js/jquery.js.webarchive

File diff suppressed because it is too large
Loading…
Cancel
Save