' + translation[config.language].message + '' + acceptButton + infoLink + privacyButton + '
';if (config.style === 'top') {$(config.wrapper).prepend(template);} else {$(config.wrapper).append(template);}$('body').addClass('has-cookie-bar');if (config.style === 'bottom') {$(config.wrapper).css('padding-bottom', $('#cookie-bar').outerHeight());}},hideBar : function() {$(cookieBar).slideUp();$('body').removeClass('has-cookie-bar');if (config.style === 'bottom') {$(config.wrapper).css('padding-bottom', '');}},renderPopup : function() {var popup = $('');console.log('POPUP');$('body').append(popup);$('.cookie-bar-privacy-popup__dialog', popup).append(config.privacyContent);},showPopup : function() {$('#cookieBarPrivacyPopup').removeClass('cookie-bar-privacy-popup--hidden');},hidePopup : function() {$('#cookieBarPrivacyPopup').addClass('cookie-bar-privacy-popup--hidden');},addTranslation : function(lang, translate) {translation[lang] = translate;},switchTranslation : function(lang) {if(lang !== config.language && !config.privacy) {if(!translation[lang]) {config.language = 'en';} else {config.language = lang;}if(methods.getCookie('cookies-state') !== 'accepted') {methods.displayBar();}}},setCookie : function(cname, cvalue, exdays) {var d = new Date();d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));var expires = "expires="+ d.toUTCString();document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";},getCookie : function(cname) {var name = cname + "=";var ca = document.cookie.split(';');for(var i = 0; i