setto.basspistol.com/assets/js/zafari.js

13 lines
567 B
JavaScript
Raw Permalink Normal View History

2020-08-11 14:47:20 +02:00
var zafari = document.getElementById("zafari");
2020-08-12 10:03:57 +02:00
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;
2020-08-11 14:47:20 +02:00
if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1) {
zafari.classList.add("zafariClass");
}
function youMadBro() {
zafari.classList.remove("zafariClass");
}