Skip to content

Commit 15a1a71

Browse files
committed
fix: add missing helpers in course-viewer, fix dead Terms/Privacy links across registration pages, remove encoding artifacts
1 parent af2180f commit 15a1a71

3 files changed

Lines changed: 19 additions & 4 deletions

File tree

auth/register-company.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta charset="UTF-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>Register Company - SimpaticoHR</title>
8-
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">²
8+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
99
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css" rel="stylesheet">
1010
<link href="../css/app.css" rel="stylesheet">
1111
<style>
@@ -202,8 +202,8 @@ <h3 style="font-size: 1rem; margin-bottom: 1rem;">Setup Preferences</h3>
202202
<label style="display:flex;align-items:flex-start;gap:10px;">
203203
<input type="checkbox" id="agreeTerms" required style="margin-top:4px;">
204204
<span style="font-size:0.85rem;color:var(--gray-600);">
205-
I agree to SimpaticoHR's <a href="#" style="color:var(--primary);">Terms of Service</a> and
206-
<a href="#" style="color:var(--primary);">Privacy Policy</a>
205+
I agree to SimpaticoHR's <a href="/terms.html" target="_blank" style="color:var(--primary);">Terms of Service</a> and
206+
<a href="/privacy.html" target="_blank" style="color:var(--primary);">Privacy Policy</a>
207207
</span>
208208
</label>
209209
</div>

dashboard/course-viewer.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,21 @@ <h4 style="margin:0;color:var(--text-main)">No External Content Linked</h4>
233233
} catch(e) { return null; }
234234
}
235235

236+
function escapeHtml(str) {
237+
const div = document.createElement('div');
238+
div.appendChild(document.createTextNode(str));
239+
return div.innerHTML;
240+
}
241+
242+
function showToast(msg, type = 'info') {
243+
const c = document.getElementById('toasts'); if (!c) return;
244+
const t = document.createElement('div');
245+
t.style.cssText = `padding:12px 20px;border-radius:10px;font-size:13px;font-weight:600;color:#fff;margin-bottom:8px;box-shadow:0 8px 24px rgba(0,0,0,0.15);animation:fadeIn .3s ease;background:${type==='success'?'#10b981':type==='error'?'#ef4444':'#3b82f6'}`;
246+
t.textContent = msg;
247+
c.appendChild(t);
248+
setTimeout(() => t.remove(), 4000);
249+
}
250+
236251
// Initialize when DOM and utilities are ready
237252
setTimeout(init, 300);
238253
</script>

platform/register-company.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ <h2>Create Your Account</h2>
401401
</form>
402402

403403
<p class="terms">
404-
By registering, you agree to our <a href="#">Terms of Service</a> and <a href="#">Privacy Policy</a>.
404+
By registering, you agree to our <a href="/terms.html" target="_blank">Terms of Service</a> and <a href="/privacy.html" target="_blank">Privacy Policy</a>.
405405
</p>
406406

407407
<div class="auth-links">

0 commit comments

Comments
 (0)