function homestatus2513 () { var produkt = $("#produkt2513").val(); var konfiguratortype = $("#konfiguratortype").val(); var velkost = $(".velkost:checked").val(); var velkost2 = $(".velkost2:checked").val(); var akcia = $("#akcia2513").val(); var detectbutton = $(document.activeElement).attr('id'); var gobutton = "button2513"; var gobutton2 = "button_mobil"; var gobuttonski = "button2"; var gobuttonski2 = "button_mobil2"; var pocet2513 = $("#quntity-input2513").val(); /************************/ if (detectbutton === gobutton) { //kosikdesktop /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2513, success: function(data) { var trigger = $('#button'), container = $('#ajaxbox'); containercontent = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); /*container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter');*/ $("#ajaxbox").addClass("visible"); containercontent.load('moduly/ajax/kosikbasicajax.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else if (detectbutton === gobutton2) { //kosikmobil /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2513, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else { /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2513, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); } } function homestatus2512 () { var produkt = $("#produkt2512").val(); var konfiguratortype = $("#konfiguratortype").val(); var velkost = $(".velkost:checked").val(); var velkost2 = $(".velkost2:checked").val(); var akcia = $("#akcia2512").val(); var detectbutton = $(document.activeElement).attr('id'); var gobutton = "button2512"; var gobutton2 = "button_mobil"; var gobuttonski = "button2"; var gobuttonski2 = "button_mobil2"; var pocet2512 = $("#quntity-input2512").val(); /************************/ if (detectbutton === gobutton) { //kosikdesktop /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2512, success: function(data) { var trigger = $('#button'), container = $('#ajaxbox'); containercontent = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); /*container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter');*/ $("#ajaxbox").addClass("visible"); containercontent.load('moduly/ajax/kosikbasicajax.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else if (detectbutton === gobutton2) { //kosikmobil /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2512, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else { /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2512, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); } } function homestatus2511 () { var produkt = $("#produkt2511").val(); var konfiguratortype = $("#konfiguratortype").val(); var velkost = $(".velkost:checked").val(); var velkost2 = $(".velkost2:checked").val(); var akcia = $("#akcia2511").val(); var detectbutton = $(document.activeElement).attr('id'); var gobutton = "button2511"; var gobutton2 = "button_mobil"; var gobuttonski = "button2"; var gobuttonski2 = "button_mobil2"; var pocet2511 = $("#quntity-input2511").val(); /************************/ if (detectbutton === gobutton) { //kosikdesktop /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2511, success: function(data) { var trigger = $('#button'), container = $('#ajaxbox'); containercontent = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); /*container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter');*/ $("#ajaxbox").addClass("visible"); containercontent.load('moduly/ajax/kosikbasicajax.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else if (detectbutton === gobutton2) { //kosikmobil /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2511, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else { /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2511, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); } } function homestatus2509 () { var produkt = $("#produkt2509").val(); var konfiguratortype = $("#konfiguratortype").val(); var velkost = $(".velkost:checked").val(); var velkost2 = $(".velkost2:checked").val(); var akcia = $("#akcia2509").val(); var detectbutton = $(document.activeElement).attr('id'); var gobutton = "button2509"; var gobutton2 = "button_mobil"; var gobuttonski = "button2"; var gobuttonski2 = "button_mobil2"; var pocet2509 = $("#quntity-input2509").val(); /************************/ if (detectbutton === gobutton) { //kosikdesktop /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2509, success: function(data) { var trigger = $('#button'), container = $('#ajaxbox'); containercontent = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); /*container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter');*/ $("#ajaxbox").addClass("visible"); containercontent.load('moduly/ajax/kosikbasicajax.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else if (detectbutton === gobutton2) { //kosikmobil /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2509, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else { /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2509, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); } } function homestatus2507 () { var produkt = $("#produkt2507").val(); var konfiguratortype = $("#konfiguratortype").val(); var velkost = $(".velkost:checked").val(); var velkost2 = $(".velkost2:checked").val(); var akcia = $("#akcia2507").val(); var detectbutton = $(document.activeElement).attr('id'); var gobutton = "button2507"; var gobutton2 = "button_mobil"; var gobuttonski = "button2"; var gobuttonski2 = "button_mobil2"; var pocet2507 = $("#quntity-input2507").val(); /************************/ if (detectbutton === gobutton) { //kosikdesktop /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2507, success: function(data) { var trigger = $('#button'), container = $('#ajaxbox'); containercontent = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); /*container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter');*/ $("#ajaxbox").addClass("visible"); containercontent.load('moduly/ajax/kosikbasicajax.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else if (detectbutton === gobutton2) { //kosikmobil /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2507, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else { /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2507, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); } } function homestatus2506 () { var produkt = $("#produkt2506").val(); var konfiguratortype = $("#konfiguratortype").val(); var velkost = $(".velkost:checked").val(); var velkost2 = $(".velkost2:checked").val(); var akcia = $("#akcia2506").val(); var detectbutton = $(document.activeElement).attr('id'); var gobutton = "button2506"; var gobutton2 = "button_mobil"; var gobuttonski = "button2"; var gobuttonski2 = "button_mobil2"; var pocet2506 = $("#quntity-input2506").val(); /************************/ if (detectbutton === gobutton) { //kosikdesktop /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2506, success: function(data) { var trigger = $('#button'), container = $('#ajaxbox'); containercontent = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); /*container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter');*/ $("#ajaxbox").addClass("visible"); containercontent.load('moduly/ajax/kosikbasicajax.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else if (detectbutton === gobutton2) { //kosikmobil /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2506, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else { /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2506, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); } } function homestatus2505 () { var produkt = $("#produkt2505").val(); var konfiguratortype = $("#konfiguratortype").val(); var velkost = $(".velkost:checked").val(); var velkost2 = $(".velkost2:checked").val(); var akcia = $("#akcia2505").val(); var detectbutton = $(document.activeElement).attr('id'); var gobutton = "button2505"; var gobutton2 = "button_mobil"; var gobuttonski = "button2"; var gobuttonski2 = "button_mobil2"; var pocet2505 = $("#quntity-input2505").val(); /************************/ if (detectbutton === gobutton) { //kosikdesktop /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2505, success: function(data) { var trigger = $('#button'), container = $('#ajaxbox'); containercontent = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); /*container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter');*/ $("#ajaxbox").addClass("visible"); containercontent.load('moduly/ajax/kosikbasicajax.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else if (detectbutton === gobutton2) { //kosikmobil /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2505, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else { /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2505, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); } } function homestatus2504 () { var produkt = $("#produkt2504").val(); var konfiguratortype = $("#konfiguratortype").val(); var velkost = $(".velkost:checked").val(); var velkost2 = $(".velkost2:checked").val(); var akcia = $("#akcia2504").val(); var detectbutton = $(document.activeElement).attr('id'); var gobutton = "button2504"; var gobutton2 = "button_mobil"; var gobuttonski = "button2"; var gobuttonski2 = "button_mobil2"; var pocet2504 = $("#quntity-input2504").val(); /************************/ if (detectbutton === gobutton) { //kosikdesktop /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2504, success: function(data) { var trigger = $('#button'), container = $('#ajaxbox'); containercontent = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); /*container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter');*/ $("#ajaxbox").addClass("visible"); containercontent.load('moduly/ajax/kosikbasicajax.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else if (detectbutton === gobutton2) { //kosikmobil /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2504, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else { /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2504, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); } } function homestatus2503 () { var produkt = $("#produkt2503").val(); var konfiguratortype = $("#konfiguratortype").val(); var velkost = $(".velkost:checked").val(); var velkost2 = $(".velkost2:checked").val(); var akcia = $("#akcia2503").val(); var detectbutton = $(document.activeElement).attr('id'); var gobutton = "button2503"; var gobutton2 = "button_mobil"; var gobuttonski = "button2"; var gobuttonski2 = "button_mobil2"; var pocet2503 = $("#quntity-input2503").val(); /************************/ if (detectbutton === gobutton) { //kosikdesktop /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2503, success: function(data) { var trigger = $('#button'), container = $('#ajaxbox'); containercontent = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); /*container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter');*/ $("#ajaxbox").addClass("visible"); containercontent.load('moduly/ajax/kosikbasicajax.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else if (detectbutton === gobutton2) { //kosikmobil /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2503, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else { /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2503, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); } } function homestatus2502 () { var produkt = $("#produkt2502").val(); var konfiguratortype = $("#konfiguratortype").val(); var velkost = $(".velkost:checked").val(); var velkost2 = $(".velkost2:checked").val(); var akcia = $("#akcia2502").val(); var detectbutton = $(document.activeElement).attr('id'); var gobutton = "button2502"; var gobutton2 = "button_mobil"; var gobuttonski = "button2"; var gobuttonski2 = "button_mobil2"; var pocet2502 = $("#quntity-input2502").val(); /************************/ if (detectbutton === gobutton) { //kosikdesktop /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2502, success: function(data) { var trigger = $('#button'), container = $('#ajaxbox'); containercontent = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); /*container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter');*/ $("#ajaxbox").addClass("visible"); containercontent.load('moduly/ajax/kosikbasicajax.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else if (detectbutton === gobutton2) { //kosikmobil /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2502, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else { /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2502, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); } } function homestatus2500 () { var produkt = $("#produkt2500").val(); var konfiguratortype = $("#konfiguratortype").val(); var velkost = $(".velkost:checked").val(); var velkost2 = $(".velkost2:checked").val(); var akcia = $("#akcia2500").val(); var detectbutton = $(document.activeElement).attr('id'); var gobutton = "button2500"; var gobutton2 = "button_mobil"; var gobuttonski = "button2"; var gobuttonski2 = "button_mobil2"; var pocet2500 = $("#quntity-input2500").val(); /************************/ if (detectbutton === gobutton) { //kosikdesktop /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2500, success: function(data) { var trigger = $('#button'), container = $('#ajaxbox'); containercontent = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); /*container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter');*/ $("#ajaxbox").addClass("visible"); containercontent.load('moduly/ajax/kosikbasicajax.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else if (detectbutton === gobutton2) { //kosikmobil /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2500, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else { /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2500, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); } } function homestatus2497 () { var produkt = $("#produkt2497").val(); var konfiguratortype = $("#konfiguratortype").val(); var velkost = $(".velkost:checked").val(); var velkost2 = $(".velkost2:checked").val(); var akcia = $("#akcia2497").val(); var detectbutton = $(document.activeElement).attr('id'); var gobutton = "button2497"; var gobutton2 = "button_mobil"; var gobuttonski = "button2"; var gobuttonski2 = "button_mobil2"; var pocet2497 = $("#quntity-input2497").val(); /************************/ if (detectbutton === gobutton) { //kosikdesktop /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2497, success: function(data) { var trigger = $('#button'), container = $('#ajaxbox'); containercontent = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); /*container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter');*/ $("#ajaxbox").addClass("visible"); containercontent.load('moduly/ajax/kosikbasicajax.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else if (detectbutton === gobutton2) { //kosikmobil /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2497, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else { /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2497, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); } } function homestatus2496 () { var produkt = $("#produkt2496").val(); var konfiguratortype = $("#konfiguratortype").val(); var velkost = $(".velkost:checked").val(); var velkost2 = $(".velkost2:checked").val(); var akcia = $("#akcia2496").val(); var detectbutton = $(document.activeElement).attr('id'); var gobutton = "button2496"; var gobutton2 = "button_mobil"; var gobuttonski = "button2"; var gobuttonski2 = "button_mobil2"; var pocet2496 = $("#quntity-input2496").val(); /************************/ if (detectbutton === gobutton) { //kosikdesktop /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2496, success: function(data) { var trigger = $('#button'), container = $('#ajaxbox'); containercontent = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); /*container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter');*/ $("#ajaxbox").addClass("visible"); containercontent.load('moduly/ajax/kosikbasicajax.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else if (detectbutton === gobutton2) { //kosikmobil /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2496, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else { /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2496, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); } } function homestatus2495 () { var produkt = $("#produkt2495").val(); var konfiguratortype = $("#konfiguratortype").val(); var velkost = $(".velkost:checked").val(); var velkost2 = $(".velkost2:checked").val(); var akcia = $("#akcia2495").val(); var detectbutton = $(document.activeElement).attr('id'); var gobutton = "button2495"; var gobutton2 = "button_mobil"; var gobuttonski = "button2"; var gobuttonski2 = "button_mobil2"; var pocet2495 = $("#quntity-input2495").val(); /************************/ if (detectbutton === gobutton) { //kosikdesktop /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2495, success: function(data) { var trigger = $('#button'), container = $('#ajaxbox'); containercontent = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); /*container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter');*/ $("#ajaxbox").addClass("visible"); containercontent.load('moduly/ajax/kosikbasicajax.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else if (detectbutton === gobutton2) { //kosikmobil /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2495, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else { /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2495, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); } } function homestatus2494 () { var produkt = $("#produkt2494").val(); var konfiguratortype = $("#konfiguratortype").val(); var velkost = $(".velkost:checked").val(); var velkost2 = $(".velkost2:checked").val(); var akcia = $("#akcia2494").val(); var detectbutton = $(document.activeElement).attr('id'); var gobutton = "button2494"; var gobutton2 = "button_mobil"; var gobuttonski = "button2"; var gobuttonski2 = "button_mobil2"; var pocet2494 = $("#quntity-input2494").val(); /************************/ if (detectbutton === gobutton) { //kosikdesktop /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2494, success: function(data) { var trigger = $('#button'), container = $('#ajaxbox'); containercontent = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); /*container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter');*/ $("#ajaxbox").addClass("visible"); containercontent.load('moduly/ajax/kosikbasicajax.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else if (detectbutton === gobutton2) { //kosikmobil /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2494, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else { /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2494, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); } } function homestatus2493 () { var produkt = $("#produkt2493").val(); var konfiguratortype = $("#konfiguratortype").val(); var velkost = $(".velkost:checked").val(); var velkost2 = $(".velkost2:checked").val(); var akcia = $("#akcia2493").val(); var detectbutton = $(document.activeElement).attr('id'); var gobutton = "button2493"; var gobutton2 = "button_mobil"; var gobuttonski = "button2"; var gobuttonski2 = "button_mobil2"; var pocet2493 = $("#quntity-input2493").val(); /************************/ if (detectbutton === gobutton) { //kosikdesktop /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2493, success: function(data) { var trigger = $('#button'), container = $('#ajaxbox'); containercontent = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); /*container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter');*/ $("#ajaxbox").addClass("visible"); containercontent.load('moduly/ajax/kosikbasicajax.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else if (detectbutton === gobutton2) { //kosikmobil /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2493, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else { /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet2493, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); } } function homestatus () { var produkt = $("#produkt").val(); var konfiguratortype = $("#konfiguratortype").val(); var velkost = $(".velkost:checked").val(); var velkost2 = $(".velkost2:checked").val(); var akcia = $("#akcia").val(); var detectbutton = $(document.activeElement).attr('id'); var gobutton = "button"; var gobutton2 = "button_mobil"; var gobuttonski = "button2"; var gobuttonski2 = "button_mobil2"; var pocet = $("#quntity-input").val(); /************************/ if (detectbutton === gobutton) { //kosikdesktop /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet, success: function(data) { var trigger = $('#button'), container = $('#ajaxbox'); containercontent = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); /*container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter');*/ $("#ajaxbox").addClass("visible"); containercontent.load('moduly/ajax/kosikbasicajax.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else if (detectbutton === gobutton2) { //kosikmobil /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); /************************/ } else { /************************/ $.ajax({ type: "POST", url: "moduly/ajax/insert.php", /*data: "toid="+content+"&produkt="+ produkt,*/ data: "produkt="+ produkt+"&velkost="+ velkost+"&akcia="+ akcia+"&velkost2="+ velkost2+"&pocet="+ pocet, success: function(data) { var trigger = $('#button'), container = $('#content'); kosikbox = $('#kosikbox'); kosikbox2 = $('#kosikbox2'); var trigger_mobil = $('#button_mobil'), container_mobil = $('#content_mobil'); kosikbox_mobil = $('#kosikbox_mobil'); container.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); kosikbox2.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); container_mobil.load('moduly/ajax/kosik.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter&nopixel=1'); kosikbox_mobil.load('moduly/ajax/kosikbox.php?fullurl=https://www.aolej.sk/kategoria/3/9/26/mann-filter'); $("html, body").animate({ scrollTop: 0 }, "slow"); $("#priehladnost").addClass("pridatpriehladnost"); $(".ajaxchange").addClass("ajaxchange2"); $(".ajaxchange_mobil").addClass("ajaxchange2_mobil"); setTimeout(function(){ $('#content').removeClass('ajaxchange2'); $('#content_mobil').removeClass('ajaxchange2_mobil'); $('#priehladnost').removeClass('pridatpriehladnost'); }, 6000) } }); } }