fixed booking buttons
This commit is contained in:
parent
f2c01a4b9a
commit
42da231fa6
1 changed files with 27 additions and 3 deletions
|
|
@ -25,10 +25,18 @@
|
|||
<p class="subtitle"><strong>ONE</strong> Maker <strong>TWO</strong> Specialists | <strong>ZERO</strong> Issues</p>
|
||||
|
||||
<div class="cta-row">
|
||||
<a class="btn primary" href="mailto:?subject=Book%20Coaching%20Session">Book With Us</a>
|
||||
<a class="btn" href="mailto:?subject=Book%20Coaching%20Session">Send Us an Email</a>
|
||||
<!-- Updated: direct email with subject -->
|
||||
<a class="btn primary" href="mailto:contact@lasereverything.net?subject=Book%20Coaching%20Session">Book With Us</a>
|
||||
<a class="btn" href="mailto:contact@lasereverything.net?subject=Book%20Coaching%20Session">Send Us an Email</a>
|
||||
</div>
|
||||
|
||||
<!-- Fallback instructions with obfuscated email -->
|
||||
<p class="muted" style="margin-top:.5rem">
|
||||
If the button doesn’t work, email
|
||||
<span id="fallbackEmail"></span>.
|
||||
<noscript>contact [at] lasereverything [dot] net</noscript>
|
||||
</p>
|
||||
|
||||
<p><em>Send Us an Email</em> with “<strong>Book Coaching Session</strong>” in the subject. Review this page and, in the body, include what you’d like to cover and what you’re hoping to achieve. Please allow at least 24 hours for a response.</p>
|
||||
|
||||
<h2>We’re Here to Help</h2>
|
||||
|
|
@ -78,13 +86,14 @@
|
|||
</p>
|
||||
|
||||
<h2>Contact Us</h2>
|
||||
<p>Questions about booking? <a href="mailto:?subject=Book%20Coaching%20Session">Send Us an Email</a>.</p>
|
||||
<p>Questions about booking? <a href="mailto:contact@lasereverything.net?subject=Book%20Coaching%20Session">Send Us an Email</a>.</p>
|
||||
</article>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
(function () {
|
||||
// Back link behavior (unchanged)
|
||||
const link = document.getElementById('backLink');
|
||||
link.addEventListener('click', function (e) {
|
||||
try {
|
||||
|
|
@ -92,6 +101,21 @@
|
|||
if (sameOrigin && history.length > 1) { e.preventDefault(); history.back(); }
|
||||
} catch(_) {}
|
||||
});
|
||||
|
||||
// Build human-readable fallback email without exposing a direct "@" in the source
|
||||
const u = 'contact';
|
||||
const d1 = 'lasereverything';
|
||||
const d2 = 'net';
|
||||
const at = '\u0040';
|
||||
const dot = '\u002e';
|
||||
const fallback = document.getElementById('fallbackEmail');
|
||||
if (fallback) {
|
||||
const addr = u + at + d1 + dot + d2;
|
||||
const a = document.createElement('a');
|
||||
a.href = 'mailto:' + addr + '?subject=' + encodeURIComponent('Book Coaching Session');
|
||||
a.textContent = addr;
|
||||
fallback.replaceChildren(a);
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue