<a href="#item1" onclick="activeList(event,this)" > add class to text 1 </a>
<a href="#item2" onclick="activeList(event,this)"> add class to text 2 </a>
<a href="#item3" onclick="activeList(event,this)" > add class to text 3 </a>
function activeList(e,element) {
e.preventDefault();
let li_id = element.getAttribute('href').substr(1);
document.querySelectorAll('.list li').forEach( (item)=>{
item.classList.toggle("active", item.id == li_id );
});
}
<style>
в head или body, а то у Вас где-то между<div style="min-height: 46px;<b>position:relative;margin-top: -12px; text-align: center;">
<div class="wrapper">
<div class="left-block">
1
</div>
<div class="right-block">
2
</div>
</div>
*{
-webkit-box-sizing:border-box;
-moz-box-sizing:border-box;
box-sizing:border-box;
margin:0;
padding:0;
}
.wrapper{
display: table;
width: 100%;
min-height:100vh;
height:100%;
}
.left-block,.right-block{
display: inline-block;
min-height:100%;
}
.left-block{width: 68%;background:green;}
.right-block{width: 32%;background:red;}