1function SetCookie(c_name,value,expiredays) { 2var exdate= new Date(); 3exdate.setDate(exdate.getDate()+expiredays) 4document.cookie=c_name+ "=" +escape(value)+";path=/"+((expiredays==null) ? "" : ";expires="+exdate.toUTCString()) 5} 6 7 8 9 10//Initial load of page 11$(document).ready(sizeContent); 12 13//Every resize of window 14$(window).resize(sizeContent); 15 16$( window ).load(sizeContent); 17 18 19function sizeContent() { 20var w = $(window).width(); 21var h = $(window).height(); 22 23$(".menumobile").css({"height":(h-61)}); 24 25 26 27// bin butt width 28var w1 = $('.book22').width() - 50; 29if($('.book22').width() > 0) $('.book221').width(w1); 30 31// book221after 32var w1 = $('.book22').width(); 33var w2 = $('.book221').outerWidth(); 34var w0 = w1 - w2 - 22; 35$('.book221after').width(w0); 36 37//cartsteps 38var w1 = ($('.cartsteps').width() - 12)/4; 39if(w <= 650) var w1 = Math.floor(($('.cartsteps').width() - 45)/3); 40$(".cartsteps").find("a").width(w1); 41 42var c = $(".content").outerHeight() + $(".header").outerHeight() + $(".footer").outerHeight(); 43if(c < h) { 44//$(".footer").css({"position":"fixed","bottom":0}); 45} else { 46//$(".footer").css({"position":"relative","bottom":"auto"}); 47} 48 49 50/// book 51var maxh = 0; 52$(".book11").each(function( index ) { 53if($( this ).height() > maxh) maxh = Math.ceil($( this ).height()); 54}); 55if($(window).width() <= 480) maxh = 10; 56$(".book11").css({"min-height":maxh}); 57 58var maxh = 0; 59$(".book12").each(function( index ) { 60if($( this ).height() > maxh) maxh = Math.ceil($( this ).height()); 61}); 62if($(window).width() <= 480) maxh = 10; 63$(".book12").css({"min-height":maxh}); 64 65 66/// book2 67var maxh = 0; 68$(".book21").each(function( index ) { 69if($( this ).height() > maxh) maxh = $( this ).height(); 70}); 71$(".book21").css({"min-height":maxh}); 72 73 74/// author1 75if($('.author1').length) { 76var h = Math.round($('.author1').width()); 77$('.author1').height(h); 78} 79 80 81 82/// cdsno 83if($('.cdsno').length) { 84var c = 0; 85 86$(".cdsno .cd").each(function( index ) { 87c = c + 1; 88if($(this).hasClass("cd2")) c++; 89if(c != 3) $(this).addClass("cdpad"); 90if(c == 3) c = 0; 91 92}); 93} 94 95 96/// cdsnoextra 97if($('.cdsnoextra').length) { 98var c = 0; 99 100$(".cdsnoextra .cd").each(function( index ) { 101c = c + 1; 102if($(this).hasClass("cd2")) c++; 103if(c != 3) $(this).addClass("cdpad"); 104$(this).attr("data-c",c); 105if(c == 3) c = 0; 106 107}); 108} 109 110 111 112/// cdsno1 113if($('.cdsno1').length) { 114var c = 0; 115 116$(".cdsno1 .cd").each(function( index ) { 117c = c + 1; 118if($(this).hasClass("cd2")) c++; 119if(c == 2) $(this).css({"float":"right"}); 120if(c == 2) c = 0; 121 122}); 123} 124 125 126 127$("iframe").each(function( index ) { 128var y = Math.ceil($(".txt1").width() / 16 * 9); 129console.log(y); 130$( this ).height(y); 131$( this ).css({"height":y+"px"}); 132}); 133 134$("iframe.spotify").height(250); 135 136 137 138 139/// cd1-over 140/*if($('.cd1-over').length) { 141var maxh = 0; 142$(".cd1-over").each(function( index ) { 143if($( this ).height() > maxh) maxh = $( this ).height(); 144}); 145$(".cd1-over").css({"min-height":maxh}); 146 147} */ 148 149 150 151 152} 153 154 155 156 157 158 159 160 161 162 163$(document).ready(function() { 164 165 166if(window.location.hash == "#vytisk-zdarma") { 167 $("#popup3").fadeIn("fast"); 168} 169 170 171 172 173if( $('#multiselect2').length) { 174 $('#multiselect2').multiselect({ 175 buttonWidth: '64%', 176 nonSelectedText: 'Vyberte ze seznamu', 177 nSelectedText: ' zadánÃ' 178 }); 179 } 180if( $('#multiselect3').length) { 181 $('#multiselect3').multiselect({ 182 buttonWidth: '64%', 183 nonSelectedText: 'Vyberte ze seznamu', 184 nSelectedText: ' zadánÃ' 185 }); 186 } 187 188 189 190$( ".hostpopupbgr" ).click(function(event) { 191$('.hostpopup').fadeOut("fast"); 192event.preventDefault(); 193}); 194 195 196$( ".popuploginbgr" ).click(function(event) { 197$('.popuplogin').fadeOut("fast"); 198event.preventDefault(); 199}); 200 201 202$( ".hostlink" ).click(function(event) { 203$('.hostpopup').fadeIn("fast"); 204event.preventDefault(); 205}); 206 207 208 209$( ".alertfixedclose" ).click(function(event) { 210$('.alertfixed').stop( true, true ).fadeOut("fast"); 211event.preventDefault(); 212}); 213 214 215$( ".m0base" ).mouseenter(function(event) { 216$(".divhover").removeClass("divhover"); 217var id = $(this).parent().attr("id"); 218//console.log(id); 219if(id == "m4" || id == "m5" || id == "m6" || id == "m7") $(this).parent().addClass("divhover"); 220}); 221 222 223$( "#m4, #m5, #m6, #m7" ).mouseenter(function(event) { 224$(this).addClass("divhover"); 225}); 226 227 228$( ".content" ).mouseenter(function(event) { 229$(".divhover").removeClass("divhover"); 230 231}); 232 233 234 235 236 237 238$(".isic0").submit(function () { 239 var link = $(this).attr('action'); 240 var student = $(this).find("input[name='student']").val(); 241 var isic = $(this).find("input[name='isic']").val(); 242 var isic2 = $(this).find("input[name='isic2']").val(); 243 var isic3 = $(this).find("input[name='isic3']").val(); 244 245 link += encodeURI("?student="+student+"&isic="+isic+"&isic2="+isic2+"&isic3="+isic3); 246 //console.log(link); 247 $("#isicresult").load(link, function() {}); 248 249 return false; 250}); 251 252$(".adh0").submit(function () { 253 var link = $(this).attr('action'); 254 var adh = $(this).find("input[name='adh']").val(); 255 256 link += encodeURI("?adh="+adh); 257 //console.log(link); 258 $("#isicresult").load(link, function() {}); 259 260 return false; 261}); 262 263 264 265 266 267 268 269 270 271 272 273 274$(".book22, .popup2, .book22predplatne, .book22predplatnecart").submit(function () { 275 var link = $(this).attr('action'); 276 var size = $(this).find("input[name='size']").val(); 277 if (typeof(size) === "undefined") var size = $(this).find("select[name='size']").val(); 278 var version = $(this).find("input[name='version']").val(); 279 if (typeof(version) === "undefined") var version = $(this).find("select[name='version']").val(); 280 var count = $(this).find("input[name='count']").val(); 281 var article = $(this).find("input[name='article']").val(); 282 var what = $(this).find("input[name='what']").val(); 283 var extraprice = ""; 284 285 //if(parseInt(article) < 0) { 286 if ( $( this ).hasClass( "book22predplatne" ) ) { 287 var version = $(this).find("input[name='version']:checked").val(); 288 } 289 if ( $( this ).hasClass( "book22predplatnecart" ) ) { 290 extraprice = "&extraprice="+$(this).find("input[name='extraprice']").val(); 291 } 292 293 var reload = 0; 294 if ( $( this ).hasClass( "book22predplatnecart" ) ) reload = 1; 295 296 var q = ""; 297 if(article == 2 || article == 3) { 298 var qinterest = $("#multiselect"+article).val(); 299 var qpractice = $(this).find("input[name='qpractice"+article+"']").val(); 300 //var qpraxe = $(this).find("input[name='qpraxe"+article+"']").val(); 301 //var qprace = $(this).find("input[name='qprace"+article+"']").val(); 302 //+"&qpraxe="+qpraxe+"&qprace="+qprace 303 q = "&qinterest="+qinterest+"&qpractice="+qpractice; 304 //console.log(q); 305 } 306 307 308if(size == "") { 309 310/*$('#redalert').find("#alerttxtred").html("â ZVOLTE PROSÃM VELIKOST PRODUKTU â"); 311$('#redalert').fadeIn('fast').delay(3000).fadeOut('fast'); */ 312 313} else { 314 315if(article == 3 && (qpractice == "" || qinterest == "")) { 316 317alert("VyplÅte prosÃm celý formuláÅ."); 318 319} else { 320 321 link += encodeURI("?size="+size+"&version="+version+"&count="+count+"&article="+article+"&what="+what+q+extraprice); 322 console.log(link); 323 $("#bin").load(link, function() { 324 //$( "#binmobile" ).html($( "#bin" ).html()); 325 326 //fbq('track', 'AddToCart', { 'content_ids': article, 'content_type': 'product'}); 327 if(reload == 1) location.reload(); 328 329}); 330 331$(".stomapopup").fadeOut('fast'); 332$('#inbin').fadeIn('fast').delay(3000).fadeOut('fast'); 333 334 335 336} 337 338 339 340} 341 342 343/*$.get(link, 344 { 345 size:size, 346 version:version 347 }, 348 function(data,status){ 349 alert("Data: " + data + "\nStatus: " + status); 350 });*/ 351 352 return false; 353 354}); 355 356 357 358 359 $(".submitform").change(function() { 360 $(this).parents("form").submit(); 361}); 362 363 364 365 $(".sub2024change").change(function() { 366 sub2024change(); 367}); 368 369function sub2024change() { 370 var sale = ""; 371 if($("#sale1").is(":checked")) sale = "reduced"; 372 if($("#sale2").is(":checked")) sale = "reduced"; 373 374 var sub = 0; 375 if($("#sub20").is(":checked")) sub = 2; 376 if($("#sub21").is(":checked")) sub = 1; 377 378 var price = 0; 379 var pricewords = ""; 380 price = parseFloat($(".sub2024").attr("data-price"+sub+sale)); 381 pricewords = $(".sub2024").attr("data-price"+sub+"words"); 382 priceword = $(".sub2024").attr("data-price"+sub+"word"); 383 //console.log(pricewords);
384 $(".printprice").html(price); 385 $(".printpricewords").html(pricewords); 386 $(".printpriceword").html(priceword); 387 $("#total").val(price); 388 389 if(sub == 2) { 390 $(".sub2024h2").addClass("sub2024disabled"); 391 $( "#saleprint" ).prop( "checked", false ); 392 $( "#saleprint" ).attr("disabled", true); 393 $( "#sale1" ).attr("disabled", true); 394 $( "#sale2" ).attr("disabled", true); 395 $( "#salecode" ).attr("disabled", true); 396 $(".sub2024f, #sale1span, #sale2span").addClass("sub2024disabled"); 397 } else { 398 $(".sub2024h2").removeClass("sub2024disabled"); 399 $( "#saleprint" ).attr("disabled", false); 400 $( "#sale1" ).attr("disabled", false); 401 $( "#sale2" ).attr("disabled", false); 402 $( "#salecode" ).attr("disabled", false); 403 $(".sub2024f, #sale1span, #sale2span").removeClass("sub2024disabled"); 404 } 405 406 if($("#saleprint").is(":checked")) { 407 $(".sub2024fin1").slideUp("fast"); 408 $(".sub2024fin2").slideDown("fast"); 409 $( "#confirm1" ).attr("required", false); 410 $( "#confirm2" ).attr("required", false); 411 } else { 412 $(".sub2024fin2").slideUp("fast"); 413 $(".sub2024fin1").slideDown("fast"); 414 $( "#confirm1" ).attr("required", true); 415 $( "#confirm2" ).attr("required", true); 416 } 417 418 419} 420 421 422 423 424 425 426 427 428$(".cartsubmita" ).click(function(event) { 429var id = $(this).attr("href"); 430$(id).submit(); 431 event.preventDefault(); 432}); 433 434 435$(".pseudolink" ).click(function(event) { 436var link = $(this).attr("data-href"); 437window.location.href = link; 438 event.preventDefault(); 439}); 440 441 442 443$( ".menubutt" ).click(function(event) { 444var id = $(this).attr("href"); 445if($(id).css('display') == 'none') { 446 $( id ).slideDown(400); 447} else { 448 $( id ).slideUp(400); 449} 450event.preventDefault(); 451}); 452 453 454$( ".showhide" ).click(function(event) { 455var id = $(this).attr("href"); 456if($(id).css('display') == 'none') { 457 $( id ).fadeIn("fast"); 458} else { 459 $( id ).fadeOut("fast"); 460} 461event.preventDefault(); 462}); 463 464 465$( ".changetopicbutt" ).click(function(event) { 466var id = $(this).attr("href"); 467if($(id).css('display') == 'none') { 468 $( id ).stop(true,true).slideDown("fast"); 469} else { 470 $( id ).stop(true,true).slideUp("fast"); 471} 472event.preventDefault(); 473}); 474 475/*$( ".changetopicbutt" ).on( "mouseenter", function() { 476var id = $(this).attr("href"); 477 $( id ).stop(true,true).slideDown("fast"); 478} ); */ 479 480$(document).mouseup(function(e) { 481 var container = $(".changetopic"); 482 if (!container.is(e.target) && container.has(e.target).length === 0) { 483 container.stop(true,true).slideUp("fast"); 484 } 485}); 486 487 488$( ".changetopic" ).on( "mouseleave", function() { 489 $(this).stop(true,true).slideUp("fast"); 490} ); 491 492 493 494 495 496$( ".predplatnenextbutt" ).click(function(event) { 497var id = $(this).attr("href"); 498if($(id).css('display') == 'none') { 499 $( id ).slideDown("fast"); 500 $(this).parent().hide(); 501} else { 502 $( id ).slideUp("fast"); 503} 504event.preventDefault(); 505}); 506 507 508 509$( ".mobileslide" ).click(function(event) { 510var id = $(this).attr("href"); 511if($(id).css('display') == 'none') { 512 $( id ).slideDown(400); 513 $(this).addClass("mobileslide2"); 514} else { 515 $( id ).slideUp(400); 516 $(this).removeClass("mobileslide2"); 517} 518event.preventDefault(); 519}); 520 521 522 523 524 525 526 527 528 529 530$( "#sourceshow" ).click(function(event) { 531var id = $(this).attr("href"); 532$( id ).slideDown("fast"); 533$(this).hide(); 534$( "#sourcehide" ).show(); 535event.preventDefault(); 536}); 537 538$( "#sourcehide" ).click(function(event) { 539var id = $(this).attr("href"); 540$( id ).slideUp("fast"); 541$( "#sourceshow" ).show(); 542$(this).hide(); 543event.preventDefault(); 544}); 545 546 547$( "#authorshow" ).click(function(event) { 548var id = $(this).attr("href"); 549$( id ).slideDown("fast"); 550$(this).hide(); 551$( "#authorhide" ).show(); 552var h = Math.round($('.author1').width()); 553$('.author1').height(h); 554event.preventDefault(); 555}); 556 557$( "#authorhide" ).click(function(event) { 558var id = $(this).attr("href"); 559$( id ).slideUp("fast"); 560$( "#authorshow" ).show(); 561$(this).hide(); 562event.preventDefault(); 563}); 564 565 566 567 568 569$( ".popup31" ).click(function(event) { 570var id = $(this).attr("href"); 571if($(id).css('display') == 'none') { 572 $( id ).slideDown("fast"); 573 $('.popup3').addClass("popup3open"); 574} else { 575 $( id ).slideUp("fast"); 576 $('.popup3').delay(600).removeClass("popup3open"); 577} 578event.preventDefault(); 579}); 580 581 582 583 584 585$(".book221popup").click(function(event) { 586var id = $(this).attr("data-popup"); 587$("#"+id).fadeIn("fast"); 588event.preventDefault(); 589}); 590 591 592 593$(".popupclose").click(function(event) { 594$(".stomapopup").fadeOut("fast"); 595event.preventDefault(); 596}); 597 598 599 600 601$( ".shareprint" ).click(function(event) { 602window.print(); 603event.preventDefault(); 604}); 605 606 607 608 609 610 611$( ".mycheckbox" ).click(function(event) { 612var id = $(this).attr("href"); 613var cl = $(this).attr("data-class"); 614var val = $(this).attr("data-value"); 615 616 617if($(this).hasClass( cl )) { 618 $(this).removeClass(cl);
619 $(id).val("0"); 620} else { 621 $(this).addClass(cl); 622 $(id).val(val); 623} 624event.preventDefault(); 625}); 626 627 628 629 630$( ".myradiobutton" ).click(function(event) { 631var id = $(this).attr("href"); 632var cl = $(this).attr("data-class"); 633var val = $(this).attr("data-value"); 634 635$(id).val(val); 636 637$("."+cl).removeClass("myradiobutton1"); 638$(this).addClass("myradiobutton1"); 639 640event.preventDefault(); 641}); 642 643 644 645 646$( ".myradiobuttonround" ).click(function(event) { 647var id = $(this).attr("href"); 648var cl = $(this).attr("data-class"); 649var val = $(this).attr("data-value"); 650 651$("."+cl).removeClass("myradiobuttonround1"); 652$(this).addClass("myradiobuttonround1"); 653$(id).val(val); 654 655event.preventDefault(); 656}); 657 658 659 660 661 662 663function checkPrice() { 664var curr = $("#mastercurrency").val(); 665 666var deliverid = parseFloat($("#deliver").val()); 667if(deliverid == 3 || deliverid == 5 || deliverid == 8) { 668$(".zasilkovna").show(); 669} else { 670$(".zasilkovna").hide(); 671} 672 673var total = parseFloat($("#total").val()); 674var totalsale = parseFloat($("#totalsale").val()); 675var deliverprice = parseFloat($("#deliverprice").val()); 676var payprice = parseFloat($("#payprice").val()); 677 678var supertotal = total - totalsale + deliverprice + payprice; 679//if(curr == "eur") supertotal = Math.round(supertotal * 100) / 100; 680if(curr == "eur") supertotal = supertotal.toFixed(2); 681 682 683$("#delivercena").html(deliverprice); 684$("#paycena").html(payprice); 685$("#supertotal").html(supertotal); 686 687var totaldph = parseFloat($("#totaldph").val()); 688var deliverpricedph = parseFloat($("#deliverpricedph").val()); 689var paypricedph = parseFloat($("#paypricedph").val()); 690var supertotaldph = totaldph + deliverpricedph + paypricedph; 691//if(curr == "eur") supertotaldph = Math.round(supertotaldph * 100) / 100; 692if(curr == "eur") { 693supertotaldph = supertotaldph.toFixed(2); 694} else { 695supertotaldph = Math.round(supertotaldph); 696} 697 698$("#supertotaldph").html(supertotaldph); 699 700} 701if($("#deliverform").length) checkPrice(); 702 703 704 705 706 707 708$( ".radiobuttoninline" ).click(function(event) { 709var id = $(this).attr("href"); 710var cl = $(this).attr("data-class"); 711 712var val = $(this).attr("data-val"); 713$(id).val(val); 714 715var price = $(this).attr("data-price"); 716$(id+"price").val(price); 717 718var price = $(this).attr("data-pricedph"); 719$(id+"pricedph").val(price); 720 721var title = $(this).attr("data-title"); 722$(id+"title").html(title); 723 724 725$("."+cl).removeClass("radiobuttoninline1"); 726$(this).addClass("radiobuttoninline1"); 727 728checkPrice(); 729 730event.preventDefault(); 731}); 732 733 734 735$("#captcha").click(function(event) { 736console.log("jo"); 737var d = new Date(); 738var src = $(this).attr("src"); 739$(this).attr("src",src+"?"+d.getTime()); 740}); 741 742 743 744$( ".inputcheckbox" ).click(function(event) { 745var id = $(this).attr("data-id"); 746var val = $(this).attr("data-val"); 747var show = $(this).attr("data-show"); 748 749if($(this).hasClass( "inputcheckbox1" )) { 750$("#"+id).val(""); 751 $(this).removeClass("inputcheckbox1"); 752} else { 753 $(this).addClass("inputcheckbox1"); 754 $("#"+id).val(val); 755} 756 757//if(id == "cap") $('.g-recaptcha').trigger("click"); 758 759if(show != '' && $("#"+show).css('display') == 'none') { 760 $("#"+show).slideDown(300); 761} else { 762 $("#"+show).slideUp(300); 763} 764 765 766 767if($(".platbadovetek").length && id == "confirm3") { 768 if($("#confirm3").val() == val) { 769 var txt = $(".platbadovetek").attr("data-txt"); 770 $(".platbadovetek").html(txt); 771 } else { 772 $(".platbadovetek").html(""); 773 } 774} 775 776 777 778if($(this).is("a")) event.preventDefault(); 779}); 780 781 782 783 784 785$('.magslider').flexslider({ 786 animation: "slide", 787 directionNav: true, 788 slideshowSpeed: 6000, 789 controlNav: false, 790 easing: "easeInOutQuad", 791 animationSpeed: 1000, 792 }); 793 794$('.eventslider').flexslider({ 795 animation: "slide", 796 directionNav: true, 797 slideshowSpeed: 6000, 798 slideshow: false, 799 controlNav: false, 800 easing: "easeInOutQuad", 801 animationSpeed: 1000, 802 }); 803 804//http://sachinchoolur.github.io/lightslider/ 805 $("#lightSlider").lightSlider({ 806 item: 1, 807 slideMove: 1, // slidemove will be 1 if loop is true 808 addClass: '', 809 mode: "slide", 810 useCSS: true, 811 cssEasing: 'ease', //'cubic-bezier(0.25, 0, 0.25, 1)',// 812 easing: 'linear', //'for jquery animation',//// 813 thumbItem: 3, 814 slideMargin: 1, 815 adaptiveHeight:true, 816 817 pager: true, 818 gallery: true, 819 galleryMargin: 0, 820 thumbMargin: 1, 821 currentPagerPosition: 'middle', 822 823 enableTouch:true, 824 //enableDrag:true, 825 enableDrag: false, 826 freeMove:true, 827 swipeThreshold: 40, 828 829 onSliderLoad: function(el) { 830 var s = 0; 831 if($("#lsliderfirst").length) s = parseInt($("#lsliderfirst").val()); 832 el.goToSlide(s); 833 } 834 835 /*onSliderLoad: function(el) { 836 el.lightGallery({ 837 selector: '#lightSlider .lslide', 838 download: false, 839 }); 840 } */ 841 842 });
843 844 845 846$("#zasilkovna").on("change", function() { 847$("#doprava3").trigger("click"); 848$("#doprava5").trigger("click"); 849}); 850 851 852 853$(".fancyLink").fancybox({ 854 'transitionIn' : 'none', 855 'transitionOut' : 'none', 856 'titlePosition' : 'outside', 857 padding : 0, 858 }); 859 860 861$(function () { 862 $('[data-toggle="tooltip"]').tooltip() 863}) 864 865 866 867 868 869 870 871$( ".submenusheader" ).click(function(event) { 872var id = $(this).attr("href"); 873 874if($(id).css('display') == 'none') { 875 $(id).slideDown("fast"); 876 $(this).addClass("submenusheaders"); 877} else { 878 $(id).slideUp("fast"); 879 $(this).removeClass("submenusheaders"); 880} 881event.preventDefault(); 882}); 883 884 885 886 887 888$('#m2, #m3, #m669').mouseenter(function(){ 889//if($(window).width() > 800 ) { 890var id = $(this).attr('data-id'); 891$(id).stop( true, true ).slideDown("fast"); 892console.log(id); 893//} 894}); 895 896 897$('#m2, #m3, #m669').mouseleave(function(){ 898//if($(window).width() > 800 ) { 899var id = $(this).attr('data-id'); 900$(id).stop( true, true ).slideUp("fast"); 901console.log(id); 902//} 903}); 904 905 906 907 908 909 910 911 912$(".daregisterformclose, .daregisterformbgr").click(function(){ 913$('#daregister').fadeOut("fast"); 914return false; 915}); 916 917 918 919$(".academyregisterbuttpopup").click(function(){ 920var id = $(this).attr('href'); 921$(id).fadeIn("fast"); 922return false; 923}); 924 925 926 927$( "#daregisterformreal" ).submit(function( event ) { 928 929 // Stop form from submitting normally 930 event.preventDefault(); 931 932 // Get some values from elements on the page: 933 var $form = $( this ); 934 /*mail = $form.find( "input[name='mail']" ).val();*/ 935 var formData = $( this ).serialize(); 936 url = $form.attr( "action" ); 937 938//console.log(name); 939 // Send the data using post 940 var posting = $.post( url, formData ); 941$( "#daregisterformreal" ).slideUp("fast"); 942$( "#daregisterformresult" ).html("loading..."); 943 944 // Put the results in a div 945 posting.done(function( data ) { 946 //var content = $( data ).find( "#content" ); 947 $( "#daregisterformresult" ).empty().append( data ); 948 }); 949}); 950 951 952 953 $('.welcome11').click(function () { 954 SetCookie('welcomeconfirm','welcomeconfirm',365*10) 955 $('.welcome').remove(); 956 }); 957 958 959 960$( ".form43" ).submit(function( event ) { 961 event.preventDefault(); 962 963 var $form = $( this ); 964 var formData = $( this ).serialize(); 965 url = $form.attr( "data-action" ); 966 967 var posting = $.post( url, formData ); 968$( ".form43" ).slideUp("fast"); 969$( ".form43result" ).html("loading..."); 970 971 posting.done(function( data ) { 972 $( ".form43result" ).empty().append( data ); 973 }); 974}); 975 976 977 978 979 980 981 982 983var owl = $('.owl-carouselindex').owlCarousel({ 984 //animateOut: 'fadeOut', 985 //animateIn: 'fadeIn', 986 center: false, 987 loop:true, 988 autoplay:true, 989 autoplayTimeout: 8000, 990 slideSpeed: 2000, 991 paginationSpeed: 500, 992 nav:true, 993 dots: false, 994 stagePadding: 0, 995 /*autoWidth:true, */ 996 margin: 0, 997 responsive:{ 998 0:{ 999 items:2 1000 }, 1001 768:{ 1002 items:4 1003 }, 1004 1100:{ 1005 items:6 1006 } 1007 } 1008}); 1009 1010 1011 1012var owl = $('.owl-carouselmag').owlCarousel({ 1013 //animateOut: 'fadeOut', 1014 //animateIn: 'fadeIn', 1015 items:1, 1016 center: false, 1017 loop:true, 1018 autoplay:true, 1019 autoplayTimeout: 8000, 1020 slideSpeed: 2000, 1021 paginationSpeed: 500, 1022 nav:true, 1023 dots: false, 1024 stagePadding: 0, 1025 /*autoWidth:true, */ 1026 margin: 0 1027}); 1028 1029 1030$("video[autoplay]").each(function(){ this.play(); }); 1031 1032 1033 1034 1035 1036 1037 1038$("#dic").on('change keyup', function (e){ 1039var val = $(this).val(); 1040var test = val.substring(0, 2); 1041 1042 1043$(".cenaproduktu").each(function( index ) { 1044var cenaproduktusdph = $(this).attr("data-cenaproduktusdph"); 1045var cenaproduktubezdph = $(this).attr("data-cenaproduktubezdph"); 1046 1047if(test == "sk" || test == "SK") { 1048$(this).html(cenaproduktubezdph); 1049} else { 1050$(this).html(cenaproduktusdph); 1051} 1052 1053}); 1054 1055var delivercena = $("#delivercena").attr("data-delivercena"); 1056var delivercenabezdph = $("#delivercena").attr("data-delivercenabezdph"); 1057 1058if(test == "sk" || test == "SK") { 1059$("#delivercena").html(delivercenabezdph); 1060} else { 1061$("#delivercena").html(delivercena); 1062} 1063 1064 1065var supertotal = $("#supertotal").attr("data-supertotal"); 1066var supertotalbezdph = $("#supertotal").attr("data-supertotalbezdph"); 1067 1068if(test == "sk" || test == "SK") { 1069$("#supertotal").html(supertotalbezdph); 1070} else { 1071$("#supertotal").html(supertotal); 1072} 1073 1074 1075}); 1076 1077 1078 1079 1080 1081 1082});
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.