0.8.482
This commit is contained in:
@@ -7,8 +7,11 @@
|
||||
// }
|
||||
|
||||
window.onload = function (){
|
||||
changeTopStrMobile()
|
||||
middleWareJS()
|
||||
|
||||
}
|
||||
//
|
||||
|
||||
function middleWareJS(){
|
||||
let footer = document.querySelector("footer")
|
||||
@@ -24,13 +27,22 @@ function middleWareJS(){
|
||||
body.style.overflow = ""
|
||||
}
|
||||
}
|
||||
if (!window.location.href.includes("mobile") && !window.location.href.includes("route_search_results")){
|
||||
window.location.href = window.location.href + `?mobile=${getInfoAboutUser() === 'mobile'}`
|
||||
} else if (window.location.href.includes("route_search_results")){
|
||||
window.location.href = window.location.href + `&mobile=${getInfoAboutUser() === 'mobile'}`
|
||||
|
||||
}
|
||||
|
||||
|
||||
function changeTopStrMobile (){
|
||||
let body = document.querySelector("body")
|
||||
if (!window.location.href.includes("mobile")){
|
||||
if (!window.location.href.includes("mobile") && !window.location.href.includes("route_search_results")){
|
||||
window.location.href = window.location.href + `?mobile=${getInfoAboutUser() === 'mobile'}`
|
||||
}
|
||||
body.style.opacity = ''
|
||||
body.style.transition = '500ms'
|
||||
} else {
|
||||
body.style.display = ''
|
||||
body.style.transition = '500ms'
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
function getTypeOfData (data) {
|
||||
|
||||
Reference in New Issue
Block a user