Showing 2 of 8 total issues
Function cookieBar
has 162 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.cookieBar = function(options,val){
if(options=='cookies'){
var doReturn = 'cookies';
}else if(options=='set'){
var doReturn = 'set';
Consider simplifying this complex logical expression. Open
Open
if(options.referrer.indexOf(options.domain)>=0 && String(window.location.href).indexOf(options.policyURL)==-1 && doReturn!='cookies' && doReturn!='set' && cookieValue!='accepted' && cookieValue!='declined'){
doReturn = 'set';
val = 'accepted';
}