Skip to content

Commit

Permalink
deactivate crisp and cookie for mobile #139
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuNls committed Mar 22, 2016
1 parent cfd1768 commit cf9878a
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions application/views/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,28 +90,26 @@
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- <script type="text/javascript" src="<?php echo js_url('jquery.cookiesdirective');?>"/> -->

<!-- Begin Cookie Consent plugin by Silktide - http://silktide.com/cookieconsent -->
<script type="text/javascript">
window.cookieconsent_options = {"message":"This website uses cookies to ensure you get the best experience on our website","dismiss":"Got it!","learnMore":"More info","link":"https://toolwatch.io/about","theme":"<?php echo base_url();?>assets/css/cookie.css"};
</script>
<script type="text/javascript">
window.onerror = function(message, file, line) {
$.post( "https://"+window.location.hostname+ "/ajax/reportClientError", { error: file + "(" + line + "): "
+ message + " ["+navigator.userAgent+","+navigator.platform+"]" })
.done(function( data ) {
console.log("logged");
});
}
</script>

<?php if(!$this->agent->is_mobile()){?>

<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/1.0.9/cookieconsent.min.js"></script>
<!-- End Cookie Consent plugin -->
<script type="text/javascript">CRISP_WEBSITE_ID = "-K4rBEcM_Qbt6JrISVzu";(function(){d=document;s=d.createElement("script");s.src="https://client.crisp.im/l.js";s.async=1;d.getElementsByTagName("head")[0].appendChild(s);})();</script>
<meta name="p:domain_verify" content="9f4eefba8c49cf4a79b31c72a7e388a9"/>


<script type="text/javascript">
window.onerror = function(message, file, line) {
$.post( "https://"+window.location.hostname+ "/ajax/reportClientError", { error: file + "(" + line + "): "
+ message + " ["+navigator.userAgent+","+navigator.platform+"]" })
.done(function( data ) {
console.log("logged");
});
}
window.cookieconsent_options = {"message":"This website uses cookies to ensure you get the best experience on our website","dismiss":"Got it!","learnMore":"More info","link":"https://toolwatch.io/about","theme":"<?php echo base_url();?>assets/css/cookie.css"};
</script>
<?php } ?>

Expand Down

0 comments on commit cf9878a

Please sign in to comment.