Ignore:
Timestamp:
Sep 10, 2014, 10:28:54 AM (10 years ago)
Author:
JanisV
Message:

Removed unused elements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/stripped_responsive/js/scripts-tcp.js

    r29449 r29453  
    33// scripts Category Page ------------------------------------------------------------------------------------------------------------
    44
    5         // menu switcher script from Simple Theme
    6        
    7         var delay;
    8         var animation_webkit = true;
    9         if (options.animatedMenu) {
    10                 delay = "slow";
    11         } else {
    12                 delay = 0;
    13         }
    14 
    15         jQuery("#menuswitcher").click(function(){
    16                 if (jQuery("#menubar").is(":hidden")) {
    17                         if (delay == 0) {
    18                                 jQuery("#menubar").show();
    19                                 tnb_resize();
    20                         } else {
    21                                 if (animation_webkit) {
    22                                         jQuery("#menubar").show("blind",{},delay, function (){tnb_resize();});
    23                                 } else {
    24                                         jQuery("#menubar").show(delay, function (){tnb_resize();});
    25                                 }
    26                         }
    27                         jQuery.cookie('side-menu', 'showing', {path: "/"});
    28                         if (jQuery("#thumbnails_block2").length != 0) tnb_resize();
    29                         return false;
    30                 } else {
    31                                 if (animation_webkit) {
    32                                         jQuery("#menubar").hide("blind",{},delay, function (){tnb_resize();});
    33                                 } else {
    34                                         jQuery("#menubar").hide(delay, function (){tnb_resize();});
    35                                 }
    36                         jQuery.cookie('side-menu', 'hiding', {path: "/"});
    37                 return false;
    38                 }
    39         });
    40 
    41         // creates a variable with the contents of the cookie side-menu
    42         var sidemenu = jQuery.cookie('side-menu');
    43        
    44         // if cookie says the menu is hiding, keep it hidden!
    45         if (sidemenu == 'hiding') {
    46                 jQuery("#menubar").hide();
    47         }
    48         if (sidemenu == 'showing') {
    49                 jQuery("#menubar").show();
    50         }
    51  
    525        // resize thumbnail block
    536        jQuery(window).resize(function() { tnb_resize(); });
Note: See TracChangeset for help on using the changeset viewer.