Design & Order
Design your boat
' ; var pri = parseFloat($(this).data('price')); if(pri == 0.00){ attributes += '
Included
'; } else { attributes += '
'; } attributes += '
'; }); $('.attributes').html(attributes); var colorprice = parseFloat($('.radio:checked').data('price')); $('.price-sec.color-custom .price-sub-sec').html($(".radio:checked").val()); if(colorprice == '0.00'){ $('.price-sec.color-custom .price').html('Included'); }else{ $('.price-sec.color-custom .price').html(commaSeparateNumber(colorprice)); } var finalprice = Number($('#price').html().replace(/[^0-9.-]+/g,"")); //var vatprice = Number($('.vat-price').html().replace(/[^0-9.-]+/g,"")); //var full_self = Number($('.full-self').html().replace(/[^0-9.-]+/g,"")); var total = finalprice; $('.totalprice').html(commaSeparateNumber(total)); var popup = modal(payment, $('#payment-model'));$('#payment-model').modal('openModal'); });*/ var test = 0; var slider_popup_html = jQuery("#design-order-show-features-new").html(); $(".popup-show-features").on('click',function(){ var getidis = $(this).data('id'); var currentPage = "/us/eelex-8000-configurator"; var Price = "0.000000"; var valuecheck = "us";$('#design-order-show-features-new').show();$('#design-order-show-features-new').addClass('active');/*if ($('.slider-design-order-show-features').hasClass('slick-initialized')) { $('.slider-design-order-show-features').slick('destroy'); }*/ $("#design-order-show-features-new").html(slider_popup_html); $('.slider-design-order-show-features').slick({ centerMode: true, slidesToShow: 1, arrows: true, dots: true, autoplaySpeed: 2000, centerMode: true, centerPadding: '200px', responsive: [ { breakpoint: 767, settings: { centerPadding: '45px', arrows: false, dots: false, autoplay: true, } } ]});//console.log(test); /*if(test == 0) {console.log('if'); $('.slider-design-order-show-features').slick('slickRemove',0); test = 1; }*/ $('.slider-design-order-show-features').slick('slickRemove',0); var $slickElementtproduct = $('.slider-design-order-show-features'); var slideindex = 0; var get_index = $('.slider-design-order-show-features .product-model.'+getidis).parents('.slick-slide').data('slick-index'); $slickElementtproduct.slick('slickGoTo', get_index); jQuery('#design-order-show-features-new .slick-slide').find('img').each(function() { jQuery(this).attr("src",jQuery(this).data('src')); }); /*jQuery("#design-order-show-features-new").find(".slick-track").find(".slick-slide").each(function(){if($(this).attr("data-slick-index") == get_index){$slickElementtproduct.slick('slickGoTo', jQuery('.slick-slide').index(this));}})*/ $('.chk').each(function() { var price = parseFloat($(this).data('price')); var class_get = $(this).attr('id'); if(currentPage.includes(valuecheck) && Price == "0.000000"){ $(".product-model button.product-btn").html('Included'); $(".product-model button.product-btn").prop('disabled', true); $(".product-model .product-model-price .custom-price-section").hide(); }else{ $('.product-model-price .'+class_get).html(commaSeparateNumberr(price)); $('.product-model-price .'+class_get).next('.symbol').html(symbol); } if($(".chk#"+ class_get).is(':checked')) { //console.log(class_get); $('.'+class_get+'.product-model button.product-btn').html('
-Remove'); $('.'+class_get+'.product-model button.product-btn').removeClass('black--btn').addClass('white--btn'); } if($(".select-package").length > 0){ var radio_val = $(".select-package").find(".checked").find("input").attr("data-package-id"); if(radio_val == '49' || radio_val == '50'){ $('.docking-package--include- .product-model-price').html('
Include'); } } }); }); $('body').on('click', '.product-model-close', function() {$('#design-order-show-features-new').removeClass('active');$('#design-order-show-features-new').hide(); });jQuery(document).on("click", function(event){if(jQuery(event.target).find(".slick-track").closest(".slider-design-order-show-features").length){jQuery(".product-model-close").click();}}); $('body').on('click', '.product-model-price .product-btn', function() { var id_get = $(this).data('id'); //console.log(id_get); if($(".chk#"+ id_get).is(':checked')) { if($(".select-package").length > 0){var radio_val = $(".select-package").find(".checked").find("input").attr("data-package-id");if(radio_val == '49' || radio_val == '50'){$(".chk#docking-package--include-").prop('checked', false);}}$(".chk#"+ id_get).prop('checked', false); $('.'+id_get+'.product-model button.product-btn').html('
+Add'); $('.'+id_get+'.product-model button.product-btn').removeClass('white--btn').addClass('black--btn'); } else { if($(".select-package").length > 0){var radio_val = $(".select-package").find(".checked").find("input").attr("data-package-id");if(radio_val == '49' || radio_val == '50'){$(".chk#docking-package--include-").prop('checked', true);}}$(".chk#"+ id_get).prop('checked', true); $('.'+id_get+'.product-model button.product-btn').html('
-Remove'); $('.'+id_get+'.product-model button.product-btn').removeClass('black--btn').addClass('white--btn'); } newPrice = parseFloat($('#price').data('price')); $('.chk:checked').each(function() {$(this).addClass('selected'); newPrice += parseFloat($(this).data('price')); var id = $(this).attr('id');});newPrice = parseFloat(newPrice);jQuery('#price').html(commaSeparateNumber(newPrice));//$('#design-order-show-features-new').removeClass('active');//$('#design-order-show-features-new').hide(); }); /*$("#exterior").on('click',function(){ var popup = modal(options, $('#exterior-modal'));$('#exterior-modal').modal('openModal'); }); $("#watch-popup").on('click',function(){var popup_watch = modal(watch, $('#watch-modal'));$('#watch-modal').modal('openModal');var price_watch = parseFloat($('#captains-watch').data('price'));$('.watch-price').html(commaSeparateNumberr(price_watch)); }); $(".add-watch").on('click',function(){ $("#watch-modal").modal("closeModal"); $('#captains-watch').prop('checked', true); $('#captains-watch').trigger('change'); }); $(".docking-package").on('click',function(){ var popup_docking = modal(docking, $('#docking-modal'));$('#docking-modal').modal('openModal'); var price_docking = parseFloat($('#docking-package').data('price')); $('.docking-price').html(commaSeparateNumberr(price_docking)); }); $(".add-docking").on('click',function(){ $("#docking-modal").modal("closeModal"); $('#docking-package').prop('checked', true); $('#docking-package').trigger('change'); }); $(".premium-sound").on('click',function(){ var popup_premiumh = modal(premium, $('#premium-modal'));$('#premium-modal').modal('openModal'); var price_premium = parseFloat($('#premium-sound').data('price')); $('.premium-price').html(commaSeparateNumberr(price_premium)); }); $(".add-premium").on('click',function(){ $("#premium-modal").modal("closeModal"); $('#premium-sound').prop('checked', true); $('#premium-sound').trigger('change'); }); $("#sunsed-popup").on('click',function(){ var popup_sunsed = modal(sunsed, $('#sunsed-modal'));$('#sunsed-modal').modal('openModal'); var price_sunsed = parseFloat($('#one-stand-alone-sofa').data('price')); $('.sunsed-price').html(commaSeparateNumberr(price_sunsed)); }); $(".add-sunsed").on('click',function(){ $("#sunsed-modal").modal("closeModal"); $('#one-stand-alone-sofa').prop('checked', true); $('#one-stand-alone-sofa').trigger('change'); });*/ $("#compare-popup").on('click',function(){ var popup_compare = modal(compare, $('#compare-popup-modal'));$('#compare-popup-modal').modal('openModal');var compare_cls = $('.options-section.select-package input[type="radio"]:checked').val();$("#compare-popup-modal div[data-content-type='button-item']."+compare_cls).addClass('active');var price_premium = parseFloat($('#premium-sound').data('price')); $('.premium-price').html(commaSeparateNumberr(price_premium)); }); $("#compare-popup-modal div[data-content-type='button-item']").on('click',function(){ var popup_compare = $(this).attr('class').split(' ')[0]; /*$('.select-package .radio-attr').removeClass('checked');$(".select-package input[type='radio'][value="+popup_compare+"]").attr("checked", true);$(".select-package input[type='radio'][value="+popup_compare+"]").parent().addClass('checked');*/$("#compare-popup-modal div[data-content-type='button-item']").removeClass('active');$(this).addClass('active');$(".select-package .radio-attr input[type='radio'][value="+popup_compare+"]").click();//$("#compare-popup-modal").modal("closeModal"); }); // $('.select-package .radio-attr input:radio').change(function(){ // $('.radio-attr').removeClass("checked") // $(this).parent().addClass("checked"); // var radio_val = $(this).val(); // if(radio_val == 'Utility'){ // jQuery('.color .radio-attr input[id=moss-green]').attr("disabled",true); // jQuery('.color .radio-attr input[id=coffee]').attr("disabled",true); // // jQuery('.add-ons .chk-attr input[type=checkbox]').attr("disabled",true); // // jQuery('.add-ons .chk-attr input[type=checkbox]').removeClass('selected'); // // jQuery('.add-ons .chk-attr input[type=checkbox]').prop('checked', false); // }else if(radio_val == 'Performance'){ // jQuery('.color .radio-attr input[id=coffee]').attr("disabled",true); // jQuery('.color .radio-attr input[id=moss-green]').prop("disabled", false); // jQuery('.add-ons .chk-attr input[type=checkbox]').prop("disabled", false); // jQuery('.add-ons .chk-attr input[type=checkbox]').addClass('selected'); // jQuery('.add-ons .chk-attr input[type=checkbox]').prop('checked', true); // }else{ // jQuery('.color .radio-attr input[id=moss-green]').prop("disabled", false); // jQuery('.color .radio-attr input[id=coffee]').prop("disabled", false); // jQuery('.add-ons .chk-attr input[type=checkbox]').prop("disabled", false); // jQuery('.add-ons .chk-attr input[type=checkbox]').addClass('selected'); // jQuery('.add-ons .chk-attr input[type=checkbox]').prop('checked', true); // } // }); // var docking_with_price_html = $(".cust-options.docking-package.package-value-27").html(); // var docking_without_price_html = $(".cust-options.docking-package--include-.package-value-59").html(); //var docking_price = $("#docking-package").attr('data-price');$('.select-package .radio-attr input:radio').change(function(){ $('.radio-attr').removeClass("checked") $(this).parent().addClass("checked"); var radio_val = $(this).attr("data-package-id");jQuery('.color .radio-attr').show();jQuery('.color .radio-attr').each(function(){if (jQuery(this).attr("data-package").split(',').indexOf(radio_val) == -1) {jQuery(this).hide();}});jQuery('#docking-package').prop('checked', false);jQuery(this).find("input").removeClass("selected");$(".add-ons").find(".chk-attr").show();$(".add-ons").find(".chk-attr").each(function(){if(jQuery(this).attr("data-package").split(',').indexOf(radio_val) != -1 && jQuery(this).find("input").attr("data-price") == "0.000000"){jQuery(this).find("input").prop('checked', true);}if (jQuery(this).attr("data-package") != "" && jQuery(this).attr("data-package").split(',').indexOf(radio_val) == -1) {jQuery(this).hide();}})/*jQuery('.add-ons .chk-attr').show();jQuery('.add-ons .chk-attr').each(function(){if (jQuery(this).attr("data-package").split(',').indexOf(radio_val) == -1) {jQuery(this).hide();}})*/// if(radio_val == '48'){// jQuery('.add-ons .chk-attr input[type=checkbox]').removeClass('selected');// jQuery('.add-ons .chk-attr input[type=checkbox]').prop('checked', false);// // $(".cust-options.docking-package--include-.package-value-59").hide();// // $(".cust-options.docking-package--include-.package-value-59").html('');// // $(".cust-options.docking-package.package-value-27").show();// // $(".cust-options.docking-package.package-value-27").html(docking_with_price_html);// $(".docking-package").show();// $(".docking-package--include-").hide();// //jQuery("#docking-package").attr('data-price',docking_price);// //jQuery(".cust-options.docking-package .custom-price-section").html(docking_price_html);// }// if(radio_val == '49'){// //jQuery("#docking-package").attr('data-price',0);// // $(".cust-options.docking-package .custom-price-section").html('includes');// // $(".cust-options.docking-package.package-value-27").hide();// // $(".cust-options.docking-package.package-value-27").html('');// // $(".cust-options.docking-package--include-.package-value-59").show();// // $(".cust-options.docking-package--include-.package-value-59").html(docking_without_price_html);// // jQuery("#docking-package").click();// $(".docking-package").hide();// $(".docking-package--include-").show();// }// if(radio_val == '50'){// //jQuery("#docking-package").attr('data-price',0);// // jQuery(".cust-options.docking-package .custom-price-section").html('includes');// $(".docking-package").hide();// $(".docking-package--include-").show();// // $(".cust-options.docking-package.package-value-27").hide();// // $(".cust-options.docking-package.package-value-27").html('');// // $(".cust-options.docking-package--include-.package-value-59").show();// // $(".cust-options.docking-package--include-.package-value-59").html(docking_without_price_html);// // jQuery("#docking-package").click();// } });if($(".select-package").length > 0){var radio_val = $(".select-package").find(".checked").find("input").attr("data-package-id");jQuery('.color .radio-attr').show();jQuery('.color .radio-attr').each(function(){if (jQuery(this).attr("data-package").split(',').indexOf(radio_val) == -1) {jQuery(this).hide();}})$(".add-ons").find(".chk-attr").each(function(){if(jQuery(this).attr("data-package").split(',').indexOf(radio_val) != -1 && jQuery(this).find("input").attr("data-price") == "0.000000"){jQuery(this).find("input").click();}if (jQuery(this).attr("data-package") != "" && jQuery(this).attr("data-package").split(',').indexOf(radio_val) == -1) {jQuery(this).hide();}});// if(radio_val == '48'){// $('.add-ons .chk-attr input[type=checkbox]').removeClass('selected');// $('.add-ons .chk-attr input[type=checkbox]').prop('checked', false);// $(".docking-package").show();// $(".docking-package--include-").hide();// // $(".cust-options.docking-package--include-.package-value-59").hide();// // $(".cust-options.docking-package--include-.package-value-59").html('');// // $(".cust-options.docking-package.package-value-27").show();// // $(".cust-options.docking-package.package-value-27").html(docking_with_price_html);// //jQuery("#docking-package").attr('data-price',docking_price);// //jQuery(".cust-options.docking-package .custom-price-section").html(docking_price_html);// }// if(radio_val == '49'){// //jQuery("#docking-package").attr('data-price',0);// // $(".cust-options.docking-package .custom-price-section").html('includes');// $(".docking-package").hide();// $(".docking-package--include-").show();// // $(".cust-options.docking-package.package-value-27").hide();// // $(".cust-options.docking-package.package-value-27").html('');// // $(".cust-options.docking-package--include-.package-value-59").show();// // $(".cust-options.docking-package--include-.package-value-59").html(docking_without_price_html);// // $("#docking-package").click();// }// if(radio_val == '50'){// // $(".cust-options.docking-package .custom-price-section").html('includes');// $(".docking-package").hide();// $(".docking-package--include-").show();// // $(".cust-options.docking-package.package-value-27").hide();// // $(".cust-options.docking-package.package-value-27").html('');// // $(".cust-options.docking-package--include-.package-value-59").show();// // $(".cust-options.docking-package--include-.package-value-59").html(docking_without_price_html);// // $("#docking-package").click();// }} $('.expand-mobile-slider').on('click', function(){ $('#expand-mobile-slider-features').show(); $('.slider-mobile-features .product-left-slider .pagebuilder-slider').slick('unslick').slick(); }); $('body').on('click', '.collapse-mobile-slider-features img', function() {$('#expand-mobile-slider-features').hide(); }); } );