{"size": 3192, "ext": "js", "max_stars_repo_path": "client/dist/javascript/jquery.cookie.policy.min.js", "max_stars_repo_name": "fractaslabs/silverstripe-cookie-policy-notification", "max_stars_repo_stars_event_min_datetime": "2017-10-31T23:26:41.000Z", "max_stars_repo_stars_event_max_datetime": "2021-01-08T03:34:09.000Z", "max_issues_repo_path": "client/dist/javascript/jquery.cookie.policy.min.js", "max_issues_repo_name": "fractaslabs/silverstripe-cookie-policy-notification", "max_issues_repo_issues_event_min_datetime": "2017-10-31T23:35:14.000Z", "max_issues_repo_issues_event_max_datetime": "2019-01-07T11:13:07.000Z", "max_forks_repo_path": "client/dist/javascript/jquery.cookie.policy.min.js", "max_forks_repo_name": "fractaslabs/silverstripe-cookie-policy-notification", "max_forks_repo_forks_event_min_datetime": "2019-10-28T14:59:45.000Z", "max_forks_repo_forks_event_max_datetime": "2019-10-28T14:59:45.000Z"}
{"max_stars_count": 6, "max_issues_count": 4, "max_forks_count": 1, "avg_line_length": 177.3333333333, "max_line_length": 2614, "alphanum_fraction": 0.6879699248}
/*
 *	 UK COOKIE POLICY NOTICE
 *   Written by Lee Jones (mail@leejones.me.uk)
 *   Project Home Page: https://github.com/prolificjones82/uk_cookie_policy_notice
 *   Released under GNU Lesser General Public License (http://www.gnu.org/copyleft/lgpl.html)
 *
 * 	 Please submit all problems or questions to the Issues page on the projects GitHub page:
 *   https://github.com/prolificjones82/uk_cookie_policy_notice
 *
 *
 *   jQuery Cookie Plugin v1.3.1
 *   https://github.com/carhartl/jquery-cookie
 *
 * 	 Copyright 2013 Klaus Hartl
 *   Released under the MIT license
 */
!function(o){"function"==typeof define&&define.amd?define(["jquery"],o):o(jQuery)}(function(o){var e=/\+/g;function i(o){return n.raw?o:decodeURIComponent(o.replace(e," "))}function t(o){0===o.indexOf('"')&&(o=o.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")),o=i(o);try{return n.json?JSON.parse(o):o}catch(o){}}var n=o.cookie=function(e,r,c){if(void 0!==r){if("number"==typeof(c=o.extend({},n.defaults,c)).expires){var a=c.expires,d=c.expires=new Date;d.setDate(d.getDate()+a)}return r=n.json?JSON.stringify(r):String(r),document.cookie=[n.raw?e:encodeURIComponent(e),"=",n.raw?r:encodeURIComponent(r),c.expires?"; expires="+c.expires.toUTCString():"",c.path?"; path="+c.path:"",c.domain?"; domain="+c.domain:"",c.secure?"; secure":""].join("")}for(var p=document.cookie.split("; "),s=e?void 0:{},l=0,u=p.length;l<u;l++){var f=p[l].split("="),k=i(f.shift()),g=f.join("=");if(e&&e===k){s=t(g);break}e||(s[k]=t(g))}return s};n.defaults={},o.removeCookie=function(e,i){return void 0!==o.cookie(e)&&(o.cookie(e,"",o.extend({},i,{expires:-1})),!0)}}),function(o){o.fn.cookieNotify=function(e){e=o.extend({text:"We use cookies on this website, by continuing to be here we will take it you agree to us using them.",btnText:"I Agree",bgColor:"#CCC",textColor:"#000",btnColor:"#000",btnTextColor:"#FFF",position:"top",leftPadding:"0",rightPadding:"0",hideAnimation:"fadeOut"},e);o("head").append("<style>#cookie_container { display: none; position: fixed; "+e.position+": 0; left: "+e.leftPadding+"; \tright: "+e.rightPadding+"; z-index: 999; padding: 10px; background-color:"+e.bgColor+"; color:"+e.textColor+"; } .cookie_inner { width: 90%; margin: 0 auto; } .cookie_inner p { margin: 0; padding-top: 4px; } #setCookie { float: right; padding: 5px 10px; text-decoration: none; background-color: "+e.btnColor+"; color: "+e.btnTextColor+"; } #setCookie:hover { background-color: #AAAAAA !important; color: #000000 !important; }</style>"),o('<div id="cookie_container"><div class="cookie_inner"><a id="setCookie" href="#">'+e.btnText+"</a><p>"+e.text+"</p></div></div>").appendTo(this),o(document.body).on("click","#setCookie",function(i){i.preventDefault(),o.cookie("cookie_policy","true",{expires:365,path:"/"}),"fadeOut"==e.hideAnimation?o("#cookie_container").fadeOut():"slideUp"==e.hideAnimation&&o("#cookie_container").slideUp()}),o(this).ready(function(){o.cookie("cookie_policy")||o("#cookie_container").show()})},o.getJSON(o("base")[0].href+"fetchcookiepolicy",function(e){o("body").cookieNotify({btnText:e.CookiePolicyButtonTitle,text:e.CookiePolicyDescription,position:e.CookiePolicyPosition})})}(jQuery);
