1/** 2 * UpSolution Widget: w-search 3 */ 4(function ($) { 5 "use strict"; 6 7 $.fn.wSearch = function(){ 8 return this.each(function(){ 9 var $this = $(this), 10 $input = $this.find('input[name="s"]'), 11 focusTimer = null; 12 13 var show = function(){ 14 $this.addClass('active'); 15 focusTimer = setTimeout(function(){ 16 $input.focus(); 17 }, 300); 18 }; 19 20 var hide = function(){ 21 clearTimeout(focusTimer); 22 $this.removeClass('active'); 23 $input.blur(); 24 }; 25 26 $this.find('.w-search-open').click(show); 27 $this.find('.w-search-close').click(hide); 28 $input.keyup(function(e) { 29 if (e.keyCode == 27) hide(); 30 }); 31 32 }); 33 }; 34 35 $(function(){ 36 jQuery('.w-search').wSearch(); 37 }); 38})(jQuery); 39 40/** 41 * UpSolution Widget: w-tabs 42 */ 43jQuery('.w-tabs').wTabs(); 44 45/** 46 * UpSolution Widget: w-blog 47 */ 48jQuery(function($){ 49 $('.w-blog').wBlog(); 50}); 51 52/** 53 * UpSolution Widget: w-portfolio 54 */ 55jQuery(function($){ 56 $('.w-portfolio').wPortfolio(); 57}); 58 59/** 60 * RevSlider support for our tabs 61 */ 62 63jQuery(function($){ 64 $('.w-tabs .rev_slider').each(function(){ 65 var $slider = $(this); 66 $slider.bind("revolution.slide.onloaded",function (e) { 67 $us.canvas.$container.on('contentChange', function(){ 68 $slider.revredraw(); 69 }); 70 }); 71 }); 72});
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.