Difference between revisions of "Template:Virginia/js/wiki"

Line 1: Line 1:
$(function() {
 
  $('#virginia-header').load('./templates/header.html');
 
  $('#virginia-footer').load('./templates/footer.html');
 
});
 
 
// Code courtesy of Jay Holtslander, https://codepen.io/j_holtslander/pen/doQggE
 
// Code courtesy of Jay Holtslander, https://codepen.io/j_holtslander/pen/doQggE
  
Line 23: Line 19:
 
});
 
});
 
$(function(){$(".scroll").click(function(){$("html,body").animate({scrollTop:$(".thetop").offset().top},"1000");return false})})
 
$(function(){$(".scroll").click(function(){$("html,body").animate({scrollTop:$(".thetop").offset().top},"1000");return false})})
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZvb3Rlci1oZWFkZXItdGVtcGxhdGUuanMiLCJuYXZiYXIuanMiLCJzbW9vdGhzY3JvbGxiYXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQTtBQUNBO0FBQ0E7QUNIQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQ1RBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwiZmlsZSI6Indpa2kuanMiLCJzb3VyY2VzQ29udGVudCI6WyIkKGZ1bmN0aW9uKCkge1xyXG4gICQoJyN2aXJnaW5pYS1oZWFkZXInKS5sb2FkKCcuL3RlbXBsYXRlcy9oZWFkZXIuaHRtbCcpO1xyXG4gICQoJyN2aXJnaW5pYS1mb290ZXInKS5sb2FkKCcuL3RlbXBsYXRlcy9mb290ZXIuaHRtbCcpO1xyXG59KTsiLCIvLyBDb2RlIGNvdXJ0ZXN5IG9mIEpheSBIb2x0c2xhbmRlciwgaHR0cHM6Ly9jb2RlcGVuLmlvL2pfaG9sdHNsYW5kZXIvcGVuL2RvUWdnRVxyXG5cclxuJCh3aW5kb3cpLnNjcm9sbChmdW5jdGlvb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IvLyBDb2RlIGNvdXJ0ZXN5IG9mIEpheSBIb2x0c2xhbmRlciwgaHR0cHM6Ly9jb2RlcGVuLmlvL2pfaG9sdHNsYW5kZXIvcGVuL2RvUWdnRVxyXG5cclxuJCh3aW5kb3cpLnNjcm9sbChmdW5jdGlvbigpIHtcclxuICBpZiAoJChkb2N1bWVudCkuc2Nyb2xsVG9wKCkgPiA1MCkge1xyXG4gICAgJCgnbmF2JykuYWRkQ2xhc3MoJ3NocmluaycpO1xyXG4gIH0gZWxzZSB7XHJcbiAgICAkKCduYXYnKS5yZW1vdmVDbGFzcygnc2hyaW5rJyk7XHJcbiAgfVxyXG59KTtcclxuIiwiLy9Db2RlIGNvdXJ0ZXN5IG9mIGh0dHBzOi8vY29kZXBlbi5pby9rcnV4b3IvcGVuL0N3cEZxXHJcblxyXG4kKHdpbmRvdykuc2Nyb2xsKGZ1bmN0aW9uKCkge1xyXG4gICAgaWYgKCQodGhpcykuc2Nyb2xsVG9wKCkgPiA1MCApIHtcclxuICAgICAgICAkKCcuc2Nyb2xsdG9wOmhpZGRlbicpLnN0b3AodHJ1ZSwgdHJ1ZSkuZmFkZUluKCk7XHJcbiAgICB9IGVsc2Uge1xyXG4gICAgICAgICQoJy5zY3JvbGx0b3AnKS5zdG9wKHRydWUsIHRydWUpLmZhZGVPdXQoKTtcclxuICAgIH1cclxufSk7XHJcbiQoZnVuY3Rpb24oKXskKFwiLnNjcm9sbFwiKS5jbGljayhmdW5jdGlvbigpeyQoXCJodG1sLGJvZHlcIikuYW5pbWF0ZSh7c2Nyb2xsVG9wOiQoXCIudGhldG9wXCIpLm9mZnNldCgpLnRvcH0sXCIxMDAwXCIpO3JldHVybiBmYWxzZX0pfSkiXX0=

Revision as of 16:20, 26 June 2018

// Code courtesy of Jay Holtslander, https://codepen.io/j_holtslander/pen/doQggE

$(window).scroll(function() {

 if ($(document).scrollTop() > 50) {
   $('nav').addClass('shrink');
 } else {
   $('nav').removeClass('shrink');
 }

});

//Code courtesy of https://codepen.io/kruxor/pen/CwpFq

$(window).scroll(function() {

   if ($(this).scrollTop() > 50 ) {
       $('.scrolltop:hidden').stop(true, true).fadeIn();
   } else {
       $('.scrolltop').stop(true, true).fadeOut();
   }

}); $(function(){$(".scroll").click(function(){$("html,body").animate({scrollTop:$(".thetop").offset().top},"1000");return false})}) //# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5hdmJhci5qcyIsInNtb290aHNjcm9sbGJhci5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQ1RBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwiZmlsZSI6Indpa2kuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBDb2RlIGNvdXJ0ZXN5IG9mIEpheSBIb2x0c2xhbmRlciwgaHR0cHM6Ly9jb2RlcGVuLmlvL2pfaG9sdHNsYW5kZXIvcGVuL2RvUWdnRVxyXG5cclxuJCh3aW5kb3cpLnNjcm9sbChmdW5jdGlvbigpIHtcclxuICBpZiAoJChkb2N1bWVudCkuc2Nyb2xsVG9wKCkgPiA1MCkge1xyXG4gICAgJCgnbmF2JykuYWRkQ2xhc3MoJ3NocmluaycpO1xyXG4gIH0gZWxzZSB7XHJcbiAgICAkKCduYXYnKS5yZW1vdmVDbGFzcygnc2hyaW5rJyk7XHJcbiAgfVxyXG59KTtcclxuIiwiLy9Db2RlIGNvdXJ0ZXN5IG9mIGh0dHBzOi8vY29kZXBlbi5pby9rcnV4b3IvcGVuL0N3cEZxXHJcblxyXG4kKHdpbmRvdykuc2Nyb2xsKGZ1bmN0aW9uKCkge1xyXG4gICAgaWYgKCQodGhpcykuc2Nyb2xsVG9wKCkgPiA1MCApIHtcclxuICAgICAgICAkKCcuc2Nyb2xs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