Last change
on this file since 19421 was
19421,
checked in by plg, 11 years ago
|
Deep changes in themes Simple*: for the picture page, we mainly use core
templates instead of specific templates. It means:
- easier to maintain
- icons instead of text (may be modified)
- distorsion bug fixed
|
File size:
823 bytes
|
Line | |
---|
1 | // use this in case of conflicts with other js frameworks |
---|
2 | // jQuery.noConflict(); |
---|
3 | |
---|
4 | jQuery(document).ready(function($){ |
---|
5 | jQuery("#comments h3").click(function () { |
---|
6 | jQuery("#pictureComments").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.