https://www.knobhillinn.com/wp-content/plugins/columbia-specials/columbia-specials.js?ver=1791120382
1var $j = jQuery.noConflict(); 2var $window_width = $j(window).width(); 3var $window_height = $j(window).height(); 4 5$j(document).ready(function() { 6 "use strict"; 7 initSpecialsCarousel(); 8 9}); 10 11$j(window).resize(function() { 12 "use strict"; 13 14 $window_width = $j(window).width(); 15 $window_height = $j(window).height(); 16 getNumberOfSpecialsItemsResize(); 17}); 18 19/* 20** Init Specials Carousel shortcode 21*/ 22function initSpecialsCarousel(){ 23 "use strict"; 24 25 if($j('.specials_c_carousel').length){ 26 $j('.specials_c_carousel').each(function(){ 27 var interval = 5000; 28 var $this = $j(this); 29 30 if(typeof $this.data('auto-rotate-slides') !== 'undefined' && $this.data('auto-rotate-slides') !== false) { 31 interval = parseFloat($this.data('auto-rotate-slides')) * 1000; 32 } 33 34 var slideshow = true; 35 if(interval === 0) { 36 slideshow = false; 37 } 38 39 var animation = 'fade'; 40 if(typeof $this.data('animation-type') !== 'undefined' && $this.data('animation-type') !== false) { 41 animation = $this.data('animation-type'); 42 } 43 44 var directionNav = true; 45 if(typeof $this.data('show-navigation') !== 'undefined') { 46 directionNav = $this.data('show-navigation') == 'no' ? false : true; 47 } 48 49 var animationSpeed = 600; 50 if(typeof $this.data('animation-speed') !== 'undefined' && $this.data('animation-speed') !== false) { 51 animationSpeed = $this.data('animation-speed'); 52 } 53 54 var numberPerPage = getNumberOfSpecialsItems($this); 55 var itemWidth = 0; 56 var itemMargin = 0; 57 if(typeof numberPerPage !== 'undefined' && numberPerPage !== 1) { 58 itemWidth = 200; 59 itemMargin = 40; 60 } 61 62 $this.flexslider({ 63 animationLoop: true, 64 controlNav: false, 65 directionNav: directionNav, 66 useCSS: false, 67 pauseOnAction: true, 68 pauseOnHover: false, 69 slideshow: slideshow, 70 animation: animation, 71 itemMargin: itemMargin, 72 minItems: numberPerPage, 73 maxItems: numberPerPage, 74 itemWidth: itemWidth, 75 animationSpeed: animationSpeed, 76 slideshowSpeed: interval, 77 start: function(slider){ 78 initParallax(); 79 } 80 }); 81 }); 82 83 } 84} 85 86/* 87 * Set numbers of items per page 88 */ 89function getNumberOfSpecialsItems($this){ 90 var maxItems = $this.data('number-per-slide'); 91 92 if ($window_width < 768 && maxItems > 1){ 93 maxItems = 1; 94 }else if ($window_width < 1024 && maxItems > 2) { 95 maxItems = 2; 96 } 97 98 return maxItems; 99} 100 101/* 102 * Set numbers of items per page on window resize 103 */ 104 105function getNumberOfSpecialsItemsResize(){ 106 var specialsSlider = $j('.columbia_specials_carousel, .columbia_specials_c_carousel'); 107 108 if(specialsSlider.length){ 109 specialsSlider.each(function(){ 110 var thisSliderHolder = $j(this); 111 112 var items = getNumberOfSpecialsItems(thisSliderHolder); 113 114 thisSliderHolder.data('flexslider').vars.minItems = items; 115 thisSliderHolder.data('flexslider').vars.maxItems = items; 116 }); 117 } 118} 119
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.