1(function($){ 2// Our namespace 3 $.DKMCOOKIECONSENT = {}; // This is our namespace ALLWAYS create functions and vars inside. 4 $.DKMCOOKIECONSENT.func = {}; // for all the functions 5 $.DKMCOOKIECONSENT.data = { // for all global vars 6 //buttonClicked or boxShownOnce 7 hideBoxWhen : 'buttonClicked', 8 delayBeforeShowingBox : 500, 9 animationTime : 500, 10 //slide or fade 11 boxShowEffect : 'slide', 12 boxHideEffect : 'fade' 13 }; 14 15 $(document).ready(function() { 16 $.DKMCOOKIECONSENT.func.overrideDefaultSettings($.DKMCOOKIECONSENT.data); 17 $.DKMCOOKIECONSENT.func.cookieConsent(); 18 $.DKMCOOKIECONSENT.func.cookieConsentListener(); 19 }); 20 21 $.DKMCOOKIECONSENT.func.overrideDefaultSettings = function(dataVar) { 22 if(typeof DKMCOOKIECONSENT_OVERRIDE !== 'undefined') { 23 $.each(dataVar, function(varName, varValue){ 24 if(typeof DKMCOOKIECONSENT_OVERRIDE[varName] !== 'undefined') { 25 $.DKMCOOKIECONSENT.data[varName] = DKMCOOKIECONSENT_OVERRIDE[varName]; 26 } 27 }); 28 } 29 }; 30 31 $.DKMCOOKIECONSENT.func.cookieConsentListener = function () { 32 $('#closeCookieConsentBox').on('click', function() { 33 $.DKMCOOKIECONSENT.func.closeCookieConsent(); 34 35 }); 36 }; 37 38 $.DKMCOOKIECONSENT.func.cookieConsent = function() { 39 var cookie = $.cookie('cookieConsent'); 40 if(!cookie) { 41 //set cookie if boxShownOnce is set 42 if($.DKMCOOKIECONSENT.data.hideBoxWhen == 'boxShownOnce') { 43 $.DKMCOOKIECONSENT.func.setCookieConsentCookie(); 44 } 45 46 setTimeout(function() { 47 if($.DKMCOOKIECONSENT.data.boxShowEffect == 'slide') { 48 $('#cookieConsent').slideDown( $.DKMCOOKIECONSENT.data.animationTime ); 49 } else { 50 $('#cookieConsent').fadeIn( $.DKMCOOKIECONSENT.data.animationTime ); 51 } 52 }, $.DKMCOOKIECONSENT.data.delayBeforeShowingBox); 53 } else { 54 // The call to ga('create' , xxx is done in another JS (can not be done from her - or maybe it can?)
vendor: 345 bytes, lines 54-59
54 55 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ 56 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), 57 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 58 })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); 59 ga('create', '
59UA-38895091-8
vendor: 68 bytes, lines 59-62
59', document.location.hostname); 60 ga('send', 'pageview'); 61 62
62} 63 64 }; 65 66 $.DKMCOOKIECONSENT.func.closeCookieConsent = function() { 67 if($.DKMCOOKIECONSENT.data.hideBoxWhen == 'buttonClicked') { 68 $.DKMCOOKIECONSENT.func.setCookieConsentCookie(); 69 } 70 if($.DKMCOOKIECONSENT.data.boxHideEffect == 'slide') { 71 $('#cookieConsent').slideUp( $.DKMCOOKIECONSENT.data.animationTime ); 72 } else { 73 $('#cookieConsent').fadeOut( $.DKMCOOKIECONSENT.data.animationTime ); 74 } 75 }; 76 77 $.DKMCOOKIECONSENT.func.setCookieConsentCookie = function() { 78 79 var date = new Date(); 80 date.setTime(date.getTime() + (60 * 60 * 1000 * 24 * 365)); 81 82 $.cookie("cookieConsent", "true", { expires: date, path: '/' });
vendor: 341 bytes, lines 82-88
82 83 84 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ 85 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), 86 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 87 })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); 88 ga('create', '
88UA-38895091-8
vendor: 63 bytes, lines 88-91
88', document.location.hostname); 89 ga('send', 'pageview'); 90 91
91} 92 93 94})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.