how to show a splash screen html page only once

Solutions on MaxInterview for how to show a splash screen html page only once by the best coders in the world

showing results for - "how to show a splash screen html page only once"
Yael
14 Apr 2019
1.home-page {
2    display: none;
3}
4
5$(document).ready(function(){
6
7    if (sessionStorage.getItem('splash') !== 'true') {
8        $('.splash_section').show();
9        sessionStorage.setItem('splash','true');
10    }
11    else {
12        $('.home-page').fadeIn();
13    }    
14});