<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 &quot;No!&quot;</p><p>&nbsp;</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 &quot;Cookie Consent Banner&quot; 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&#39;s simpelst form the script look like one of the two code snippets below. The first is if you use Elias&#39; server; the second one is if you use your own:</p><pre><code class="language-javascript">&lt;script type="text/javascript" id="cookieinfo" src="//cookieinfoscript.com/js/cookieinfo.min.js"&gt;// Use Elias' script&lt;/script&gt;&lt;script type="text/javascript" id="cookieinfo" src="/scripts/cookieConsent.js"&gt;// Use the built-in n-gen.net script&lt;/script&gt;</code></pre><p>&nbsp;</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>&nbsp;- text size of the message and the link (default: 14px)</li> <li><strong>data-font-family</strong>&nbsp;- font family of the message and the link (default: verdana; arial; sans-serif)</li> <li><strong>data-text-align</strong>&nbsp;- position of the text (default: center)</li> <li><strong>data-height</strong>&nbsp;- banner height (default: 31 pixels)</li> <li><strong>data-fg</strong>&nbsp;- banner text color follows you text color defined in the Style Assistant</li> <li><strong>data-bg</strong>&nbsp;- banner background color (default: #FDD)</li> <li><strong>data-link</strong>&nbsp;- link text color (default: #F11)</li> <li><strong>data-divlink</strong>&nbsp;- button text color (default: #FFF)</li> <li><strong>data-divlinkbg</strong>&nbsp;- button background color (default: #C00)</li> <li><strong>data-position</strong>&nbsp;- banner position; top or bottom (default: top)</li> <li><strong>data-message</strong>&nbsp;- 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>&nbsp;- link text (default: More info)</li> <li><strong>data-moreinfo</strong>&nbsp;- 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>&nbsp;- the text/symbol for the close button (default: <strong>&times;</strong>)</li> <li><strong>data-effect</strong>&nbsp;- effect to use (default: fade)</li> <li><strong>data-cookie</strong>&nbsp;- name for the cookie to store the cookiebanner acceptance information (default: we-love-cookies)</li> <li><strong>data-expires</strong>&nbsp;- cookie expiry date/time (default is Infinity aka &quot;Fri; 31 Dec 9999 23:59:59 GMT&quot;).</li> <li><strong>data-cookie-path</strong>&nbsp;- Path to set for the cookie</li> <li><strong>data-mask</strong>&nbsp;- 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>&nbsp;- the opacity to use for the window mask (default: 0.5)</li> <li><strong>data-mask-background</strong>&nbsp;- optional background style you wish to apply to the mask (default: #999)</li> <li><strong>data-zindex</strong>&nbsp;- z-index to set on the notice (default: 255). If mask is used; the notice&#39;s z-index is automatically incremented by 1 so it appears above the mask)</li> <li><strong>data-accept-on-scroll</strong>&nbsp;- when is set true window scrolling is considered as acceptance. (default: false)</li> <li><strong>data-tracking</strong>&nbsp;- 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">&lt;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!"&gt;&lt;/script&gt;</code></pre><p>&nbsp;</p><p><br />&nbsp;</p>

Last updated 02-06-2020 02:36:00