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

(Created page with "$(window).on('resize',function() { location.reload(); });")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
$(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");
 
});
 
});

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"); });