Difference between revisions of "Template:British Columbia 2"

m
m
Line 153: Line 153:
 
   if (window.matchMedia("(min-width: 768px)").matches) {
 
   if (window.matchMedia("(min-width: 768px)").matches) {
 
   /* the viewport is at least 768pixels wide */
 
   /* the viewport is at least 768pixels wide */
   if (document.body.scrollTop > 300 || document.documentElement.scrollTop > 300) {
+
   if (document.body.scrollTop > 150|| document.documentElement.scrollTop > 150) {
 
         navigationBar.classList.add("opaque-nav");
 
         navigationBar.classList.add("opaque-nav");
 
     } else {
 
     } else {

Revision as of 12:01, 7 October 2016

Home