This commit is contained in:
Aevann1 2021-12-09 16:32:46 +02:00
parent e72e497fd8
commit 77e858fa20
41 changed files with 425 additions and 659 deletions

12
files/assets/js/home.js Normal file
View file

@ -0,0 +1,12 @@
if (!("standalone" in window.navigator) && window.navigator.standalone) {
if (window.innerWidth <= 737) {
document.getElementById('mobile-prompt').show()
document.getElementsByClassName('tooltip')[0].onclick = function(event){
document.getElementById('mobile-prompt').hide()
var xhr = new XMLHttpRequest();
xhr.withCredentials=true;
xhr.open("POST", '/dismiss_mobile_tip', true);
xhr.send();
}
}
}