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

Line 1: Line 1:
 
$(window).on('resize',function() {
 
$(window).on('resize',function() {
 
     location.reload();
 
     location.reload();
 +
});
 +
 +
$(window).scroll(function() {
 +
  var scrolledY = $(window).scrollTop();
 +
  $(".intropic").css("background-position", "left " + ((scrolledY)) + "px");
 
});
 
});
  

Revision as of 10:12, 13 October 2018

$(window).on('resize',function() {

   location.reload();

});

$(window).scroll(function() {

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

});

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