$(document).ready(function(){var version=Cookies.get('version');var font_class=Cookies.get('font-class');set_cookie(version);set_font_cookie(font_class);$("#cookie").html(version);$('#clean-view-button').click(function(){set_cookie(0);});$('#dirty-view-button').click(function(){set_cookie(1);});$('.advanced-menu').click(function(e){var id=$(this).attr('id');$('.advanced-menu').each(function(e){$("body").removeClass($(this).attr('id'));});set_font_cookie(id);});});function set_cookie(value){version=value;Cookies.set('version',version,{expires:7});if(version==1){$('body').addClass('visually-impaired');}else{$('body').removeClass('visually-impaired');}}function set_font_cookie(value){Cookies.set('font-class',value,{expires:7});$("body").addClass(value);}