1function cookie_reject_all() { 2 var cookies = document.cookie.split(";"); 3 4 for (var i = 0; i < cookies.length; i++) { 5 var cookie = cookies[i]; 6 var eqPos = cookie.indexOf("="); 7 var name = $.trim(eqPos > -1 ? cookie.substr(0, eqPos) : cookie); 8 if (name != 'PHPSESSID' && name != 'cookies_rejected') 9 { 10 document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT"; 11 document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain="+document.domain; 12 document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=."+document.domain; 13 } 14 } 15 document.cookie = "cookies_allowed=;expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"; 16 document.cookie = "cookies_rejected=1; path=/"; 17 window.location.reload(true); 18} 19 20function cookie_allow_all() 21{ 22 document.cookie = "cookies_rejected=;expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"; 23 document.cookie = "cookies_allowed=1; path=/"; 24 window.location.reload(true); 25}$ 26(function(){ 27 $("._odstavec_34975").addClass('odstavec_s_1563'); 28 $("#contactForm_73367 textarea").attr('placeholder', 'Dobrý den, prosÃm o vÃce informacà týkajÃcà se aplikace MyLOKO. DÄkuji'); 29}); 30/* jquery.visible.min.js */ 31!function(t){var i=t(window);t.fn.visible=function(t,e,o){if(!(this.length<1)){var r=this.length>1?this.eq(0):this,n=r.get(0),f=i.width(),h=i.height(),o=o?o:"both",l=e===!0?n.offsetWidth*n.offsetHeight:!0;if("function"==typeof n.getBoundingClientRect){var g=n.getBoundingClientRect(),u=g.top>=0&&g.top<h,s=g.bottom>0&&g.bottom<=h,c=g.left>=0&&g.left<f,a=g.right>0&&g.right<=f,v=t?u||s:u&&s,b=t?c||a:c&&a;if("both"===o)return l&&v&&b;if("vertical"===o)return l&&v;if("horizontal"===o)return l&&b}else{var d=i.scrollTop(),p=d+h,w=i.scrollLeft(),m=w+f,y=r.offset(),z=y.top,B=z+r.height(),C=y.left,R=C+r.width(),j=t===!0?B:z,q=t===!0?z:B,H=t===!0?R:C,L=t===!0?C:R;if("both"===o)return!!l&&p>=q&&j>=d&&m>=L&&H>=w;if("vertical"===o)return!!l&&p>=q&&j>=d;if("horizontal"===o)return!!l&&m>=L&&H>=w}}}}(jQuery); 32/* http://anthonyterrien.com/knob/ */ 33(function(e){if(typeof define==="function"&&define.amd){define(["jquery"],e)}else{e(jQuery)}}) (function(e){"use strict";var t={},n=Math.max,r=Math.min;t.c={};t.c.d=e(document);t.c.t=function(e){return e.originalEvent.touches.length-1};t.o=function(){var n=this;this.o=null;this.$=null;this.i=null;this.g=null;this.v=null;this.cv=null;this.x=0;this.y=0;this.w=0;this.h=0;this.$c=null;this.c=null;this.t=0;this.isInit=false;this.fgColor=null;this.pColor=null;this.dH=null;this.cH=null;this.eH=null;this.rH=null;this.scale=1;this.relative=false;this.relativeWidth=false;this.relativeHeight=false;this.$div=null;this.run=function(){var t=function(e,t){var r;for(r in t){n.o[r]=t[r]}n._carve().init();n._configure()._draw()};if(this.$.data("kontroled"))return;this.$.data("kontroled",true);this.extend();this.o=e.extend({min:this.$.data("min")!==undefined?this.$.data("min"):0,max:this.$.data("max")!==undefined?this.$.data("max"):100,stopper:true,readOnly:this.$.data("readonly")||this.$.attr("readonly")==="readonly",cursor:this.$.data("cursor")===true&&30||this.$.data("cursor")||0,thickness:this.$.data("thickness")&&Math.max(Math.min(this.$.data("thickness"),1),.01)||.35,lineCap:this.$.data("linecap")||"butt",width:this.$.data("width")||200,height:this.$.data("height")||200,displayInput:this.$.data("displayinput")==null||this.$.data("displayinput"),displayPrevious:this.$.data("displayprevious"),fgColor:this.$.data("fgcolor")||"#87CEEB",inputColor:this.$.data("inputcolor"),font:this.$.data("font")||"Arial",fontWeight:this.$.data("font-weight")||"bold",inline:false,step:this.$.data("step")||1,rotation:this.$.data("rotation"),draw:null,change:null,cancel:null,release:null,format:function(e){return e},parse:function(e){return parseFloat(e)}},this.o);this.o.flip=this.o.rotation==="anticlockwise"||this.o.rotation==="acw";if(!this.o.inputColor){this.o.inputColor=this.o.fgColor}if(this.$.is("fieldset")){this.v={};this.i=this.$.find("input");this.i.each(function(t){var r=e(this);n.i[t]=r;n.v[t]=n.o.parse(r.val());r.bind("change blur",function(){var e={};e[t]=r.val();n.val(n._validate(e))})});this.$.find("legend").remove()}else{this.i=this.$;this.v=this.o.parse(this.$.val());this.v===""&&(this.v=this.o.min);this.$.bind("change blur",function(){n.val(n._validate(n.o.parse(n.$.val())))})}!this.o.displayInput&&this.$.hide();this.$c=e(document.createElement("canvas")).attr({width:this.o.width,height:this.o.height});this.$div=e('<div style="'+(this.o.inline?"display:inline;":"")+"width:"+this.o.width+"px;height:"+this.o.height+"px;"+'"></div>');this.$.wrap(this.$div).before(this.$c);this.$div=this.$.parent();if(typeof G_vmlCanvasManager!=="undefined"){G_vmlCanvasManager.initElement(this.$c[0])}this.c=this.$c[0].getContext?this.$c[0].getContext("2d"):null;if(!this.c){throw{name:"CanvasNotSupportedException",message:"Canvas not supported. Please use excanvas on IE8.0.",toString:function(){return this.name+": "+this.message}}}this.scale=(window.devicePixelRatio||1)/(this.c.webkitBackingStorePixelRatio||this.c.mozBackingStorePixelRatio||this.c.msBackingStorePixelRatio||this.c.oBackingStorePixelRatio||this.c.backingStorePixelRatio||1);this.relativeWidth=this.o.width%1!==0&&this.o.width.indexOf("%");this.relativeHeight=this.o.height%1!==0&&this.o.height.indexOf("%");this.relative=this.relativeWidth||this.relativeHeight;this._carve();if(this.v instanceof Object){this.cv={};this.copy(this.v,this.cv)}else{this.cv=this.v}this.$.bind("configure",t).parent().bind("configure",t);this._listen()._configure()._xy().init();this.isInit=true;this.$.val(this.o.format(this.v));this._draw();return this};this._carve=function(){if(this.relative){var e=this.relativeWidth?this.$div.parent().width()*parseInt(this.o.width)/100:this.$div.parent().width(),t=this.relativeHeight?this.$div.parent().height()*parseInt(this.o.height)/100:this.$div.parent().height();this.w=this.h=Math.min(e,t)}else{this.w=this.o.width;this.h=this.o.height}this.$div.css({width:this.w+"px",height:this.h+"px"});this.$c.attr({width:this.w,height:this.h});if(this.scale!==1){this.$c[0].width=this.$c[0].width*this.scale;this.$c[0].height=this.$c[0].height*this.scale;this.$c.width(this.w);this.$c.height(this.h)}return this};this._draw=function(){var e=true;n.g=n.c;n.clear();n.dH&&(e=n.dH());e!==false&&n.draw()};this._touch=function(e){var r=function(e){var t=n.xy2val(e.originalEvent.touches[n.t].pageX,e.originalEvent.touches[n.t].pageY);if(t==n.cv)return;if(n.cH&&n.cH(t)===false)return;n.change(n._validate(t));n._draw()};this.t=t.c.t(e);r(e);t.c.d.bind("touchmove.k",r).bind("touchend.k",function(){t.c.d.unbind("touchmove.k touchend.k");n.val(n.cv)});return this};this._mouse=function(e){var r=function(e){var t=n.xy2val(e.pageX,e.pageY);if(t==n.cv)return;if(n.cH&&n.cH(t)===false)return;n.change(n._validate(t));n._draw()};r(e);t.c.d.bind("mousemove.k",r).bind("keyup.k",function(e){if(e.keyCode===27){t.c.d.unbind("mouseup.k mousemove.k keyup.k");if(n.eH&&n.eH()===false)return;n.cancel()}}).bind("mouseup.k",function(e){t.c.d.unbind("mousemove.k mouseup.k keyup.k");n.val(n.cv)});return this};this._xy=function(){var e=this.$c.offset();this.x=e.left;this.y=e.top;return this};this._listen=function(){if(!this.o.readOnly){this.$c.bind("mousedown",function(e){e.preventDefault();n._xy()._mouse(e)}).bind("touchstart",function(e){e.preventDefault();n._xy()._touch(e)});this.listen()}else{this.$.attr("readonly","readonly")}if(this.relative){e(window).resize(function(){n._carve().init();n._draw()})}return this};this._configure=function(){if(this.o.draw)this.dH=this.o.draw;if(this.o.change)this.cH=this.o.change;if(this.o.cancel)this.eH=this.o.cancel;if(this.o.release)this.rH=this.o.release;if(this.o.displayPrevious){this.pColor=this.h2rgba(this.o.fgColor,"0.4");this.fgColor=this.h2rgba(this.o.fgColor,"0.6")}else{this.fgColor=this.o.fgColor}return this};this._clear=function(){this.$c[0].width=this.$c[0].width};
33this._validate=function(e){var t=~~((e<0?-.5:.5)+e/this.o.step)*this.o.step;return Math.round(t*100)/100};this.listen=function(){};this.extend=function(){};this.init=function(){};this.change=function(e){};this.val=function(e){};this.xy2val=function(e,t){};this.draw=function(){};this.clear=function(){this._clear()};this.h2rgba=function(e,t){var n;e=e.substring(1,7);n=[parseInt(e.substring(0,2),16),parseInt(e.substring(2,4),16),parseInt(e.substring(4,6),16)];return"rgba("+n[0]+","+n[1]+","+n[2]+","+t+")"};this.copy=function(e,t){for(var n in e){t[n]=e[n]}}};t.Dial=function(){t.o.call(this);this.startAngle=null;this.xy=null;this.radius=null;this.lineWidth=null;this.cursorExt=null;this.w2=null;this.PI2=2*Math.PI;this.extend=function(){this.o=e.extend({bgColor:this.$.data("bgcolor")||"#EEEEEE",angleOffset:this.$.data("angleoffset")||0,angleArc:this.$.data("anglearc")||360,inline:true},this.o)};this.val=function(e,t){if(null!=e){e=this.o.parse(e);if(t!==false&&e!=this.v&&this.rH&&this.rH(e)===false){return}this.cv=this.o.stopper?n(r(e,this.o.max),this.o.min):e;this.v=this.cv;this.$.val(this.o.format(this.v));this._draw()}else{return this.v}};this.xy2val=function(e,t){var i,s;i=Math.atan2(e-(this.x+this.w2),-(t-this.y-this.w2))-this.angleOffset;if(this.o.flip){i=this.angleArc-i-this.PI2}if(this.angleArc!=this.PI2&&i<0&&i>-.5){i=0}else if(i<0){i+=this.PI2}s=i*(this.o.max-this.o.min)/this.angleArc+this.o.min;this.o.stopper&&(s=n(r(s,this.o.max),this.o.min));return s};this.listen=function(){var t=this,i,s,o=function(e){e.preventDefault();var o=e.originalEvent,u=o.detail||o.wheelDeltaX,a=o.detail||o.wheelDeltaY,f=t._validate(t.o.parse(t.$.val()))+(u>0||a>0?t.o.step:u<0||a<0?-t.o.step:0);f=n(r(f,t.o.max),t.o.min);t.val(f,false);if(t.rH){clearTimeout(i);i=setTimeout(function(){t.rH(f);i=null},100);if(!s){s=setTimeout(function(){if(i)t.rH(f);s=null},200)}}},u,a,f=1,l={37:-t.o.step,38:t.o.step,39:t.o.step,40:-t.o.step};this.$.bind("keydown",function(i){var s=i.keyCode;if(s>=96&&s<=105){s=i.keyCode=s-48}u=parseInt(String.fromCharCode(s));if(isNaN(u)){s!==13&&s!==8&&s!==9&&s!==189&&(s!==190||t.$.val().match(/\./))&&i.preventDefault();if(e.inArray(s,[37,38,39,40])>-1){i.preventDefault();var o=t.o.parse(t.$.val())+l[s]*f;t.o.stopper&&(o=n(r(o,t.o.max),t.o.min));t.change(t._validate(o));t._draw();a=window.setTimeout(function(){f*=2},30)}}}).bind("keyup",function(e){if(isNaN(u)){if(a){window.clearTimeout(a);a=null;f=1;t.val(t.$.val())}}else{t.$.val()>t.o.max&&t.$.val(t.o.max)||t.$.val()<t.o.min&&t.$.val(t.o.min)}});this.$c.bind("mousewheel DOMMouseScroll",o);this.$.bind("mousewheel DOMMouseScroll",o)};this.init=function(){if(this.v<this.o.min||this.v>this.o.max){this.v=this.o.min}this.$.val(this.v);this.w2=this.w/2;this.cursorExt=this.o.cursor/100;this.xy=this.w2*this.scale;this.lineWidth=this.xy*this.o.thickness;this.lineCap=this.o.lineCap;this.radius=this.xy-this.lineWidth/2;this.o.angleOffset&&(this.o.angleOffset=isNaN(this.o.angleOffset)?0:this.o.angleOffset);this.o.angleArc&&(this.o.angleArc=isNaN(this.o.angleArc)?this.PI2:this.o.angleArc);this.angleOffset=this.o.angleOffset*Math.PI/180;this.angleArc=this.o.angleArc*Math.PI/180;this.startAngle=1.5*Math.PI+this.angleOffset;this.endAngle=1.5*Math.PI+this.angleOffset+this.angleArc;var e=n(String(Math.abs(this.o.max)).length,String(Math.abs(this.o.min)).length,2)+2;this.o.displayInput&&this.i.css({width:(this.w/2+4>>0)+"px",height:(this.w/3>>0)+"px",position:"absolute","vertical-align":"middle","margin-top":(this.w/3>>0)+"px","margin-left":"-"+(this.w*3/4+2>>0)+"px",border:0,background:"none",font:this.o.fontWeight+" "+(this.w/e>>0)+"px "+this.o.font,"text-align":"center",color:this.o.inputColor||this.o.fgColor,padding:"0px","-webkit-appearance":"none"})||this.i.css({width:"0px",visibility:"hidden"})};this.change=function(e){this.cv=e;this.$.val(this.o.format(e))};this.angle=function(e){return(e-this.o.min)*this.angleArc/(this.o.max-this.o.min)};this.arc=function(e){var t,n;e=this.angle(e);if(this.o.flip){t=this.endAngle+1e-5;n=t-e-1e-5}else{t=this.startAngle-1e-5;n=t+e+1e-5}this.o.cursor&&(t=n-this.cursorExt)&&(n=n+this.cursorExt);return{s:t,e:n,d:this.o.flip&&!this.o.cursor}};this.draw=function(){var e=this.g,t=this.arc(this.cv),n,r=1;e.lineWidth=this.lineWidth;e.lineCap=this.lineCap;if(this.o.bgColor!=="none"){e.beginPath();e.strokeStyle=this.o.bgColor;e.arc(this.xy,this.xy,this.radius,this.endAngle-1e-5,this.startAngle+1e-5,true);e.stroke()}if(this.o.displayPrevious){n=this.arc(this.v);e.beginPath();e.strokeStyle=this.pColor;e.arc(this.xy,this.xy,this.radius,n.s,n.e,n.d);e.stroke();r=this.cv==this.v}e.beginPath();e.strokeStyle=r?this.o.fgColor:this.fgColor;e.arc(this.xy,this.xy,this.radius,t.s,t.e,t.d);e.stroke()};this.cancel=function(){this.val(this.v)}};e.fn.dial=e.fn.knob=function(n){return this.each(function(){var r=new t.Dial;r.o=n;r.$=e(this);r.run()}).parent()}}) 34 35$.fn.isVisible = function() { 36 // Am I visible? 37 // Height and Width are not explicitly necessary in visibility detection, the bottom, right, top and left are the 38 // essential checks. If an image is 0x0, it is technically not visible, so it should not be marked as such.
39 // That is why either width or height have to be > 0. 40 var rect = this[0].getBoundingClientRect(); 41 return ( 42 (rect.height > 0 || rect.width > 0) && 43 rect.bottom >= 0 && 44 rect.right >= 0 && 45 rect.top <= (window.innerHeight || document.documentElement.clientHeight) && 46 rect.left <= (window.innerWidth || document.documentElement.clientWidth) 47 ); 48}; 49function setUpRowSliders() 50{ 51 $('body').find('.rowSlider').each(function(){ 52 var slider = $(this); 53 54 var slider_width = $(slider).width(); 55 var slider_pocet_boxu = 0; 56 57 $(slider).parent().append('<div onclick="slideRowSlider(this, 1);" class="slider_arrow_left none"><i class="fa fa-chevron-left"></i></div>'); 58 $(slider).parent().append('<div onclick="slideRowSlider(this, -1);" class="slider_arrow_right none"><i class="fa fa-chevron-right"></i></div>'); 59 $(slider).parent().append('<input type="hidden" name="current_step" value="0">'); 60 rowSliderSetArrows(slider); 61 }); 62} 63function rowSliderSetArrows(slider) 64{ 65 var slider_pocet_boxu = 0; 66 var current_step = parseInt($(slider).parent().find('input[name=current_step]').first().val() ); 67 var pocet_view = 1; 68 69 $(slider).find('.col-2,.col-3,.col-4,.col-5,.col-6').each(function(){ 70 slider_pocet_boxu = slider_pocet_boxu + 1; 71 if ($(this).hasClass('col-6')) pocet_view = 6; 72 else if ($(this).hasClass('col-5')) pocet_view = 5; 73 else if ($(this).hasClass('col-4')) pocet_view = 4; 74 else if ($(this).hasClass('col-3')) pocet_view = 3; 75 else if ($(this).hasClass('col-2')) pocet_view = 2; 76 }); 77 78 if (slider_pocet_boxu > pocet_view && ((slider_pocet_boxu + current_step) > pocet_view) ) 79 { 80 $(slider).parent().find('.slider_arrow_right').first().removeClass('none'); 81 } else { 82 $(slider).parent().find('.slider_arrow_right').first().addClass('none'); 83 } 84 85 //alert(current_step); 86 if (current_step < 0) 87 { 88 $(slider).parent().find('.slider_arrow_left').first().removeClass('none'); 89 } else { 90 $(slider).parent().find('.slider_arrow_left').first().addClass('none'); 91 } 92} 93var slider_is_sliding = false; 94function slideRowSlider(el, step) 95{ 96 if (!slider_is_sliding) 97 { 98 slider_is_sliding = true; 99 var slider = $(el).parent().find('.rowSlider').first(); 100 var step_width = 259; 101 102 var slider_pocet_boxu = 0; 103 $(slider).find('.col-2,.col-3,.col-4,.col-5,.col-6').each(function(){ 104 slider_pocet_boxu = slider_pocet_boxu + 1; 105 step_width = parseInt($(this).width()) + parseInt($(this).css('padding-left')) + parseInt($(this).css('padding-right')); 106 }); 107 var current_step = parseInt($(slider).parent().find('input[name=current_step]').first().val() ); 108 109 if (step < 0) { 110 switch( slider_pocet_boxu + current_step + step ) 111 { 112 case 3: 113 step = -3; 114 break; 115 case 2: 116 step = -2; 117 break; 118 case 1: 119 step = -1; 120 break; 121 } 122 } else { 123 switch( current_step + step ) 124 { 125 case 1: 126 step = 3; 127 break; 128 case 2: 129 step = 2; 130 break; 131 case 3: 132 step = 1; 133 break; 134 } 135 } 136 137 if (!current_step) current_step = 0; 138 139 $( slider ).animate({ 140 'left' : ((current_step + step) * step_width) + 'px' 141 }, 500, function() { 142 $(slider).parent().find('input[name=current_step]').first().val(current_step + step); 143 rowSliderSetArrows(slider); 144 slider_is_sliding = false; 145 }); 146 } 147} 148// POSUN PO STRÃNCE 149$('a[href^="#"]').bind('click.smoothscroll', function (e) { 150 e.preventDefault(); 151 var target = this.hash; 152 $target = $(target); 153 $('html, body').stop().animate({ 154 'scrollTop': $target.offset().top 155 }, 500, 'swing', function () { 156 window.location.hash = target; 157 }); 158}); 159// NAVIGACE 160$('.monitor a').click(function(e){ 161 e.preventDefault(); 162 var iframe = '<iframe width="'+$(this).parent().width()+'" height="'+$
162(this).parent().width()*0.5625+'" src="'+$(this).attr('href')+'" frameborder="0" allowfullscreen></iframe>'; 163 $('.monitor').html(iframe); 164}); 165// TOGGLE FCE 166function toggle(div) { 167 $(div).toggle('fast'); 168} 169function fixElements() 170{ 171 /*var win_height = $(window).height(); 172 $('#main').css('min-height',win_height - $('#footer').height() - 30 + 'px');*/ 173 174 var max_h = 0; 175 $('.promo, .promo2, .articlesAkce, .content_homepage').find('.col-2,.col-3, .col-4').each(function(){ 176 /*$(this).css('min-height','0px'); 177 var h = 0; 178 h = $(this).height() + parseInt($(this).css('padding-top')) + parseInt($(this).css('padding-bottom')) + 2; 179 if (h > max_h) max_h = h;*/ 180 }); 181 if ($(window).width() > 640) 182 { 183 /*$('.promo, .promo2,.articlesAkce, .content_homepage').find('.col-2,.col-3, .col-4').each(function(){ 184 $(this).css('min-height',max_h+'px'); 185 });*/ 186 } else if ($(window).width() <= 640) 187 { 188 } 189 190 var max_h = 0; 191 $('.konfigurator-list').find('.productBox > a').each(function(){ 192 $(this).css('min-height','0px'); 193 var h = 0; 194 h = $(this).height() + parseInt($(this).css('padding-top')) + parseInt($(this).css('padding-bottom')); 195 if (h > max_h) max_h = h; 196 }); 197 if ($(window).width() > 640) 198 { 199 $('.konfigurator-list').find('.productBox > a').each(function(){ 200 $(this).css('min-height',max_h+'px'); 201 }); 202 } else if ($(window).width() <= 640) 203 { 204 $('.konfigurator-list').find('.productBox > a').each(function(){ 205 $(this).css('min-height',max_h+'px'); 206 }); 207 } 208 209 var el_name = ".moveTop"; 210 if(200 >= $(window).scrollTop()) { 211 if($(el_name).hasClass('fixed')) { 212 $(el_name).removeClass('fixed'); 213 } 214 //$('#RelatedSection').css('padding-top','20px'); 215 } else { 216 //$('#RelatedSection').css('padding-top','195px'); 217 if(!$(el_name).hasClass('fixed')) { 218 $(el_name).addClass('fixed'); 219 //$('a.buttonNahoru').css('display','block'); 220 } 221 } 222 223 $('body').find('.rowSliderWrapper').each(function(){ 224 var slider_width = $(this).width(); 225 $(this).find('.col-2, .col-3, .col-4, .col-5').each(function(){ 226 if ($(this).hasClass('col-6')) $(this).css('width',(slider_width/6)+'px'); 227 else if ($(this).hasClass('col-5')) $(this).css('width',(slider_width/5)+'px'); 228 else if ($(this).hasClass('col-4')) $(this).css('width',(slider_width/4)+'px'); 229 else if ($(this).hasClass('col-3')) $(this).css('width',(slider_width/3)+'px'); 230 else if ($(this).hasClass('col-2')) $(this).css('width',(slider_width/2)+'px'); 231 232 }); 233 }); 234 235 var max_h = 0; 236 $('.rowReference').find('img').each(function(){ 237 $(this).css('min-height','0px'); 238 var h = 0; 239 h = $(this).height() + parseInt($(this).css('padding-top')) + parseInt($(this).css('padding-bottom')); 240 if (h > max_h) max_h = h; 241 }); 242 if ($(window).width() > 640) 243 { 244 $('.rowReference').find('img').each(function(){ 245 $(this).css('min-height',max_h+'px'); 246 }); 247 } else if ($(window).width() <= 640) 248 { 249 $('.rowReference').find('img').each(function(){ 250 $(this).css('min-height',max_h+'px'); 251 }); 252 } 253 254 $('.fotogalerieDetail').find('.col-2 a,.col-3 a,.col-4 a,.col-5 a,.col-6 a').each(function(){ 255 $(this).css('height',$(this).width()*0.6); 256 }); 257 258 // if (!$('.content_homepage .odstavec_poradi_3').hasClass('knob_activated')) 259 // { 260 // if ($('.content_homepage .odstavec_poradi_3').visible()) 261 // { 262 // $('.content_homepage .odstavec_poradi_3').addClass('knob_activated'); 263 // runKnob(); 264 // } 265 // } 266 267 // if (!$('.content_homepage .odstavec_poradi_3').hasClass('knob_activated')) { 268 // if ($(window).scrollTop() + $(window).height() >= $('.content_homepage .odstavec_poradi_3').offset().top + 100) { 269 // $('.content_homepage .odstavec_poradi_3').addClass('knob_activated'); 270 // runKnob(); 271 // } 272 // } 273 274 if ($('.content_homepage .odstavec_poradi_3').length) { 275 $(window).on('scroll', function() { 276 const element = $('.content_homepage .odstavec_poradi_3'); 277 278 if (!element.hasClass('knob_activated') && 279 $(window).scrollTop() + $(window).height() >= element.offset().top + 100) { 280 281 element.addClass('knob_activated'); 282 runKnob(); 283 } 284 }); 285 } 286 287 /* 288 var el_name = '#header'; 289 if(160 >= $(window).scrollTop() || ($(window).width() <= 840)) { 290 if($(el_name).hasClass('fixed')) { 291 $(el_name).removeClass('fixed'); 292 } 293 294 } else { 295 if(!$(el_name).hasClass('fixed')) { 296 $(el_name).addClass('fixed'); 297 } 298 } 299 */ 300 301 if ($('.rightnav').hasClass('rightnav') && $('.pageContentCol').height() > 500) 302 { 303 var el_name = '.leftMenuCol'; 304 305 var stickyTop = Math.round($('.rightnav').offset().top); 306 var windowBottom = $(document).height() - ($('#footer').height() + $('.rightnav').height() + parseInt($('.rightnav').css('margin-bottom')) + 1); 307 var windowTop = $(window).scrollTop(); 308 if ((stickyTop) >= (windowBottom)) 309 $(el_name).addClass('fixedBottom'); 310 else 311 $(el_name).removeClass('fixedBottom'); 312 313 if ($('.headerImg').hasClass('headerImg')) 314 var h = $('.headerImg').height() + parseInt($('.headerImg').css('margin-top')); 315 else 316 var h = $('#header').height(); 317 318 if( h >= $(window).scrollTop() || ($(window).width() <= 640)) { 319 if($(el_name).hasClass('fixed')) { 320 $(el_name).removeClass('fixed'); 321 $('.rightnav').css('width',''); 322 $(el_name).css('height',''); 323 324 } 325 } else { 326 if(!$(el_name).hasClass('fixed')) { 327 $(el_name).addClass('fixed'); 328 } 329 $('.rightnav').css('width',$(el_name).width()+'px'); 330 $(el_name).css('height',$(el_name+' + *').height()+'px'); 331 } 332 333 if (!$('#footer-top').isVisible()) $(el_name).removeClass('fixedBottom'); 334 } 335} 336setUpRowSliders(); 337$(window).scroll(function(){ 338 //(); 339}); 340$(window).resize(function(){ 341 //fixElements(); 342}); 343$(document).ready(function(){ 344 fixElements(); 345 $('body').find('.galleryThumbs > a').each(function(){ 346 var img = $(this).children('img').attr('src'); 347 $(this).css('background','url('+img+') no-repeat center center'); 348 }); 349 350 $('.moveTop').click(function(){ 351 $('html, body').animate({ 352 scrollTop: $('html, body').offset().top 353 }, 2000); 354 }); 355}); 356$('.bgrGray').find('li').each(function(){ 357 $(this).prepend('<i class="fa fa-check-circle"></i>'); 358}); 359$('.promo, .promo2').find('.col-4, .col-3, .col-2').each(function(){ 360 var href = $(this).find('a').first().attr('href'); 361 if (href) 362 { 363 $(this).attr('onclick','document.location = \''+href+'\''); 364 $(this).css('cursor','pointer'); 365 } 366}); 367$(document).ready(function(){ 368 statistics(); 369}); 370$('.odstavec_363').find('li').each(function(){ 371 $(this).html('<i class="fa fa-long-arrow-right"></i>' + $(this).html()); 372}); 373$('.content_homepage .odstavec_poradi_2').find('.col-2, .col-3, .col-4').each(function(){ 374 $(this).html('<div class="odstavec_poradi_2_ico"></div>'+$(this).html()); 375 var href = $(this).find('a').first().attr('href'); 376 if (href) 377 { 378 $(this).attr('onclick',"document.location = '"+href+"'"); 379 $(this).css('cursor','pointer'); 380 } 381}); 382function runKnob(){ 383 $('.content_homepage .odstavec_poradi_3').find('.col-2, .col-3, .col-4').each(function(){ 384 var pocet = parseInt($(this).find('strong').first().html()); 385 $(this).find('strong').first().remove(); 386 var v = 200; 387 if ($(window).width() <= 840) v = 100; 388 $(this).html('<input class="knob" data-width="'+v+'" data-height="'+v+'" data-min="0" data-displayPrevious=true data-max="'+pocet+'" value="'+pocet+'" readOnly=true thickness="5">'+$(this).html()); 389 }); 390 $(function($) {$(".knob").knob({ 391 thickness : 0.09, 392 inputColor : "#0148a4", 393 fgColor: "#2688e3", 394 fontWeight: "normal", 395 bgColor: "#cbe1ec", 396 change : function (value) { 397 //console.log("change : " + value); 398 }, 399 release : function (value) { 400 //console.log(this.$.attr('value')); 401 //console.log("release : " + value); 402 }, 403 cancel : function () { 404 //console.log("cancel : ", this); 405 }, 406 /*format : function (value) { 407 return value + '%'; 408 },*/ 409 draw : function () { 410 } 411 }); 412 413}); 414 415 $('.knob').each(function () { 416 $(this).prop('Counter',0).animate({ 417 Counter: $(this).val() 418 }, { 419 duration: 4000, 420 easing: 'swing', 421 step: function (now) { 422 $(this).val(Math.ceil(now)).trigger('change');; 423 } 424 }); 425 }); 426} 427$(".video-playing").bind("ended",c_video_playNext); 428function c_video_playNext(plus) 429{ 430 myVideo = document.getElementById("Video_1"); 431 myVideo.play(); 432} 433$(document).ready(function(){ 434 if ($('.filter_kariera').hasClass('filter_kariera')) 435 { 436 c_filtrovat_kariera(); 437 } 438 439 $('input[name="filtrovat_kariera"]').click(function(){c_filtrovat_kariera();}); 440 $('.filter_kariera > div > input[type="checkbox"]').change(function(){c_filtrovat_kariera();}); 441 442 $('.karieraSend').click(function(){ 443 444 }); 445}); 446function c_filtrovat_kariera() 447{ 448 $('.kariera').find('li').each(function(){ 449 $(this).removeClass('none'); 450 $(this).removeClass('toHide'); 451 }); 452 var filtrovat_zarazeni = false;
453 $('.filter_kariera').find('input[name="zarazeni"]:checked').each(function(){ 454 var id = $(this).data("zarazeni"); 455 if (!filtrovat_zarazeni) 456 { 457 filtrovat_zarazeni = true; 458 $('.kariera').find('li').each(function(){ 459 $(this).addClass('toHide'); 460 }); 461 } 462 $('.kariera').find('li').each(function(){ 463 if ($(this).data('zarazeni') == id) $(this).removeClass('toHide'); 464 }); 465 }); 466 $('.kariera').find('li.toHide').each(function(){ 467 $(this).addClass('none'); 468 }); 469 470 var filtrovat_lokace = false; 471 $('.filter_kariera').find('input[name="lokace"]:checked').each(function(){ 472 var id = $(this).data("location"); 473 if (!filtrovat_lokace) 474 { 475 filtrovat_lokace = true; 476 $('.kariera').find('li').each(function(){ 477 $(this).addClass('toHide'); 478 }); 479 } 480 $('.kariera').find('li').each(function(){ 481 if ($(this).data('location') == id) $(this).removeClass('toHide'); 482 }); 483 }); 484 $('.kariera').find('li.toHide').each(function(){ 485 $(this).addClass('none'); 486 }); 487 488 var count = 0; 489 $('.kariera').find('li').each(function(){ 490 if (!$(this).hasClass('none')) count = count + 1; 491 }); 492 if (count) 493 { 494 $('.messageInfo').addClass('none'); 495 } else { 496 $('.messageInfo').removeClass('none'); 497 } 498} 499function c_showKarieraForm(el) 500{ 501 $('#contactForm_1506').css('display','block'); 502 $('#formitem_1506_1508').val($('.karieraTitle').html()); 503 $('#formitem_1506_1508').prev().html($('.karieraTitle').html()); 504 $('#formitem_1506_1508').css('display','none'); 505 $(el).remove(); 506} 507$( function(){ 508 $( "#Slider1" ).slider({ 509 'min' : 60, 510 'max' : 120, 511 'step' : 1, 512 'value' : parseInt($(this).find('input[name=s6_1]').val()), 513 create : function( event, ui ) { 514 $(this).find('.ui-slider-handle').first().html('<div class="number">'+$('body').find('input[name=s6_1]').val()+'</div>'); 515 }, 516 slide : function( event, ui ) { 517 $(this).find('.number').first().html(ui.value); 518 }, 519 stop : function( event, ui ) { 520 $(this).find('input[name=s6_1]').val(ui.value); 521 }, 522 }); 523 $( "#Slider2" ).slider({ 524 'min' : 5, 525 'max' : 50, 526 'step' : 1, 527 'value' : parseInt($(this).find('input[name=s8_1]').val()), 528 create : function( event, ui ) { 529 $(this).find('.ui-slider-handle').first().html('<div class="number">'+$('body').find('input[name=s8_1]').val()+'</div>'); 530 }, 531 slide : function( event, ui ) { 532 $(this).find('.number').first().html(ui.value); 533 }, 534 stop : function( event, ui ) { 535 $(this).find('input[name=s8_1]').val(ui.value); 536 }, 537 }); 538 $( "#Slider3" ).slider({ 539 'min' : 60, 540 'max' : 125, 541 'step' : 1, 542 'value' : parseInt($(this).find('input[name=s9_1]').val()), 543 create : function( event, ui ) { 544 $(this).find('.ui-slider-handle').first().html('<div class="number">'+$('body').find('input[name=s9_1]').val()+'</div>'); 545 }, 546 slide : function( event, ui ) { 547 $(this).find('.number').first().html(ui.value); 548 }, 549 stop : function( event, ui ) { 550 $(this).find('input[name=s9_1]').val(ui.value); 551 }, 552 }); 553 554 $('input[name=vyhodnotit]').click(function(){c_vyhodnotit();}); 555 556 $('.option, input[name=s4_4]').click(function(){ 557 if( $(this).parents('.sekce').hasClass('oneChiose') ) 558 { 559 var el = $(this); 560 $(this).addClass('click'); 561 $(this).parents('.sekce').find('.option').each(function(){ 562 if (!$(this).hasClass('click')) 563 { 564 $(this).removeClass('sel'); 565 } 566 }); 567 $(this).parents('.sekce').find('input[type=text]').each(function(){ 568 if ($(el).hasClass('option')) 569 { 570 $(this).val(''); 571 } 572 }); 573 } 574 $(this).removeClass('click'); 575 if ($(this).hasClass('sel')) $(this).removeClass('sel'); 576 else $(this).addClass('sel'); 577 578 579 }); 580}); 581function c_vyhodnotit() 582{ 583 ids = {"440" : 1,"404" : 1,"455" : 1,"456" : 1,"468" : 1,"2075" : 1,"504" : 1,"477" : 1,"484" : 1,"660" : 1}; 584 /* 300 500 700 */ 585 586 ids_go = ids; 587 588 var form = {}; 589 590 if ($('input[name=s10_1]').parent().hasClass('sel')) // elektrický AC/AC 591 { 592 ids_go[440] = 0; //ES300 593 ids_go[404] = 0; //ES500 594 ids_go[455] = 0;
594 //ES700 595 ids_go[456] = 0; //ES1000 596 ids_go[468] = 0; //ES1600 597 ids_go[2075] = 0; //741.7 598 599 ids_go[477] = 0; // EL1600 600 ids_go[484] = 0; // EL3000 601 ids_go[504] = 0; // 2M62U 602 603 ids_go[660] = 0; // MUV 604 console.log($(this).attr('name') + ' : ' + ids_go); 605 form.s10_1 = true; 606 } 607 608 if ($('input[name=s10_2]').parent().hasClass('sel')) // elektrický AC/DC 609 { 610 ids_go[440] = 0; //ES300 611 ids_go[404] = 0; //ES500 612 ids_go[455] = 0; //ES700 613 ids_go[456] = 0; //ES1000 614 ids_go[468] = 0; //ES1600 615 ids_go[2075] = 0; //741.7 616 617 ids_go[477] = 0; // EL1600 618 //ids_go[484] = 0; // EL3000 619 ids_go[504] = 0; // 2M62U 620 621 ids_go[660] = 0; // MUV 622 console.log($(this).attr('name') + ' : ' + ids_go); 623 form.s10_2 = true; 624 } 625 626 if ($('input[name=s10_3]').parent().hasClass('sel')) // diesel elektrický AC/DC 627 { 628 //ids_go[440] = 0; //ES300 629 //ids_go[404] = 0; //ES500 630 //ids_go[455] = 0; //ES700 631 ids_go[456] = 0; //ES1000 632 //ids_go[468] = 0; //ES1600 633 //ids_go[2075] = 0; //741.7 634 635 //ids_go[477] = 0; // EL1600 636 ids_go[484] = 0; // EL3000 637 //ids_go[504] = 0; // 2M62U 638 639 ids_go[660] = 0; // MUV 640 console.log($(this).attr('name') + ' : ' + ids_go); 641 form.s10_3 = true; 642 } 643 644 if ($('input[name=s10_4]').parent().hasClass('sel')) // elektrický AC/AC 645 { 646 ids_go[440] = 0; //ES300 647 ids_go[404] = 0; //ES500 648 ids_go[455] = 0; //ES700 649 //ids_go[456] = 0; //ES1000 650 ids_go[468] = 0; //ES1600 651 ids_go[2075] = 0; //741.7 652 653 ids_go[477] = 0; // EL1600 654 ids_go[484] = 0; // EL3000 655 ids_go[504] = 0; // 2M62U 656 657 ids_go[660] = 0; // MUV 658 console.log($(this).attr('name') + ' : ' + ids_go); 659 form.s10_4 = true; 660 } 661 662 663 if ($('input[name=s10_5]').parent().hasClass('sel')) // hydrostatický 664 { 665 ids_go[440] = 0; //ES300 666 ids_go[404] = 0; //ES500 667 ids_go[455] = 0; //ES700 668 ids_go[456] = 0; //ES1000 669 ids_go[468] = 0; //ES1600 670 ids_go[2075] = 0; //741.7 671 672 ids_go[477] = 0; // EL1600 673 ids_go[484] = 0; // EL3000 674 ids_go[504] = 0; // 2M62U 675 form.s10_5 = true; 676 677 //ids_go[660] = 0; // MUV 678 } 679 680 if ($('input[name=s1_1]').parent().hasClass('sel')) // posun 681 { 682 ids_go[477] = 0; // EL1600 683 ids_go[484] = 0; // EL3000 684 ids_go[504] = 0; // 2M62U 685 686 ids_go[660] = 0; // MUV 687 form.s1_1 = true; 688 } 689 if ($('input[name=s1_2]').parent().hasClass('sel')) // trať 690 { 691 ids_go[440] = 0; //ES300 692 ids_go[404] = 0; //ES500 693 ids_go[455] = 0; //ES700 694 ids_go[660] = 0; //MUV 695 form.s1_2 = true; 696 } 697 if ($('input[name=s1_3]').parent().hasClass('sel')) // universal 698 { 699 ids_go[440] = 0; //ES300 700 ids_go[404] = 0; //ES500 701 702 ids_go[477] = 0; // EL1600 703 ids_go[484] = 0; // EL3000 704 ids_go[504] = 0; // 2M62U 705 706 ids_go[660] = 0; //MUV 707 form.s1_3 = true; 708 } 709 if ($('input[name=s1_4]').parent().hasClass('sel')) // spec. dráha 710 { 711 ids_go[404] = 0; //ES500 712 ids_go[455] = 0; //ES700 713 ids_go[456] = 0; //ES1000 714 ids_go[468] = 0; //ES1600 715 ids_go[2075] = 0; //741.7 716 717 ids_go[477] = 0; // EL1600 718 ids_go[484] = 0; // EL3000 719 ids_go[504] = 0; // 2M62U 720 form.s1_4 = true; 721 } 722 if ($('input[name=s1_5]').parent().hasClass('sel')) // údržba 723 { 724 ids_go[440] = 0; //ES300 725 ids_go[404] = 0; //ES500 726 ids_go[455] = 0; //ES700 727 ids_go[456] = 0; //ES1000 728 ids_go[468] = 0; //ES1600 729 ids_go[2075] = 0; //741.7 730 731 ids_go[477] = 0; // EL1600 732 ids_go[484] = 0; // EL3000 733 ids_go[504] = 0; // 2M62U 734 form.s1_5 = true; 735 } 736 737 if ($('input[name=s2_1]').val() != '') 738 { 739 form.s2_1 = $('input[name=s2_1]').val(); 740 } 741 742 if ($('input[name=s3_1]').parent().hasClass('sel')) // UIC 743 { 744 form.s3_1 = true; 745 } 746 747 if ($('input[name=s3_2]').parent().hasClass('sel')) // TSI 748 { 749 ids_go[404] = 0; //ES500 750 ids_go[455] = 0;
750 //ES700 751 ids_go[477] = 0; // EL1600 752 ids_go[2075] = 0; //741.7 753 ids_go[504] = 0; // 2M62U 754 form.s3_2 = true; 755 } 756 if ($('input[name=s3_3]').parent().hasClass('sel')) // GOST 757 { 758 ids_go[404] = 0; //ES500 759 ids_go[455] = 0; //ES700 760 ids_go[477] = 0; // EL1600 761 ids_go[484] = 0; // EL3000 762 ids_go[2075] = 0; //741.7 763 ids_go[660] = 0; //MUV 764 form.s3_3 = true; 765 } 766 767 if ($('input[name=s4_1]').parent().hasClass('sel')) // 1435 768 { 769 ids_go[504] = 0; // 2M62U 770 form.s4_1 = true; 771 } 772 773 if ($('input[name=s4_2]').parent().hasClass('sel')) // 1520 774 { 775 ids_go[404] = 0; //ES500 776 ids_go[455] = 0; //ES700 777 ids_go[2075] = 0; //741.7 778 779 ids_go[477] = 0; // EL1600 780 ids_go[484] = 0; // EL3000 781 ids_go[660] = 0; //MUV 782 form.s4_2 = true; 783 784 } 785 if ($('input[name=s4_3]').parent().hasClass('sel')) // 1524 786 { 787 ids_go[440] = 0; //ES300 788 ids_go[404] = 0; //ES500 789 ids_go[455] = 0; //ES700 790 ids_go[456] = 0; //ES1000 791 792 793 ids_go[2075] = 0; //741.7 794 ids_go[504] = 0; // 2M62U 795 796 ids_go[477] = 0; // EL1600 797 ids_go[484] = 0; // EL3000 798 ids_go[660] = 0; //MUV 799 form.s4_3 = true; 800 } 801 802 if ($('input[name=s4_4]').val() != '') 803 { 804 form.s4_4 = $('input[name=s4_4]').val(); 805 } 806 807 if ($('input[name=s5_1]').parent().hasClass('sel')) // 2 nápravy 808 { 809 ids_go[404] = 0; //ES500 810 ids_go[455] = 0; //ES700 811 ids_go[456] = 0; //ES1000 812 ids_go[468] = 0; //ES1600 813 814 ids_go[477] = 0; // EL1600 815 ids_go[484] = 0; // EL3000 816 ids_go[504] = 0; // 2M62U 817 ids_go[2075] = 0; //741.7 818 form.s5_1 = true; 819 } 820 if ($('input[name=s5_2]').parent().hasClass('sel')) // 4 nápravy 821 { 822 ids_go[440] = 0; //ES300 823 ids_go[504] = 0; // 2M62U 824 ids_go[660] = 0; //MUV 825 ids_go[468] = 0; //ES1600 826 form.s5_2 = true; 827 } 828 if ($('input[name=s5_3]').parent().hasClass('sel')) // 6 nápravy 829 { 830 831 ids_go[440] = 0; //ES300 832 ids_go[404] = 0; //ES500 833 ids_go[455] = 0; //ES700 834 ids_go[456] = 0; //ES1000 835 836 ids_go[2075] = 0; //741.7 837 ids_go[504] = 0; // 2M62U 838 839 ids_go[477] = 0; // EL1600 840 ids_go[484] = 0; // EL3000 841 ids_go[660] = 0; //MUV 842 form.s5_3 = true; 843 } 844 if ($('input[name=s5_4]').parent().hasClass('sel')) // 12 nápravy 845 { 846 ids_go[440] = 0; //ES300 847 ids_go[404] = 0; //ES500 848 ids_go[455] = 0; //ES700 849 ids_go[456] = 0; //ES1000 850 ids_go[468] = 0; //ES1600 851 ids_go[2075] = 0; //741.7 852 853 ids_go[477] = 0; // EL1600 854 ids_go[484] = 0; // EL3000 855 ids_go[660] = 0; //MUV 856 form.s5_4 = true; 857 } 858 859 if ($('input[name=s5_4]').parent().hasClass('sel')) // 12 nápravy 860 { 861 form.s5_5 = true; 862 } 863 864 var max_rychlost = parseInt($('#Slider1').slider( "option", "value" )); 865 866 form.max_rychlost = max_rychlost; 867 868 if (max_rychlost > 60) 869 { 870 ids_go[440] = 0; //ES300 871 } 872 if (max_rychlost > 80) 873 { 874 ids_go[404] = 0; //ES500 875 ids_go[455] = 0; //ES700 876 ids_go[660] = 0; //MUV 877 } 878 if (max_rychlost > 90) 879 { 880 ids_go[468] = 0; //ES16000 881 } 882 if (max_rychlost > 100) 883 { 884 ids_go[456] = 0; //ES1000 885 ids_go[477] = 0; // EL1600 886 ids_go[2075] = 0; //741.7 887 ids_go[504] = 0; // 2M62U 888 } 889 if ($('input[name=s7_1]').parent().hasClass('sel')) 890 { 891 form.s7_1 = true; 892 } 893 894 895 if ($('input[name=s7_2]').parent().hasClass('sel')) // 1250-2000 896 { 897 ids_go[440] = 0; //ES300 898 form.s7_2 = true; 899 } 900 if ($('input[name=s7_3]').parent().hasClass('sel')) // //2000 901 { 902 ids_go[440] = 0; //ES300 903 form.s7_3 = true; 904 } 905 if ($('input[name=s7_4]').parent().hasClass('sel')) // 2500 906 { 907 ids_go[440] = 0; //ES300 908 ids_go[404] = 0; //ES500 909 ids_go[455] = 0;
909 //ES700 910 ids_go[2075] = 0; //741.7 911 form.s7_4 = true; 912 } 913 if ($('input[name=s7_5]').parent().hasClass('sel')) // 2800 914 { 915 ids_go[440] = 0; //ES300 916 ids_go[404] = 0; //ES500 917 ids_go[455] = 0; //ES700 918 ids_go[2075] = 0; //741.7 919 ids_go[456] = 0; //ES1000 920 ids_go[477] = 0; // EL1600 921 form.s7_5 = true; 922 } 923 if ($('input[name=s7_6]').parent().hasClass('sel')) // 4000 924 { 925 ids_go[440] = 0; //ES300 926 ids_go[404] = 0; //ES500 927 ids_go[455] = 0; //ES700 928 ids_go[2075] = 0; //741.7 929 ids_go[456] = 0; //ES1000 930 ids_go[468] = 0; //ES16000 931 ids_go[477] = 0; // EL1600 932 ids_go[484] = 0; // EL3000 933 form.s7_6 = true; 934 } 935 936 var max_soupani = parseInt($('#Slider2').slider( "option", "value" )); 937 938 var min_oblouk = parseInt($('#Slider3').slider( "option", "value" )); 939 940 form.max_soupani = max_soupani; 941 form.min_oblouk = min_oblouk; 942 943 if (min_oblouk < 125) 944 { 945 ids_go[504] = 0; // 2M62U 946 } 947 if (min_oblouk < 120) 948 { 949 ids_go[468] = 0; //ES16000 950 } 951 if (min_oblouk < 100) 952 { 953 ids_go[477] = 0; // EL1600 954 ids_go[484] = 0; // EL3000 955 } 956 if (min_oblouk < 90) 957 { 958 ids_go[660] = 0; //MUV 959 } 960 if (min_oblouk < 65) 961 { 962 ids_go[456] = 0; //ES1000 963 } 964 965 console.log(ids_go); 966 console.log(form); 967 968 $('.productBox').each(function(){ 969 $(this).css('display','none'); 970 }); 971 $('.product-list').removeClass('none'); 972 973 var count = 0; 974 975 $.each(ids_go, function(index,value){ 976 if (value) 977 { 978 $('#Product'+index).css('display','block'); 979 count = count + 1; 980 } 981 }); 982 983 var txt = ''; 984 985 $('.konfigurator').find('.sekce').each(function(){ 986 var nadpis = $(this).prev().html(); 987 txt = txt + nadpis + ' '; 988 $(this).find('.option.sel').each(function(){ 989 txt = txt + $(this).text() + ', '; 990 }); 991 $(this).find('input[type=text]').each(function(){ 992 if ($(this).val()) 993 { 994 txt = txt + $(this).prev().text() + ' ' + $(this).val(); 995 } 996 }); 997 $(this).find('.slider').each(function(){ 998 txt = txt + $(this).slider( "option", "value" ); 999 }); 1000 txt = txt + "\n"; 1001 }); 1002 1003 if (!count) 1004 { 1005 $('.nalezeno').addClass('none'); 1006 $('.nenalezeno').removeClass('none'); 1007 1008 1009 //console.log(txt); 1010 $('.konfigurator-list').find('textarea').first().val(txt); 1011 1012 } else { 1013 $('.nenalezeno').addClass('none'); 1014 $('.nalezeno').removeClass('none'); 1015 } 1016 1017 $.ajax({ 1018 url: "index.php", 1019 type: 'POST', 1020 async : false, 1021 data: 1022 { 1023 action : 'custom', 1024 action_custom : 'saveConfigResults', 1025 pocet_nalezeno : count, 1026 ids_go : ids_go, 1027 form : form 1028 }, 1029 //error: function(){alert('ERROR1 - opakujte akci');}, 1030 success: function (txt) 1031 { 1032 1033 }// end of the success 1034 });// end of the .ajax 1035 1036 fixElements(); 1037} 1038$(document).ready(function() { 1039 $("#searchButton").click(function(){ 1040 $("#search_overlay").addClass('show'); 1041 $("input[name='search']").focus(); 1042 }); 1043 $("#search_overlay .close").click(function(){ 1044 $("#search_overlay").removeClass("show"); 1045 }); 1046 $("#tabs button").click(function(){ 1047 $("#tabs button, #tab-content .tab").each(function(){ 1048 $(this).removeClass("active"); 1049 }); 1050 if($(this).hasClass("active") == false) { 1051 $(this).addClass("active"); 1052 $("#" + $(this).attr("data-target")).addClass("active"); 1053 console.log(); 1054 } 1055 }); 1056 $(".playvideo").on("click", function(e){ 1057 e.preventDefault(); 1058 $("#videohpModal").show(); 1059 $(".closebtn").show(); 1060 $("#videohpModal").empty(); 1061 var videourl = $(this).attr("href"); 1062 var video = "<iframe src=\"" + videourl + "?autoplay=1\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>"; 1063 1064 $("#videohpModal").append(video); 1065 }); 1066 $(".closebtn").click(function(){ 1067 $("#videohpModal").empty(); 1068 $("#videohpModal").hide(); 1069 $(this).hide(); 1070 }); 1071 $("#closeNav").click(function(){ 1072 $('#nav').toggle(false); 1073 }); 1074 $('#mobile-nav').click(function () { 1075 $('#nav').toggle(true); 1076 }); 1077 $('.langs > a').click(function () { 1078 $('.langs > div').toggle(); 1079 }); 1080 1081 var $topNav = $(".top_nav"); 1082 $topNav.children().each( function( index ) { 1083 console.log("Index:" + index);
1084 $(this).attr( 'data-position', index ); // NB: .attr() instead of .data() 1085 }); 1086 1087 $topNav.owlCarousel({ 1088 items: 9, 1089 loop: true, 1090 nav: false, 1091 responsive: { 1092 0: { 1093 center: true, 1094 items: 3 1095 }, 1096 1200: { 1097 items: 9 1098 } 1099 } 1100 }); 1101 1102 $topNav.trigger('to.owl.carousel', $(".owl-item li.level1.sel").data("position")); 1103 1104 $("#mobile a.openable").on("click", function(e){ 1105 e.preventDefault(); 1106 var level2 = $(this).siblings("ul.level2").first(); 1107 if($(level2).is(":visible")){ 1108 $(level2).toggle(false); 1109 $(this).children("span.open").first().removeClass("fa-angle-up"); 1110 $(this).children("span.open").first().addClass("fa-angle-down"); 1111 }else{ 1112 $(level2).toggle(true); 1113 $(this).children("span.open").first().removeClass("fa-angle-down"); 1114 $(this).children("span.open").first().addClass("fa-angle-up"); 1115 } 1116 return false; 1117 }); 1118}); 1119$( document ).on( 'keydown', function ( e ) { 1120 if ( e.keyCode === 27 ) { 1121 $("#search_overlay").removeClass("show"); 1122 $("#videohpModal").hide(); 1123 $(".closebtn").hide(); 1124 $("#nav").toggle(false); 1125 } 1126}); 1127$(window).on("load", function() { 1128 fixElements(); 1129 $(".se-pre-con").fadeOut(1000); 1130}); 1131$(window).scroll(function(){ 1132 fixElements(); 1133}); 1134// IE IMAGE FIX 1135$(function(){ 1136 $('#pridruzene_fotogalerie img, .reference_nahled img, .reference-item img').each(function(){ // Note: {.post-thumb img} is css selector of the image tag 1137 var t = $(this), 1138 s = 'url(' + t.attr('src') + ')', 1139 p = t.parent(), 1140 d = $('<div class="changed_image"></div>'); 1141 t.hide(); 1142 p.append(d); 1143 d.css({ 1144 'height' : $(t).height(), // Note: You can change it for your needs 1145 'background-size' : 'cover', 1146 'background-repeat' : 'no-repeat', 1147 'background-position' : 'center', 1148 'background-image' : s 1149 }); 1150 }); 1151}); 1152function scrollToReferenceContainer() { 1153 $('html, body').animate({ 1154 scrollTop: $("#reference-container > .container").position().top - 100 1155 }, 1000); 1156} 1157$(window).on('load',function(){ 1158 var $container = $('.portfolioContainer .row'); 1159 $container.isotope({ 1160 filter: '*', 1161 animationOptions: { 1162 duration: 750, 1163 easing: 'linear', 1164 queue: false 1165 } 1166 }); 1167 $(function(){ 1168 $("#changeMeReference").text($('.portfolioFilter a.current').data('popis')); 1169 }); 1170 $('.portfolioFilter a').click(function(){ 1171 $('.portfolioFilter .current').removeClass('current'); 1172 $(this).addClass('current'); 1173 $("#changeMeReference").text($(this).data('popis')); 1174 var selector = $(this).attr('data-filter'); 1175 $container.isotope({ 1176 filter: selector, 1177 animationOptions: { 1178 duration: 750, 1179 easing: 'linear', 1180 queue: false 1181 } 1182 }); 1183 return false; 1184 }); 1185}); 1186 1187$(function(){ 1188 if($("body").hasClass('has_submenu')) 1189 { 1190 if($(".submenu").length) 1191 { 1192 $(".plovouci-tlacitko").css('top', ($(".submenu").offset().top + $(".submenu").outerHeight()) + "px") 1193 } 1194 } 1195});
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.