revoke innefective safari ban
This commit is contained in:
parent
89efcbf791
commit
f7c7835895
|
@ -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>
|
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue