<div><script src="/scripts/cookieConsent.js" id="cookieinfo"></script></div><h3><script src="/scripts/nPrism.js"></script>Do you need to have a Cookie Consent on Your Page?</h3><p><strong>Actually <u>n-gen.net CMS does not use any cookies</u> by default!</strong><br />So the simple answer is "No!"</p><p> </p><h4>How to make a script that shows visitors that you page use cookies</h4><p>If you want to alter the source code or include cookies for any purpose feel free to do so. And if you do so in the EU you should also have a "Cookie Consent Banner" showing the visitors of you website that the visit will leave a cookie on their device.</p><p>n-gen.net include a Cookie Consent Banner even though no cookies are set!! It is actually a copy of the free script written by Elias Lange from Hamburg; Germany (<a href="https://cookieinfoscript.com/">https://cookieinfoscript.com)</a>. Thank you for that; Elias - you should consider a donation.</p><p>In it's simpelst form the script look like one of the two code snippets below. The first is if you use Elias' server; the second one is if you use your own:</p><pre><code class="language-javascript"><script type="text/javascript" id="cookieinfo" src="//cookieinfoscript.com/js/cookieinfo.min.js">// Use Elias' script</script><script type="text/javascript" id="cookieinfo" src="/scripts/cookieConsent.js">// Use the built-in n-gen.net script</script></code></pre><p> </p><p>To make customization as easy as possible you can apply the following data-attributes to any of the two scripts above:</p><ol> <li><strong>data-font-size</strong> - text size of the message and the link (default: 14px)</li> <li><strong>data-font-family</strong> - font family of the message and the link (default: verdana; arial; sans-serif)</li> <li><strong>data-text-align</strong> - position of the text (default: center)</li> <li><strong>data-height</strong> - banner height (default: 31 pixels)</li> <li><strong>data-fg</strong> - banner text color follows you text color defined in the Style Assistant</li> <li><strong>data-bg</strong> - banner background color (default: #FDD)</li> <li><strong>data-link</strong> - link text color (default: #F11)</li> <li><strong>data-divlink</strong> - button text color (default: #FFF)</li> <li><strong>data-divlinkbg</strong> - button background color (default: #C00)</li> <li><strong>data-position</strong> - banner position; top or bottom (default: top)</li> <li><strong>data-message</strong> - message text (default: We do not need cookies to enhance your experience. By continuing to visit this site you agree that we do not use cookies at all!)</li> <li><strong>data-linkmsg</strong> - link text (default: More info)</li> <li><strong>data-moreinfo</strong> - where the visitor can read more about cookies (default: https://help.n-gen.net/index.aspx?id=17 [this page!])</li> <li><strong>data-close-text</strong> - the text/symbol for the close button (default: <strong>×</strong>)</li> <li><strong>data-effect</strong> - effect to use (default: fade)</li> <li><strong>data-cookie</strong> - name for the cookie to store the cookiebanner acceptance information (default: we-love-cookies)</li> <li><strong>data-expires</strong> - cookie expiry date/time (default is Infinity aka "Fri; 31 Dec 9999 23:59:59 GMT").</li> <li><strong>data-cookie-path</strong> - Path to set for the cookie</li> <li><strong>data-mask</strong> - whether to create a mask over the viewport (default: false). Clicking anywhere on the mask is considered as acceptance.</li> <li><strong>data-mask-opacity</strong> - the opacity to use for the window mask (default: 0.5)</li> <li><strong>data-mask-background</strong> - optional background style you wish to apply to the mask (default: #999)</li> <li><strong>data-zindex</strong> - z-index to set on the notice (default: 255). If mask is used; the notice's z-index is automatically incremented by 1 so it appears above the mask)</li> <li><strong>data-accept-on-scroll</strong> - when is set true window scrolling is considered as acceptance. (default: false)</li> <li><strong>data-tracking</strong> - Tracking pixel (default: Off - To enable you will need to enter a (image) tracking url or script.</li></ol><p>Below is an example of a customized version of the script:</p><pre><code class="language-javascript"><script type="text/javascript" id="cookieinfo" src="/scripts/cookieConsent.js" data-bg="#FF6600" data-link="#F1D600" data-cookie="CookieInfoScript" data-text-align="right" data-close-text="Got it!"></script></code></pre><p> </p><p><br /> </p>
Last updated 02-06-2020 02:36:00