Skip to content

Instantly share code, notes, and snippets.

View findelallc's full-sized avatar
🏠
Working from home

Tamaghna Banerjee findelallc

🏠
Working from home
View GitHub Profile
// pure vanilla JS, no jQuery
let totalCount = 0, limitCount = 3;
tabSwitch();
function tabSwitch() {
if(localStorage.getItem('total_count')) {
totalCount = parseInt(atob(localStorage.getItem('total_count')));
if(totalCount >= limitCount) {
checkValidation();
}