revoke innefective safari ban

This commit is contained in:
sakrecoer 2020-08-12 10:03:57 +02:00
parent 89efcbf791
commit f7c7835895
3 changed files with 7 additions and 2 deletions

View file

@ -1,4 +1,4 @@
<!-- Scripts --> <!-- Scripts -->
{% include relBase.html %} {% include relBase.html %}
<script src="{{ relBase }}/assets/js/set-20200805.js"></script> <script src="{{ relBase }}/assets/js/set-20200805.js"></script>
<script src="{{ relBase }}/assets/js/zafari.js"></script>

View file

@ -37,7 +37,7 @@
<!-- END Wrapper --> <!-- END Wrapper -->
{% include navigation.html %} {% include navigation.html %}
{% include zafari.html %}
{% include cookie-consent.html %} {% include cookie-consent.html %}
{% include scripts.html %} {% include scripts.html %}
{% if page.video_path %} {% if page.video_path %}

View file

@ -1,4 +1,9 @@
var zafari = document.getElementById("zafari"); var zafari = document.getElementById("zafari");
var is_chrome = navigator.userAgent.indexOf('Chrome') > -1;
var is_explorer = navigator.userAgent.indexOf('MSIE') > -1;
var is_firefox = navigator.userAgent.indexOf('Firefox') > -1;
var is_safari = navigator.userAgent.indexOf("Safari") > -1;
var is_opera = navigator.userAgent.toLowerCase().indexOf("op") > -1;
if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1) { if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1) {
zafari.classList.add("zafariClass"); zafari.classList.add("zafariClass");
} }