1 | {combine_script id='jquery.tipTip.minified' load='header' require='jquery' path='themes/OS_glass_dark_2/tiptip/jquery.tipTip.minified.js'} |
---|
2 | {html_head}{literal} |
---|
3 | <script type="text/javascript"> |
---|
4 | /** |
---|
5 | * jQuery Cookie plugin |
---|
6 | * |
---|
7 | * Copyright (c) 2010 Klaus Hartl (stilbuero.de) |
---|
8 | * Dual licensed under the MIT and GPL licenses: |
---|
9 | * http://www.opensource.org/licenses/mit-license.php |
---|
10 | * http://www.gnu.org/licenses/gpl.html |
---|
11 | * |
---|
12 | */ |
---|
13 | jQuery.cookie = function (key, value, options) { |
---|
14 | |
---|
15 | // key and at least value given, set cookie... |
---|
16 | if (arguments.length > 1 && String(value) !== "[object Object]") { |
---|
17 | options = jQuery.extend({}, options); |
---|
18 | |
---|
19 | if (value === null || value === undefined) { |
---|
20 | options.expires = -1; |
---|
21 | } |
---|
22 | |
---|
23 | if (typeof options.expires === 'number') { |
---|
24 | var days = options.expires, t = options.expires = new Date(); |
---|
25 | t.setDate(t.getDate() + days); |
---|
26 | } |
---|
27 | |
---|
28 | value = String(value); |
---|
29 | |
---|
30 | return (document.cookie = [ |
---|
31 | encodeURIComponent(key), '=', |
---|
32 | options.raw ? value : encodeURIComponent(value), |
---|
33 | options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE |
---|
34 | options.path ? '; path=' + options.path : '', |
---|
35 | options.domain ? '; domain=' + options.domain : '', |
---|
36 | options.secure ? '; secure' : '' |
---|
37 | ].join('')); |
---|
38 | } |
---|
39 | |
---|
40 | // key and possibly options given, get cookie... |
---|
41 | options = value || {}; |
---|
42 | var result, decode = options.raw ? function (s) { return s; } : decodeURIComponent; |
---|
43 | return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null; |
---|
44 | }; |
---|
45 | |
---|
46 | |
---|
47 | |
---|
48 | jQuery(document).ready(function(){ |
---|
49 | $(".titre_acordeon, .titre_acordeon_0").each(function () { |
---|
50 | var id = $(this).parent().attr("id"); |
---|
51 | if (!jQuery.cookie(id)) |
---|
52 | { |
---|
53 | if ( $(this).attr("class")=="titre_acordeon") |
---|
54 | { |
---|
55 | jQuery.cookie($(this).parent().attr("id"),false, {path: "/"}); |
---|
56 | $(this).next().hide(); |
---|
57 | } |
---|
58 | else |
---|
59 | { |
---|
60 | $(this).next().show(); |
---|
61 | jQuery.cookie($(this).parent().attr("id"),true, {path: "/"}); |
---|
62 | } |
---|
63 | } |
---|
64 | else if (jQuery.cookie(id) == "true") |
---|
65 | { |
---|
66 | $(this).next().show(); |
---|
67 | } |
---|
68 | else |
---|
69 | { |
---|
70 | $(this).next().hide(); |
---|
71 | } |
---|
72 | }); |
---|
73 | |
---|
74 | $(".titre_acordeon, .titre_acordeon_0").click(function() { |
---|
75 | $(this).next().toggle("medium"); |
---|
76 | var id = $(this).parent().attr("id"); |
---|
77 | if ( jQuery.cookie(id) == "true") |
---|
78 | { |
---|
79 | jQuery.cookie(id, false, {path: "/"}); |
---|
80 | } |
---|
81 | else |
---|
82 | { |
---|
83 | jQuery.cookie(id, true, {path: "/"}); |
---|
84 | } |
---|
85 | }); |
---|
86 | }); |
---|
87 | $(function(){ |
---|
88 | $(".categoryActions A").tipTip({delay : 0, fadeIn : 200, fadeOut : 200 }); |
---|
89 | $("#home_icon A").tipTip({edgeOffset : 10, fadeIn : 200, fadeOut : 200, defaultPosition : "top" }); |
---|
90 | $(".randomButtons A").tipTip({delay : 0, fadeIn : 200, fadeOut : 200 }); |
---|
91 | $(".navButtons A").tipTip({delay : 0, fadeIn : 200, fadeOut : 200 }); |
---|
92 | $("#mbCategories a").tipTip({delay : 0, fadeIn : 200, fadeOut : 200 }); |
---|
93 | }); |
---|
94 | </script> |
---|
95 | {/literal} |
---|
96 | {/html_head} |
---|
97 | {literal} |
---|
98 | <!--[if lt IE 7]> |
---|
99 | <style> |
---|
100 | #menubar dl, #section_in { |
---|
101 | background: transparent !important; |
---|
102 | } |
---|
103 | /* contenu "section" */ |
---|
104 | #section_left, #section_bottom_left, #section_bottom, #section_bottom_right, #section_right{ |
---|
105 | background: transparent !important; |
---|
106 | } |
---|
107 | </style> |
---|
108 | <![endif]--> |
---|
109 | <!--[if IE 7]> |
---|
110 | <style> |
---|
111 | #menubar dl, #section_in { |
---|
112 | background: transparent !important; |
---|
113 | } |
---|
114 | /* contenu "section" */ |
---|
115 | #section_left, #section_bottom_left, #section_bottom, #section_bottom_right, #section_right{ |
---|
116 | background:none!important; |
---|
117 | } |
---|
118 | BODY#theCommentsPage .content, |
---|
119 | BODY#theUploadPage .content, |
---|
120 | BODY#theRegisterPage .content, |
---|
121 | BODY#theIdentificationPage .content, |
---|
122 | BODY#theProfilePage .content, |
---|
123 | BODY#theSearchPage .content, |
---|
124 | BODY#theAboutPage .content, |
---|
125 | BODY#thePopuphelpPage .content, |
---|
126 | BODY#thePasswordPage .content, |
---|
127 | BODY#theNotificationPage .content, |
---|
128 | BODY#theTagsPage .content, |
---|
129 | BODY#theNBMPage .content, |
---|
130 | #action_pict, |
---|
131 | #comments |
---|
132 | { |
---|
133 | background: transparent !important; |
---|
134 | } |
---|
135 | </style> |
---|
136 | <![endif]--> |
---|
137 | {/literal} |
---|