1jQuery(document).ready(function() { 2 // jQuery('.animate').addClass("hidden").viewportChecker({ 3 // classToAdd: 'visible animated fadeIn', // Class to add to the elements when they are visible 4 // offset: 10 5 // }); 6 7 8 9 jQuery('#search-btn').click(function () { 10 if (jQuery("#search-input").is(":hidden")) { 11 jQuery("#search-input").fadeIn(250); 12 jQuery("#prostore-search-input").focus(); 13 } else { 14 jQuery("#search-input").fadeOut(200); 15 } 16 return false; 17 }); 18 19}); 20 21 22 23 24 25jQuery(function() { 26 27 var dankov_sticky_menu_offset_top = jQuery('.menu').offset().top; 28 29 var dankov_sticky_menu = function(){ 30 var scroll_top = jQuery(window).scrollTop(); 31 32 if (scroll_top > dankov_sticky_menu_offset_top) { 33 jQuery('.menu').addClass('sticky'); 34 } else { 35 jQuery('.menu').removeClass('sticky'); 36 } 37 }; 38 39 dankov_sticky_menu(); 40 41 jQuery(window).scroll(function() { 42 dankov_sticky_menu(); 43 }); 44 45}); 46 47function dankov_nav() { 48/* Menu */ 49 var window_width = jQuery(window).width(); 50 if (window_width >= 991) { 51 jQuery('ul.sf-menu').superfish({ 52 delay: 100, 53 animation: { 54 opacity: 'show', 55 height: 'show' 56 }, 57 animationOut: { 58 opacity: 'hide', 59 height: 'hide' 60 }, 61 speed: 350, 62 speedOut: 350 63 }); 64 } 65 jQuery(window).resize(function () { 66 if (jQuery(window).width() >= 991) { 67 jQuery('ul.sf-menu').superfish({ 68 delay: 100, 69 animation: { 70 opacity: 'show', 71 height: 'show' 72 }, 73 animationOut: { 74 opacity: 'hide', 75 height: 'hide' 76 }, 77 speed: 350, 78 speedOut: 350 79 }); 80 } 81 }); 82/* Menu */ 83 84 /* Menu for devices */ 85 jQuery(function () { 86 jQuery('#dl-menu').dlmenu({ 87 animationClasses: { 88 classin: 'dl-animate-in-2', 89 classout: 'dl-animate-out-2' 90 } 91 }); 92 }); 93 /* Menu for devices */ 94} 95 96 97function dankov_slider() { 98 jQuery('.flexslider').flexslider({ 99 100 // FLEXSLIDER API 101 // namespace: "flex-", //{NEW} String: Prefix string attached to the class of every element generated by the plugin 102 // selector: ".slides > li", //{NEW} Selector: Must match a simple pattern. '{container} > {slide}' -- Ignore pattern at your own peril 103 animation: "slide", //String: Select your animation type, "fade" or "slide" 104 // easing: "swing", //{NEW} String: Determines the easing method used in jQuery transitions. jQuery easing plugin is supported! 105 // direction: "horizontal", //String: Select the sliding direction, "horizontal" or "vertical" 106 // reverse: false, //{NEW} Boolean: Reverse the animation direction 107 // animationLoop: true, //Boolean: Should the animation loop? If false, directionNav will received "disable" classes at either end 108 // smoothHeight: false, //{NEW} Boolean: Allow height of the slider to animate smoothly in horizontal mode 109 // startAt: 0, //Integer: The slide that the slider should start on. Array notation (0 = first slide) 110 slideshow: true, //Boolean: Animate slider automatically 111 slideshowSpeed: 6000, //Integer: Set the speed of the slideshow cycling, in milliseconds 112 animationSpeed: 750, //Integer: Set the speed of animations, in milliseconds 113 // initDelay: 0, //{NEW} Integer: Set an initialization delay, in milliseconds 114 // randomize: false, //Boolean: Randomize slide order 115 116 // Usability features 117 // pauseOnAction: true, //Boolean: Pause the slideshow when interacting with control elements, highly recommended. 118 // pauseOnHover: false, //Boolean: Pause the slideshow when hovering over slider, then resume when no longer hovering 119 // useCSS: true, //{NEW} Boolean: Slider will use CSS3 transitions if available 120 // touch: true, //{NEW} Boolean: Allow touch swipe navigation of the slider on touch-enabled devices 121 // video: false, //{NEW} Boolean: If using video in the slider, will prevent CSS3 3D Transforms to avoid graphical glitches 122 123 // Primary Controls 124 // controlNav: false, //Boolean: Create navigation for paging control of each clide? Note: Leave true for manualControls usage 125 directionNav: true, //Boolean: Create navigation for previous/next navigation? (true/false) 126 // prevText: "Previous", //String: Set the text for the "previous" directionNav item 127 // nextText: "Next", //String: Set the text for the "next" directionNav item 128 129 // Secondary Navigation 130 // keyboard: true, //Boolean: Allow slider navigating via keyboard left/right keys 131 // multipleKeyboard: false, //{NEW} Boolean: Allow keyboard navigation to affect multiple sliders. Default behavior cuts out keyboard navigation with more than one slider present. 132 // mousewheel: false, //{UPDATED} Boolean: Requires jquery.mousewheel.js (https://github.com/brandonaaron/jquery-mousewheel) - Allows slider navigating via mousewheel
133 // pausePlay: false, //Boolean: Create pause/play dynamic element 134 // pauseText: 'Pause', //String: Set the text for the "pause" pausePlay item 135 // playText: 'Play', //String: Set the text for the "play" pausePlay item 136 137 // Special properties 138 // controlsContainer: "", //{UPDATED} Selector: USE CLASS SELECTOR. Declare which container the navigation elements should be appended too. Default container is the FlexSlider element. Example use would be ".flexslider-container". Property is ignored if given element is not found. 139 // manualControls: "", //Selector: Declare custom control navigation. Examples would be ".flex-control-nav li" or "#tabs-nav li img", etc. The number of elements in your controlNav should match the number of slides/tabs. 140 // sync: "", //{NEW} Selector: Mirror the actions performed on this slider with another slider. Use with care. 141 // asNavFor: "", //{NEW} Selector: Internal property exposed for turning the slider into a thumbnail navigation for another slider 142 143 // Carousel Options 144 // itemWidth: 0, //{NEW} Integer: Box-model width of individual carousel items, including horizontal borders and padding. 145 // itemMargin: 0, //{NEW} Integer: Margin between carousel items. 146 // minItems: 0, //{NEW} Integer: Minimum number of carousel items that should be visible. Items will resize fluidly when below this. 147 // maxItems: 0, //{NEW} Integer: Maxmimum number of carousel items that should be visible. Items will resize fluidly when above this limit. 148 // move: 0, //{NEW} Integer: Number of carousel items that should move on animation. If 0, slider will move all visible items. 149 150 // Callback API 151 // start: function(){}, //Callback: function(slider) - Fires when the slider loads the first slide 152 // before: function(){}, //Callback: function(slider) - Fires asynchronously with each slider animation 153 // after: function(){}, //Callback: function(slider) - Fires after each slider animation completes 154 // end: function(){}, //Callback: function(slider) - Fires when the slider reaches the last slide (asynchronous) 155 // added: function(){}, //{NEW} Callback: function(slider) - Fires after a slide is added 156 // removed: function(){} //{NEW} Callback: function(slider) - Fires after a slide is removed 157 }); 158} 159 160jQuery(window).load(function() { 161 dankov_nav(); 162 dankov_slider(); 163}); 164 165function prostore_navigation_ex() { 166 167 168 // jQuery("#navigation a").click(function () { 169 // if (navb.is(":visible") && navb.hasClass("mobile")) { 170 // navb.slideUp(); 171 // } 172 // }); 173 174 175 var nava = jQuery(".nav-btn"), 176 navb = jQuery("#navigation"), 177 wind = jQuery(window).width(), 178 winh; 179 180 jQuery(window).resize(function () { 181 var navb = jQuery("#navigation"), 182 wind = jQuery(window).width(), 183 winh; 184 185 if (wind > 1008) { 186 navb.addClass("desktop"); 187 navb.removeClass("mobile") 188 } 189 if (wind < 1009) { 190 navb.addClass("mobile"); 191 navb.removeClass("desktop") 192 } 193 194 // if (wind < 1009) { 195 // jQuery('#navigation.mobile').css({'max-height': winh-150, 'overflow-y': 'scroll'}); 196 // } 197 // if (wind > 1008) { 198 // jQuery('#navigation.desktop').css({'overflow': 'visible'}); 199 // } 200 201 }); 202 203 if (wind > 1008) { 204 navb.addClass("desktop"); 205 navb.removeClass("mobile") 206 } 207 if (wind < 1009) { 208 navb.addClass("mobile"); 209 navb.removeClass("desktop") 210 } 211 // if (wind < 1009) { 212 // jQuery('#navigation.mobile').css({'max-height': winh-150, 'overflow-y': 'scroll'}); 213 // } 214 // if (wind > 1008) { 215 // jQuery('#navigation.desktop').css({'overflow': 'visible'}); 216 // } 217 218 // nava.click(function () { 219 // if (navb.is(":visible")) { 220 // navb.slideUp() 221 // } else { 222 // navb.slideDown() 223 // } 224 // }); 225 226} 227 228jQuery(document).ready(function() { 229 230 prostore_navigation_ex(); 231 232}); 233
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.