Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Adding cookie consent to my pages

    How do I add cookie consent to my pages (or screens)?

    Here is an example of what I have done in the <head></head> section of my HTML page...

    <!-- Cookie consent -->
    <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": "#000"
    },
    "button": {
    "background": "#f1d600"
    }
    }
    })});
    </script>

    Is there a better of doing this using SmartClient? Or how can I implement this on a SmartClient screen?

    Thank you for your help!!

    #2
    This may be OK, depending on whether this third party library is high quality vs does things like style all HTML elements on the page, or clobbers other libraries event handlers.

    For a SmartClient solution just use a Dialog.

    Comment

    Working...
    X