Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

22 строки
2.0 KiB

  1. /*!
  2. * jQuery Cookiebar Plugin
  3. * https://github.com/carlwoodhouse/jquery.cookieBar
  4. *
  5. * Copyright 2012, Carl Woodhouse
  6. * Disclaimer: if you still get fined for not complying with the eu cookielaw, it's not our fault.
  7. */
  8. !function(a){a.fn.cookieBar=function(b){var c=a.extend({closeButton:"none",secure:!1,path:"/",domain:""},b);return this.each(function(){var d=a(this);d.hide(),"none"==c.closeButton&&(d.append('<a class="cookiebar-close">Continue</a>'),c=a.extend({closeButton:".cookiebar-close"},b)),"hide"!=a.cookie("cookiebar")&&d.show(),d.find(c.closeButton).click(function(){return d.hide(),a.cookie("cookiebar","hide",{path:c.path,secure:c.secure,domain:c.domain,expires:30}),!1})})},a.cookieBar=function(b){a("body").prepend('<div class="ui-widget"><div style="display: none;" class="cookie-message ui-widget-header blue"><p>By using this website you allow us to place cookies on your computer. They are harmless and never personally identify you.</p></div></div>'),a(".cookie-message").cookieBar(b)}}(jQuery),
  9. /*!
  10. * Dependancy:
  11. * jQuery Cookie Plugin
  12. * https://github.com/carhartl/jquery-cookie
  13. *
  14. * Copyright 2011, Klaus Hartl
  15. * Dual licensed under the MIT or GPL Version 2 licenses.
  16. * http://www.opensource.org/licenses/mit-license.php
  17. * http://www.opensource.org/licenses/GPL-2.0
  18. */
  19. function(a){a.cookie=function(b,c,d){if(arguments.length>1&&(!/Object/.test(Object.prototype.toString.call(c))||null===c||void 0===c)){if(d=a.extend({},d),(null===c||void 0===c)&&(d.expires=-1),"number"==typeof d.expires){var e=d.expires,f=d.expires=new Date;f.setDate(f.getDate()+e)}return c=String(c),document.cookie=[encodeURIComponent(b),"=",d.raw?c:encodeURIComponent(c),d.expires?"; expires="+d.expires.toUTCString():"",d.path?"; path="+d.path:"",d.domain?"; domain="+d.domain:"",d.secure?"; secure":""].join("")}d=c||{};for(var g,h=d.raw?function(a){return a}:decodeURIComponent,i=document.cookie.split("; "),j=0;g=i[j]&&i[j].split("=");j++)if(h(g[0])===b)return h(g[1]||"");return null}}(jQuery);