1(function($) {� 2� 3 $(document).ready(function() {� 4 /*� 5 * Comment placeholders� 6 * (Localized via wp_localize_script in functions file)� 7 */� 8 $( '#author' ).attr( 'placeholder','Your Name' );� 9 $( '#email' ).attr( 'placeholder','E-mail' );� 10 $( '#url' ).attr( 'placeholder','Website' );� 11 $( '#comment' ).attr( 'placeholder','Your Comment' );� 12� 13 var sourceVal = ( $('#site-banner-right > *:not(script):not(.woocart-header)').length > 0 ) ? '#site-navigation, #site-banner-right > *:not(script):not(.woocart-header)' : '#site-navigation';� 14� 15 $('#mobile-menu-trigger').sidr({� 16 source: sourceVal,� 17 name: 'sidr-main'� 18 });� 19� 20 $(window).load(function() {� 21 // WATERMARK� 22 var watermark = 'Search â¦';� 23� 24 //init, set watermark text and class� 25 $('.search-field, .sidr-class-search-field').val(watermark).addClass('watermark');� 26� 27 //if blur and no value inside, set watermark text and class again.� 28 $('.search-field, .sidr-class-search-field').blur(function(){� 29 if ($(this).val().length == 0){� 30 $(this).val(watermark).addClass('watermark');� 31 }� 32 });� 33� 34 //if focus and text is watermrk, set it to empty and remove the watermark class� 35 $('.search-field, .sidr-class-search-field').focus(function(){� 36 if ($(this).val() == watermark){� 37 $(this).val('').removeClass('watermark');� 38 }� 39 });� 40 // EOF WATERMARK� 41� 42 // ]if ( self == top )[ = if content is sitting in an iframe� 43 if ( $('#site-navigation').hasClass('showit') && ( self !== top ) ) {� 44� 45 $.sidr('open', 'sidr-main');� 46� 47 }� 48� 49 equalheight('#sidebar-footer aside');� 50� 51 if ( $(window).width() <= 768 ) {� 52 $('.tesseract-featured .entry-title').fitText(1, { maxFontSize: '75px' });� 53 $('.featured-widget h1').fitText(1, { maxFontSize: '100px' });� 54 $('.headline-resize').fitText(1, { maxFontSize: '100px' });� 55 }� 56� 57 if ( $(window).height() > $('#page').height() ) {� 58� 59 var wheight = $(window).height(),� 60 hheight = parseInt( $('#masthead_TesseractTheme').not('.pos-absolute').height() ),� 61 fheight = parseInt( $('#colophon_TesseractTheme').not('.pos-absolute').height() );� 62� 63 hpad = tesseract_vars.hpad ? tesseract_vars.hpad : 10;� 64 fpad = tesseract_vars.fpad ? tesseract_vars.fpad : 10;� 65� 66 if ( $('body').hasClass('transparent-header') ) {� 67 var offset = parseInt( wheight - ( fheight + 2*fpad ) );� 68 } else {� 69 var offset = parseInt( wheight - ( (hheight + 2*hpad) + (fheight + 2*fpad) ) );� 70 }� 71 if ( $('body').hasClass('transparent-footer') ) {� 72 var offset = parseInt( wheight - ( fheight + 2*fpad ) );� 73 } else {� 74 var offset = parseInt( wheight - ( (hheight + 2*hpad) + (fheight + 2*fpad) ) );� 75 }� 76� 77 // ]if ( self !== top )[ = if content is sitting in an iframe� 78 if ( ( $('body').hasClass('logged-in') ) && ( self == top ) ) {� 79 var offsetFinal = ( $(window).width() > 782 ) ? ( offset-32 ) : ( offset-46 );� 80 } else {� 81 var offsetFinal = offset;� 82 }� 83� 84 if ( $('#content_TesseractTheme').height() < offsetFinal ) {� 85 $('#content_TesseractTheme').animate({� 86 'height': offsetFinal� 87 }, 500 )� 88 }� 89� 90 }� 91� 92 });� 93� 94 $(window).resize(function(){� 95� 96 equalheight('#sidebar-footer aside');� 97� 98 if ( $(window).width() <= 768 ) {� 99 $('.tesseract-featured .entry-title').fitText(1, { maxFontSize: '75px' });� 100 $('.featured-widget h1').fitText(1, { maxFontSize: '100px' });� 101 $('.headline-resize').fitText(1, { maxFontSize: '100px' });� 102 }� 103� 104 });� 105� 106 });� 107})(jQuery);
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.