0.8.482
This commit is contained in:
@@ -7,8 +7,11 @@
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
window.onload = function (){
|
window.onload = function (){
|
||||||
|
changeTopStrMobile()
|
||||||
middleWareJS()
|
middleWareJS()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
//
|
||||||
|
|
||||||
function middleWareJS(){
|
function middleWareJS(){
|
||||||
let footer = document.querySelector("footer")
|
let footer = document.querySelector("footer")
|
||||||
@@ -24,13 +27,22 @@ function middleWareJS(){
|
|||||||
body.style.overflow = ""
|
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) {
|
function getTypeOfData (data) {
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
{% include "inter/meta_names.html" %}
|
{% include "inter/meta_names.html" %}
|
||||||
{# <script src='{% static "js/jquery_v3_6_4.js" %}'> </script>#}
|
{# <script src='{% static "js/jquery_v3_6_4.js" %}'> </script>#}
|
||||||
|
|
||||||
<script type="text/javascript" src="{% static "js/jquery_3_2_1.js" %}"></script>
|
<script type="text/javascript" src="{% static "js/jquery_3_2_1.js" %}"></script>
|
||||||
<script type="text/javascript" src="{% static "js/moment_js.js" %}"></script>
|
<script type="text/javascript" src="{% static "js/moment_js.js" %}"></script>
|
||||||
<script type="text/javascript" src="{% static "js/moment-with-locales.js" %}"></script>
|
<script type="text/javascript" src="{% static "js/moment-with-locales.js" %}"></script>
|
||||||
@@ -53,7 +54,17 @@
|
|||||||
{% block meta %}
|
{% block meta %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body{% if page_type == 'routes' %} onscroll="scroll_ev(event,this)"{% endif %}>
|
<body{% if page_type == 'routes' %} onscroll="scroll_ev(event,this)"{% endif %}>
|
||||||
|
{% if page_type != 'routes' %}
|
||||||
|
<script>
|
||||||
|
let body = document.querySelector("body")
|
||||||
|
body.style.display = 'none'
|
||||||
|
body.style.transition = '1000ms'
|
||||||
|
</script>
|
||||||
|
{% endif %}
|
||||||
|
{% if mobile == 'false' or mobile %}
|
||||||
|
{% endif %}
|
||||||
<div class="block_overlay {% if page_type == 'profile' %}hidden{% elif page_type == 'routes' %} routes n_profile hidden{% else %}hidden n_profile{% endif %}" onclick="close_open_curtain()"></div>
|
<div class="block_overlay {% if page_type == 'profile' %}hidden{% elif page_type == 'routes' %} routes n_profile hidden{% else %}hidden n_profile{% endif %}" onclick="close_open_curtain()"></div>
|
||||||
<div class="wrapper_main">
|
<div class="wrapper_main">
|
||||||
|
|
||||||
@@ -99,4 +110,5 @@
|
|||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user