Skip to content

Commit ce2912e

Browse files
Merge branch 'master' into master
2 parents 6c11697 + 255f466 commit ce2912e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<li><a href="shop.html">Shop</a></li>
2727
<li><a href="blog.html">Blog</a></li>
2828
<li><a href="about.html">About</a></li>
29-
<li><a href="contact.html">Contact me</a></li>
29+
<li><a href="contact.html">Contact Us</a></li>
3030
</ul>
3131
</nav>
3232
<div class="header-list-icon">
@@ -355,7 +355,7 @@ <h3>Sign Up For Newsletters</h3>
355355
<h5>get e-mail updates about out latest shop and <span>special offers</span></h5>
356356
</div>
357357
<div class="form">
358-
<input type="email" placeholder="Your email address">
358+
<input type="email" placeholder="Your email address" id="email-address-input">
359359
<button>Sign Up</button>
360360
</div>
361361
</section>

script.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// focus the cursor on the email-address input
2+
const emailField = document.getElementById("email-address-input");
3+
emailField.focus({
4+
preventScroll: true,
5+
});

0 commit comments

Comments
 (0)