Difference between revisions of "Template:Goettingen/CSS"

Line 2,227: Line 2,227:
  
 
// This is the jquery part of your template.  This makes the notebook function.
 
// This is the jquery part of your template.  This makes the notebook function.
 
  
 
$(document).ready(function() {
 
$(document).ready(function() {
Line 2,253: Line 2,252:
  
  
$('#accordion2').find('.menu_item').click(function(){
+
$('#accordion2').find('.notebook_item').click(function(){
  
 
//Expand or collapse this panel
 
//Expand or collapse this panel
submenu = $(this).find('.submenu');
+
submenu = $(this).find('.notebook_submenu');
 
submenu.toggle();
 
submenu.toggle();
  
Line 2,269: Line 2,268:
  
 
//Hide the other panels
 
//Hide the other panels
$(".submenu").not(submenu).hide();
+
$(".notebook_submenu").not(notebook_submenu).hide();
 
$(".icon").not(icon).removeClass("less").addClass("plus");
 
$(".icon").not(icon).removeClass("less").addClass("plus");
 
});
 
});
Line 2,290: Line 2,289:
 
</script>
 
</script>
  
 
 
  
  

Revision as of 14:18, 30 August 2016