Index: branches/5.1.x/themes/simple/inc/general.js =================================================================== diff -u -N --- branches/5.1.x/themes/simple/inc/general.js (revision 12657) +++ branches/5.1.x/themes/simple/inc/general.js (revision 0) @@ -1,79 +0,0 @@ -$(document).ready(function(){ - - - // List item helpers - $("ul li:first-child").addClass("first-child"); - $("ul li:last-child").addClass("last-child"); - - // Border on hover of menu items - $("#nav li a, #nav-sec li a, #site-info li a").append("
"); - // Remove from second level - $("#nav li li a div").remove(); - - // Javascript Document - $("html").addClass("js"); - - // Rounded Corners -// $('div.block').prepend('
'); -// $('div.block').append('
'); - - // Menu Hovers for IE6 - $("#nav li").hover( - function() { - $(this).addClass("hover"); - }, function() { - $(this).removeClass("hover"); - } - ); - $("#nav li:first-child").hover( - function() { - $(this).addClass("first-child-hover"); - }, function() { - $(this).removeClass("first-child-hover"); - } - ); - - /* Text Resize - --------------------- */ - // Insert resize links - $('ul#content-tools').prepend(''); - $('ul#content-tools li#print-version a').click(function() { - window.print(); - return false; - }); - $('ul#content-tools').prepend('
  • Decrease Text Size Increase Text Size
  • '); - - // Have we got a cookie? - savedFontSize = $.cookie('fontSize'); - if (savedFontSize != null) { - $('body').css('font-size', savedFontSize); - } - else { - $('body').css('font-size', "12px"); - } - // Increase Font Size - $("a#text-increase").click(function(){ - var currentFontSize = $('body').css('font-size'); - var currentFontSizeNum = parseFloat(currentFontSize, 10); - var newFontSize = currentFontSizeNum+1; - if (currentFontSizeNum < 18) { - $('body').css('font-size', newFontSize); - // Set Cookie - $.cookie('fontSize', newFontSize+'px'); - } - return false; - }); - // Decrease Font Size - $("a#text-decrease").click(function(){ - var currentFontSize = $('body').css('font-size'); - var currentFontSizeNum = parseFloat(currentFontSize, 10); - var newFontSize = currentFontSizeNum-1; - if (currentFontSizeNum > 8) { - $('body').css('font-size', newFontSize); - // Set Cookie - $.cookie('fontSize', newFontSize+'px'); - } - return false; - }); - -}); \ No newline at end of file