source: extensions/simple_themes/simple/js/scripts.js @ 13554

Last change on this file since 13554 was 13554, checked in by plg, 12 years ago

import theme Simple version 2.4.3

  • add a #Tags id for tags list, for the user tags plugin
  • use inline-block instead of float left for thumbnails ans categories
  • print css: re-enable it in the header + improve it
  • update README + add debugging mode in themeconf
  • language strings
  • new script to tag a new version and generate a zip archive
File size: 818 bytes
Line 
1// use this in case of conflicts with other js frameworks
2// jQuery.noConflict();
3
4jQuery(document).ready(function($){
5  $("#theComments h3").click(function () {
6    $("#theComments > div").toggle("slow");
7  });
8
9  $("#menuswitcher").click(function(){
10    if ($("#menubar").is(":hidden")) {
11      $("#menubar").show("slow");
12      $.cookie('side-menu', 'showing', {path: "/"});
13      return false;
14    } else {
15      $("#menubar").hide("slow");
16      $.cookie('side-menu', 'hiding', {path: "/"});
17      return false;
18    }
19  });
20
21  // creates a variable with the contents of the cookie side-menu
22  var sidemenu = $.cookie('side-menu');
23  // if cookie says the menu is hiding, keep it hidden!
24  if (sidemenu == 'hiding') {
25    $("#menubar").hide();
26  }
27  if (sidemenu == 'showing') {
28    $("#menubar").show();
29  };
30});
Note: See TracBrowser for help on using the repository browser.