ability_yuma
3/12/2020 - 10:02 AM

初回アクセス時だけLoadingを表示する

var webStorage = function(){
  var $loading = $('.loading');
  
  if(sessionStorage.getItem('access')){
    $loading.removeClass('is-active');
  } else {
    $loading.addClass('is-active');
    sessionStorage.setItem('access', 0);
  }
}

webStorage();