{"id":34,"date":"2015-12-17T12:00:11","date_gmt":"2015-12-17T11:00:11","guid":{"rendered":"http:\/\/blog.fabbrika.com\/?p=34"},"modified":"2015-12-17T12:00:35","modified_gmt":"2015-12-17T11:00:35","slug":"script-cookiechoices-js-non-funziona-su-internet-explorer","status":"publish","type":"post","link":"https:\/\/www.fabbrika.com\/blog\/script-cookiechoices-js-non-funziona-su-internet-explorer\/","title":{"rendered":"Script cookiechoices.js non funziona su Internet Explorer"},"content":{"rendered":"<p>Lo script cookiechoices.js di google usato per adeguare alla politica di Privacy ed uso dei cookie nei siti internet \u00e8 molto semplice e funzionate. Ma purtroppo su Internet Explorer non funziona perch\u00e9 non support &#8220;addEventListener&#8221;.<\/p>\n<p>Questo \u00e8 il codice funzionante su tutti i browser.<\/p>\n<p>&lt;script src=&#8221;\/cookiechoices.js&#8221;&gt;&lt;\/script&gt;<br \/>\n&lt;script&gt;<br \/>\nfunction showCookieChoice(event) {<br \/>\ncookieChoices.showCookieConsentBar(&#8216;your message for visitors here&#8217;,<br \/>\n&#8216;close message&#8217;, &#8216;learn more&#8217;, &#8216;http:\/\/example.com&#8217;);<br \/>\n}<\/p>\n<p>if (document.addEventListener)<br \/>\ndocument.addEventListener(&#8216;DOMContentLoaded&#8217;, showCookieChoice);<br \/>\nelse<br \/>\nwindow.onload = showCookieChoice;<br \/>\n&lt;\/script&gt;<\/p>\n<p>Fonte: <a href=\"http:\/\/caffeforum.it\/l-angolo-del-caffe\/script-cookiechoices-funzionante-su-internet-explorer-8-t4501.html\" target=\"_blank\">http:\/\/caffeforum.it\/l-angolo-del-caffe\/script-cookiechoices-funzionante-su-internet-explorer-8-t4501.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lo script cookiechoices.js di google usato per adeguare alla politica di Privacy ed uso dei cookie nei siti internet \u00e8 molto semplice e funzionate. Ma purtroppo su Internet Explorer non funziona perch\u00e9 non support &#8220;addEventListener&#8221;. Questo \u00e8 il codice funzionante su tutti i browser. &lt;script src=&#8221;\/cookiechoices.js&#8221;&gt;&lt;\/script&gt; &lt;script&gt; function showCookieChoice(event) { cookieChoices.showCookieConsentBar(&#8216;your message for visitors here&#8217;, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.fabbrika.com\/blog\/wp-json\/wp\/v2\/posts\/34"}],"collection":[{"href":"https:\/\/www.fabbrika.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fabbrika.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fabbrika.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fabbrika.com\/blog\/wp-json\/wp\/v2\/comments?post=34"}],"version-history":[{"count":2,"href":"https:\/\/www.fabbrika.com\/blog\/wp-json\/wp\/v2\/posts\/34\/revisions"}],"predecessor-version":[{"id":36,"href":"https:\/\/www.fabbrika.com\/blog\/wp-json\/wp\/v2\/posts\/34\/revisions\/36"}],"wp:attachment":[{"href":"https:\/\/www.fabbrika.com\/blog\/wp-json\/wp\/v2\/media?parent=34"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fabbrika.com\/blog\/wp-json\/wp\/v2\/categories?post=34"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fabbrika.com\/blog\/wp-json\/wp\/v2\/tags?post=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}