test
parent
871b9f959a
commit
7f5b360c67
|
@ -258,19 +258,6 @@
|
|||
font-size: 1.6rem;
|
||||
}
|
||||
}
|
||||
|
||||
{% comment %}
|
||||
custom code
|
||||
{% endcomment %}
|
||||
|
||||
{% if window.location.pathname == "/pages/contact" %}
|
||||
|
||||
.header-wrapper {
|
||||
background-color: yellow !important;
|
||||
}
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% endstyle %}
|
||||
|
||||
{{ 'base.css' | asset_url | stylesheet_tag }}
|
||||
|
@ -320,6 +307,14 @@
|
|||
})(window, document, "clarity", "script", "lvd5xzm4d8");
|
||||
</script>
|
||||
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
if (window.location.pathname === "/pages/contact") {
|
||||
document.getElementById('header-wrapper').style.backgroundColor = "yellow";
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- Render CSS content -->
|
||||
{% render 'shx-feedback-banner'
|
||||
, content_type: 'head' %}
|
||||
|
|
Loading…
Reference in New Issue