test
parent
a9260d2f86
commit
b1716b8958
|
@ -308,11 +308,14 @@
|
|||
</script>
|
||||
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
if (window.location.pathname === "/pages/contact") {
|
||||
document.getElementsByClassName('header-wrapper')[0].style.backgroundColor = "yellow";
|
||||
}
|
||||
});
|
||||
var pageInfo = {
|
||||
url: "{{ page.url }}",
|
||||
title: "{{ page.title }}",
|
||||
handle: "{{ page.handle }}"
|
||||
// Add more properties as needed
|
||||
};
|
||||
|
||||
console.log(pageInfo);
|
||||
</script>
|
||||
|
||||
<!-- Render CSS content -->
|
||||
|
|
Loading…
Reference in New Issue