Difference between revisions of "Team:IISER-Kolkata/common.js"

 
Line 1: Line 1:
$(window).on('resize',function() {
 
    location.reload();
 
});
 
  
 
$(window).scroll(function() {
 
$(window).scroll(function() {

Latest revision as of 11:57, 17 October 2018

$(window).scroll(function() {

 var scrolledY = $(window).scrollTop();
 $(".intropic").css("background-position", "left " + ((scrolledY)) + "px");

});

$("#menuicon").click(function(){ $("#menuicon").toggleClass("change"); $("#sidenav").toggleClass("visible"); });