var showids = JSON.parse(localStorage.getItem("showids") ) ? JSON.parse(localStorage.getItem("showids") ) :[] ;
if(showids ){
const index = showids.indexOf(id);
if(index == -1){
showids.push(id);
localStorage.setItem("showids",JSON.stringify(showids));
}
}