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

(Blanked the page)
 
Line 1: Line 1:
<html>
+
 
<body>
+
<script>
+
$(document).ready(function(){
+
$('#sidebar-btn').click(function(){
+
$('#sidebar').toggleClass('visible');
+
$('#overlay').toggleClass('active');
+
$('#container').toggleClass('inactive');
+
$('#sidebar-btn').toggleClass('inactive');
+
});
+
$('#overlay').click(function(){
+
$('#sidebar').toggleClass('visible');
+
$('#overlay').toggleClass('active');
+
$('#container').toggleClass('inactive');
+
$('#sidebar-btn').toggleClass('inactive');
+
});
+
+
$('#sidebar ul ul.sub').click(function(){
+
$(this).children().toggleClass('active');
+
});
+
});
+
</script>
+
</body>
+
</html>
+

Latest revision as of 15:32, 6 May 2017