1jQuery(document).ready(function($){ 2 'use strict'; 3 4 /* Keyboard image navigation */ 5 if ( $('body').hasClass('attachment-jpg') || 6 $('body').hasClass('attachment-jpeg') || 7 $('body').hasClass('attachment-jpe') || 8 $('body').hasClass('attachment-gif') || 9 $('body').hasClass('attachment-png') 10 ) { 11 $( document ).keydown( function( e ) { 12 var url = false; 13 if ( e.which === 37 ) { // Left arrow key code 14 url = $( '.image-navigation .nav-previous a' ).attr( 'href' ); 15 } 16 else if ( e.which === 39 ) { // Right arrow key code 17 url = $( '.image-navigation .nav-next a' ).attr( 'href' ); 18 } 19 if ( url && ( !$( 'textarea, input' ).is( ':focus' ) ) ) { 20 window.location = url; 21 } 22 } ); 23 } 24 25 /* Style WordPress Default Widgets */ 26 $('.widget select, .woocommerce div.product form.cart .variations select').addClass('form-control'); 27 $('.widget input[type="text"], .widget input[type="search"], .widget input[type="email"]').addClass('form-control'); 28 $('.widget input[type="button"], .widget input[type="submit"], .widget input[type="reset"], .widget button').addClass('btn btn-default'); 29 $('.widget table#wp-calendar').addClass( 'table table-bordered').unwrap().find('th, td').addClass('text-center'); 30 $('.widget-title .rsswidget img').hide(); 31 $('.widget-title .rsswidget:first-child').append('<i class="fa fa-rss pull-right">'); 32 33 if ( $('.woocommerce div.product .summary .product-offer-box').children().length < 1 ) { 34 $('.woocommerce div.product .summary .product-offer-box').hide(); 35 } 36 37});
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.