jQuery - keep added onclick css after page reload
问题 I added css by jQuery to my page to enable visitors changing the contrast by clicking button. But I would like to keep css active after reloading the page (when contrast button is already clicked). I hope it is possible, because I didn't find any solution yet. My code: var applied = false; $('.contrast-on').click(function() { if (!applied) { $('*').css('background-color', 'rgb(0, 0, 0)').css('color', 'rgb(255, 255, 255)').css('background-image', 'none'); applied = true; } else { $('*').css(