Browse Source

nova slozka

master
Vít Tlustý 4 years ago
parent
commit
594114a1b3
  1. BIN
      img/background.png
  2. BIN
      img/image_01.jpg
  3. BIN
      img/image_02.jpg
  4. BIN
      img/image_03.jpg
  5. BIN
      img/image_04.jpg
  6. BIN
      img/image_05.jpg
  7. BIN
      img/image_06.jpg
  8. BIN
      img/image_07.jpg
  9. BIN
      img/image_08.jpg
  10. BIN
      img/image_09.jpg
  11. BIN
      img/image_10.jpg
  12. BIN
      img/image_11.jpg
  13. BIN
      img/image_12.jpg
  14. BIN
      img/image_13.jpg
  15. BIN
      img/image_14.jpg
  16. BIN
      img/image_15.jpg
  17. BIN
      img/image_16.jpg
  18. BIN
      img/image_17.jpg
  19. BIN
      img/image_18.jpg
  20. BIN
      img/image_19.jpg
  21. BIN
      img/image_20.jpg
  22. BIN
      img/image_21.jpg
  23. BIN
      img/image_22.jpg
  24. BIN
      img/image_23.jpg
  25. BIN
      img/image_24.jpg
  26. BIN
      img/image_25.jpg
  27. BIN
      img/image_26.jpg
  28. BIN
      img/image_27.jpg
  29. BIN
      img/image_28.jpg
  30. BIN
      img/image_29.jpg
  31. BIN
      img/image_30.jpg
  32. BIN
      img/image_31.jpg
  33. BIN
      img/image_32.jpg
  34. BIN
      img/image_33.jpg
  35. BIN
      img/image_34.jpg
  36. BIN
      img/image_35.jpg
  37. BIN
      img/image_36.jpg
  38. BIN
      img/image_37.jpg
  39. BIN
      img/image_38.jpg
  40. BIN
      img/image_39.jpg
  41. BIN
      img/image_40.jpg
  42. BIN
      img/image_41.jpg
  43. BIN
      img/image_42.jpg
  44. 120
      index.html

BIN
img/background.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
img/image_01.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

BIN
img/image_02.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 306 KiB

BIN
img/image_03.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

BIN
img/image_04.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

BIN
img/image_05.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 KiB

BIN
img/image_06.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

BIN
img/image_07.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

BIN
img/image_08.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

BIN
img/image_09.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB

BIN
img/image_10.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

BIN
img/image_11.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

BIN
img/image_12.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 319 KiB

BIN
img/image_13.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 297 KiB

BIN
img/image_14.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 KiB

BIN
img/image_15.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 344 KiB

BIN
img/image_16.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 KiB

BIN
img/image_17.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 323 KiB

BIN
img/image_18.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

BIN
img/image_19.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 KiB

BIN
img/image_20.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

BIN
img/image_21.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

BIN
img/image_22.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

BIN
img/image_23.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

BIN
img/image_24.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

BIN
img/image_25.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 KiB

BIN
img/image_26.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 336 KiB

BIN
img/image_27.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

BIN
img/image_28.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 KiB

BIN
img/image_29.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

BIN
img/image_30.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

BIN
img/image_31.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

BIN
img/image_32.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

BIN
img/image_33.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

BIN
img/image_34.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

BIN
img/image_35.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
img/image_36.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 KiB

BIN
img/image_37.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 KiB

BIN
img/image_38.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 KiB

BIN
img/image_39.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

BIN
img/image_40.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

BIN
img/image_41.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

BIN
img/image_42.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

120
index.html

@ -0,0 +1,120 @@
<!DOCTYPE html>
<html lang="en">
<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">
<title>Document</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
<style>
</style>
</head>
<body>
<div class="row">
<div class="col-sm-2 card ram" id="1" style="width: 20rem;">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
</div>
</div>
<div class="col-sm-2 card ram" id="2" style="width: 20rem;">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
</div>
</div>
<div class="col-sm-2 card ram" id="3" style="width: 20rem;">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
</div>
</div></div>
<div class="row" id="obrazky" ></div>
<script>
let popisky = [
'Dřevo',
'Les',
'Oblaka',
'Stavba',
'Vlasy',
'Tráva',
'Cesta',
'Ukazatel',
'Cesta 2',
'Pes',
'Pavučina',
'Tráva 2',
'Kmen',
'Kanál',
'Strom',
'Hory',
'Podzim',
'Koleje',
'Zima',
'Fotograf',
'Mlha',
'Větrník',
'Pavučina 2',
'Mlha 2',
'Kopce',
'Podzim 2',
'Kmen 2',
'Pes 2',
'Údolí',
'Hory 2',
'Podzim 3',
'Mlha 3',
'Zima 2',
'Mlha 4',
'Kameny',
'Cesta 3',
'Kmen 3',
'Stavení 2',
'Žebřík',
'Zima 3',
'Skála',
'Pavučina 2',
];
let obrazky = document.querySelector("#obrazky");
let text = document.querySelector("#text")
for (let index = 0; index < popisky.length; index++) {
const element = popisky[index];
let cislo = index + 1;
if (cislo < 10) {
cislo = '0' + cislo;
}
obrazky.innerHTML += '<div class="col-sm-2"><div class="card" data-img="img/image_' + cislo + '.jpg" style="width: "> <img src="img/image_' + cislo + '.jpg" alt=""> <div class="card-body"> <p class="card-text">' + element + '</p> </div></div></div>';
}
let karty = document.querySelectorAll(".card")
for (let index = 0; index < karty.length; index++) {
const element = karty[index];
console.log(karty)
element.addEventListener("click",function () {
let aktiv = document.querySelector(".activ img")
aktiv.setAttribute("src",this.dataset.img)
})
}
let ram =document.querySelectorAll(".ram")
for (let index = 0; index < ram.length; index++) {
const element = ram[index];
element.addEventListener("click",function () {
this.classList.add("activ")
})
}
</script>
</body>
</html>
Loading…
Cancel
Save