{% if page.section == "opensearch" %}
{{ page.section-name }}
{% else %}
diff --git a/_sass/custom/custom.scss b/_sass/custom/custom.scss
index 1b4181ed..b458b0d6 100755
--- a/_sass/custom/custom.scss
+++ b/_sass/custom/custom.scss
@@ -78,6 +78,10 @@ nav#site-nav > .nav-list:nth-of-type(1) {
margin-right: 0.5rem;
}
+.nav-shadow {
+ box-shadow: 0 6px 4px -4px $grey-lt-300;
+}
+
.main-content {
ol {
> li {
diff --git a/assets/js/listener.js b/assets/js/listener.js
index 62d0afe2..2d7221c7 100644
--- a/assets/js/listener.js
+++ b/assets/js/listener.js
@@ -4,7 +4,8 @@ const numCharsLabel = document.getElementById('num-chars');
const sendButton = document.getElementById('send');
const commentTextArea = document.getElementById('comment');
const thankYouText = document.getElementById('thank-you');
-
+const nav = document.getElementById('site-nav');
+const versionPanel = document.getElementById('version-panel');
document.addEventListener('DOMContentLoaded', updateTextArea);
document.addEventListener('click', function(event) {
@@ -32,6 +33,14 @@ document.addEventListener('click', function(event) {
}
});
+nav.addEventListener('scroll',(e)=>{
+ if(nav.scrollTop > 0){
+ versionPanel.classList.add("nav-shadow");
+ }else{
+ versionPanel.classList.remove("nav-shadow");
+ }
+ });
+
commentTextArea.addEventListener('input', updateTextArea);
function updateTextArea() {