< >

neuer-cookie-hinweiss-noch-einbauen.php


Quell Code


<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.css" />
<script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
  "palette": {
    "popup": {
      "background": "#05020d"
    },
    "button": {
      "background": "#1806eb"
    }
  },
  "showLink": true,
  "theme": "classic",
  "position": "bottom-right",
  "type": "opt-out",

  "content": {
  "header": 'Cookies used on the website!',
    "message": "Dieser Text muß sein.Auch wir benutzen Cookies um die Seite bestmöglich  am laufen zu halten. Bei keiner Einwilligung könnt ihr die Seite nicht weiter benutzen",
    "dismiss": "Ok ich willige ein",
    "deny": "Ich muß wieder gehen",
  "allow": 'Allow cookies',

  "link": 'Learn more',
  "href": 'http://cookiesandyou.com',
  "close": '&#x274c;',
  "policy": 'Cookie Policy',
  "target": '_blank',
  },
 "layout": 'my-cool-layout',
  "layouts": {
    'my-cool-layout': '<div class="my-cool-layout">\{{header}}{{message}}{{compliance}}{{pictureOfCat}}</div>{{close}}',
  },
   "elements": {
   " pictureOfCat": '<img href="http://placekitten/300/300" />',
  },

onInitialise: function (status) {
  var type = this.options.type;
  var didConsent = this.hasConsented();
  if (type == 'opt-in' && didConsent) {
   alert('rei 3')
  }
  if (type == 'opt-out' && !didConsent) {
     alert('raus 3')
  }
},
 
onStatusChange: function(status, chosenBefore) {
  var type = this.options.type;
  var didConsent = this.hasConsented();
  if (type == 'opt-in' && didConsent) {
  alert('rein 2')
  }
  if (type == 'opt-out' && !didConsent) {
     alert('raus 2')
  }
},
 
onRevokeChoice: function() {
  var type = this.options.type;
  if (type == 'opt-in') {
   alert('raus 1')
  }
  if (type == 'opt-out') {
  alert('rein 1')
  }
},
})
});
</script>
<a href="https://cookieconsent.insites.com/download/">Original link zur homepage des scriptes anbieter</a>

Add Comment

* Required information
1000
Powered by Commentics

Comments (1)

Gravatar
Admin
Sascha65says...

Die Canvas Balken Uhr ist ja mal Fett