'; icons['4'] = ''; icons['5'] = ''; icons['6'] = ''; icons['7'] = ''; icons['8'] = ''; icons['9'] = ''; icons['10'] = ''; icons['11'] = ''; icons['12'] = ''; icons['13'] = ''; icons['14'] = ''; icons['15'] = ' '; icons['16'] = ''; icons['17'] = ''; icons['18'] = ''; icons['19'] = ''; icons['20'] = '';$('#icon10').append(icons[10]);var colors = {}; colors['3'] = '#c9242c'; colors['4'] = '#e21f27'; colors['5'] = '#e53e3e'; colors['6'] = '#e96d6b'; colors['7'] = '#ec94a4'; colors['8'] = '#ecb2c1'; colors['9'] = '#fdcd65'; colors['10'] = '#f8af4a'; colors['11'] = '#f39335'; colors['12'] = '#ee7826'; colors['13'] = '#ec6625'; colors['14'] = '#00984B'; colors['15'] = '#09AD4A'; colors['16'] = '#5EBB46'; colors['17'] = '#C5DD89'; colors['18'] = '#00AEED'; colors['19'] = '#0089D1'; colors['20'] = '#0171BB';$('.10').css('background-color', colors[10]); $(document).ready(function () { $(window).load(function () { $(".load_main").fadeOut("slow"); }); });jQuery('#w1').yiiActiveForm([], []);jQuery('#w2').yiiActiveForm([], []); $("#hamburguer-button").click(function() { $(".right-bar").addClass('right-bar--in'); }); $("#hamburguer-close").click(function() { $(".right-bar").removeClass('right-bar--in'); }); $('.change_language').change(function() { location = this.value; });jQuery('#newsletterSubscription').yiiActiveForm([{"id":"newsletter-email","name":"email","container":".field-newsletter-email","input":"#newsletter-email","error":".newsl-feed.orange","encodeError":false,"validate":function (attribute, value, messages, deferred, $form) {yii.validation.required(value, messages, {"message":"Required field!"});yii.validation.email(value, messages, {"pattern":/^[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$/,"fullPattern":/^[^@]*<[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?>$/,"allowName":false,"message":"Email is not a valid email address.","enableIDN":false,"skipOnEmpty":1});yii.validation.string(value, messages, {"message":"Email must be a string.","max":255,"tooLong":"Email should contain at most 255 characters.","skipOnEmpty":1});}}], []);$(document).ready(function(){ var submitForm = 0; $(".modal-btn--ok").click(function() { formElem = $('#newsletterSubscription'); $('.newsletter-modal--wrapper').fadeOut(); submitForm = 1; formElem.submit(); }); $('#newsletterSubscription').on('beforeSubmit', function (e) { formElem = $('#newsletterSubscription'); if (!submitForm) { $('.newsletter-modal--wrapper').fadeIn(); return false; } var form = $(this); $.post( form.attr("action"), form.serialize() ).done(function(response){ if (response.status == 'success') { $('.newsl-feed').removeClass('orange'); $('.newsl-feed').addClass('green'); $('.newsl-feed').html(response.message); $('#newsletter-form').trigger("reset"); } else { $('.newsl-feed').removeClass('orange'); $('.newsl-feed').addClass('red'); $('.newsl-feed').html(response.message); } }).fail(function(){ console.log("server error"); }); return false; }); }); $('.modal-item--block a').click(function() { $('.newsletter-modal--wrapper').fadeOut(); }); $("#cookies-btn").click(function () { $.ajax({ url: "/site/accept-cookies?lang=en", context: document.body }).done(function() { $(".cookies-bar").fadeOut('fast'); }); });});