forked from rDrama/rDrama
dsf
parent
5e895c9b87
commit
ad3c6481fe
|
@ -350,21 +350,6 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{% if request.path=='/' and g.system and g.timestamp>session.get('tooltip_last_dismissed',0)+60*60*24 and (not g.system.endswith('/chrome') and not g.system.endswith('/other')) and not g.system.endswith('/webview') %}
|
|
||||||
|
|
||||||
<div id="mobile-prompt-container" class="fixed-bottom">
|
|
||||||
<div id="mobile-prompt" href="javascript:void(0)" data-bs-toggle="tooltip" data-bs-container="#mobile-prompt-container" data-bs-placement="top" data-bs-trigger="click" title="Install the {{'SITE_NAME' | app_config}} webapp by saving this page to your home screen!"></div>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<pre>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
|
@ -145,18 +145,26 @@
|
||||||
.catch(console.error);
|
.catch(console.error);
|
||||||
</script>
|
</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<script>
|
|
||||||
if (!("standalone" in window.navigator) && window.navigator.standalone) {
|
{% if request.path=='/' and g.system and g.timestamp > session.get('tooltip_last_dismissed',0)+60*60*24 and (not g.system.endswith('/chrome') and not g.system.endswith('/other')) and not g.system.endswith('/webview') %}
|
||||||
if (window.innerWidth <= 737) {
|
<div id="mobile-prompt-container" class="fixed-bottom">
|
||||||
document.getElementById('mobile-prompt').show()
|
<div id="mobile-prompt" href="javascript:void(0)" data-bs-toggle="tooltip" data-bs-container="#mobile-prompt-container" data-bs-placement="top" data-bs-trigger="click" title="Install the {{'SITE_NAME' | app_config}} webapp by saving this page to your home screen!"></div>
|
||||||
document.getElementsByClassName('tooltip')[0].onclick = function(event){
|
</div>
|
||||||
document.getElementById('mobile-prompt').hide()
|
|
||||||
var xhr = new XMLHttpRequest();
|
<script>
|
||||||
xhr.withCredentials=true;
|
if (!("standalone" in window.navigator) && window.navigator.standalone) {
|
||||||
xhr.open("POST", '/dismiss_mobile_tip', true);
|
if (window.innerWidth <= 737) {
|
||||||
xhr.send();
|
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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
</script>
|
||||||
</script>
|
{% endif %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Reference in New Issue