summaryrefslogtreecommitdiff
path: root/rannak/mangud/partorg
diff options
context:
space:
mode:
Diffstat (limited to 'rannak/mangud/partorg')
-rw-r--r--rannak/mangud/partorg/kuulsused/index.html179
-rw-r--r--rannak/mangud/partorg/kuulsused/pildid/galileo.jpgbin0 -> 785072 bytes
-rw-r--r--rannak/mangud/partorg/kuulsused/pildid/ilves.jpgbin0 -> 14525 bytes
-rw-r--r--rannak/mangud/partorg/kuulsused/pildid/kaljulaid.jpgbin0 -> 17039 bytes
-rw-r--r--rannak/mangud/partorg/kuulsused/pildid/karis.jpgbin0 -> 17011 bytes
-rw-r--r--rannak/mangud/partorg/kuulsused/pildid/meri.jpgbin0 -> 17891 bytes
-rw-r--r--rannak/mangud/partorg/kuulsused/pildid/pats.jpgbin0 -> 69867 bytes
-rw-r--r--rannak/mangud/partorg/kuulsused/pildid/queen.jpgbin0 -> 18966 bytes
-rw-r--r--rannak/mangud/partorg/kuulsused/pildid/ruutel.jpgbin0 -> 13224 bytes
-rw-r--r--rannak/mangud/partorg/kuulsused/script.js71
-rw-r--r--rannak/mangud/partorg/kuulsused/styles.css91
11 files changed, 341 insertions, 0 deletions
diff --git a/rannak/mangud/partorg/kuulsused/index.html b/rannak/mangud/partorg/kuulsused/index.html
new file mode 100644
index 0000000..9944db7
--- /dev/null
+++ b/rannak/mangud/partorg/kuulsused/index.html
@@ -0,0 +1,179 @@
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=, initial-scale=1.0">
+ <title>Kuusused</title>
+ <link rel="stylesheet" href="styles.css">
+ <!-- Bootstrap - CSS only -->
+ <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous">
+</head>
+
+<body class="bg-dark text-white">
+
+ <div class="container text-center text-white align-items-center pb-5">
+ <h1 class="pb-1 pt-2">Kuulsused</h1>
+ <p>Vii kokku inimese nimi ja nägu.</p>
+
+ <div class="row">
+ <div>
+ <button class="moveOn" disabled>Liigu Edasi</button>
+ </div>
+
+ </div>
+
+ <!-- Button trigger modal -->
+ <button type="button" class="btn btn-primary modalButton" data-bs-toggle="modal" data-bs-target="#myModal">
+ Sissejuhatus
+ </button>
+
+
+ </div>
+
+
+ <!-- Modal -->
+ <div class="modal fade text-black" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
+ <div class="modal-dialog" role="document">
+ <div class="modal-content">
+
+ <div class="modal-header">
+ <h5 class="modal-title" id="myModalLabel">Sissejuhatav info Kuulsuste Mängule</h5>
+ <button type="button" class="closeModalButton" data-bs-dismiss="modal" aria-label="Close">
+ <span aria-hidden="true">&times;</span>
+ </button>
+ </div>
+
+ <div class="modal-body">
+ Odio eu feugiat pretium, nibh ipsum consequat nisl, vel pretium lectus quam id leo?
+ Arcu non odio euismod lacinia at quis risus sed vulputate odio. Nullam non nisi est,
+ sit amet facilisis magna etiam tempor, orci eu lobortis elementum,
+ nibh tellus molestie nunc, non blandit massa enim nec dui nunc.
+ <br/>
+ Odio eu feugiat pretium, nibh ipsum consequat nisl, vel pretium lectus quam id leo?
+ Arcu non odio euismod lacinia at quis risus sed vulputate odio. Nullam non nisi est,
+ sit amet facilisis magna etiam tempor, orci eu lobortis elementum,
+ nibh tellus molestie nunc, non blandit massa enim nec dui nunc.
+ <br/>
+ odio eu feugiat pretium, nibh ipsum consequat nisl, vel pretium lectus quam id leo?
+ arcu non odio euismod lacinia at quis risus sed vulputate odio. nullam non nisi est,
+ sit amet facilisis magna etiam tempor, orci eu lobortis elementum,
+ nibh tellus molestie nunc, non blandit massa enim nec dui nunc.
+ </div>
+
+ </div>
+ </div>
+ </div>
+
+
+ <!-- Esimene rida -->
+ <div class="lists">
+ <div class="row">
+
+ <div class="col imgBox text-center">
+ <img src="pildid/pats.jpg" alt="Konstantin Päts img">
+ <p>
+ "Siia Lühikene info sellekohta Kes oli ja Mida tegi.
+ natuke placeholder teksti veel ja nii ja naa ja see ka."
+ </p>
+ <div id="pats" class="list"></div>
+ </div>
+
+ <div class="list col startBasket text-center">
+ <div id="pats" class="list-item" draggable="true">Konstantin Päts</div>
+ <div id="karis" class="list-item" draggable="true">Alar Karis</div>
+ <div id="meri" class="list-item" draggable="true">Lennart Meri</div>
+ <div id="ruutel" class="list-item" draggable="true">Arnold Rüütel</div>
+ <div id="ilves" class="list-item" draggable="true">Toomas Hendrik Ilves</div>
+ <div id="kaljulaid" class="list-item" draggable="true">Kersti Kaljulaid</div>
+ <div id="queen" class="list-item" draggable="true">Elizabth II</div>
+ <div id="galileo" class="list-item" draggable="true">Galileo Galilei</div>
+ </div>
+
+ <div class="col imgBox text-center">
+ <img src="pildid/karis.jpg" alt="Alar Karis img">
+ <p>
+ "Siia Lühikene info sellekohta Kes oli ja Mida tegi.
+ natuke placeholder teksti veel ja nii ja naa ja see ka."
+ </p>
+ <div id="karis" class="list"></div>
+ </div>
+
+ </div>
+ </div>
+
+ <!-- Teine rida -->
+
+ <div class="lists">
+ <div class="row">
+
+ <div class="col imgBox text-center">
+ <img src="pildid/ruutel.jpg" alt="Arnold Rüütel img">
+ <p>
+ "Siia Lühikene info sellekohta Kes oli ja Mida tegi.
+ natuke placeholder teksti veel ja nii ja naa ja see ka."
+ </p>
+ <div id="ruutel" class="list"></div>
+ </div>
+
+ <div class="col imgBox text-center">
+ <img src="pildid/galileo.jpg" alt="Galileo img">
+ <p>
+ "Siia Lühikene info sellekohta Kes oli ja Mida tegi.
+ natuke placeholder teksti veel ja nii ja naa ja see ka."
+ </p>
+ <div id="galileo" class="list"></div>
+ </div>
+
+ <div class="col imgBox text-center">
+ <img src="pildid/queen.jpg" alt="Queen img">
+ <p>
+ "Siia Lühikene info sellekohta Kes oli ja Mida tegi.
+ natuke placeholder teksti veel ja nii ja naa ja see ka."
+ </p>
+ <div id="queen" class="list"></div>
+ </div>
+
+ </div>
+ </div>
+
+ <!-- Kolmas Rida -->
+
+ <div class="lists">
+ <div class="row">
+
+ <div class="col imgBox text-center">
+ <img src="pildid/kaljulaid.jpg" alt="Kersti Kaljulaid img">
+ <p>
+ "Siia Lühikene info sellekohta Kes oli ja Mida tegi.
+ natuke placeholder teksti veel ja nii ja naa ja see ka."
+ </p>
+ <div id="kaljulaid" class="list"></div>
+ </div>
+
+ <div class="col imgBox text-center">
+ <img src="pildid/ilves.jpg" alt="Toomas Hendrik Ilves img">
+ <p>
+ "Siia Lühikene info sellekohta Kes oli ja Mida tegi.
+ natuke placeholder teksti veel ja nii ja naa ja see ka."
+ </p>
+ <div id="ilves" class="list"></div>
+ </div>
+
+ <div class="col imgBox text-center">
+ <img src="pildid/meri.jpg" alt="Lennart Meri img">
+ <p>
+ "Siia Lühikene info sellekohta Kes oli ja Mida tegi.
+ natuke placeholder teksti veel ja nii ja naa ja see ka."
+ </p>
+ <div id="meri" class="list"></div>
+ </div>
+
+ </div>
+ </div>
+
+ <script src="script.js"></script>
+
+ <!-- JavaScript Bundle with Popper -->
+ <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" crossorigin="anonymous"></script>
+</body>
+</html>
diff --git a/rannak/mangud/partorg/kuulsused/pildid/galileo.jpg b/rannak/mangud/partorg/kuulsused/pildid/galileo.jpg
new file mode 100644
index 0000000..311780c
--- /dev/null
+++ b/rannak/mangud/partorg/kuulsused/pildid/galileo.jpg
Binary files differ
diff --git a/rannak/mangud/partorg/kuulsused/pildid/ilves.jpg b/rannak/mangud/partorg/kuulsused/pildid/ilves.jpg
new file mode 100644
index 0000000..026be4a
--- /dev/null
+++ b/rannak/mangud/partorg/kuulsused/pildid/ilves.jpg
Binary files differ
diff --git a/rannak/mangud/partorg/kuulsused/pildid/kaljulaid.jpg b/rannak/mangud/partorg/kuulsused/pildid/kaljulaid.jpg
new file mode 100644
index 0000000..2b1a230
--- /dev/null
+++ b/rannak/mangud/partorg/kuulsused/pildid/kaljulaid.jpg
Binary files differ
diff --git a/rannak/mangud/partorg/kuulsused/pildid/karis.jpg b/rannak/mangud/partorg/kuulsused/pildid/karis.jpg
new file mode 100644
index 0000000..ebaf172
--- /dev/null
+++ b/rannak/mangud/partorg/kuulsused/pildid/karis.jpg
Binary files differ
diff --git a/rannak/mangud/partorg/kuulsused/pildid/meri.jpg b/rannak/mangud/partorg/kuulsused/pildid/meri.jpg
new file mode 100644
index 0000000..978f915
--- /dev/null
+++ b/rannak/mangud/partorg/kuulsused/pildid/meri.jpg
Binary files differ
diff --git a/rannak/mangud/partorg/kuulsused/pildid/pats.jpg b/rannak/mangud/partorg/kuulsused/pildid/pats.jpg
new file mode 100644
index 0000000..07b4fff
--- /dev/null
+++ b/rannak/mangud/partorg/kuulsused/pildid/pats.jpg
Binary files differ
diff --git a/rannak/mangud/partorg/kuulsused/pildid/queen.jpg b/rannak/mangud/partorg/kuulsused/pildid/queen.jpg
new file mode 100644
index 0000000..bc0aea5
--- /dev/null
+++ b/rannak/mangud/partorg/kuulsused/pildid/queen.jpg
Binary files differ
diff --git a/rannak/mangud/partorg/kuulsused/pildid/ruutel.jpg b/rannak/mangud/partorg/kuulsused/pildid/ruutel.jpg
new file mode 100644
index 0000000..5cf9c07
--- /dev/null
+++ b/rannak/mangud/partorg/kuulsused/pildid/ruutel.jpg
Binary files differ
diff --git a/rannak/mangud/partorg/kuulsused/script.js b/rannak/mangud/partorg/kuulsused/script.js
new file mode 100644
index 0000000..13b9d1d
--- /dev/null
+++ b/rannak/mangud/partorg/kuulsused/script.js
@@ -0,0 +1,71 @@
+const list_items = document.querySelectorAll(".list-item");
+const lists = document.querySelectorAll(".list");
+
+let draggedItem = null;
+
+for (let i=0; i < list_items.length; i++){
+ const item = list_items[i];
+
+ /* Event Listeners */
+ item.addEventListener("dragstart", e => {
+ draggedItem = item;
+ setTimeout(() => (item.style.display = "none"), 0);
+ });
+
+ item.addEventListener("dragend", e => {
+ setTimeout(() => {
+ draggedItem.style.display = "block";
+ draggedItem = null}, 0);
+ checkIfAllGood();
+ });
+
+ for (let j=0; j < lists.length; j++){
+ const list = lists[j];
+
+ /* Event Listeners */
+
+ list.addEventListener("dragenter",e => (e.preventDefault()));
+
+ list.addEventListener("dragover",e => {
+ e.preventDefault();
+ list.style.backgroundColor = "rgba(0,0,0,0.5)";
+ });
+
+
+ list.addEventListener("dragleave",e => {
+ list.style.backgroundColor = "rgba(0,0,0,0.3)";
+ });
+
+
+ list.addEventListener("drop",e => {
+ if (list.children.length == 0 || list.className.includes("startBasket"))
+ list.append(draggedItem);
+ list.style.backgroundColor = "rgba(0,0,0,0.5)";
+ })
+ }
+
+}
+
+function checkIfAllGood(){
+ let rightDone = [];
+
+ for (let j=0; j < lists.length; j++){
+ const list = lists[j];
+ if (list.className.includes("startBasket"))
+ continue;
+ else if (list.children.length == 1){
+ if (list.id == list.children[0].id){
+ if (!rightDone.includes(list.id))
+ rightDone.push(list.id);
+ console.log(rightDone.length);
+ console.log(rightDone);
+ }
+ }
+ } // For loop end
+
+ if (rightDone.length == 8) {
+ const btn = document.querySelector(".moveOn");
+ btn.disabled = false;
+ btn.onclick = () => location.href = "";
+ }
+}
diff --git a/rannak/mangud/partorg/kuulsused/styles.css b/rannak/mangud/partorg/kuulsused/styles.css
new file mode 100644
index 0000000..857c4c8
--- /dev/null
+++ b/rannak/mangud/partorg/kuulsused/styles.css
@@ -0,0 +1,91 @@
+* {
+ box-sizing: border-box !important;
+}
+
+.moveOn{
+ display: inline-block;
+ border: none;
+ padding: 6px 12px;
+ margin-botton: 0;
+ font-size: 1rem;
+ font-weight: normal;
+ text-align: center;
+ cursor: pointer;
+ border-radius: 4px;
+ background-color: #4BB543;
+ color: white;
+}
+
+button:disabled{
+ opacity: 0.5;
+ cursor: not-allowed;
+}
+
+.row {
+ margin: 0 5% !important;
+}
+
+img {
+ max-width: 15rem !important;
+ height: auto !important;
+ padding: .3rem;
+}
+
+
+.lists .list .list-item {
+ background-color: #b2beb5 !important;
+ color: #21201E;
+ margin: 0.5rem 0;
+ height: 2.5rem;
+ border-radius: 8px !important;
+ cursor: pointer;
+}
+
+.lists .list {
+ background-color: rgba(0, 0, 0, 0.3);
+ min-height: 2.5rem;
+ margin: .5rem;
+ border-radius: 8px !important;
+}
+
+.startBasket {
+ height: 100% !important;
+ min-height: 2rem;
+}
+
+
+/* Modal Stuff */
+
+/*
+.modalButton {
+ position: fixed;
+ top: 0;
+ right: 0;
+ padding: 6px;
+ color: #fff;
+ margin: 3%;
+}
+*/
+
+.closeModalButton {
+ border-radius: 50px;
+}
+
+.modalButton{
+ position: fixed;
+ top: 0;
+ right: 0;
+ padding: 6px;
+ padding: 9px 25px;
+ background-color: rgba(0,136,169,1) !important;
+ border: none !important;
+ border-radius: 50px !important;
+ cursor: pointer !important;
+ transition: all 0.3 ease 0 !important;
+ margin: 3% !important;
+ font-size: 1.2rem !important;
+}
+
+.modalButton:hover{
+ background-color: rgba(0,136,169,0.8) !important;
+}