diff --git a/src/app/frontend/controllers/PageController.php b/src/app/frontend/controllers/PageController.php index 2d17c73..430e8d7 100644 --- a/src/app/frontend/controllers/PageController.php +++ b/src/app/frontend/controllers/PageController.php @@ -1560,6 +1560,12 @@ public function aboutengAction(){ $this->view->setMainView('about_eng'); } + public function syngenta_uaAction(){ + $this->view->setMainView('syngenta'); + } + public function syngenta_ruAction(){ + $this->view->setMainView('syngenta_ru'); + } public function please_returnAction() { diff --git a/src/app/frontend/views/syngenta.php b/src/app/frontend/views/syngenta.php new file mode 100644 index 0000000..7da6f5c --- /dev/null +++ b/src/app/frontend/views/syngenta.php @@ -0,0 +1,490 @@ +session->get('in_cart', []); ?> + + + + + + + ТМ «Професійне насіння» | Інтернет магазин насіння Semena.in.ua + + + + + + + + + + + +partial('partial/popupCart') ?> + + + +
+
+
+
+ Комплекси препаратів для захисту рослин
зі знижкою - 5% +
+
+
+
+
+ Компанія Syngenta і ТМ «Професійне насіння» пропонують продукти для комплексних рішень, що допоможуть надійнио захистити Ваш урожай. + Оригінальні препарати від виробника – гарантія якості, ефктивності та швидкого результату. +


+
+ Комплексні рішення – це економія коштів.
Ви заощаджуєте 5%, купуючи комплекти препаратів. +
+
+
+
+
+
+
+ Комплект Селест Топ + Ридоміл Голд +
Надійний захист картоплі
+
+ + + +
+ + Препарати Селест Топ об’ємом 100 мл та Ридоміл Голд об’ємом 50 г
(6 пакетів) зі знижкою 5 %. +

+ + + +
+
Бонус: кожен покупець безкоштовно отримає каталог.
+
576,7 грн 607 грн
+ + +
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+ Комплект Енжіо + Квадріс +
Гарантована охорона овочевих культур
+
+ + + +
+ + Препарати Енжіо об’ємом 100 мл та Квадріс об’ємом 300 мл
зі знижкою 5 %. +
+ Ви можете захистити до 50 соток овочів! +

+ +
+
Бонус: кожен покупець безкоштовно отримає каталог.

+
974,7 грн 1026 грн
+ +
+ +
+
+
+
+
+
+
+
+ Комплект Дуал Голд + Енжіо +
Урожай капусти під професійним захистом
+
+ + + +
+ + Препарати Дуал Голд об’ємом 300 мл та Енжіо об’ємом 100мл
зі знижкою 5 %. +
+

+ +
+
Бонус: кожен покупець безкоштовно отримає каталог.

+
606,6 грн 638,5 грн
+ +
+
+ +
+ +
+
+
+
+
Отримайте ефективну
технологію використання в один клік!
+
Зазначте комплекс, який Вас зацікавив найбільше
та отримайте ефективну технологію застосування.
+

+
+ + +
+ + + +
+ + + + + + + + +
+
Вкажіть електронну адресу для отримання статті з технологією.
+
+
+ + + +
+
+ +
+ +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/app/frontend/views/syngenta_ru.php b/src/app/frontend/views/syngenta_ru.php new file mode 100644 index 0000000..d94cc4a --- /dev/null +++ b/src/app/frontend/views/syngenta_ru.php @@ -0,0 +1,460 @@ +session->get('in_cart', []); ?> + + + + + + + ТМ «Професійне насіння» | Інтернет магазин насіння Semena.in.ua + + + + + + + + + + + +partial('partial/popupCart') ?> + + + +
+
+
+
+ Комплекты препаратов для защиты растений
со скидкой - 5% +
+
+
+
+
+ Компания Syngenta и ТМ «Професійне насіння» предлагают продукты для комплексных решений, которые помогут надежно защитить Ваш урожай. Оригинальные препараты от производителя - гарантия качества, эффективности и быстрого результата!


+
+ Комплексные решения - это экономия средств.
Вы экономите 5% при покупке комплекта препаратов. +
+
+
+
+
+
+
+ Комплект Селест Топ + Ридомил Голд +
Надежная защита картофеля
+
+ + + +
+ + Препараты Селест Топ объемом 100 мл и Ридомил Голд объемом 50 г
(6 пакетов) со скидкой 5 %. +

+ + + +
+
Бонус: каждый покупатель бесплатно получит каталог.

+
576,7 грн 607 грн
+ + + +
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+ Комплект Энжио + Квадрис +
Гарантированная охрана овощных культур
+
+ + + +
+ + Препараты Энжио объемом 100 мл и Квадрис объемом 300 мл
со скидкой 5%. +
+ Вы можете защитить до 50 соток овощей! +

+ +
+
Бонус: каждый покупатель бесплатно получит каталог.

+
974,7 грн 1026 грн
+ +
+ +
+
+
+
+
+
+
+
+ Комплект Дуал Голд + Энжио +
Урожай капусты под профессиональной защитой
+
+ + + +
+ Препараты Дуал Голд объемом 300 мл и Энжио объемом 100 мл +
со скидкой 5 %. +
+

+ +
+
Бонус: каждый покупатель бесплатно получит каталог.

+
606,6 грн 638,5 грн
+
+
+ +
+ +
+
+
+
+
Получите эффективную
технологию использования в один клик!
+
Укажите комплекс, который вас заинтересовал
и получите эффективную технологию применения.
+

+
+ + +
+ + + +
+ + + + + + + + +
+
Введите адрес электронной почты для получения статьи с технологией.
+
+
+ + + +
+
+ +
+ +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/www/css/landing_pages/syngenta.css b/www/css/landing_pages/syngenta.css new file mode 100644 index 0000000..b3874d7 --- /dev/null +++ b/www/css/landing_pages/syngenta.css @@ -0,0 +1,343 @@ +@font-face {font-family: Lato; font-weight: 900; font-style:normal; src: url(/fonts/Lato-Black.ttf);} +@font-face {font-family: Lato; font-weight: 900; font-style:italic; src: url(/fonts/Lato-BlackItalic.ttf);} +@font-face {font-family: Lato; font-weight: 700; font-style:normal; src: url(/fonts/Lato-Bold.ttf);} +@font-face {font-family: Lato; font-weight: 700; font-style:italic; src: url(/fonts/Lato-BoldItalic.ttf);} +@font-face {font-family: Lato; font-weight: 400; font-style:normal; src: url(/fonts/Lato-Regular.ttf);} +@font-face {font-family: Lato; font-weight: 400; font-style:italic; src: url(/fonts/Lato-Italic.ttf);} +@font-face {font-family: Lato; font-weight: 300; font-style:normal; src: url(/fonts/Lato-Light.ttf);} +@font-face {font-family: Lato; font-weight: 300; font-style:italic; src: url(/fonts/Lato-LightItalic.ttf);} +@font-face {font-family: Lato-SemiboldItalic; font-weight: 100; font-style:italic; src: url(/fonts/Lato-SemiboldItalic.ttf);} +@font-face {font-family: Lato; font-weight: 100; font-style:normal; src: url(/fonts/Lato-Thin.ttf);} +@font-face {font-family: Lato; font-weight: 100; font-style:italic; src: url(/fonts/Lato-ThinItalic.ttf);} +@font-face {font-family: HelveticaNeue; font-weight: 400; font-style:normal; src: url(/fonts/Helultra.otf);} +@font-face {font-family: HelveticaNeue; font-weight: 100; font-style:normal; src: url(/fonts/HelultraLite.otf);} +@font-face {font-family: HelveticaNeue; font-weight: 300; font-style:normal; src: url(/fonts/HelultraThin.otf);} + +*{font-family: HelveticaNeue ;} +*{ + color: #58595b; +} +#block_1{ + background-image: url(/images/landings/syngenta/foto_rozdil_1.jpg); + background-size: cover; + background-position: center; + color: rgb(255, 255, 255); + padding: 100px 0; +} +.white_line{ + background-color: rgba(255, 255, 255, 0.33); + height: 13px; +} +.grean_line{ + background-color:rgba(88, 116, 44, 0.76); + padding: 24px 15px; + +} +div#block_2 {padding: 56px 15px;} +#prod_1{ + border-top:#7b9159 7px solid; + background-color: #eaf9f9; +} +.product_line{ + padding: 50px 0; + +} +.carousel.slide { + min-height: 235px; +} +#prod_1 button, #prod_1 .carousel-indicators li.active{ + border-color:#680518; + background-color: #680518; +} +#prod_1 .color_prod,#prod_1 ul li,#prod_1 button:hover{ + color: #680518; +} +#prod_2 button, #prod_2 .carousel-indicators li.active{ + border-color:#1a469b; + background-color: #1a469b; +} +#prod_2 .color_prod,#prod_2.product_line li,#prod_2 button:hover{ + color: #1a469b; +} +#prod_2 .carousel.slide, #prod_3 .carousel.slide { + min-height: 325px; +} +#prod_3 button, #prod_3 .carousel-indicators li.active{ + border-color:#f7931e; + background-color: #f7931e; +} +#prod_3 .color_prod,#prod_3.product_line li,#prod_3 button:hover{ + color: #f7931e; +} +#prod_3{ + background-color: #f7f7f7; +} + + +.carousel-indicators li { + background-color: #a7a9ac; +} + + +.product_line button{ + border-width: 1px; + border-style: solid; + border-radius: 20px; + padding: 3px 40px; + color: #fff; + font-size: 20px; +} +.product_line button:hover{ + background: none!important; + cursor: pointer; +} +.sub_name { + margin-top: 12px; +} +.product_line img{ + max-width: 100%; +} +.product_line ul { + list-style-type: square; +} + +#big_form .h3{ + font-family: "HelveticaNeue"; + color: rgb(88, 116, 44); + line-height: 1.389; + text-transform: uppercase;text-align: center; + margin-bottom: 20px; +} +#form{ + background-image: url(/images/landings/syngenta/foto_rozdil_7.png); + background-size: cover; + background-position: center; + padding: 80px 0; + margin-top: 60px; + + +} +#big_form{ + padding: 50px 0 20px 0; + +} +input[type="text"], input[type="email"], input[type="submit"] { + background-color: #ffffff; + border: #ffffff 1px solid; + border-radius: 20px; + padding: 5px 20px; + outline: none; + margin: 10px 15px; +} +input[type="submit"] { + background-color: #f7931e; + border: #f7931e 1px solid; + border-radius: 20px; + padding: 5px 35px; + outline: none; + color: #fff; +} +input[type="submit"]:hover { + border: #ffffff 1px solid; + cursor: pointer; +} + +input[type="text"]:focus, input[type="email"]:focus { + background: none; + color: #fff; +} +input[type="checkbox"] { + display: none; +} +#big_form label { + padding-left: 52px; + background-repeat: no-repeat; + background-image: url(/images/landings/syngenta/2.svg); + display: block !important; + text-align: left; + max-width: 379px; + margin: 19px auto; + background-size: 40px; + background-position-y: 7px; +} +#big_form label:hover,#big_form label.check{ + background-image: url(/images/landings/syngenta/1.svg); + cursor: pointer; +} + +/**********************basket**********************/ +.w25{width:25px;} +.w30{width:30px;} +.w35{width:35px;} +.w66{width:66px;} +.w75{width:75px;} +.w82{width:82px;} +.w85{width:85px;} +.w90{width:90px;} +.w100{width:100px;} +.w120{width:120px;} +.w147{width:147px;} +.w170{width:170px;} +.w184{width:184px;} +.w199{width:199px;} +.w200{width:200px;} +.w205{width:205px;} +.w210{width:210px;} +.w232{width:232.5px;} +.bold18{font-size:18px;font-weight:bold;} +input[type="number"]{ + background-color: #f5f5f5; + border: 0; + width: 29px; + height: 18px; + padding: 4px 6px; + border: 1px solid #e0e0e0; + border-radius: 4px; + text-align:center; + -moz-box-shadow:inset 2px 2px 8px #dfdfdf; + -webkit-box-shadow:inset 2px 2px 8px #dfdfdf; + box-shadow:inset 2px 2px 8px #dfdfdf; +} +.clear{clear:both;} +.popup{ + font-family: Calibri, Tahoma, Arial, sans-serif; + background-color: #d9dade; + color: #333333; + position:fixed; + z-index:99999; + width:100%; + height:100%; + background-color:rgba(0,0,0,0.7); +} +.popup_window{ + background-color:white; + z-index:9999; + margin-left:auto; + margin-right:auto; + min-width:300px; + text-align:center; + margin-top:7%; + max-height:530px; + position:relative; + -moz-box-shadow: 0px 0px 16px rgba(0,0,0,0.7); + -webkit-box-shadow: 0px 0px 16px rgba(0,0,0,0.7); + box-shadow: 0px 0px 16px rgba(0,0,0,0.7); +} +.popup_close_button{ + width:40px; + height:40px; + position:absolute; + top:0; + right:0; + background:#f5f5f5 url("../../images/close.png") center center no-repeat; + cursor:pointer; +} +.popup_window_content{padding:40px;} +.summary_price{background-color:#f5f5f5;width:100%;text-align:right;color:#5c5c5c;font-weight:bold;font-family:Calibri;padding-top:9px;padding-bottom:12px;} +.summary_price .price{font-weight:normal;font-size:16px;} +.summary_price span{font-weight:bold;font-size:22px;} +.summary_price .text{font-size:16px;padding-right:75px;} +.popup_footer{text-align:right;margin-top:42px;margin-bottom:-7px;} +.green_but2{background-color:#4fa32c;color:#ffffff;border-radius:3px;font-weight:bold;text-decoration:none;font-size:13px;font-family:Calibri;padding:5px 13px 8px 13px;} +.popup_window a{display:inline;} +.cont_shop_but, #help{font-size:13px;color:#555555;padding-right:25px;padding-left:25px;} + +h4{font-size:24px;color:#464646;text-align:left;margin:0;padding:0;} +.basket_block_header{display:table;border-bottom: 1px solid #cdcdcd;line-height:1;} +.basket_block_header div{ + display:table-cell; + vertical-align:bottom; + font-size:16px; + font-weight:bold; + font-family:Calibri; + color:#7d7d7d; + padding: 15px 20px 12px; +} +.basket_block_content{max-height:270px; width: 940px} +.basket_block_content.overflow{overflow-y:auto;} +.basket_element_name{ + display:table-cell; + vertical-align:middle; + width:300px; + text-align:left; + padding: 15px 10px 15px 15px; +} +.basket_element{border-bottom:1px solid #cdcdcd;padding-left:5px;} +.basket_element:last-child{border:none;} +.picture_element{float:left;-moz-box-shadow: 0px 0px 5px rgba(0,0,0,0.7); + -webkit-box-shadow: 0px 0px 5px rgba(0,0,0,0.7); + box-shadow: 0px 0px 5px rgba(0,0,0,0.7); + margin-right: 15px; +} +.title_element{font-weight:bold;font-size:18px;padding:15px;line-height: 1;} +.title_element .subtitle_element{font-size:13px;font-weight:normal;margin-top:8px;opacity:0;} +.basket_element_prepack{display:table-cell;vertical-align:middle;width: 195px;padding-right: 18px;position:relative;} +.basket_element_priceone{display:table-cell;vertical-align:middle;padding-right: 25px;} +.basket_element_pricenum{display:table-cell;vertical-align:middle;padding-right: 20px;padding-left: 10px;} +.basket_element_priceall{display:table-cell;vertical-align:middle;padding-left: 30px;} +.basket_element_delete{ display:table-cell;vertical-align:middle;padding-left: 12px;} +.basket_element_delete a{ + background:url("../../images/delete_grey.png"); + display:table-cell; + vertical-align:middle; + width:16px; + height:16px; + cursor:pointer; +} +.basket_element_delete a:hover{background:url("../../images/delete.png");} +.basket_element_priceone .price span{font-size:22px;} +.basket_element_priceall .price span{font-size:22px;} +.del_but_right{margin-right: -33px;float: right;} +.prepacks_table{display:table; vertical-align:bottom;} +.prepacks_table_cell{ + display:table-cell; + line-height:0.9; + font-size:11px; + width:20px; + vertical-align:bottom; + padding:3px; +} +.prepacks_table_cell_elem{ + border:1px solid #e0e0e0; + padding-left:5px; + padding-right:5px; + padding-bottom:3px; + cursor:pointer; + color:#5c5c5c; +} +.prepacks_table_cell_elem:before{content:'';border:1px solid #e0e0e0;width:15px;height:1px;display: -webkit-inline-box;border-radius:1px;} +.prepacks_table_cell_elem.min{width:17px;padding-top:2px;} +.prepacks_table_cell_elem.two{width:22px;padding-top:4px;} +.prepacks_table_cell_elem.premax{width:23px;padding-top:4px;} +.prepacks_table_cell_elem.max{width:27px;padding-top:4px;} +.prepacks_table_cell_elem.min:before{margin-bottom: 3px;} +.prepacks_table_cell_elem.two:before{margin-bottom: 6px;} +.prepacks_table_cell_elem.premax:before{margin-bottom: 10px;} +.prepacks_table_cell_elem.max:before{margin-bottom: 5px;} +.prepacks_table_cell_elem.actived{border:1px solid #4fa32c;} +.prepacks_table_cell_elem.actived:before{border:1px solid #4fa32c;} +.align_bottom {position: relative;} +.items .one_item .one_item_buttons a{display:inline;margin:3px;} +.items .one_item .one_item_buttons, .compare_items_table .compare_one_item .one_item_buttons +{width: 120%;margin-top: 15px;margin-bottom: 15px;margin-left: -10px;} +/**********************basket**********************/ + + +/*footer*/ + +.panel-footer{background-color:#67b73e !important;color:#fff;padding:40px 0 !important;} +.footer_table span{border-right:1px #fff solid;padding:0 27px 0 41px;float:left;color:#fff} +.footer_table{overflow:hidden;color:#fff} +.panel-footer .container{color:#fff} +.soc_link a{width:50px;height:50px;background-size:50px 50px;display:inline-block;margin:0 8px} +.soc_link .vk{background-image:url(/images/basket/vk_1.png)} +.soc_link .vk:hover{background-image:url(/images/basket/vk.png)} +.soc_link .yt{background-image:url(/images/basket/YouTube_1.png)} +.soc_link .yt:hover{background-image:url(/images/basket/YouTube.png)} +.soc_link .fb{background-image:url(/images/basket/facebook_1.png)} +.soc_link .fb:hover{background-image:url(/images/basket/facebook.png)} +.carousel-control.right{background-image:url(/images/basket/right.png) !important;background-position:center;background-repeat:no-repeat !important;} +.carousel-control.left{background-image:url(/images/basket/left.png) !important;background-position:center;background-repeat:no-repeat !important;} +.carousel-control.right:hover{background-image:url(/images/basket/right_hover.png) !important;} +.carousel-control.left:hover{background-image:url(/images/basket/left_hover.png) !important;} +/*footer*/ \ No newline at end of file diff --git a/www/fonts/Helultra.otf b/www/fonts/Helultra.otf new file mode 100644 index 0000000..8757e18 Binary files /dev/null and b/www/fonts/Helultra.otf differ diff --git a/www/fonts/HelultraLite.otf b/www/fonts/HelultraLite.otf new file mode 100644 index 0000000..39ea0fd Binary files /dev/null and b/www/fonts/HelultraLite.otf differ diff --git a/www/fonts/HelultraThin.otf b/www/fonts/HelultraThin.otf new file mode 100644 index 0000000..b1fbf23 Binary files /dev/null and b/www/fonts/HelultraThin.otf differ diff --git a/www/images/landings/syngenta/1.svg b/www/images/landings/syngenta/1.svg new file mode 100644 index 0000000..19ffd02 --- /dev/null +++ b/www/images/landings/syngenta/1.svg @@ -0,0 +1,10 @@ + + + + + + + + + diff --git a/www/images/landings/syngenta/2.svg b/www/images/landings/syngenta/2.svg new file mode 100644 index 0000000..497ee4f --- /dev/null +++ b/www/images/landings/syngenta/2.svg @@ -0,0 +1,9 @@ + + + + + + + + diff --git a/www/images/landings/syngenta/foto_1.png b/www/images/landings/syngenta/foto_1.png new file mode 100644 index 0000000..ae9e741 Binary files /dev/null and b/www/images/landings/syngenta/foto_1.png differ diff --git a/www/images/landings/syngenta/foto_2.jpg b/www/images/landings/syngenta/foto_2.jpg new file mode 100644 index 0000000..c75e66a Binary files /dev/null and b/www/images/landings/syngenta/foto_2.jpg differ diff --git a/www/images/landings/syngenta/foto_3.png b/www/images/landings/syngenta/foto_3.png new file mode 100644 index 0000000..af9c584 Binary files /dev/null and b/www/images/landings/syngenta/foto_3.png differ diff --git a/www/images/landings/syngenta/foto_rozdil_1.jpg b/www/images/landings/syngenta/foto_rozdil_1.jpg new file mode 100644 index 0000000..f8974ff Binary files /dev/null and b/www/images/landings/syngenta/foto_rozdil_1.jpg differ diff --git a/www/images/landings/syngenta/foto_rozdil_7.png b/www/images/landings/syngenta/foto_rozdil_7.png new file mode 100644 index 0000000..dc9ff63 Binary files /dev/null and b/www/images/landings/syngenta/foto_rozdil_7.png differ diff --git a/www/index.php b/www/index.php index 1c072ef..7103e04 100644 --- a/www/index.php +++ b/www/index.php @@ -1823,6 +1823,22 @@ try 'action' => 'basket_ru',] ) ->setName( 'basket_ru' ); + + + + + $router->add + ('/dobriva_ta_zasobi_zakhistu_1c0/komplekti_1c1', + ['controller' => 'page', + 'action' => 'syngenta_ua',] + ) + ->setName( 'syngenta_ua' ); + $router->add + ('/udobrenija_i_sredstva_zashchity_1c_20/komplekti_1c_21/ru', + ['controller' => 'page', + 'action' => 'syngenta_ru',] + ) + ->setName( 'syngenta_ru' ); return $router; }, true ); diff --git a/www/js/main.js b/www/js/main.js index 4cbfc37..4ffe1cd 100644 --- a/www/js/main.js +++ b/www/js/main.js @@ -509,58 +509,60 @@ $(document).ready(function() { /////////////////////////////////////////////////////////////////////// checkTotalPeice(); - $('#layerslider').layerSlider({ - - autoStart : true, - responsive : true, - responsiveUnder : 0, - sublayerContainer : 0, - firstLayer : 1, - twoWaySlideshow : false, - randomSlideshow : false, - keybNav : true, - touchNav : true, - imgPreload : false, - navPrevNext : true, - navStartStop : false, - navButtons : true, - thumbnailNavigation : 'disabled', - tnWidth : 100, - tnHeight : 60, - tnContainerWidth : '60%', - tnActiveOpacity : 35, - tnInactiveOpacity : 100, - hoverPrevNext : true, - hoverBottomNav : false, - skin : 'default', - skinsPath : '/layerslider/skins/', - pauseOnHover : true, - globalBGColor : 'transparent', - globalBGImage : false, - animateFirstLayer : false, - yourLogo : false, - yourLogoStyle : 'position: absolute; z-index: 1001; left: 10px; top: 10px;', - yourLogoLink : false, - yourLogoTarget : '_blank', - loops : 0, - forceLoopNum : true, - autoPlayVideos : true, - autoPauseSlideshow : 'auto', - youtubePreview : 'maxresdefault.jpg', - showBarTimer : false, - showCircleTimer : true, - - // you can change this settings separately by layers or sublayers with using html style attribute - - slideDirection : 'right', - slideDelay : 10000, - durationIn : 'bottom', - durationOut : 'fade', - easingIn : 'easeOutQuart', - easingOut : 'easeInBack', - delayIn : 0, - delayOut : 0 - }); + if($("div").is("#layerslider")) { + $('#layerslider').layerSlider({ + + autoStart: true, + responsive: true, + responsiveUnder: 0, + sublayerContainer: 0, + firstLayer: 1, + twoWaySlideshow: false, + randomSlideshow: false, + keybNav: true, + touchNav: true, + imgPreload: false, + navPrevNext: true, + navStartStop: false, + navButtons: true, + thumbnailNavigation: 'disabled', + tnWidth: 100, + tnHeight: 60, + tnContainerWidth: '60%', + tnActiveOpacity: 35, + tnInactiveOpacity: 100, + hoverPrevNext: true, + hoverBottomNav: false, + skin: 'default', + skinsPath: '/layerslider/skins/', + pauseOnHover: true, + globalBGColor: 'transparent', + globalBGImage: false, + animateFirstLayer: false, + yourLogo: false, + yourLogoStyle: 'position: absolute; z-index: 1001; left: 10px; top: 10px;', + yourLogoLink: false, + yourLogoTarget: '_blank', + loops: 0, + forceLoopNum: true, + autoPlayVideos: true, + autoPauseSlideshow: 'auto', + youtubePreview: 'maxresdefault.jpg', + showBarTimer: false, + showCircleTimer: true, + + // you can change this settings separately by layers or sublayers with using html style attribute + + slideDirection: 'right', + slideDelay: 10000, + durationIn: 'bottom', + durationOut: 'fade', + easingIn: 'easeOutQuart', + easingOut: 'easeInBack', + delayIn: 0, + delayOut: 0 + }); + } /////////////////////////////////////////////////////////////////////// diff --git a/www/js/main.min.js b/www/js/main.min.js index 8235f33..67efc7d 100644 --- a/www/js/main.min.js +++ b/www/js/main.min.js @@ -1 +1 @@ -function dialogue(a,b){a=$("
",{"class":"dialogue clearfix"}).append(a);$.iLightBox([{URL:a,type:"html",title:(b)?b:null}],{skin:"light ilightbox-dialogue",minScale:1,innerToolbar:true,overlay:{blur:false},controls:{fullscreen:false},callback:{onRender:function(c){$(".btn",c.currentElement).click(function(){$(".btn",c.currentElement).unbind("click");c.hide()})},onShow:function(c){$(".btn-primary",c.currentElement).focus()}}})}function videoConfirm(c){var b=$("
",{html:''}),a=$("
';var D='
Оптовий Склад

м.Київ, вул.Віскозна 17/а

(044)454 12 15,
зворотній зв\'язок
';var r=new google.maps.InfoWindow({content:E});var H=new google.maps.InfoWindow({content:D});google.maps.event.addListener(u,"click",function(){r.open(G,u)});google.maps.event.addListener(t,"click",function(){H.open(F,t)})}window.onload=function(){if(document.getElementById("google-map-contacts1")){q("google-map-contacts1");b("google-map-contacts2")}}}(function(){if(window.pluso){if(typeof window.pluso.start=="function"){return}}if(window.ifpluso==undefined){window.ifpluso=1;var v=document,t=v.createElement("script"),u="getElementsByTagName";t.type="text/javascript";t.charset="UTF-8";t.async=true;t.src=("https:"==window.location.protocol?"https":"http")+"://share.pluso.ru/pluso-like.js";var r=v[u]("body")[0];r.appendChild(t)}})();!function(u,v,s,r){var t=u.createElement("script");t.src="http://connect.ok.ru/connect.js";t.onload=t.onreadystatechange=function(){if(!this.readyState||this.readyState=="loaded"||this.readyState=="complete"){if(!this.executed){this.executed=true;setTimeout(function(){OK.CONNECT.insertShareWidget(v,s,r)},0)}}};u.documentElement.appendChild(t)}(document,"ok_shareWidget","","{width:145,height:30,st:'straight',sz:20,ck:1}");(function(v,r,w){var u,t=v.getElementsByTagName(r)[0];if(v.getElementById(w)){return}u=v.createElement(r);u.id=w;u.src="//connect.facebook.net/ru_RU/all.js#xfbml=1";t.parentNode.insertBefore(u,t)}(document,"script","facebook-jssdk"));function l(v,s){var y=v.offset().left;var u=40;var x=y+u;var w=s.offset().left;var r=40;var t=w+r;if(xt){return false}return true}var m=parseInt($("#price_to").val());var k=parseInt($("#price_from").val());$("#slider").slider({range:true,min:0,max:parseInt($(".max_price").val()),values:[k,m],slide:function(r,s){$(".ui-slider-handle:eq(0) .price-range-min").html(s.values[0]+"грн");$(".ui-slider-handle:eq(1) .price-range-max").html(s.values[1]+"грн");$("#price_from").val(s.values[0]);$("#price_to").val(s.values[1]);if(s.values[0]==s.values[1]){$(".price-range-both i").css("display","none")}else{$(".price-range-both i").css("display","inline")}change_price(s.values[0],s.values[1]);if(l($(".price-range-min"),$(".price-range-max"))==true){$(".price-range-min, .price-range-max").css("opacity","1");$(".price-range-both").css("display","block")}else{$(".price-range-min, .price-range-max").css("opacity","1");$(".price-range-both").css("display","none")}}});$(".ui-slider-handle:eq(0)").append(''+$("#slider").slider("values",0)+'грн');$(".ui-slider-handle:eq(1)").append(''+$("#slider").slider("values",1)+'грн');$("input#price_from").change(function(){var s=$("input#price_from").val();var r=$("input#price_to").val();if(parseInt(s)>parseInt(r)){s=r;$("input#price_from").val(s)}change_price(s,r);$("#slider").slider("values",0,s);$(".ui-slider-handle:eq(0) .price-range-min").html(s+"грн")});$("input#price_to").change(function(){var s=$("input#price_from").val();var r=$("input#price_to").val();if(parseInt(s)>parseInt(r)){r=s;$("input#price_to").val(r)}change_price(s,r);$("#slider").slider("values",1,r);$(".ui-slider-handle:eq(1) .price-range-max").html(r+"грн")});$("#subcategory_menu").on("click",".main",function(){if($(this).hasClass("subcategory_menu_closed")){$(this).removeClass("subcategory_menu_closed");$(this).parent().find("ul").removeClass("display_none")}else{if($(this).hasClass("subcategory_menu_price")){}else{$(this).addClass("subcategory_menu_closed");$(this).parent().find("ul").addClass("display_none")}}});$(".tabs").on("click","ul li",function(u){$(this).parent().parent().find("ul li").removeClass("previous");$(this).parent().find("li").removeClass("active_tab");if(!$(this).hasClass("active_tab")){$(this).parent().parent().find("ul li").addClass("not_active");$(this).addClass("active_tab");$(this).prev().addClass("previous")}if($(this).parent().hasClass("change_item_description")){u.preventDefault();var r=$(this).data("change_item_description");$(".item_menu_content .item_menu_content_wrapper").addClass("display_none");if($(".item_menu_content div").hasClass(r)){$(".item_menu_content div."+r).removeClass("display_none")}}else{if($(this).parent().hasClass("change_similar_items")){u.preventDefault();var v=$(this).find("a").data("change_similar_items");var t=$(this).find("a").data("catalog_id");var s=$(this).find("a").data("group_id");change_similar_items(t,s,v)}else{if($(this).parent().parent().hasClass("do_order")){if($(this).hasClass("new_customer")){$("div.new_customer").removeClass("display_none");$("div.registrated_customer").addClass("display_none")}else{$("div.registrated_customer").removeClass("display_none");$("div.new_customer").addClass("display_none")}}}}});$("body").on("click",".sort_price.last",function(r){if($(".sort_price_dropdown").hasClass("display_none")){$(".sort_price_dropdown").removeClass("display_none")}else{$(".sort_price_dropdown").addClass("display_none")}});$("#header_nav").on("click",".header_nav_catalog",function(r){r.preventDefault();if($("#content_subnav").hasClass("display_none")){$("#content_subnav").removeClass("display_none")}else{$("#content_subnav").addClass("display_none")}});if($.cookie("view")){if($.cookie("view")=="lists"){$("#content .subcategory").addClass("subcategory_list");$("#content div").removeClass("subcategory");$(".lists").addClass("active");$(".lists").parent().find(".thumbs").removeClass("active")}}$(".content_wrapper_header_menu").on("click",".thumbs",function(r){r.preventDefault();$.cookie("view","thumbs");$("#content .subcategory_list").addClass("subcategory");$("#content div").removeClass("subcategory_list");$(this).addClass("active");$(this).parent().find(".lists").removeClass("active")});$(".content_wrapper_header_menu").on("click",".lists",function(r){r.preventDefault();$.cookie("view","lists");$("#content .subcategory").addClass("subcategory_list");$("#content div").removeClass("subcategory");$(this).addClass("active");$(this).parent().find(".thumbs").removeClass("active")});function o(){$(".content_items").find(".content_arrow_right").each(function(){var s=$(this).parent().parent().parent().data("class");var v=parseInt($("."+s+" .page_number").text());var r=$(this).parent().find("span.max_page").text();var t=$(this).parent().parent().parent().data("news_id")?parseInt($(this).parent().parent().parent().data("news_id")):"0";if(v1){var t=u-1;$("."+r+" .page_number").text(t,r);change_items(t,r,s)}});$(".plus ").on("click",function(w){w.preventDefault();var v=parseInt($(this).parent().find(".count_input input").val())+1;var r=$(".item_id_for_basket").val();if(!r){r=$(".count_items").data("item_id")}change_count_basket(r,v);$(this).parent().find(".count_input input").val(v);if($(this).parent().hasClass("order_third_column")){var u=parseFloat($(this).parent().parent().find(".order_second_column").find("span").html());var t=u*v;if(t%1!==0){t=t.toFixed(1)}$(this).parent().parent().find(".order_fourth_column").find("span.price").html(t);var s=0;$(".order_second_column .price").each(function(){s=s+parseFloat($(this).parent().parent().find(".order_fourth_column").find("span.price").html());$(".order_last span.price").html(s.toFixed(1));n()})}});$(".minus ").on("click",function(x){x.preventDefault();var r=parseInt($(this).parent().find(".count_input input").val());var w=r-1;var s=$(this).parent().find(".count_input input").data("item_id");change_count_basket(s,w);if(r>1){$(this).parent().find(".count_input input").val(w);if($(this).parent().hasClass("order_third_column")){var v=parseFloat($(this).parent().parent().find(".order_second_column").find("span").html());var u=v*w;if(u%1!==0){u=u.toFixed(1)}$(this).parent().parent().find(".order_fourth_column").find("span.price").html(u);var t=0;$(".order_second_column .price").each(function(){t=t+parseFloat($(this).parent().parent().find(".order_fourth_column").find("span.price").html());$(".order_last span.price").html(t.toFixed(1));n()})}}});$(".count_input input").on("keyup",function(w){w.preventDefault();var v=$(this).val();var r=$(this).data("item_id");change_count_basket(r,v);if(v>1){if($(this).parent().parent().hasClass("order_third_column")){var u=parseFloat($(this).parent().parent().parent().find(".order_second_column").find("span").html());var t=u*v;if(t%1!==0){t=t.toFixed(1)}$(this).parent().parent().parent().find(".order_fourth_column").find("span.price").html(t);var s=0;$(".order_second_column .price").each(function(){s=s+parseFloat($(this).parent().parent().parent().find(".order_fourth_column").find("span.price").html());$(".order_last span.price").html(s.toFixed(1));n()})}}});function n(){var r=$("span[id=total_price_basket]").html();if(r>100){$(".min_price_message").css("display","none")}else{$(".min_price_message").css("display","block")}}$("#send_order").click(function(r){r.preventDefault();var s=$("span[id=total_price_basket]").html();console.log(s);if(s<100){h(" Мінімальна сума замовлення складає 100 гривень. Замовте ще!","Кошик",function(t){if(t){document.location="/"}})}else{$("form[name=order_add]").submit()}});$(".thumbnail").iLightBox({skin:"metro-black",path:"horizontal",maxScale:1.3,overlay:{opacity:0.8},styles:{nextOffsetX:75,nextOpacity:0.55,prevOffsetX:75,prevOpacity:0.55},thumbnails:{normalOpacity:0.9,activeOpacity:1},controls:{thumbnail:1,arrows:1}});$(".item").on("click",".group_sizes",function(u){if($(this).hasClass("not_exist")){return false}u.preventDefault();var r=$(this).data("item_id");var t=$(this).data("catalog_id");var s=$(this).data("group_alias");$(this).parent().find("a.group_sizes").removeClass("active");$(this).addClass("active");$.ajax({url:"/change_with_size",data:{item_id:r,catalog_id:t,group_alias:s},type:"POST",dataType:"json",success:function(x){var w=x.html;$(".item_images .thumbnails").html(x.image);$(".presence_status").html(x.status);$(".properties_article").html(x.product_id);$(".colors").html(x.color);$(".change_with_size").html(w);$(".recommended_prices").remove();$("#firm").empty();$("#stock_availability").attr("src","/images/dost0.png");console.log(x.recommended_prices);if(x.recommended_prices){var v='";$(".packing").after(v);if(x.recommended_prices["firm"]){var y=''+x.recommended_prices["firm_product"]+'';$("#firm").html(y)}else{$("#firm").empty()}if(x.recommended_prices["stock_availability"]){$("#stock_availability").attr("src","/images/dost"+x.recommended_prices["stock_availability"]+".png")}else{$("#stock_availability").attr("src","/images/dost0.png")}}$(".thumbnail").iLightBox({skin:"metro-black",path:"horizontal",maxScale:1.3,overlay:{opacity:0.8},styles:{nextOffsetX:75,nextOpacity:0.55,prevOffsetX:75,prevOpacity:0.55},thumbnails:{normalOpacity:0.9,activeOpacity:1},controls:{thumbnail:1,arrows:1}});$("#show_confirm").click(function(B){var z=$("#stock").data("stock");console.log(z);B.preventDefault();if(!z){var A=$(".count_input .count_items").val();add_to_basket(r,A);j("Ви замовляєте товар, який на сьогоднішній день
відсутній на складі. Будь ласка,
узгодьте термін доставки даного товару.","Кошик",function(C){if(C){document.location="/basket"}})}else{var A=$(".count_input .count_items").val();add_to_basket(r,A);j("Ви додали товар до кошика","Кошик",function(C){if(C){document.location="/basket"}})}})},error:function(v){console.info(v.responseText)}})});$(".item").on("click",".change_with_color",function(w){w.preventDefault();var s=$(this).data("item_id");var y=$(this).data("type_id");var x=$(this).data("subtype_id");var v=$(this).data("group_id");var t=$(this).data("group_alias");var r=$(this).data("color_id");var u=$(".current_item_size").val();$(".change_with_color a").removeClass("active");$(".change_with_color a").css("border-color","#e2e2e2");$(this).find("a").addClass("active");$.ajax({url:"/change_with_color",data:{item_id:s,type_id:y,subtype_id:x,group_id:v,group_alias:t,color_id:r,current_item_size:u},type:"POST",dataType:"json",success:function(C){var B="";for(var A in C){B+='
ціна '+parseFloat(C[A]["price2"]).toFixed(2)+' грн
';for(var z in C[A]["filters"]){B+=''+C[A]["filters"][z]["value_value"]+""}B+="
";$(".item_images .thumbnails").html(C[A]["image"]);$(".presence_status").html(C[A]["status"]);$(".properties_article").html(C[A]["product_id"]);$(".colors").html(C[A]["color"]);$(".packing_images").html(C[A]["sizes"]);$(".item_properties").html(C[A]["properties"]);if($(".change_with_color a").hasClass("active")){$(".change_with_color a.active").css("border-color",C[A]["absolute_color"])}}$(".change_with_size").html(B);$(".thumbnail").iLightBox({skin:"metro-black",path:"horizontal",maxScale:1.3,overlay:{opacity:0.8},styles:{nextOffsetX:75,nextOpacity:0.55,prevOffsetX:75,prevOpacity:0.55},thumbnails:{normalOpacity:0.9,activeOpacity:1},controls:{thumbnail:1,arrows:1}});$("#show_confirm").click(function(F){var D=$("#stock").data("stock");console.log(D);F.preventDefault();if(!D){var E=$(".count_input .count_items").val();add_to_basket(s,E);j("Ви замовляєте товар, який на сьогоднішній день
відсутній на складі, будь ласка, після замовлення
узгодьте термін доставки товару.","Кошик",function(G){if(G){document.location="/basket"}})}else{var E=$(".count_input .count_items").val();add_to_basket(s,E);j("Ви додали товар до кошика","Кошик",function(G){if(G){document.location="/basket"}})}})},error:function(){console.info("error")}})});$("#profiler span.profiler-sql-show").on("click",function(r){r.preventDefault();if($("#profiler-sql").is(":visible")){$("#profiler-sql").hide()}else{$("#profiler-sql").show()}});function i(r,s){r=$("
",{"class":"dialogue clearfix"}).append(r);$.iLightBox([{URL:r,type:"html",title:(s)?s:null}],{skin:"light ilightbox-dialogue",minScale:1,innerToolbar:true,overlay:{blur:false},controls:{fullscreen:false},callback:{onRender:function(t){$(".btn",t.currentElement).click(function(){$(".btn",t.currentElement).unbind("click");t.hide()})},onShow:function(t){$(".btn-primary",t.currentElement).focus()}}})}function f(t){var s=$("
",{html:''}),r=$("
';var D='
Оптовий Склад

м.Київ, вул.Віскозна 17/а

(044)454 12 15,
';var r=new google.maps.InfoWindow({content:E});var H=new google.maps.InfoWindow({content:D});google.maps.event.addListener(u,"click",function(){r.open(G,u)});google.maps.event.addListener(t,"click",function(){H.open(F,t)})}window.onload=function(){if(document.getElementById("google-map-contacts1")){q("google-map-contacts1");b("google-map-contacts2")}}}(function(){if(window.pluso){if(typeof window.pluso.start=="function"){return}}if(window.ifpluso==undefined){window.ifpluso=1;var v=document,t=v.createElement("script"),u="getElementsByTagName";t.type="text/javascript";t.charset="UTF-8";t.async=true;t.src=("https:"==window.location.protocol?"https":"http")+"://share.pluso.ru/pluso-like.js";var r=v[u]("body")[0];r.appendChild(t)}})();!function(u,v,s,r){var t=u.createElement("script");t.src="http://connect.ok.ru/connect.js";t.onload=t.onreadystatechange=function(){if(!this.readyState||this.readyState=="loaded"||this.readyState=="complete"){if(!this.executed){this.executed=true;setTimeout(function(){OK.CONNECT.insertShareWidget(v,s,r)},0)}}};u.documentElement.appendChild(t)}(document,"ok_shareWidget","","{width:145,height:30,st:'straight',sz:20,ck:1}");(function(v,r,w){var u,t=v.getElementsByTagName(r)[0];if(v.getElementById(w)){return}u=v.createElement(r);u.id=w;u.src="//connect.facebook.net/ru_RU/all.js#xfbml=1";t.parentNode.insertBefore(u,t)}(document,"script","facebook-jssdk"));function l(v,s){var y=v.offset().left;var u=40;var x=y+u;var w=s.offset().left;var r=40;var t=w+r;if(xt){return false}return true}var m=parseInt($("#price_to").val());var k=parseInt($("#price_from").val());$("#slider").slider({range:true,min:0,max:parseInt($(".max_price").val()),values:[k,m],slide:function(r,s){$(".ui-slider-handle:eq(0) .price-range-min").html(s.values[0]+"грн");$(".ui-slider-handle:eq(1) .price-range-max").html(s.values[1]+"грн");$("#price_from").val(s.values[0]);$("#price_to").val(s.values[1]);if(s.values[0]==s.values[1]){$(".price-range-both i").css("display","none")}else{$(".price-range-both i").css("display","inline")}change_price(s.values[0],s.values[1]);if(l($(".price-range-min"),$(".price-range-max"))==true){$(".price-range-min, .price-range-max").css("opacity","1");$(".price-range-both").css("display","block")}else{$(".price-range-min, .price-range-max").css("opacity","1");$(".price-range-both").css("display","none")}}});$(".ui-slider-handle:eq(0)").append(''+$("#slider").slider("values",0)+'грн');$(".ui-slider-handle:eq(1)").append(''+$("#slider").slider("values",1)+'грн');$("input#price_from").change(function(){var s=$("input#price_from").val();var r=$("input#price_to").val();if(parseInt(s)>parseInt(r)){s=r;$("input#price_from").val(s)}change_price(s,r);$("#slider").slider("values",0,s);$(".ui-slider-handle:eq(0) .price-range-min").html(s+"грн")});$("input#price_to").change(function(){var s=$("input#price_from").val();var r=$("input#price_to").val();if(parseInt(s)>parseInt(r)){r=s;$("input#price_to").val(r)}change_price(s,r);$("#slider").slider("values",1,r);$(".ui-slider-handle:eq(1) .price-range-max").html(r+"грн")});$("#subcategory_menu").on("click",".main",function(){if($(this).hasClass("subcategory_menu_closed")){$(this).removeClass("subcategory_menu_closed");$(this).parent().find("ul").removeClass("display_none")}else{if($(this).hasClass("subcategory_menu_price")){}else{$(this).addClass("subcategory_menu_closed");$(this).parent().find("ul").addClass("display_none")}}});$(".tabs").on("click","ul li",function(u){$(this).parent().parent().find("ul li").removeClass("previous");$(this).parent().find("li").removeClass("active_tab");if(!$(this).hasClass("active_tab")){$(this).parent().parent().find("ul li").addClass("not_active");$(this).addClass("active_tab");$(this).prev().addClass("previous")}if($(this).parent().hasClass("change_item_description")){u.preventDefault();var r=$(this).data("change_item_description");$(".item_menu_content .item_menu_content_wrapper").addClass("display_none");if($(".item_menu_content div").hasClass(r)){$(".item_menu_content div."+r).removeClass("display_none")}}else{if($(this).parent().hasClass("change_similar_items")){u.preventDefault();var v=$(this).find("a").data("change_similar_items");var t=$(this).find("a").data("catalog_id");var s=$(this).find("a").data("group_id");change_similar_items(t,s,v)}else{if($(this).parent().parent().hasClass("do_order")){if($(this).hasClass("new_customer")){$("div.new_customer").removeClass("display_none");$("div.registrated_customer").addClass("display_none")}else{$("div.registrated_customer").removeClass("display_none");$("div.new_customer").addClass("display_none")}}}}});$("body").on("click",".sort_price.last",function(r){if($(".sort_price_dropdown").hasClass("display_none")){$(".sort_price_dropdown").removeClass("display_none")}else{$(".sort_price_dropdown").addClass("display_none")}});$("#header_nav").on("click",".header_nav_catalog",function(r){r.preventDefault();if($("#content_subnav").hasClass("display_none")){$("#content_subnav").removeClass("display_none")}else{$("#content_subnav").addClass("display_none")}});if($.cookie("view")){if($.cookie("view")=="lists"){$("#content .subcategory").addClass("subcategory_list");$("#content div").removeClass("subcategory");$(".lists").addClass("active");$(".lists").parent().find(".thumbs").removeClass("active")}}$(".content_wrapper_header_menu").on("click",".thumbs",function(r){r.preventDefault();$.cookie("view","thumbs");$("#content .subcategory_list").addClass("subcategory");$("#content div").removeClass("subcategory_list");$(this).addClass("active");$(this).parent().find(".lists").removeClass("active")});$(".content_wrapper_header_menu").on("click",".lists",function(r){r.preventDefault();$.cookie("view","lists");$("#content .subcategory").addClass("subcategory_list");$("#content div").removeClass("subcategory");$(this).addClass("active");$(this).parent().find(".thumbs").removeClass("active")});function o(){$(".content_items").find(".content_arrow_right").each(function(){var s=$(this).parent().parent().parent().data("class");var v=parseInt($("."+s+" .page_number").text());var r=$(this).parent().find("span.max_page").text();var t=$(this).parent().parent().parent().data("news_id")?parseInt($(this).parent().parent().parent().data("news_id")):"0";if(v1){var t=u-1;$("."+r+" .page_number").text(t,r);change_items(t,r,s)}});$(".plus ").on("click",function(w){w.preventDefault();var v=parseInt($(this).parent().find(".count_input input").val())+1;var r=$(".item_id_for_basket").val();if(!r){r=$(".count_items").data("item_id")}change_count_basket(r,v);$(this).parent().find(".count_input input").val(v);if($(this).parent().hasClass("order_third_column")){var u=parseFloat($(this).parent().parent().find(".order_second_column").find("span").html());var t=u*v;if(t%1!==0){t=t.toFixed(1)}$(this).parent().parent().find(".order_fourth_column").find("span.price").html(t);var s=0;$(".order_second_column .price").each(function(){s=s+parseFloat($(this).parent().parent().find(".order_fourth_column").find("span.price").html());$(".order_last span.price").html(s.toFixed(1));n()})}});$(".minus ").on("click",function(x){x.preventDefault();var r=parseInt($(this).parent().find(".count_input input").val());var w=r-1;var s=$(this).parent().find(".count_input input").data("item_id");change_count_basket(s,w);if(r>1){$(this).parent().find(".count_input input").val(w);if($(this).parent().hasClass("order_third_column")){var v=parseFloat($(this).parent().parent().find(".order_second_column").find("span").html());var u=v*w;if(u%1!==0){u=u.toFixed(1)}$(this).parent().parent().find(".order_fourth_column").find("span.price").html(u);var t=0;$(".order_second_column .price").each(function(){t=t+parseFloat($(this).parent().parent().find(".order_fourth_column").find("span.price").html());$(".order_last span.price").html(t.toFixed(1));n()})}}});$(".count_input input").on("keyup",function(w){w.preventDefault();var v=$(this).val();var r=$(this).data("item_id");change_count_basket(r,v);if(v>1){if($(this).parent().parent().hasClass("order_third_column")){var u=parseFloat($(this).parent().parent().parent().find(".order_second_column").find("span").html());var t=u*v;if(t%1!==0){t=t.toFixed(1)}$(this).parent().parent().parent().find(".order_fourth_column").find("span.price").html(t);var s=0;$(".order_second_column .price").each(function(){s=s+parseFloat($(this).parent().parent().parent().find(".order_fourth_column").find("span.price").html());$(".order_last span.price").html(s.toFixed(1));n()})}}});function n(){var r=$("span[id=total_price_basket]").html();if(r>100){$(".min_price_message").css("display","none")}else{$(".min_price_message").css("display","block")}}$("#send_order").click(function(r){r.preventDefault();var s=$("span[id=total_price_basket]").html();console.log(s);if(s<100){h(" Мінімальна сума замовлення складає 100 гривень. Замовте ще!","Кошик",function(t){if(t){document.location="/"}})}else{$("form[name=order_add]").submit()}});$(".thumbnail").iLightBox({skin:"metro-black",path:"horizontal",maxScale:1.3,overlay:{opacity:0.8},styles:{nextOffsetX:75,nextOpacity:0.55,prevOffsetX:75,prevOpacity:0.55},thumbnails:{normalOpacity:0.9,activeOpacity:1},controls:{thumbnail:1,arrows:1}});$(".item").on("click",".group_sizes",function(u){if($(this).hasClass("not_exist")){return false}u.preventDefault();var r=$(this).data("item_id");var t=$(this).data("catalog_id");var s=$(this).data("group_alias");$(this).parent().find("a.group_sizes").removeClass("active");$(this).addClass("active");$.ajax({url:"/change_with_size",data:{item_id:r,catalog_id:t,group_alias:s},type:"POST",dataType:"json",success:function(x){var w=x.html;$(".item_images .thumbnails").html(x.image);$(".presence_status").html(x.status);$(".properties_article").html(x.product_id);$(".colors").html(x.color);$(".change_with_size").html(w);$(".recommended_prices").remove();$("#firm").empty();$("#stock_availability").attr("src","/images/dost0.png");console.log(x.recommended_prices);if(x.recommended_prices){var v='";$(".packing").after(v);if(x.recommended_prices["firm"]){var y=''+x.recommended_prices["firm_product"]+'';$("#firm").html(y)}else{$("#firm").empty()}if(x.recommended_prices["stock_availability"]){$("#stock_availability").attr("src","/images/dost"+x.recommended_prices["stock_availability"]+".png")}else{$("#stock_availability").attr("src","/images/dost0.png")}}$(".thumbnail").iLightBox({skin:"metro-black",path:"horizontal",maxScale:1.3,overlay:{opacity:0.8},styles:{nextOffsetX:75,nextOpacity:0.55,prevOffsetX:75,prevOpacity:0.55},thumbnails:{normalOpacity:0.9,activeOpacity:1},controls:{thumbnail:1,arrows:1}});$("#show_confirm").click(function(B){var z=$("#stock").data("stock");console.log(z);B.preventDefault();if(!z){var A=$(".count_input .count_items").val();add_to_basket(r,A);j("Ви замовляєте товар, який на сьогоднішній день
відсутній на складі. Будь ласка,
узгодьте термін доставки даного товару.","Кошик",function(C){if(C){document.location="/basket"}})}else{var A=$(".count_input .count_items").val();add_to_basket(r,A);j("Ви додали товар до кошика","Кошик",function(C){if(C){document.location="/basket"}})}})},error:function(v){console.info(v.responseText)}})});$(".item").on("click",".change_with_color",function(w){w.preventDefault();var s=$(this).data("item_id");var y=$(this).data("type_id");var x=$(this).data("subtype_id");var v=$(this).data("group_id");var t=$(this).data("group_alias");var r=$(this).data("color_id");var u=$(".current_item_size").val();$(".change_with_color a").removeClass("active");$(".change_with_color a").css("border-color","#e2e2e2");$(this).find("a").addClass("active");$.ajax({url:"/change_with_color",data:{item_id:s,type_id:y,subtype_id:x,group_id:v,group_alias:t,color_id:r,current_item_size:u},type:"POST",dataType:"json",success:function(C){var B="";for(var A in C){B+='
ціна '+parseFloat(C[A]["price2"]).toFixed(2)+' грн
';for(var z in C[A]["filters"]){B+=''+C[A]["filters"][z]["value_value"]+""}B+="
";$(".item_images .thumbnails").html(C[A]["image"]);$(".presence_status").html(C[A]["status"]);$(".properties_article").html(C[A]["product_id"]);$(".colors").html(C[A]["color"]);$(".packing_images").html(C[A]["sizes"]);$(".item_properties").html(C[A]["properties"]);if($(".change_with_color a").hasClass("active")){$(".change_with_color a.active").css("border-color",C[A]["absolute_color"])}}$(".change_with_size").html(B);$(".thumbnail").iLightBox({skin:"metro-black",path:"horizontal",maxScale:1.3,overlay:{opacity:0.8},styles:{nextOffsetX:75,nextOpacity:0.55,prevOffsetX:75,prevOpacity:0.55},thumbnails:{normalOpacity:0.9,activeOpacity:1},controls:{thumbnail:1,arrows:1}});$("#show_confirm").click(function(F){var D=$("#stock").data("stock");console.log(D);F.preventDefault();if(!D){var E=$(".count_input .count_items").val();add_to_basket(s,E);j("Ви замовляєте товар, який на сьогоднішній день
відсутній на складі, будь ласка, після замовлення
узгодьте термін доставки товару.","Кошик",function(G){if(G){document.location="/basket"}})}else{var E=$(".count_input .count_items").val();add_to_basket(s,E);j("Ви додали товар до кошика","Кошик",function(G){if(G){document.location="/basket"}})}})},error:function(){console.info("error")}})});$("#profiler span.profiler-sql-show").on("click",function(r){r.preventDefault();if($("#profiler-sql").is(":visible")){$("#profiler-sql").hide()}else{$("#profiler-sql").show()}});function i(r,s){r=$("
",{"class":"dialogue clearfix"}).append(r);$.iLightBox([{URL:r,type:"html",title:(s)?s:null}],{skin:"light ilightbox-dialogue",minScale:1,innerToolbar:true,overlay:{blur:false},controls:{fullscreen:false},callback:{onRender:function(t){$(".btn",t.currentElement).click(function(){$(".btn",t.currentElement).unbind("click");t.hide()})},onShow:function(t){$(".btn-primary",t.currentElement).focus()}}})}function f(t){var s=$("
",{html:''}),r=$("