parent
a3dd286deb
commit
b5db23185f
@ -1,12 +0,0 @@ |
|||||||
window.onscroll = function() {toggleStickyHeader()}; |
|
||||||
|
|
||||||
var header = document.querySelector("header"); |
|
||||||
var sticky = header.offsetTop; |
|
||||||
|
|
||||||
function toggleStickyHeader() { |
|
||||||
if (window.pageYOffset > sticky) { |
|
||||||
header.classList.add("sticky"); |
|
||||||
} else { |
|
||||||
header.classList.remove("sticky"); |
|
||||||
} |
|
||||||
}
|
|
@ -1,2 +1,8 @@ |
|||||||
h1.tcenter The Auction House |
article |
||||||
p.tcenter = "I use Arch btw " * 5 |
h1.tcenter The Auction House |
||||||
|
p.tcenter |
||||||
|
| Welcome to the Auction House! With our convenient online auction platform, you can easily browse through listings and find great deals on everything from clothes to electronics. |
||||||
|
|
||||||
|
article |
||||||
|
h2.tcenter Stuff |
||||||
|
a href="/" = "jahiofhsoifhio" |
||||||
|
Loading…
Reference in new issue