Difference between revisions of "Template:Cologne-Duesseldorf/js-jquery"

Line 6,630: Line 6,630:
 
  $( "#container" ).on( "swiperight", swipeHandler );
 
  $( "#container" ).on( "swiperight", swipeHandler );
 
  $( "#overlay" ).on( "swipeleft", swipeHandler );
 
  $( "#overlay" ).on( "swipeleft", swipeHandler );
  function swipeHandler( event ){
+
});
 +
  function swipeHandler( event ){
 
$('#sidebar').toggleClass('visible');
 
$('#sidebar').toggleClass('visible');
 
$('#overlay').toggleClass('active');
 
$('#overlay').toggleClass('active');
Line 6,636: Line 6,637:
 
$('#sidebar-btn').toggleClass('inactive');
 
$('#sidebar-btn').toggleClass('inactive');
 
  }
 
  }
});
+
});
});
+
 
 
  

Revision as of 07:02, 6 May 2017