1 2 var $lang=new Array(); 3 $lang[0]="Posting. Please wait..."; 4 $lang[1]="Your comment was added."; 5 $lang[2]="Post another comment"; 6 7 // init 8 jQuery(document).ready(function ($) { 9 if (isIE6) { 10 jQuery('#page').append("<div class='crap-browser-warning'>You're using a old and buggy browser. Switch to a <a href='http://www.mozilla.com/firefox/'>normal browser</a> or consider <a href='http://www.microsoft.com/windows/internet-explorer'>upgrading your Internet Explorer</a> to the latest version</div>"); 11 } 12 jQuery('#navigation').superfish({ autoArrows: true }); 13 14 webshot("a.websnapr", "webshot"); 15 16 jQuery("a[rel='lightbox'], a[href$='.jpg'], a[href$='.jpeg'], a[href$='.gif'], a[href$='.png'], a[href$='.JPG'], a[href$='.JPEG'], a[href$='.GIF'], a[href$='.PNG']").fancyboxlite({ 17 'zoomSpeedIn': 333, 18 'zoomSpeedOut': 333, 19 'zoomSpeedChange': 133, 20 'easingIn': 'easeOutQuart', 21 'easingOut': 'easeInQuart', 22 'overlayShow': true, 23 'overlayOpacity': 0.75 24 }); 25 26 27 // layout controls 28 fontControl("#pageControls", "body", 10, 18); 29 //pageWidthControl("#pageControls", ".page-content", '100%', '940px', '1200px'); 30 webshot("a.websnapr", "webshot"); 31 jQuery(".post-tabs").minitabs({ 32 content: '.sections', 33 nav: '.tabs', 34 effect: 'top', 35 speed: 333, 36 cookies: false 37 }); 38 39 jQuery(".sidebar-tabs").minitabs({ 40 content: '.sections', 41 nav: '.box-tabs', 42 effect: 'slide', 43 speed: 150 44 }); 45 46 jQuery("ul.menuList .cat-item").bubble({ 47 timeout: 6000 48 }); 49 jQuery(".shareThis, .bubble-trigger").bubble({ 50 offset: 16, 51 timeout: 0 52 }); 53 54 jQuery("#pageControls").bubble({ 55 offset: 30 56 }); 57 jQuery('ul.menuList li a').nudge({ 58 property: 'padding', 59 direction: 'left', 60 amount: 6, 61 duration: 166 62 }); 63 jQuery('a.nav-extra').nudge({ 64 property: 'marginTop', 65 direction: '', 66 amount: -18, 67 duration: 166 68 }); 69 70 // fade effect 71 if (!isIE) { 72 jQuery('.fadeThis').append('<span class="hover"></span>').each(function () { 73 var jQueryspan = jQuery('> span.hover', this).css('opacity', 0); 74 jQuery(this).hover(function () { 75 jQueryspan.stop().fadeTo(333, 1); 76 }, 77 function () { 78 jQueryspan.stop().fadeTo(333, 0); 79 }); 80 }); 81 } 82 jQuery("#footer-blocks.withSlider").loopedSlider(); 83 jQuery("#featured-content.withSlider").loopedSlider({ 84 autoStart: 10000, 85 autoHeight: false 86 }); // scroll to top 87 jQuery("a#goTop").click(function () { 88 jQuery('html').animate({ 89 scrollTop: 0 90 }, 91 'slow'); 92 }); 93 jQuery('.clearField').clearField({ 94 blurClass: 'clearFieldBlurred', 95 activeClass: 'clearFieldActive' 96 }); 97 98 jQuery("a#show-author-info").livequery("click", function () { 99 jQuery("#author-info").slideFade('toggle',333,'easeOutQuart'); 100 }); 101 102 setup_comment_controls(); 103 setup_comment_ajax(); 104 //if(redirectReadMore) setup_readmorelink(); 105 106 jQuery('a.print').click(function() { 107 jQuery('.post.single').printElement({printMode:'popup'}); 108 109 return false; 110 }); 111 112 // set accessibility roles on some elements trough js (to not break the xhtml markup) 113 jQuery("#navigation").attr("role", "navigation"); 114 jQuery("#primary-content").attr("role", "main"); 115 jQuery("#sidebar").attr("role", "complementary"); 116 jQuery("#searchform").attr("role", "search"); 117 118 119 120 }); 121 122
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.