first load or not
//first launch distinguish function launchPic() { // localStorage.clear(); //first if (localStorage.getItem('firstLaunch')=='hasValue') { console.log('yes'); } else { console.log('no'); $('#guide').css('display', 'block'); localStorage.setItem('firstLaunch', 'hasValue'); } }