1 | {combine_script id='jquery.tipTip.minified' load='header' require='jquery' path='themes/OS_glass_clear/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 li a[title]').tipTip({delay : 0, fadeIn : 200, fadeOut : 200, defaultPosition : "top" }); |
---|
89 | $("#home_icon A[title]").tipTip({edgeOffset : 10, fadeIn : 200, fadeOut : 200, defaultPosition : "top" }); |
---|
90 | $(".randomButtons A[title]").tipTip({delay : 0, fadeIn : 200, fadeOut : 200 }); |
---|
91 | $(".navButtons A[title]").tipTip({delay : 0, fadeIn : 200, fadeOut : 200 }); |
---|
92 | $(".actionButtons a[title]").tipTip({delay : 0, fadeIn : 200, fadeOut : 200, defaultPosition : "top" }); |
---|
93 | $("#mbCategories a[title]").tipTip({delay : 0, fadeIn : 200, fadeOut : 200 }); |
---|
94 | }); |
---|
95 | </script> |
---|
96 | {/literal} |
---|
97 | {/html_head} |
---|
98 | {literal} |
---|
99 | <!--[if lt IE 7]> |
---|
100 | <style> |
---|
101 | #menubar dl, #section_in { |
---|
102 | background: #FFF!important; |
---|
103 | } |
---|
104 | /* contenu "section" */ |
---|
105 | #section_up_left, #section_up, #section_up_right, #section_left, #section_bottom_left, #section_bottom, #section_bottom_right, #section_right{ |
---|
106 | background:none!important; |
---|
107 | color:#000!important; |
---|
108 | } |
---|
109 | </style> |
---|
110 | <![endif]--> |
---|
111 | <!--[if IE 7]> |
---|
112 | <style> |
---|
113 | #menubar dl, #section_in { |
---|
114 | background: #FFF!important; |
---|
115 | color:#000!important; |
---|
116 | } |
---|
117 | /* contenu "section" */ |
---|
118 | #section_up_left, #section_up, #section_up_right, #section_left, #section_bottom_left, #section_bottom, #section_bottom_right, #section_right{ |
---|
119 | background:none!important; |
---|
120 | color:#000!important; |
---|
121 | } |
---|
122 | BODY#theCommentsPage .content, |
---|
123 | BODY#theUploadPage .content, |
---|
124 | BODY#theRegisterPage .content, |
---|
125 | BODY#theIdentificationPage .content, |
---|
126 | BODY#theProfilePage .content, |
---|
127 | BODY#theSearchPage .content, |
---|
128 | BODY#theAboutPage .content, |
---|
129 | BODY#thePopuphelpPage .content, |
---|
130 | BODY#thePasswordPage .content, |
---|
131 | BODY#theNotificationPage .content, |
---|
132 | BODY#theTagsPage .content, |
---|
133 | BODY#theNBMPage .content, |
---|
134 | #action_pict, |
---|
135 | #comments |
---|
136 | { |
---|
137 | background: #FFF!important; |
---|
138 | color:#000!important; |
---|
139 | } |
---|
140 | #menubar A , #section_in A { |
---|
141 | color:#000!important; |
---|
142 | } |
---|
143 | </style> |
---|
144 | <![endif]--> |
---|
145 | {/literal} |
---|