Compare commits

..

No commits in common. "d42280eb10cf20b6a014f9ce8d320b5da6bec5fb" and "08c38c6374be6853a430e28ff323b940b4af5f18" have entirely different histories.

5 changed files with 12 additions and 16 deletions

View File

@ -8,6 +8,6 @@
"ws": "^7.4.4"
},
"scripts": {},
"author": "Pőcze Bence and The MapGuesser Contributors <bence@pocze.ch>",
"author": "Pőcze Bence <bence@pocze.ch>",
"license": "GNU AGPL 3.0"
}

View File

@ -157,7 +157,6 @@
#navigation .navigationItem {
margin-top: 10px;
opacity: 70%;
cursor: pointer;
}
#navigation .navigationItem:hover {
@ -189,9 +188,9 @@
}
#showGuessButtonContainer {
position: absolute;
left: 65px;
left: 60px;
bottom: 30px;
right: 20px;
right: 60px;
z-index: 2;
}
#guess {

View File

@ -334,9 +334,6 @@
document.getElementById('guess').style.visibility = null;
document.getElementById('guess').classList.remove('result');
// needs to be set visible after the show guess map hid it in mobile view
document.getElementById("navigation").style.visibility = 'visible';
Game.initialize();
},
@ -361,10 +358,7 @@
document.getElementById('panoCover').style.visibility = 'hidden';
document.getElementById('showGuessButton').style.visibility = null;
document.getElementById('guess').style.visibility = null;
document.getElementById('guess').classList.remove('result');
// needs to be set visible after the show guess map hid it in mobile view
document.getElementById("navigation").style.visibility = 'visible';
document.getElementById('guess').classList.remove('result')
Game.map.setOptions({
draggableCursor: 'crosshair'
@ -386,9 +380,12 @@
Game.loadPano(Game.panoId, Game.pov);
// needs to be set visible after the show guess map hid it in mobile view
document.getElementById("navigation").style.visibility = 'visible';
// update the compass
const heading = Game.panorama.getPov().heading;
document.getElementById("compass").style.transform = "translateY(-50%) rotate(" + heading + "deg)";
document.getElementById("compass").style.transform = "rotate(" + heading + "deg)";
},
handleErrorResponse: function (error) {
@ -867,7 +864,7 @@
Game.rewriteGoogleLink();
const heading = Game.panorama.getPov().heading;
document.getElementById("compass").style.transform = "translateY(-50%) rotate(" + heading + "deg)";
document.getElementById("compass").style.transform = "rotate(" + heading + "deg)";
});
if (COOKIES_CONSENT) {

View File

@ -60,12 +60,12 @@
</div>
</div>
<div id="navigation">
<div class="navigationItem">
<div id="compass" class="navigationItem">
<span>
<img src="<?= $_ENV['STATIC_ROOT'] ?>/img/circle_background.svg?rev=<?= REVISION ?>" alt="Circle Background" class="circleBackground" />
</span>
<span>
<img id="compass" src="<?= $_ENV['STATIC_ROOT'] ?>/img/compass.svg?rev=<?= REVISION ?>" alt="compass icon" class="navigationIcon" />
<img src="<?= $_ENV['STATIC_ROOT'] ?>/img/compass.svg?rev=<?= REVISION ?>" alt="compass icon" class="navigationIcon" />
</span>
</div>
<div id="returnToStart" class="navigationItem">

View File

@ -29,6 +29,6 @@
</main>
<footer>
<p><span class="bold"><?= $_ENV['APP_NAME'] ?></span> <?= str_replace('Release_', '', VERSION) ?></p><!--
--><p>&copy; The MapGuesser Contributors <?= (new DateTime(REVISION_DATE))->format('Y') ?></p>
--><p>&copy; Pőcze Bence <?= (new DateTime(REVISION_DATE))->format('Y') ?></p>
</footer>
@endsection