Re: EU notification of the site use of cookies
Reply #28 –
@Jorin, I am not sure whether you are answering to this topic or the addon created at http://www.elkarte.net/community/index.php?topic=4328.0 but I guess it should be the later. But I am not going to move this post yet before you confirm this or you can move it yourself later on.
In any event, the addon does use the script from external source as stated in its (only) code:
$context['html_headers'] .= '
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.css" />
<script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#000"
},
"button": {
"background": "#f1d600"
}
}
})});
</script>
';
Clearly, this can be downloaded to EA and use as an internal source rather than external without much hassle. The only good thing about this external source is it is using CDNwhich won't affect your site very much if you are using the addon as it is.