fix: single resume flow — remove landing screen notice, auto-restore localStorage
Remove the duplicate "Resume where you left off" notice on the landing screen. Now localStorage data is silently restored on form start, and the email-based welcome-back modal on step 1 is the only resume prompt. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
e42cccaf6d
commit
8c13a80843
23
apply.html
23
apply.html
|
|
@ -580,12 +580,7 @@
|
|||
|
||||
<div class="time-estimate">This application takes approximately 15–20 minutes to complete.</div>
|
||||
|
||||
<div id="resume-notice" class="resume-notice" style="display: none;">
|
||||
You have saved progress from a previous session.
|
||||
<a href="#" onclick="startForm(true); return false;" style="color: var(--forest); font-weight: 600;">Resume where you left off</a>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-primary" onclick="startForm(false)" style="font-size: 1.1rem; padding: 1rem 3rem;">Begin Application</button>
|
||||
<button class="btn btn-primary" onclick="startForm()" style="font-size: 1.1rem; padding: 1rem 3rem;">Begin Application</button>
|
||||
</div>
|
||||
|
||||
<div class="progress-container" id="progress-container">
|
||||
|
|
@ -1086,30 +1081,20 @@
|
|||
document.getElementById('landing-reg-price').innerHTML =
|
||||
`€${tierPricing.perWeek} – €${REGISTRATION_PRICING.lastMin.perWeek}/wk`;
|
||||
|
||||
// Check for saved data on load
|
||||
(function checkSavedProgress() {
|
||||
const saved = localStorage.getItem(STORAGE_KEY);
|
||||
if (saved) {
|
||||
document.getElementById('resume-notice').style.display = 'block';
|
||||
}
|
||||
})();
|
||||
|
||||
function startForm(resume) {
|
||||
function startForm() {
|
||||
document.getElementById('landing-screen').style.display = 'none';
|
||||
document.getElementById('application-form').style.display = 'block';
|
||||
document.getElementById('progress-container').style.display = 'block';
|
||||
|
||||
if (resume) {
|
||||
// Silently restore any locally saved progress
|
||||
const saved = localStorage.getItem(STORAGE_KEY);
|
||||
if (saved) {
|
||||
try {
|
||||
const data = JSON.parse(saved);
|
||||
restoreFormData(data);
|
||||
restoreFormData(JSON.parse(saved));
|
||||
} catch (e) {
|
||||
console.error('Failed to restore saved data:', e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
currentStep = 1;
|
||||
showStep(1);
|
||||
|
|
|
|||
Loading…
Reference in New Issue