setto.basspistol.com/assets/js/zafari.js
2020-08-12 08:04:30 +00:00

13 lines
567 B
JavaScript

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) {
zafari.classList.add("zafariClass");
}
function youMadBro() {
zafari.classList.remove("zafariClass");
}