fdsfd
This commit is contained in:
parent
e72e497fd8
commit
77e858fa20
41 changed files with 425 additions and 659 deletions
12
files/assets/js/home.js
Normal file
12
files/assets/js/home.js
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue