JSFiddle - React, Tailwind, and code Playground

by Sergey khorev

HTML

Поликарп Васнецов, [20.07.20 15:07]
<script>
function BrowseDetect() { 
        if((navigator.userAgent.indexOf("Opera") || navigator.userAgent.indexOf('OPR')) != -1 ){
          //Code
        }
        else if(navigator.userAgent.indexOf("Chrome") != -1 ){
            //Code
        }
        else if(navigator.userAgent.indexOf("Safari") != -1){
        $("#menu2_button").attr('style', 'bottom:0px !important');
      $("#cart, #cart_mobi").attr('style', 'bottom:0px !important');
      //alert('Safari');
        }
        else if(navigator.userAgent.indexOf("Firefox") != -1 ){
             //Code
        }
        else if((navigator.userAgent.indexOf("MSIE") != -1 ) || (!!document.documentMode == true )){
          //Code 
        }  
        else{
           //Code
        }
    }
</script>
................................
</head>
<body onload="BrowseDetect()">
..............................