Cookies warning

Thanks to new law in Europe, we need to show users and let them accept a warning about website using cookies, after few attempts, this is what I ended up with

<!-- HTML -->
<html>
<body Style="padding-top: 4.5rem;">
<div id="eantics"></div>
</body>
</html>



<!-- JScript -->
<script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="jquery.cookiesdirective.js"></script>
<script type="text/javascript">
$(document).ready(function(){
 // Cookie setting script wrapper
 var cookieScripts = function () {
  // Internal javascript called
  console.log("Running");
 }
 /* Call cookiesDirective, overriding any default params
  *** Defaults ***
  position: 'top',
  limit: 0,
  message: null,    
  cookieScripts: null,
  privacyPolicyUri: 'privacy.html',
  scriptWrapper: function(){}, 
  fontFamily: 'helvetica',
  fontColor: '#FFFFFF',
  fontSize: '13px',
  backgroundColor: '#000000',
  backgroundOpacity: '80',
  linkColor: '#CA0000'
  explicitConsent: false,
  duration: 10,
 */
 $.cookiesDirective({
  privacyPolicyUri: '/Assets/PrivacyPolicy',
  duration: 20,
  explicitConsent: false,
  position : 'bottom',
  scriptWrapper: cookieScripts,
  <!-- cookieScripts: 'Google Analytics, My Stats Ultimate ', -->
  backgroundColor: '#125512',
  linkColor: '#ffffff'
 });
});

Message used in MyDev.net

Views 371 Downloads 137

'EU', 'ThanksEU', 'Thanks EU', 'Cookies', 'cookiesDirective', 'Privacy policy', 'terms of use', 'remind user', 'alert', 'usage', 'NotMyWork'

ANmarAmdeen
323
UI JS+JQuery
Revisions

v1.0