Changeset 25221


Ignore:
Timestamp:
Oct 29, 2013, 9:59:58 PM (10 years ago)
Author:
Miklfe
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Slide/js/slide.js

    r25165 r25221  
    1 $(function()
    2         {
    3         $( document ).ready(function()
     1        $(function()
    42                {
    5                 if($('body').attr('id') == 'theCategoryPage')
     3                        if($('body').attr('id') == 'theCategoryPage')
     4                                {
     5                                $('#menu_start').hide()
     6                        };
     7                        if($('body').attr('id') != 'theCategoryPage')
     8                                {
     9                                $('#menu').hide()
     10                        };
     11                               
     12                        $("#page_content #nav_wrapper").css("display", "none");
     13                        $("li.liSub:last-child dt").addClass('dd_wrapper');
     14                        $("li.liSub:last-child dd").addClass('sub');
     15
     16                        function megaHoverOver()
     17                                {
     18                                $(this).find(".sub").stop().fadeTo('slow', 1).show()
     19                        }
     20                       
     21                        function megaHoverOut()
     22                                {
     23                                $(this).find(".sub").stop().fadeTo('slow', 0, function()
     24                                        {
     25                                        $(this).hide()
     26                                });
     27                        }
     28
     29
     30                        var configSub = {
     31                                 sensitivity: 2,                // number = sensitivity threshold (must be 1 or higher)   
     32                                 interval: 0,                   // number = milliseconds for onMouseOver polling interval   
     33                                 over: megaHoverOver,   // function = onMouseOver callback (REQUIRED)   
     34                                 timeout: 0,                    // number = milliseconds delay before onMouseOut   
     35                                 out: megaHoverOut              // function = onMouseOut callback (REQUIRED)   
     36                        };
     37
     38                        $("ul#topnav li .sub").css({'display':'none'});
     39                        $("ul#topnav li").hoverIntent(configSub);
     40                       
     41                       
     42                        // Delete the border for the last li of the submenu
     43                        $("ul#topnav .sub ul li:last-child a").css("border", "none");
     44
     45                        /*other menubar script*/
     46                        //open form login menu         
     47                       
     48                        $(".cl_wrapper").next("div").hide();
     49                        $(".cl_wrapper").hover(function()
     50                                {
     51                                if($(this).next("div").is(":hidden"))
     52                                        {
     53                                        $(this).next("div").fadeTo('fast', 1);
     54                                        $(this).addClass('activate');
     55                                        $(this).next("div").attr(":visible")
     56                                }
     57                        });
     58                               
     59                        $(".cl_wrapper").click(function()
     60                                {
     61                                if($(this).next("div").is(":visible"))
     62                                        {
     63                                        $(this).next("div").fadeTo('slow', 0, function(){$(this).hide()});
     64                                        $(this).removeClass('activate');
     65                                        $(this).next("div").attr(":hidden")
     66                                }
     67                        });
     68
     69                        $(".close").click(function()
     70                                {
     71                                if($("#loger").is(":visible"))
     72                                        {
     73                                        $("#loger").fadeTo('fast', 0, function(){$(this).hide()});
     74                                        $(".cl_wrapper").removeClass('activate');
     75                                        $("#loger").attr(":hidden");
     76                                }
     77                        });
     78                       
     79                        $(".cc_wrapper").click(function()
     80                                {
     81                                if($(this).next("div").is(":visible"))
     82                                        {
     83                                        $(this).next("div").fadeTo('slow', 0, function(){$(this).hide()});
     84                                        $(this).removeClass('activate');
     85                                        $(this).next("div").attr(":hidden")
     86                                }
     87                        });
     88                       
     89                        $(".cc_wrapper").click(function()
     90                                {
     91                                if($(this).next("div").is(":hidden"))
     92                                        {
     93                                        $(this).next("div").fadeTo('fast', 1);
     94                                        $(this).addClass('activate');
     95                                        $(this).next("div").attr(":visible")
     96                                }
     97                        });
     98                       
     99                                $(".close").click(function()
     100                                        {
     101                                        if($("#loger").is(":visible"))
     102                                                {
     103                                                $("#loger").fadeTo('fast', 0, function(){$(this).hide()});
     104                                                $(".cc_wrapper").removeClass('activate');
     105                                                $("#loger").attr(":hidden");
     106                                        }
     107                        });
     108                       
     109                       
     110                $( document ).ready(function()
    6111                        {
    7                         $('#menu_start').hide()
    8                 };
    9                 if($('body').attr('id') != 'theCategoryPage')
    10                         {
    11                         $('#menu').hide()
    12                 };
    13                        
    14                 $("#page_content #nav_wrapper").css("display", "none");
    15                 $("li.liSub:last-child dt").addClass('dd_wrapper');
    16                 $("li.liSub:last-child dd").addClass('sub');
    17 
    18                 function megaHoverOver()
    19                         {
    20                         $(this).find(".sub").stop().fadeTo('slow', 1).show()
    21                 }
    22112               
    23                 function megaHoverOut()
    24                         {
    25                         $(this).find(".sub").stop().fadeTo('slow', 0, function()
    26                                 {
    27                                 $(this).hide()
    28                         });
    29                 }
    30 
    31 
    32                 var configSub = {
    33                          sensitivity: 2,                // number = sensitivity threshold (must be 1 or higher)   
    34                          interval: 0,                   // number = milliseconds for onMouseOver polling interval   
    35                          over: megaHoverOver,   // function = onMouseOver callback (REQUIRED)   
    36                          timeout: 0,                    // number = milliseconds delay before onMouseOut   
    37                          out: megaHoverOut              // function = onMouseOut callback (REQUIRED)   
    38                 };
    39 
    40                 $("ul#topnav li .sub").css({'display':'none'});
    41                 $("ul#topnav li").hoverIntent(configSub);
     113                        // make column menubar_categorie
     114                        $('.mcol').makeacolumnlists({cols:4, colWidth:155, equalHeight: true, startN: 1});
     115                       
     116                        //determines what page will slide
     117                        var t = [       $('#menu_start a'),
     118                                                $('.navigationBar a'),
     119                                                $('.calendarBar a'),
     120                                                $('.calendarCalBar a'),
     121                                                $('.navigationButtons a'),
     122                                                $('#imageHeaderBar a'),
     123                                                $('.calImg a'),
     124                                                $('.date_today'),
     125                                                $('#sortOrderBox a'),
     126                                                $('#derivativeSwitchBox a'),
     127                                                $('#sortOrderLink'),
     128                                                $('#derivativeSwitchLink'),
     129                                                $('.actions a'),
     130                                                $('.navThumb'),
     131                                                $('.calendarTitle a'),
     132                                                $('#linkToPiwigo a'),
     133                                                $('#copyright a'),
     134                                                //determines what page will slide->specific plugin     
     135                                                $('#languageSwitchLink'),
     136                                                $('#languageSwitchBox a'),
     137                                                $('#theHeader a'),
     138                                                $('#myHomePage a'),
     139                                                $('#mbAdditionalPages a'),
     140                                                $('#photosAddContent a'),
     141                                                $('.amm-MenuBar-links-icons a'),
     142                                        ];
     143                        $.each(t,function()
     144                                {
     145                                $(this).attr('class','noSlide')
     146                        });
     147                               
     148                        var r = [       $('.pwg-icon-letters'),
     149                                                $('.pwg-icon-cloud'),
     150                                                $('.pwg-icon-help'),
     151                                                $('.pwg-icon-favorite-del'),
     152                                                $('.pwg-icon-caddie-add'),
     153                                                $('.pwg-icon-category-view-flat'),
     154                                                $('.pwg-icon-category-view-normal'),
     155                                                $('#thePicturePage .pwg-icon-slideshow'),
     156                                                $('#thePicturePage .pwg-icon-camera-info'),
     157                                                $('#thePicturePage .pwg-icon-save'),
     158                                                $('#thePicturePage .pwg-icon-favorite-add'),
     159                                                $('#thePicturePage .pwg-icon-representative'),
     160                                                $('#thePicturePage .pwg-icon-edit'),
     161                                                $('.pwg-icon-category-edit')
     162                                        ];
     163                        $.each(r,function()
     164                                {
     165                                $(this).parent().attr('class','noSlide')
     166                        });
     167                               
     168                        if($('.illustration a').hasClass('cboxElement'))
     169                                {
     170                                $('.illustration a').addClass('noSlide').removeClass('slide')
     171                        };
     172                               
     173                        $('.categoryActions a[onclick]').addClass('noSlide');
     174                        $('.actionButtons a[onclick]').addClass('noSlide');
     175                               
     176                        $('a:not(.noSlide)').addClass('slide');
     177                               
     178                        var s = [       $('.description_stuffs .zero nb-comments'),
     179                                                $('.description_stuffs .nb-hits'),
     180                                                $('.description_stuffs .nb-comments'),
     181                                                $('.pwg-icon-arrow-n').parent()
     182                                        ];
     183                        $.each(s,function()
     184                                {
     185                                $(this).remove()
     186                        });
     187
     188                        var u = [       $('#linkToPiwigo a'),
     189                                                $('#copyright a'),
     190                                        ];
     191                        $.each(u,function()
     192                                {
     193                                $(this).attr('target','blank')
     194                        });
     195                               
     196                        $('.stuffs_block .illustration .description').removeClass('description').addClass('description_stuffs');
     197                        $('.titrePage + div').addClass('blockConteneur');
     198                        $('.myHomePage_links a[href="index.php?/contact"]').addClass('slide');
     199                });     
     200
     201                       
     202                        $('#theHeader').find('a').on('click',function()
     203                                {
     204                                window.top.location.reload()
     205                        });
     206                               
     207                //initialise scroll bar         
     208                        var settings            = {     verticalDragMinHeight: 100,
     209                                                                        verticalDragMaxHeight: 100,
     210                                                                        autoReinitialise: true
     211                                                                };
     212                        var pane                        = $('.scrollpane').jScrollPane(settings);
     213                        var api= pane.data('jsp');
     214
     215                //open the slide
     216                        $(function()
     217                                {
     218                                $('.slide').pageslide({direction: "left",speed:2000})
     219                        });
     220
     221                        $(function()
     222                                {
     223                                var wipalen              = window.parent.length;
     224                                if(wipalen==1)
     225                                        {
     226                                        $('#menubar').remove();
     227                                        $('#theHeader').addClass('headbord')
     228                                };
     229                                if(wipalen>3)
     230                                        {
     231                                        $('#menubar').remove();
     232                                        $('#theHeader').addClass('headbord')
     233                                }
     234                        });
    42235               
     236                //close the slide
     237                        function close()
     238                                {
     239                                $.pageslide.close()
     240                        };
     241                                                               
     242                //fit the size of the screen           
     243                        var w_w                 = $(window).width()-41 + 'px',
     244                                w_h             = $(window).height() + 'px',
     245                                w_mh            = $(window).height()-180 + 'px';
     246                        $('#pageslide').css({width: w_w});             
     247                        $('#the_page').css({height: w_h});             
     248                        $('.intabs').css({height: w_h});       
     249                        $('#content').css({minHeight: w_mh})
     250                                                                       
     251                //when click on tabs or scroll bar                                     
     252                        $('.tabs').bind('click', function()
     253                                {
     254                                tabs_dragbar()
     255                        });
     256                                                               
     257                        $('.jspTrack').bind('click', function()
     258                                {
     259                                tabs_dragbar()
     260                        });
     261
     262                        tabs_dragbar = function()
     263                                {
     264                                $('.intabs').removeClass('visibleTransi').css("cursor","default");
     265                                $('.jspDrag').css("cursor","pointer");                 
     266                                $('.jspVerticalBar').addClass('visibleTransi');
     267                                $('.jspVerticalBar').removeClass('hideTransi')
     268                        };
     269                       
     270                       
     271                //when click on link with class'slide' 
     272
     273                        $(function()
     274                                        {
     275                                $('.slide').bind('click', function()
     276                                        {dragbar_tabs()
     277                                });
     278                        });
     279
     280                        dragbar_tabs = function()
     281                                {
     282                                $('.intabs').addClass('visibleTransi').css("cursor","pointer");
     283                                $('.jspDrag').css("cursor","default");                 
     284                                $('.jspVerticalBar').addClass('hideTransi');
     285                                $('.jspVerticalBar').removeClass('visibleTransi')
     286                        };
     287
     288                //specif tab in page indentification
     289                        var content             = $('#theIdentificationPage .titrePage a').first().text(),
     290                                link            = '<a href="index.php" class="noSlide">' + content + '</a>';
     291                        $('#theIdentificationPage .intabs').addClass('visible');
     292                        $('#theIdentificationPage #sld_tab').replaceWith('<div id="sld_tabIdent">' + link + '</div>');
     293                        $('#theIdentificationPage #menubar').remove();
     294                                               
     295                //title page           
     296                        var titre               = $('#sld_tab').text(),
     297                                titre           = titre.substring(titre.lastIndexOf("/")),
     298                                titre           = titre.replace("/","");
     299                        if ((titre.indexOf("[")>=0))
     300                                {
     301                                var titre       = titre.substring(0,titre.indexOf("[",1))
     302                        };
     303                        $('#sld_tab').replaceWith("<div id='sld_tab'>"+ titre +"</div>")               
     304                       
     305                        var titre               = $('#content .titrePage h2').first().text(),
     306                                titre           = titre.substring(titre.lastIndexOf("/")),
     307                                titre           = titre.replace("/","");
     308                        $('#content .titrePage h2').first().replaceWith("<h2>"+ titre +"</h2>");
     309                                       
     310                        $('.browsePath a').remove();
     311                        var titre               = $('.browsePath').text(),
     312                                titre           = titre.substring(titre.lastIndexOf("/")),
     313                                titre           = titre.replace("/",""),
     314                                titre           = titre.replace("[",""),
     315                                titre           = titre.replace("]","");
     316                        $('.browsePath').replaceWith("<h2>"+ titre +"</h2>");
     317                                                       
     318
     319                //description size on thumbnail
     320                        var l                   = $('.illustration img').width();
     321                        if(l<230)
     322                                {
     323                                $('.description').css('width','80%')
     324                        };
     325                                                       
     326                //input scearch on menubar
     327                        $('#submitSearch').click( function()
     328                                {
     329                                $('.intabs').addClass('visibleTransi');
     330                                $('.jspVerticalBar').addClass('hideTransi');
     331                                $('.jspVerticalBar').removeClass('visibleTransi')
     332                        });
     333
     334                //piwitheme link in footer                             
     335                        var link                = ' - theme by <a href="http://piwitheme.fr" target="_blank">piwitheme</a>';
     336                        $('#copyright').append(link);
    43337               
    44                 // Delete the border for the last li of the submenu
    45                 $("ul#topnav .sub ul li:last-child a").css("border", "none");
    46 
    47                 /*other menubar script*/
    48                 //open form login menu         
    49                
    50                 $(".cl_wrapper").next("div").hide();
    51                 $(".cl_wrapper").hover(function()
    52                         {
    53                         if($(this).next("div").is(":hidden"))
    54                                 {
    55                                 $(this).next("div").fadeTo('fast', 1);
    56                                 $(this).addClass('activate');
    57                                 $(this).next("div").attr(":visible")
    58                         }
    59                 });
    60                        
    61                 $(".cl_wrapper").click(function()
    62                         {
    63                         if($(this).next("div").is(":visible"))
    64                                 {
    65                                 $(this).next("div").fadeTo('slow', 0, function(){$(this).hide()});
    66                                 $(this).removeClass('activate');
    67                                 $(this).next("div").attr(":hidden")
    68                         }
    69                 });
    70 
    71                 $(".close").click(function()
    72                         {
    73                         if($("#loger").is(":visible"))
    74                                 {
    75                                 $("#loger").fadeTo('fast', 0, function(){$(this).hide()});
    76                                 $(".cl_wrapper").removeClass('activate');
    77                                 $("#loger").attr(":hidden");
    78                         }
    79                 });
    80                
    81                 $(".cc_wrapper").click(function()
    82                         {
    83                         if($(this).next("div").is(":visible"))
    84                                 {
    85                                 $(this).next("div").fadeTo('slow', 0, function(){$(this).hide()});
    86                                 $(this).removeClass('activate');
    87                                 $(this).next("div").attr(":hidden")
    88                         }
    89                 });
    90                
    91                 $(".cc_wrapper").click(function()
    92                         {
    93                         if($(this).next("div").is(":hidden"))
    94                                 {
    95                                 $(this).next("div").fadeTo('fast', 1);
    96                                 $(this).addClass('activate');
    97                                 $(this).next("div").attr(":visible")
    98                         }
    99                 });
    100                
    101                         $(".close").click(function()
    102                                 {
    103                                 if($("#loger").is(":visible"))
    104                                         {
    105                                         $("#loger").fadeTo('fast', 0, function(){$(this).hide()});
    106                                         $(".cc_wrapper").removeClass('activate');
    107                                         $("#loger").attr(":hidden");
    108                                 }
    109                 });
    110                
    111                 // make column menubar_categorie
    112                 $('.mcol').makeacolumnlists({cols:4, colWidth:155, equalHeight: true, startN: 1});
    113                
    114                 //determines what page will slide
    115                 var t = [       $('#menu_start a'),
    116                                         $('.navigationBar a'),
    117                                         $('.calendarBar a'),
    118                                         $('.calendarCalBar a'),
    119                                         $('.navigationButtons a'),
    120                                         $('#imageHeaderBar a'),
    121                                         $('.calImg a'),
    122                                         $('.date_today'),
    123                                         $('#sortOrderBox a'),
    124                                         $('#derivativeSwitchBox a'),
    125                                         $('#sortOrderLink'),
    126                                         $('#derivativeSwitchLink'),
    127                                         $('.actions a'),
    128                                         $('.navThumb'),
    129                                         $('.calendarTitle a'),
    130                                         $('#linkToPiwigo a'),
    131                                         $('#copyright a'),
    132                                         //determines what page will slide->specific plugin     
    133                                         $('#languageSwitchLink'),
    134                                         $('#languageSwitchBox a'),
    135                                         $('#theHeader a'),
    136                                         $('#myHomePage a'),
    137                                         $('#mbAdditionalPages a'),
    138                                         $('#photosAddContent a'),
    139                                         $('.amm-MenuBar-links-icons a'),
    140                                 ];
    141                 $.each(t,function()
    142                         {
    143                         $(this).attr('class','noSlide')
    144                 });
    145                        
    146                 var r = [       $('.pwg-icon-letters'),
    147                                         $('.pwg-icon-cloud'),
    148                                         $('.pwg-icon-help'),
    149                                         $('.pwg-icon-favorite-del'),
    150                                         $('.pwg-icon-caddie-add'),
    151                                         $('.pwg-icon-category-view-flat'),
    152                                         $('.pwg-icon-category-view-normal'),
    153                                         $('#thePicturePage .pwg-icon-slideshow'),
    154                                         $('#thePicturePage .pwg-icon-camera-info'),
    155                                         $('#thePicturePage .pwg-icon-save'),
    156                                         $('#thePicturePage .pwg-icon-favorite-add'),
    157                                         $('#thePicturePage .pwg-icon-representative'),
    158                                         $('#thePicturePage .pwg-icon-edit'),
    159                                         $('.pwg-icon-category-edit')
    160                                 ];
    161                 $.each(r,function()
    162                         {
    163                         $(this).parent().attr('class','noSlide')
    164                 });
    165                        
    166                 if($('.illustration a').hasClass('cboxElement'))
    167                         {
    168                         $('.illustration a').addClass('noSlide').removeClass('slide')
    169                 };
    170                        
    171                 $('.categoryActions a[onclick]').addClass('noSlide');
    172                 $('.actionButtons a[onclick]').addClass('noSlide');
    173                        
    174                 $('a:not(.noSlide)').addClass('slide');
    175                        
    176                 var s = [       $('.description_stuffs .zero nb-comments'),
    177                                         $('.description_stuffs .nb-hits'),
    178                                         $('.description_stuffs .nb-comments'),
    179                                         $('.pwg-icon-arrow-n').parent()
    180                                 ];
    181                 $.each(s,function()
    182                         {
    183                         $(this).remove()
    184                 });
    185 
    186                 var u = [       $('#linkToPiwigo a'),
    187                                         $('#copyright a'),
    188                                 ];
    189                 $.each(u,function()
    190                         {
    191                         $(this).attr('target','blank')
    192                 });
    193                        
    194                 $('.stuffs_block .illustration .description').removeClass('description').addClass('description_stuffs');
    195                 $('.titrePage + div').addClass('blockConteneur');
    196                 $('.myHomePage_links a[href="index.php?/contact"]').addClass('slide');
    197                 $('#theHeader').find('a').on('click',function()
    198                         {
    199                         window.top.location.reload()
    200                 });
    201                        
    202         //initialise scroll bar         
    203                 var settings            = {     verticalDragMinHeight: 100,
    204                                                                 verticalDragMaxHeight: 100,
    205                                                                 autoReinitialise: true
    206                                                         };
    207                 var pane                        = $('.scrollpane').jScrollPane(settings);
    208                 var api= pane.data('jsp');
    209 
    210         //open the slide
    211                 $(function()
    212                         {
    213                         $('.slide').pageslide({direction: "left",speed:2000})
    214                 });
    215 
    216                 $(function()
    217                         {
    218                         var wipalen              = window.parent.length;
    219                         if(wipalen==1)
    220                                 {
    221                                 $('#menubar').remove();
    222                                 $('#theHeader').addClass('headbord')
    223                         };
    224                         if(wipalen>3)
    225                                 {
    226                                 $('#menubar').remove();
    227                                 $('#theHeader').addClass('headbord')
    228                         }
    229                 });
    230        
    231         //close the slide
    232                 function close()
    233                         {
    234                         $.pageslide.close()
    235                 };
    236                                                        
    237         //fit the size of the screen           
    238                 var w_w                 = $(window).width()-41 + 'px',
    239                         w_h             = $(window).height() + 'px',
    240                         w_mh            = $(window).height()-180 + 'px';
    241                 $('#pageslide').css({width: w_w});             
    242                 $('#the_page').css({height: w_h});             
    243                 $('.intabs').css({height: w_h});       
    244                 $('#content').css({minHeight: w_mh})
    245                                                                
    246         //when click on tabs or scroll bar                                     
    247                 $('.tabs').bind('click', function()
    248                         {
    249                         $('.intabs').removeClass('visibleTransi').css("cursor","default");
    250                         $('.jspDrag').css("cursor","pointer");                 
    251                         $('.jspVerticalBar').addClass('visibleTransi');
    252                         $('.jspVerticalBar').removeClass('hideTransi');
    253                 });
    254                                                        
    255                 $('.jspTrack').bind('click', function()
    256                         {
    257                         $('.intabs').removeClass('visibleTransi').css("cursor","default");
    258                         $('.jspDrag').css("cursor","pointer");                 
    259                         $('.jspVerticalBar').addClass('visibleTransi');
    260                         $('.jspVerticalBar').removeClass('hideTransi')
    261                 });
    262 
    263         //when click on link with class'slide'         
    264                 $('.slide').bind('click', function()
    265                         {
    266                         $('.intabs').addClass('visibleTransi').css("cursor","pointer");
    267                         $('.jspDrag').css("cursor","default");                 
    268                         $('.jspVerticalBar').addClass('hideTransi');
    269                         $('.jspVerticalBar').removeClass('visibleTransi')
    270                 });
    271                                                
    272         //specif tab in page indentification
    273                 var content             = $('#theIdentificationPage .titrePage a').first().text(),
    274                         link            = '<a href="index.php">' + content + '</a>';
    275                 $('#theIdentificationPage .intabs').addClass('visible');
    276                 $('#theIdentificationPage #sld_tab').replaceWith('<div id="sld_tabIdent">' + link + '</div>');
    277                 $('#theIdentificationPage #menubar').remove();
    278                                        
    279         //title page           
    280                 var titre               = $('#sld_tab').text(),
    281                         titre           = titre.substring(titre.lastIndexOf("/")),
    282                         titre           = titre.replace("/","");
    283                 if ((titre.indexOf("[")>=0))
    284                         {
    285                         var titre       = titre.substring(0,titre.indexOf("[",1))
    286                 };
    287                 $('#sld_tab').replaceWith("<div id='sld_tab'>"+ titre +"</div>")               
    288                
    289                 var titre               = $('#content .titrePage h2').first().text(),
    290                         titre           = titre.substring(titre.lastIndexOf("/")),
    291                         titre           = titre.replace("/","");
    292                 $('#content .titrePage h2').first().replaceWith("<h2>"+ titre +"</h2>");
    293                                
    294                 $('.browsePath a').remove();
    295                 var titre               = $('.browsePath').text(),
    296                         titre           = titre.substring(titre.lastIndexOf("/")),
    297                         titre           = titre.replace("/",""),
    298                         titre           = titre.replace("[",""),
    299                         titre           = titre.replace("]","");
    300                 $('.browsePath').replaceWith("<h2>"+ titre +"</h2>");
    301                                                
    302 
    303         //description size on thumbnail
    304                 var l                   = $('.illustration img').width();
    305                 if(l<230)
    306                         {
    307                         $('.description').css('width','80%')
    308                 };
    309                                                
    310         //input scearch on menubar
    311                 $('#submitSearch').click( function()
    312                         {
    313                         $('.intabs').addClass('visibleTransi');
    314                         $('.jspVerticalBar').addClass('hideTransi');
    315                         $('.jspVerticalBar').removeClass('visibleTransi')
    316                 });
    317 
    318         //piwitheme link in footer                             
    319                 var link                = ' - theme by <a href="http://piwitheme.fr" target="_blank">piwitheme</a>';
    320                 $('#copyright').append(link);
    321        
    322         //specific IE8
    323                 if ($.browser.msie  && parseInt($.browser.version, 10) === 8)
    324                         {       
    325                         $("#sortOrderLink").click(function()
    326                                 {
    327                                 var elt                 = $("#sortOrderBox");
    328                                 elt.css("left", Math.min( $(this).offset().left, $(window).width() - elt.outerWidth(true) - 5))
    329                                         .css("top", $(this).offset().top + $(this).outerHeight(true))
    330                                         .toggle()
    331                                 });
    332                         $("#sortOrderBox").on("mouseleave", function()
    333                                 {
    334                                 $(this).hide()
    335                         });
    336                         $("#derivativeSwitchLink").click(function()
    337                                 {
    338                                 var elt                 = $("#derivativeSwitchBox");
    339                                 elt.css("left", Math.min( $(this).offset().left, $(window).width() - elt.outerWidth(true) - 5))
    340                                         .css("top", $(this).offset().top + $(this).outerHeight(true))
    341                                         .toggle()
    342                         });
    343                         $("#derivativeSwitchBox").on("mouseleave", function()
    344                                 {
    345                                 $(this).hide()
    346                         });
    347                         $("#languageSwitchLink").click(function()
    348                                 {
    349                                 var elt = $("#languageSwitchBox");
    350                                 elt.css("left", Math.min($(this).offset().left, $(window).width() - elt.outerWidth(true) - 5))
    351                                         .css("top", $(this).offset().top + $(this).outerHeight(true))
    352                                         .toggle()
    353                         });
    354                         $("#languageSwitchBox").on("mouseleave", function()
    355                                 {
    356                                 $(this).hide();
    357                         });                             
    358                 };
    359        
    360         });     
    361        
    362 })(jQuery);
     338                //specific IE8
     339                        if ($.browser.msie  && parseInt($.browser.version, 10) === 8)
     340                                {       
     341                                $("#sortOrderLink").click(function()
     342                                        {
     343                                        var elt                 = $("#sortOrderBox");
     344                                        elt.css("left", Math.min( $(this).offset().left, $(window).width() - elt.outerWidth(true) - 5))
     345                                                .css("top", $(this).offset().top + $(this).outerHeight(true))
     346                                                .toggle()
     347                                        });
     348                                $("#sortOrderBox").on("mouseleave", function()
     349                                        {
     350                                        $(this).hide()
     351                                });
     352                                $("#derivativeSwitchLink").click(function()
     353                                        {
     354                                        var elt                 = $("#derivativeSwitchBox");
     355                                        elt.css("left", Math.min( $(this).offset().left, $(window).width() - elt.outerWidth(true) - 5))
     356                                                .css("top", $(this).offset().top + $(this).outerHeight(true))
     357                                                .toggle()
     358                                });
     359                                $("#derivativeSwitchBox").on("mouseleave", function()
     360                                        {
     361                                        $(this).hide()
     362                                });
     363                                $("#languageSwitchLink").click(function()
     364                                        {
     365                                        var elt = $("#languageSwitchBox");
     366                                        elt.css("left", Math.min($(this).offset().left, $(window).width() - elt.outerWidth(true) - 5))
     367                                                .css("top", $(this).offset().top + $(this).outerHeight(true))
     368                                                .toggle()
     369                                });
     370                                $("#languageSwitchBox").on("mouseleave", function()
     371                                        {
     372                                        $(this).hide();
     373                                });                             
     374                        };
     375        });
Note: See TracChangeset for help on using the changeset viewer.