1 2//<![CDATA[ 3 4 5 6/* JQUERY */ 7jQuery(document).ready(function(){ 8 jQuery("#rmenu2 li.rMenu-expand").hover(function(){ 9 jQuery(this).find('ul.rMenu-ver:first').css({"display":"block","position":"absolute"}); 10 jQuery(this).find('ul.rMenu-ver:first li').css({"display":"none"}).slideDown(500); 11 },function() { 12 jQuery(this).find('ul.rMenu-ver:first').css("display","block"); 13 jQuery(this).find('ul.rMenu-ver:first li').css("display","block").slideUp(300); 14 jQuery(this).find('ul.rMenu-ver:first').slideUp(300); 15 }); 16 17 18 19 20 /* jQuery('ul#rmenu').superfish(); */ 21 /* jQuery('ul#rmenu').superfish().find('ul').bgIframe({opacity:false}); */ 22 23 /* For IE6 */ 24 if (jQuery.browser.msie && /MSIE 6\.0/i.test(window.navigator.userAgent) && !/MSIE 7\.0/i.test(window.navigator.userAgent) && !/MSIE 8\.0/i.test(window.navigator.userAgent)) { 25 26 /* Max-width for images in IE6 */ 27 var centerwidth = jQuery("td#middle").width(); 28 29 /* Images without caption */ 30 jQuery(".post img").each(function() { 31 var maxwidth = centerwidth - 10 + 'px'; 32 var imgwidth = jQuery(this).width(); 33 var imgheight = jQuery(this).height(); 34 var newimgheight = (centerwidth / imgwidth * imgheight) + 'px'; 35 if (imgwidth > centerwidth) { 36 jQuery(this).css({width: maxwidth}); 37 jQuery(this).css({height: newimgheight}); 38 } 39 }); 40 41 /* Images with caption */ 42 jQuery("div.wp-caption").each(function() { 43 var captionwidth = jQuery(this).width(); 44 var maxcaptionwidth = centerwidth + 'px'; 45 var captionheight = jQuery(this).height(); 46 var captionimgwidth = jQuery("div.wp-caption img").width(); 47 var captionimgheight = jQuery("div.wp-caption img").height(); 48 if (captionwidth > centerwidth) { 49 jQuery(this).css({width: maxcaptionwidth}); 50 var newcaptionheight = (centerwidth / captionwidth * captionheight) + 'px'; 51 var newcaptionimgheight = (centerwidth / captionimgwidth * captionimgheight) + 'px'; 52 jQuery(this).css({height: newcaptionheight}); 53 jQuery("div.wp-caption img").css({height: newcaptionimgheight}); 54 } 55 }); 56 57 /* sfhover for LI:HOVER support in IE6: */ 58 jQuery("ul li"). 59 hover( function() { 60 jQuery(this).addClass("sfhover") 61 }, 62 function() { 63 jQuery(this).removeClass("sfhover") 64 } 65 ); 66 67 /* End IE6 */ 68 } 69 70 71 72 /* Since 3.7.8: Auto resize videos (embed and iframe elements) 73 TODO: Parse parent's dimensions only once per layout column, not per video 74 */ 75 function bfa_resize_video() { 76 jQuery('embed, iframe').each( function() { 77 var video = jQuery(this), 78 videoWidth = video.attr('width'); // use the attr here, not width() or css() 79 videoParent = video.parent(), 80 videoParentWidth = parseFloat( videoParent.css( 'width' ) ), 81 videoParentBorder = parseFloat( videoParent.css( 'border-left-width' ) ) 82 + parseFloat( videoParent.css( 'border-right-width' ) ), 83 videoParentPadding = parseFloat( videoParent.css( 'padding-left' ) ) 84 + parseFloat( videoParent.css( 'padding-right' ) ), 85 maxWidth = videoParentWidth - videoParentBorder - videoParentPadding; 86 87 if( videoWidth > maxWidth ) { 88 var videoHeight = video.attr('height'), 89 videoMaxHeight = ( maxWidth / videoWidth * videoHeight ); 90 video.attr({ width: maxWidth, height: videoMaxHeight }); 91 } 92 93 }); 94 } 95 bfa_resize_video(); 96 jQuery(window).resize( bfa_resize_video ); 97 98 99 jQuery(".post table tr"). 100 mouseover(function() { 101 jQuery(this).addClass("over"); 102 }). 103 mouseout(function() { 104 jQuery(this).removeClass("over"); 105 }); 106 107 108 jQuery(".post table tr:even"). 109 addClass("alt"); 110 111 112 jQuery("input.text, input.TextField, input.file, input.password, textarea"). 113 focus(function () { 114 jQuery(this).addClass("highlight"); 115 }). 116 blur(function () { 117 jQuery(this).removeClass("highlight"); 118 }) 119 120 jQuery("input.inputblur"). 121 focus(function () { 122 jQuery(this).addClass("inputfocus"); 123 }). 124 blur(function () { 125 jQuery(this).removeClass("inputfocus"); 126 }) 127 128 129 130 131 jQuery("input.button, input.Button, input#submit"). 132 mouseover(function() {
133 jQuery(this).addClass("buttonhover"); 134 }). 135 mouseout(function() { 136 jQuery(this).removeClass("buttonhover"); 137 }); 138 139 /* toggle "you can use these xhtml tags" */ 140 jQuery("a.xhtmltags"). 141 click(function(){ 142 jQuery("div.xhtml-tags").slideToggle(300); 143 }); 144 145 /* For the Tabbed Widgets plugin: */ 146 jQuery("ul.tw-nav-list"). 147 addClass("clearfix"); 148 149 150 151}); 152 153//]]>
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.