source: extensions/floOS/OS_glass_dark/local_head.tpl @ 17475

Last change on this file since 17475 was 15941, checked in by flop25, 12 years ago

tiptip popup displayed only if a title exists
css for menu
dimensions of thumbnails set to !important

File size: 4.2 KB
Line 
1{combine_script id='jquery.tipTip.minified' load='header' require='jquery' path='themes/OS_glass_dark/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*/
13jQuery.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
48jQuery(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:  #000!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        }
108</style>
109<![endif]-->
110<!--[if IE 7]>
111<style>
112        #menubar dl, #section_in {
113        background:  #000!important;
114        }
115        /* contenu "section" */
116        #section_up_left, #section_up, #section_up_right, #section_left, #section_bottom_left, #section_bottom, #section_bottom_right, #section_right{
117        background:none!important;
118        }
119        BODY#theCommentsPage .content,
120        BODY#theUploadPage .content,
121        BODY#theRegisterPage .content,
122        BODY#theIdentificationPage .content,
123        BODY#theProfilePage .content,
124        BODY#theSearchPage .content,
125        BODY#theAboutPage .content,
126        BODY#thePopuphelpPage .content,
127        BODY#thePasswordPage .content,
128        BODY#theNotificationPage .content,
129        BODY#theTagsPage .content,
130        BODY#theNBMPage .content,
131        #action_pict,
132        #comments
133        {
134        background:  #000!important;
135        }
136</style>
137<![endif]-->
138{/literal}
Note: See TracBrowser for help on using the repository browser.