From fb5b17bca83b0908d5cc76f1330c0b5c3ce24ff7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6rkem=20Kurban?= Date: Tue, 19 Nov 2024 01:23:13 +0300 Subject: [PATCH] DBApp icon added to map Now you can go to the DBApp with the icon. --- Apps/3DHeritageMapApp.html | 2 ++ Apps/3DHeritageScripts.js | 6 ++++++ Apps/3DHeritageStyles.css | 22 ++++++++++++++++++++++ Apps/Images/database.png | Bin 0 -> 801 bytes 4 files changed, 30 insertions(+) create mode 100644 Apps/Images/database.png diff --git a/Apps/3DHeritageMapApp.html b/Apps/3DHeritageMapApp.html index 573943d..95ca05a 100644 --- a/Apps/3DHeritageMapApp.html +++ b/Apps/3DHeritageMapApp.html @@ -53,6 +53,8 @@

Options

+ +
diff --git a/Apps/3DHeritageScripts.js b/Apps/3DHeritageScripts.js index 01c266c..d755428 100644 --- a/Apps/3DHeritageScripts.js +++ b/Apps/3DHeritageScripts.js @@ -392,12 +392,18 @@ document.getElementById('openInfoBox').onclick = () => { document.getElementById('closeOptionsBox').onclick = () => { document.getElementById('optionsBox').style.display = 'none'; document.getElementById('openOptionsBox').style.display = 'block'; + + // Show the dataBaseButton when infoBox is closed + document.getElementById('dataBaseButton').style.display = 'block'; }; // Add event listener for the open options box button document.getElementById('openOptionsBox').onclick = () => { document.getElementById('optionsBox').style.display = 'block'; document.getElementById('openOptionsBox').style.display = 'none'; + + // Hide the dataBaseButton when infoBox is opened + document.getElementById('dataBaseButton').style.display = 'none'; }; diff --git a/Apps/3DHeritageStyles.css b/Apps/3DHeritageStyles.css index 6baf7b4..fd4d445 100644 --- a/Apps/3DHeritageStyles.css +++ b/Apps/3DHeritageStyles.css @@ -66,6 +66,28 @@ margin-bottom: 10px; } + #dataBaseButton { + position: absolute; + top: 60px; + left: 10px; + cursor: pointer; + background-color: rgba(42, 42, 42, 0.8); + border: none; + color: white; + border-radius: 4px; + padding: 5px 5px; + z-index: 1; +} + +#dataBaseButton:hover { + background-color: rgb(37, 150, 190); + border-style: solid; + border: 2px; + border-color: white; +} + + + #infoBox { position: absolute; top: 50px; diff --git a/Apps/Images/database.png b/Apps/Images/database.png new file mode 100644 index 0000000000000000000000000000000000000000..f7314560c01915f953be6cc047858dad20c5e5b1 GIT binary patch literal 801 zcmV++1K#|JP)kHx$ulu|wdJ_ksG$~?3dF5<6I+G>)XgM)buCG)R!x|SI!ba3JOBpj zQIgxhFTeqCl%z~TTS~bC^padn^5CN5*raPieHS>clf15es-CC^z;)oJ`YUiZ$&or} z=3!ZIXr-}9B-v$r%bynoI8tvU`2n~F>?awelu}n!HJXwx zr2_iR5ZD5qQTs{OfnK-qffJx@{QJP~z+K?sY>3q=>Leos3fuE908E{@SEwih> zmE=A3TCLVeE+@I%$PLxQw()^`z#z%PhIi5#0CnT>8skUS2JkHKeAD