From 68d9ccb9433becea20d8fa85b1cfd6ba560ca72a Mon Sep 17 00:00:00 2001
From: ENGO150 <v.smejkal06@gmail.com>
Date: Wed, 31 May 2023 09:56:38 +0200
Subject: [PATCH] added info cookie to map script

---
 res/map/script.js | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/res/map/script.js b/res/map/script.js
index 9c59668..b58d6bf 100644
--- a/res/map/script.js
+++ b/res/map/script.js
@@ -1,5 +1,5 @@
 const points =
-[//2 - 1; 2
+[
     [87.6, 78.4, "1;2", 9, 16],
     [86.2, 69.9, "27"],
     [86.5, 68.55, "26"],
@@ -48,8 +48,19 @@ const points =
 const tolerance_x = 0.2;
 const tolerance_y = 0.3;
 
+function info()
+{
+    if (!document.cookie.includes("opened"))
+    {
+        document.cookie = "opened";
+        alert("Můžete klikat na červené tečky pro otevření panoramat.");
+    }
+}
+
 window.onload = function()
 {
+    info();
+
     let img = document.querySelector("img");
     img.onclick = (e) =>
     {