document.cookie.includes('isAdult=1') || location.replace('/confirm.html');
とかでも書いとけ