1jQuery(document).ready(function () { // jscs:ignore validateLineBreaks 2 3 // Here for each comment reply link of WordPress 4 jQuery('.comment-reply-link').addClass('btn btn-sm btn-default') 5 6 // Here for the submit button of the comment reply form 7 jQuery('#submit, button[type=submit], html input[type=button], input[type=reset], input[type=submit]').addClass('btn btn-default') 8 9 // Now we'll add some classes for the WordPress default widgets - let's go 10 jQuery('.widget_rss ul').addClass('media-list') 11 12 // Add Bootstrap style for drop-downs 13 jQuery('.postform').addClass('form-control') 14 15 // Add Bootstrap styling for tables 16 jQuery('table#wp-calendar').addClass('table table-striped') 17 18 jQuery('#submit, .tagcloud, button[type=submit], .comment-reply-link, .widget_rss ul, .postform, table#wp-calendar').show('fast') 19}) 20 21function SparklingIsMobile () { 22 return ( 23 (navigator.userAgent.match(/Android/i)) || 24 (navigator.userAgent.match(/webOS/i)) || 25 (navigator.userAgent.match(/iPhone/i)) || 26 (navigator.userAgent.match(/iPod/i)) || 27 (navigator.userAgent.match(/iPad/i)) || 28 (navigator.userAgent.match(/BlackBerry/)) 29 ) 30} 31 32function generateMobileMenu () { 33 var menu = jQuery('#masthead .site-navigation-inner .navbar-collapse > ul.nav') 34 if (SparklingIsMobile() && jQuery(window).width() > 767) { 35 menu.addClass('sparkling-mobile-menu') 36 } else { 37 menu.removeClass('sparkling-mobile-menu') 38 } 39} 40 41// JQuery powered scroll to top 42jQuery(document).ready(function () { 43 44 //Check to see if the window is top if not then display button 45 jQuery(window).on('scroll', function () { 46 if (jQuery(this).scrollTop() > 100) { 47 jQuery('.scroll-to-top').fadeIn() 48 } else { 49 jQuery('.scroll-to-top').fadeOut() 50 } 51 }) 52 53 //Click event to scroll to top 54 jQuery('.scroll-to-top').on('click', function () { 55 jQuery('html, body').animate({scrollTop: 0}, 800) 56 return false 57 }) 58 59 jQuery('.sparkling-dropdown').on('click', function (evt) { 60 61 jQuery(this).parent().toggleClass('open') 62 }) 63 generateMobileMenu() 64 jQuery(window).resize(function () { 65 generateMobileMenu() 66 }) 67 68}) 69 70// JQuery Sticy Header 71jQuery(document).ready(function ($) { 72 var $this, $adminbar, height 73 $this = $('.navbar-fixed-top') 74 $adminbar = $('#wpadminbar') 75 76 if (0 !== $this.length) { 77 height = (0 !== $adminbar.length) ? Math.abs($this.height() - $adminbar.height()) : $this.height() 78 $this.parent('header').css('margin-bottom', height) 79 } 80})
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.