Как сохранить действие после нажатия кнопки именно в localStorage?
<a id="idExid"class="popup_toggle">
<div class="circlephone" style="transform-origin: center;"></div>
<div class="circle-fill" style="transform-origin: center;"></div>
<div class="img-circle" style="transform-origin: center;">
<div class="img-circleblock" style="transform-origin: center;"></div></div>
</a>
<span id="idVhod" ><span id="ugcontcal"></span></span>
var state = false;
var idVhod = document.getElementById('idVhod');
var idExid = document.getElementById('idExid');
function myToggle() {
state = !state;
idVhod.style.display = state ? 'inline' : 'none';
idExid.style.display = !state ? 'inline' : 'none';
}
idVhod.addEventListener('click', myToggle);
idExid.addEventListener('click', myToggle);
https://codepen.io/AngReload/pen/GYbvpX