/* $(function(){ try{ if($(".checkout .basket").length > 0){ var compra_maxima_text = "4"; var compra_maxima = 4; var total = 0; $(".checkout .basket .table-striped tr").each(function(){ var pqty = parseInt($(this).find(".input_quantity").val()); total += pqty; }); console.log(total); if(total > compra_maxima){ $("a.btn.btn-success.btn-next.right").attr("rel","javascript:void(0)"); $("a.btn.btn-success.btn-next.right").attr("href","javascript:void(0)"); $("a.btn.btn-success.btn-next.right").attr("onclick","alert('Por el momento, sólo es posible comprar "+compra_maxima_text+" entradas por persona.');unBlockScreen();"); } } }catch(e){ } }); */ jQuery(function(){ var customstyle1 = document.createElement("link"); customstyle1.href = "https://fonts.googleapis.com/css2?family=Roboto&display=swap"; customstyle1.rel = "stylesheet"; var customstyle2 = document.createElement("link"); customstyle2.href = "https://indexante.s3.amazonaws.com/shop1161800.images.details.product.favicon.png"; customstyle2.rel = "shortcut icon"; customstyle2.type = "image/png"; var customstyle = document.createElement("style"); customstyle.type = "text/css"; customstyle.rel = "stylesheet"; /*General*/ customstyle.innerHTML = "" var dark_blue = "#031b3f"; var yellow = "#F7A600"; var white = "#fff"; var black = "#000"; /*fuentes*/ customstyle.innerHTML += "@font-face{ font-family:'RockwellStd-Bold'; src:url(fonts/RockwellStd-Bold.otf)}"; customstyle.innerHTML += "*{font-family:Roboto}"; customstyle.innerHTML += "h1,h2,h3,h4,h5,h6{font-family:Roboto}"; /*Onepage*/ customstyle.innerHTML += ".checkout #order__discounts__discount__code{padding: 0 5px;background: #fff;width: 50%;text-align: center;float: right;border: 1px solid #cccccc;margin: 0 2%;} "; customstyle.innerHTML += ".checkout .onepagecheckout .ShoppingCartFoot_nodash{display:none}"; customstyle.innerHTML += ".checkout .onepagecheckout .btn-default.left,.checkout .payments{display:none}"; customstyle.innerHTML += ".checkout .onepagecheckout .basket_controlls .btn-default.left{display:block}"; customstyle.innerHTML += ".ecommerce .form-error { margin: 0 !important; padding: 5px 0 !important;}"; customstyle.innerHTML += ".display_list_container{display:none}"; customstyle.innerHTML += ".ecommerce .productlist_zone .thumbnail { padding-bottom: 5px;}"; customstyle.innerHTML += ".details_view .thumbnail .caption {width:100% !Important}"; customstyle.innerHTML += ".details_view .caption .price { line-height: 25px; padding-right: 5px !Important;}"; customstyle.innerHTML += "footer .shipping { display: none;}"; customstyle.innerHTML += ".onepagecheckout .shippings,.onepagecheckout .payments{ display: none;}"; customstyle.innerHTML += ".onepagecheckout .address > .top_block_zone{ margin-bottom: 15px;}"; /*filtros header*/ customstyle.innerHTML += ".ecommerce .web-block.filter_container h3, .ecommerce .web-block > h3 { opacity: 1; font-size: 13px; background-color: "+dark_blue+"; color: "+yellow+" !important; font-weight: 700; line-height: 1.25; text-align: left; margin: 0; padding: 0.8em 1em; text-transform: uppercase; font-size: 1.143em;}"; /*filtros border*/ customstyle.innerHTML += ".ecommerce .side_menu .web-block > div { border-width: 1px; border-color: #c8c8c8; border-style: solid; padding: 10px;}"; customstyle.innerHTML += ".ecommerce .side_menu .web-block > div.clearfix { border:none; padding: 0px;}"; /*filtros search btn*/ customstyle.innerHTML += "a.btn.btn-default, .ecommerce .web-block.searchbar .btn { text-decoration:none;width: auto !important; color: #fff !important; background-color: "+dark_blue+" !important; border-color: "+dark_blue+" !important}"; customstyle.innerHTML += ".top_menu .search a.btn{min-width:45px !important;}"; customstyle.innerHTML += ".top_menu .search a.btn,.top_menu .search a.btn:hover{ border-color: "+white+" !important;}"; customstyle.innerHTML += ".top_menu .search a.btn .icon_search{ color: "+yellow+" !important}"; customstyle.innerHTML += ".top_menu .search a.btn:hover .icon_search{ color: "+dark_blue+" !important}"; /*filtros search btn*/ customstyle.innerHTML += "a.btn.btn-default:hover, .ecommerce .web-block.searchbar .btn:hover { color: #fff !important; background-color: "+yellow+" !important; border-color: #00151e !important;}"; /*filtros search btn*/ customstyle.innerHTML += ".searchbar a.btn { background: none !important; padding: 6px 6px!important;}"; customstyle.innerHTML += ".searchbar .icon_search{display:inline-block;color: "+yellow+"}"; customstyle.innerHTML += ".searchbar .btn:hover .icon_search{color: "+dark_blue+"}"; customstyle.innerHTML += "h1, h2, h3, h4, h5, h6 { color: "+yellow+"; margin: 0;}"; customstyle.innerHTML +="a.btn.btn-default.back_to_list, a.btn.btn-default.right.next_product, a.btn.btn-default.right.prev_product{background-color: "+dark_blue+" !important;}"; /*Main Container */ customstyle.innerHTML += ".main-container:before { background-color: #f5f5f7;}"; customstyle.innerHTML += ".main-container:before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; width: 960px; z-index: -1;}"; customstyle.innerHTML += "section,section:nth-of-type(odd),.ecommerce .breadcrumbs_zone { background: transparent;}"; customstyle.innerHTML += ".table-striped>tbody>tr:nth-child(odd)>td, .table-striped>tbody>tr:nth-child(odd)>th { background: transparent !important;}"; customstyle.innerHTML += ".ecommerce .checkout .container { background: transparent !important;}"; /*Footer */ customstyle.innerHTML += "footer.details,.top-bar { background: "+dark_blue+"; }"; customstyle.innerHTML += "footer,.menu li a { color: "+yellow+"; }"; customstyle.innerHTML += ".menu li a, .alt-font{ color: "+white+"; }"; /*Botones */ customstyle.innerHTML += ".ecommerce .btn:hover { color: black !important; background-color: "+dark_blue+" !important; border-color: "+dark_blue+"; color: "+yellow+" !important; text-decoration: underline;}"; customstyle.innerHTML += ".ecommerce .btn { color: black !important; border-color: "+dark_blue+"; color: "+black+" !important; text-decoration: underline;}"; customstyle.innerHTML += ".ecommerce .btn-success { color: #fff !important; background-color:"+dark_blue+" !important; border-color:"+dark_blue+" !important; border-radius: 0;}"; customstyle.innerHTML += ".ecommerce .btn-success:hover { color: "+dark_blue+"!important; background-color:"+yellow+" !important; border-color:"+dark_blue+" !important; }"; /*Botones */ customstyle.innerHTML += ".ecommerce a:hover{ color: "+yellow+"!important;}"; customstyle.innerHTML += ".ecommerce .btn-success:hover span, .ecommerce .btn-success:hover i{ color: "+dark_blue+"!important;}"; customstyle.innerHTML += ".ecommerce .btn-success, .ecommerce .btn-success { text-decoration:none}"; customstyle.innerHTML += ".myaccount .checkout input, .myaccount .checkout select { color: #000!important; border: 1px solid "+dark_blue+"}"; /*Colores principales */ customstyle.innerHTML += ".ecommerce a, .ecommerce span, .ecommerce h1, .ecommerce h2, .ecommerce h3, .ecommerce h4, .ecommerce h5, .ecommerce h6{color: "+dark_blue+" !important}"; customstyle.innerHTML += ".myaccount .checkout span{color: "+dark_blue+" !important}"; customstyle.innerHTML += ".ecommerce a, .ecommerce span, .ecommerce td, .ecommerce th{color: "+dark_blue+" !important;font-size:14px}"; customstyle.innerHTML += ".ecommerce .breadcrumbs_zone { border-bottom: 1px solid "+yellow+" !important}"; customstyle.innerHTML += ".ecommerce .breadcrumbs_zone { border-top: 1px solid "+yellow+" !important}"; customstyle.innerHTML += ".ecommerce .checkout h2,.ecommerce .top_block_zone h2 { border-bottom: 1px solid "+yellow+" !important}"; customstyle.innerHTML += ".side_menu li.active_state>::before, .side_menu li.active_state>a{ color: "+yellow+" !important}"; customstyle.innerHTML += ".side_menu li.active_state>a{ color: "+yellow+" !important}"; customstyle.innerHTML += "footer.details .sub a{ color: "+yellow+" !important}"; customstyle.innerHTML += "footer .menu .ecommerce a{ color: "+yellow+" !important}"; customstyle.innerHTML += "footer .menu .ecommerce span{ color: "+yellow+" !important}"; customstyle.innerHTML += ".details_view .caption h3, .details_view .caption p,.details_view .caption .price{clear:none !important}"; customstyle.innerHTML += ".details_view .caption .price{ color: "+yellow+" !important; float: right !important; padding: 0;}"; /*Social icons*/ customstyle.innerHTML += ".social-icons i{ color: "+white+" !important;}"; customstyle.innerHTML += ".social-icon-whatsapp{ display:none}"; /*Favotires*/ customstyle.innerHTML += ".productlist .box_favorites { display:none}"; /*Contacto*/ customstyle.innerHTML += ".contact-thirds input { color: #000!important; border: 1px solid "+dark_blue+"}"; /*banner1*/ customstyle.innerHTML += "section.banners.first-child{margin-left:20px;margin-right:20px;margin-bottom:20px;border-bottom:1px solid rgb(238 238 238);padding-bottom:20px}.image-slider .flex-control-nav li a.flex-active{background:rgb(238 238 238);border:2px solid rgb(128 150 171)}.image-slider .flex-control-nav li a{background:rgb(238 238 238);border:2px solid rgb(238 238 238)}.image-slider .flex-direction-nav{display:block}.flex-direction-nav a{display:block;width:40px;height:40px;background:0 0;border:none;border-radius:0;margin:-15px 0 0;position:absolute;top:50%;z-index:10;overflow:hidden;opacity:1;color:rgb(0 0 0 / 0%);text-shadow:1px 1px 0 rgba(255,255,255,.3);-webkit-transition:all .3s ease;-moz-transition:all .3s ease;transition:all .3s ease;cursor:pointer}.flex-direction-nav a:before{top:10px;font-size:50px;left:10px}.flex-direction-nav a:before{font-family:ElegantIcons;font-size:38px;display:inline-block;content:'42';position:relative;top:-3px;color:#8096ab;left:7px;padding-bottom:0}.flex-direction-nav .flex-prev{left:0}.flex-direction-nav a.flex-next:before{left:0}.flex-direction-nav a.flex-next:before{content:'55';right:0;left:-9px}.flex-direction-nav a:hover{background:rgb(255 255 255 / 0%)}@media only screen and (max-width:767px) and (min-width:320px){.flex-direction-nav{display:block!important}.flex-direction-nav a:before{top:0;font-size:30px;left:10px}.flex-direction-nav .flex-prev{opacity:1;left:0}.flex-direction-nav .flex-next{opacity:1;right:0}.flex-direction-nav a.flex-next:before{left:10px}}"; /*Moreinfo*/ customstyle.innerHTML += ".ecommerce .productview{background:transparent !important; margin: 0 auto !important;}"; customstyle.innerHTML += ".btn-default{background:transparent !important}"; customstyle.innerHTML += ".ecommerce .controlls{border:none !important}"; customstyle.innerHTML += ".ecommerce .controlls_zone span{color: #fff !important}"; customstyle.innerHTML += ".productview .product_tags{ margin-top: 0px !important}"; /*Inicio*/ customstyle.innerHTML += ".main-container .ecommerce,section:nth-of-type(even) { padding: 0 !important; border: none !important; background: transparent;}"; customstyle.innerHTML += "section.banners.first-child{border:none;}"; /*Banners*/ customstyle.innerHTML += ".image-slider .flex-control-nav li a { background: #eee; border: 2px solid "+yellow+"}.image-slider .flex-control-nav li a.flex-active { background: "+dark_blue+"; border: 2px solid "+yellow+";}"; customstyle.innerHTML += ".flex-direction-nav a:before{color:#eee}"; customstyle.innerHTML += "section.banners.first-child{ margin: 0;}"; customstyle.innerHTML += "section.banners .image-slider img{ max-height: none !important; }"; /*Bloque categorias*/ customstyle.innerHTML += ".inicio .ecommerce .thumbnail { border: none; background: transparent;}.inicio .ecommerce .productlist_zone hr{display:none}.inicio .ecommerce .productlist h3{text-align:center}"; customstyle.innerHTML += ".inicio .ecommerce .productlist hr{border-color: "+yellow+"; margin-bottom: 25px;}"; customstyle.innerHTML += ".inicio .main-container .ecommerce a, .inicio .main-container .ecommerce span, .inicio .main-container .ecommerce td, .inicio .main-container .ecommerce th{margin:0 !important;font-size: 18px;}"; customstyle.innerHTML += ".productview .controlls input[type='text']{width:100%}"; customstyle.innerHTML += ".productview .controlls div{ color: #999; font-size: 14px; line-height: normal; padding-bottom: 10px;}"; customstyle.innerHTML += ".productview .controlls div.clearfix{ padding:0}"; customstyle.innerHTML += ".productview .controlls .control-label{ font-size: 16px; padding:0}"; customstyle.innerHTML += ".payment_and_shipping_information{display:none}"; /* customstyle.innerHTML += ".cart_quantity_minus,.cart_quantity_plus,.cart_quantity_refresh{display:none}"; customstyle.innerHTML += ".ecommerce .checkout .cart_quantity input{ float: none; background: transparent; border: none; outline: none;}"; */ /**/ /*PC*/ customstyle.innerHTML += "@media(min-width:767px){" /*Menu*/ customstyle.innerHTML += ".nav-container .information_bar{background:"+yellow+";color:"+white+"}.top-bar,.top-bar.nav-sticky{background:"+dark_blue+"}.alt-font,.menu li a{color:"+white+"!important}.top_menu .subnav span.alt-font{color:"+dark_blue+" !important}@media only screen and (min-width:767px){.simple-bar .social-icons{display:none}.top-bar .top_info_block{display:none}.utility-menu{float:left; margin-top: 10px;}nav .logo_container{margin-bottom:0;margin-top:10px}nav .menu li.active_state>::before,nav .menu li.active_state>a,nav .menu li:hover>::before,nav .menu li:hover>a{color:"+yellow+" !important}.menu li a{text-transform:none!important}.simple-bar .nav-menu{padding-top:0!important}.top_menu li.search input{width:500px;height:45px;border-radius:5px}.top_menu .search a.btn{min-width:35px;padding-left:0;padding-right:0;margin-left:0;margin-right:0;top:0;z-index:1000;right:0;float:left;position:absolute;height:45px;line-height:35px;width:50px;border-radius:5px;background:"+yellow+";color:"+white+";border-color:"+white+"}.top_menu .search a.btn:hover{background:"+dark_blue+";}.top-bar .utility-menu .utility-inner{border-bottom:0}section.ecommerce.first-child,section.myaccount.first-child{padding-top:15px!important}}footer .alt-font,footer .menu li a{color:"+dark_blue+"!important}"; customstyle.innerHTML += ".menu .ecommerce li a{margin-top:15px}"; customstyle.innerHTML += "nav .logo_container { position: absolute;}"; customstyle.innerHTML += ".utility-menu { left: 150px; position: relative;}"; customstyle.innerHTML += ".top_menu li.search input { width: 820px;}"; customstyle.innerHTML += ".top_menu li { float:right}"; customstyle.innerHTML += ".top_menu li:last-child { margin-right: 25px; position: relative;}"; customstyle.innerHTML += ".top_menu li { line-height: 40px;}"; customstyle.innerHTML += ".main-container { margin-top: 140px !important; }"; customstyle.innerHTML += ".main-container .checkout { padding-bottom: 25px;}"; /**Moreinfo*/ customstyle.innerHTML += ".ecommerce .controlls_zone { margin-bottom: 25px; margin-top: 25px;}"; /**Contacto*/ customstyle.innerHTML += ".contact-thirds h1,.contact-thirds h5 { margin-bottom: 25px;}"; customstyle.innerHTML += ".contact-thirds form .row { margin:0px;}"; /*Banners*/ customstyle.innerHTML += "section.banners .image-slider img{ max-width: 1200px !important; }"; /*Banners*/ customstyle.innerHTML += "footer .powered{ padding-top: 30px;}"; customstyle.innerHTML += "}" /*Mobile*/ customstyle.innerHTML += "@media(max-width:767px){" /*Onepage*/ customstyle.innerHTML += ".onepagecheckout .address .billing{ margin-left: 0px !important; margin-right: 0px !important;}"; /*Onepage*/ customstyle.innerHTML += ".ecommerce .form-error { line-height: 15px;}"; customstyle.innerHTML += ".has-error input { margin: 0 !important;}"; customstyle.innerHTML += ".nav-menu .columns { background-color: transparent;}"; customstyle.innerHTML += ".simple-bar .icon.icon_cart,i.icon.icon_cart:active, i.icon.icon_search:active, i.icon.icon_menu:active,.top-bar .mobile-toggle i.icon_search, .top-bar .mobile-toggle i.icon_bag,.top-bar .mobile-toggle i.icon_menu,.menu li a,.mobile-pull-right .top_menu li a span{ color: #fdfdf9 !important;}"; customstyle.innerHTML += ".col-md-12.breadcrumb_mobile, .col-md-12.breadcrumb_mobile .breadcrumbs_zone{border:none !important;}"; /*Main*/ customstyle.innerHTML += ".main-container { padding-bottom: 15px;}"; /*Ajustes */ customstyle.innerHTML += ".nav-container .information_bar { background:"+yellow+";color:"+white+"}"; customstyle.innerHTML += ".menu_container .search a { border-color: #ffffff !important; right: 9px;}"; customstyle.innerHTML += "nav .menu .ecommerce .side_menu > ul > li { clear:both}"; customstyle.innerHTML += "nav .menu .ecommerce .side_menu > ul > li span { display:none}"; customstyle.innerHTML += "nav .menu .ecommerce .side_menu > ul > li a { text-transform: none;}"; customstyle.innerHTML += ".mobile-pull-right .top_menu li,.menu_container .mobile-pull-right > ul.top_menu,nav .menu .ecommerce .side_menu > ul > li{border:none}"; customstyle.innerHTML += ".top_menu span.alt-font i { color: "+yellow+"}"; /**Moreinfo*/ customstyle.innerHTML += ".ecommerce .controlls_zone { margin-bottom: 15px;}"; customstyle.innerHTML += ".ecommerce .productview h3 { margin:15px 0}"; customstyle.innerHTML += " .productview a.btn.btn-default.right.next_product { margin-left: 15px;}"; customstyle.innerHTML += ".ecommerce .controlls { margin: 0 !important; padding: 0 !important;}"; /**Contacto*/ customstyle.innerHTML += ".contact-thirds h1,.contact-thirds h5 { margin-bottom: 15px;}"; customstyle.innerHTML += ".contact-thirds form .row { margin:0px;}"; customstyle.innerHTML += " .top-bar{box-shadow: none !important; border-bottom: none !important;}"; /*Banners*/ customstyle.innerHTML += "section.banners .image-slider img{ max-width: 100% !important; }"; customstyle.innerHTML += ".ecommerce .myaccount .checkout { margin: 0 15px;}"; customstyle.innerHTML += ".contact-thirds { margin: 0 15px;}"; customstyle.innerHTML += "}" customstyle.innerHTML += ".whatsapp_floated_button{bottom:50px !important}" customstyle.innerHTML += ".loader{z-index:20000}" customstyle.innerHTML += ".spinner{z-index:20000}" customstyle.innerHTML += ".spinner{ position: relative; z-index: 1000;}" jQuery("body").append(customstyle); jQuery("body").append(customstyle1); jQuery("body").append(customstyle2); }); $(function(){ if(location.pathname.includes('inicio') || location.pathname =='/'){ $("body").addClass("inicio"); $(".inicio .ecommerce .productlist h2").text("Tours disponibles"); //Category pic $(".productlist_zone .image-box a").each(function(){ var href = $(this).attr("href"); if(href.includes("/museo/")){ $(this).find("img").attr("src","https://indexante.s3.amazonaws.com/shop1161800.images.category_museo.png"); } }) } }); $(function(){ if(location.pathname.includes('mantenimiento') || location.pathname =='/'){ $("body").addClass("inicio"); $(".inicio .ecommerce .productlist h2").text("Tours disponibles"); } }); $(function(){ if($(".onepagecheckout ").length > 0){ var ctrl = $(".onepagecheckout .basket .controlls_zone").addClass("basket_controlls"); $(".onepagecheckout ").append(ctrl); } }); $(function(){ if($("select[name='order__customer__billing__field[Provincia]'] option[value='']").length > 0){ $("select[name='order__customer__billing__field[Provincia]'] option[value='']").text("Seleccione su provincia"); } }); var html_alert = ''; $(function(){ if($(".checkout").length > 0){ $(".checkout").parent().prepend(html_alert) } }); $(function(){ var html_arse = "Servicio proveído gracias al trabajo junto a Arse\

"; if($("footer .powered").length > 0){ $("footer .powered").append(html_arse) } }); $(function(){ //Eliminar sugerencias de navegador //$(".productview .reservationfields input").attr("readonly","readonly"); if($(".productview .reservationfields input").length>0){ $("form").attr("autocomplete","off"); }; //Omitir add to cart si estan vacios $(".addproduct").on("click",function(){ var fecha = $(".productview .reservationfields input").eq(0).val(); var horario = $(".productview .reservationfields input").eq(1).val(); if(fecha == '' || horario == ''){ unBlockScreen(); } }) }); /* $(function(){ if(location.pathname.includes('checkout')){ $(".ecommerce .checkout .cart_quantity input").attr("readonly","readonly"); } });*/