this question, there is a script for a button that, when pressed, is replaced by another and back, but can not figure out how to write code to memorize what is currently visible and what is not. I understand that it is necessary to write in localstorage, many similar examples, but the appropriate code for I can not find. Can anyone help with writing a couple of lines? I would be very grateful)) His attempts to rewrite existing code by itself does not see the point, I will lay out the current to switch the buttons:
$(".close_button").click(function(e){
e.preventDefault();
$(".min_button").fadeIn(500);
$(".minification").css("display","none");
});
$(".min_button").click(function(e){
e.preventDefault();
$(".minification").fadeIn(500);
$(".min_button").css("display","none");
});