Directory & Local Businesses

Sorry, We do not have data at the moment.

$ = jQuery; $(document).ready(function() { $("a").each(function() { if ($(this).text().trim() === "Yacht Agencies and Services") { // Add the class to the parent
  • of this anchor $(this).closest('li').addClass('my-yhs-anchor'); } }); // Check if the URL contains 'yas-tab' if (window.location.href.indexOf('yas-tab') > -1) { // Find the anchor with the exact text 'Yacht Agencies and Services' and click it $("a").filter(function() { return $(this).text().trim() === "Yacht Agencies and Services"; }).click(); } // Check if the URL contains 'yas-tab' if (window.location.href.indexOf('arrival-by-air') > -1) { // Find the anchor with the exact text 'Yacht Agencies and Services' and click it $("a").filter(function() { return $(this).text().trim() === "Arrival by Air"; }).click(); } let isProgrammaticClick = false; $('.yhg-menu a').on('click', function(e) { // Check if the click is programmatic to avoid recursion if (!isProgrammaticClick) { isProgrammaticClick = true; // Set the flag $("a").filter(function() { return $(this).text().trim() === "Yacht Agencies and Services"; }).click(); isProgrammaticClick = false; // Reset the flag } }); setTimeout(function(){ $(document).on('change', 'input[type=radio][name="vessel-over-50"]', function() { // Check if the selected value is 'Yes' if (this.value == 'Yes') { // Use .css method to set display property to inline-block !important $('#vessel-txt-ovr').addClass('impDisplay'); } else if (this.value == 'No') { // Use .css method to set display property to none !important $('#vessel-txt-ovr').removeClass('impDisplay'); } }); },1000); // Listen for any change on radio buttons with the name 'vessel-over-50' // Define the buttons HTML var buttonsHtml = ''; var buttonsHtmlFR = ''; // Append the buttons to the '.low-r0w-can' div if($('html').attr('lang') === 'fr') { $('.low-r0w-can').append(buttonsHtmlFR); }else{ $('.low-r0w-can').append(buttonsHtml); } var canlegalbylaws = ''; var canlegalbylawsfr = ''; var canlegaltemplaws = ''; var canlegaltemplawsfr = ''; var canlegalgencond = ''; var canlegalgencondfr = ''; var canlegalrates = ''; var canlegalratesfr = ''; // Append the buttons to the '.low-r0w-can' div if($('html').attr('lang') === 'fr') { $('.can-legal-by-laws').append(canlegalbylawsfr); $('.can-legal-temp-laws').append(canlegaltemplawsfr); $('.can-legal-gen-cond').append(canlegalgencondfr); $('.can-legal-rates').append(canlegalratesfr); }else{ $('.can-legal-by-laws').append(canlegalbylaws); $('.can-legal-temp-laws').append(canlegaltemplaws); $('.can-legal-gen-cond').append(canlegalgencond); $('.can-legal-rates').append(canlegalrates); } // Show '.law-for-buttons' div on '.legal-toggle-btn' click and toggle button text $('.legal-toggle-btn-new').click(function() { if($('html').attr('lang') === 'fr') { if($(this).text() == "TÉLÉCHARGER INFORMATIONS"){$(this).text('MASQUER LES INFORMATIONS');} else{$(this).text('TÉLÉCHARGER INFORMATIONS');} }else{ if($(this).text() == "Download Information"){$(this).text('HIDE INFORMATION');} else{$(this).text('Download Information');} } $(this).closest('.can-legal-links').find('.law-for-buttons').toggleClass('active'); }); // Check if HTML lang attribute is 'fr' and update the link text accordingly if($('html').attr('lang') === 'fr') { $('.marina-custom-link').each(function() { switch ($(this).text()) { case 'TRAFFIC/NAVIGATION': $(this).text('NAVIGATION/TRAVAUX'); break; case 'PUBLIC ACCESS': $(this).text("D'ACCÈS DU PUBLIC"); break; case 'LAUBEUF ZONE': $(this).text('LAUBEUF TRAVAUX'); break; } }); } // Show '.law-for-buttons' div on '.open-btns-bll' click $('.open-btns-bll').click(function() { $('.law-for-buttons').show(); }); }); jQuery(document).ready(function(){ $('.bwa-btns-row .marina-custom-link').click(function(e) { e.preventDefault(); $('.bwa-logos-row').show(); }); $('.rest-custom-tabs ul li').click(function(e) { e.preventDefault(); // Toggle the 'active' class on the clicked .igyn-mob-tog element $('.rest-custom-tabs ul li').removeClass('et_pb_tab_active'); var cls = $(this).attr('class'); var sec = $(this).closest('ul').attr('data-sec'); $(this).addClass('et_pb_tab_active'); var fincls = '.rest-custom-tabs-txt .' + cls; var finsec = '.' + sec; $('.rest-custom-tabs-txt .et_pb_all_tabs .et_pb_tab').removeClass('et_pb_active_content et-pb-active-slide'); $(fincls).addClass('et_pb_active_content et-pb-active-slide'); $(finsec).show(); $('html, body').animate({ scrollTop: $(finsec).offset().top - 200 }, 2000); }); if($('body').hasClass('postid-22427')){ if($('html').attr('lang') === 'fr') { $('.marina-hdr-res').html('RESERVE A BOUÉE'); }else if($('html').attr('lang') === 'it'){ $('.marina-hdr-res').html('PRENOTA UN FAGOTTO'); }else if($('html').attr('lang') === 'es'){ $('.marina-hdr-res').html('RESERVAR UNA BOYA'); }else{ $('.marina-hdr-res').html('RESERVE A BUOY'); } } if ($('body').hasClass('page-id-23011') || $('body').hasClass('page-id-22895')) { // If true, append the HTML to the end of 'div.party-1' $('div.party-1').append('
    '); } $('.igyn-mob-tog').click(function() { // Toggle the 'active' class on the clicked .igyn-mob-tog element $(this).toggleClass('active'); // Find the ul inside the clicked .igyn-mob-tog and toggle it $(this).find('ul').toggle(); }); //For mobile Screens if (window.matchMedia('(max-width: 767px)').matches) { var initial_show_images = 3; var images_reveal = 3; jQuery(".pa-gallery-load-more .et_pb_gallery_item").not( ":nth-child(-n+"+initial_show_images+")" ).css("display","none"); jQuery("#pa_load_more").on("click", function(event){ event.preventDefault(); initial_show_images = initial_show_images + images_reveal; jQuery(".pa-gallery-load-more .et_pb_gallery_item").css("display","block"); jQuery(".pa-gallery-load-more .et_pb_gallery_item").not( ":nth-child(-n+"+initial_show_images+")" ).css("display","none"); var images_num = jQuery(".pa-gallery-load-more .et_pb_gallery_item").not('[style*="display: block"]').length if(images_num == 0){ jQuery(this).css("display","none"); } }) } else { //For desktop Screens var initial_row_show = 12; var row_reveal = 9; var total_images = jQuery(".pa-gallery-load-more .et_pb_gallery_item").length; jQuery(".pa-gallery-load-more .et_pb_gallery_item").not( ":nth-child(-n+"+initial_row_show+")" ).css("display","none"); jQuery("#pa_load_more").on("click", function(event){ event.preventDefault(); initial_row_show = initial_row_show + row_reveal; jQuery(".pa-gallery-load-more .et_pb_gallery_item").css("display","block"); jQuery(".pa-gallery-load-more .et_pb_gallery_item").not( ":nth-child(-n+"+initial_row_show+")" ).css("display","none"); var images_num = jQuery(".pa-gallery-load-more .et_pb_gallery_item").not('[style*="display: block"]').length if(images_num == 0){ jQuery(this).css("display","none"); } }) } }) $(document).ready(function() { setTimeout(function(){ $('.log-in-1 input').focus(); },1500); // Function to check the condition and redirect if conditions are met function checkConditionAndRedirect() { var inputValue1 = parseInt($('.log-in-1 input').val()); var inputValue2 = parseInt($('.log-in-2 input').val()); var inputValue3 = parseInt($('.log-in-3 input').val()); var inputValue4 = parseInt($('.log-in-4 input').val()); $('.chakra-form__error-message').fadeOut(); if (inputValue1 === 4 && inputValue2 === 4 && inputValue3 === 4 && inputValue4 === 4) { $('.chakra-form__error-message').fadeOut(); window.location.href = 'https://www.igymarinas.com/?page_id=23011&preview=1&_ppp=9006747096'; } else { $('.chakra-form__error-message').fadeIn(); } } // Add a click event handler for img.login-btn $('img.login-btn').click(function() { checkConditionAndRedirect(); }); // Add a keypress event handler for Enter key $('.log-in-4 input').keypress(function(e) { if (e.which === 13) { // Check if the pressed key is Enter (key code 13) checkConditionAndRedirect(); } }); const video = $('#video-container video')[0]; // Get the video element as a DOM object $('.vid-btn').click(function() { $('#video-container').fadeIn(); // Check if the Fullscreen API is available if (video.requestFullscreen) { // Request full-screen mode video.requestFullscreen(); } else if (video.mozRequestFullScreen) { video.mozRequestFullScreen(); } else if (video.webkitRequestFullscreen) { video.webkitRequestFullscreen(); } else { // Fullscreen API is not supported console.log('Fullscreen mode is not supported on this browser.'); } video.play(); // Play the video // Add an event listener for fullscreenchange document.addEventListener('fullscreenchange', exitFullscreenHandler); document.addEventListener('mozfullscreenchange', exitFullscreenHandler); document.addEventListener('webkitfullscreenchange', exitFullscreenHandler); }); function exitFullscreenHandler() { // Check if the document is no longer in fullscreen mode if (!document.fullscreenElement && !document.mozFullScreenElement && !document.webkitFullscreenElement) { // Pause the video video.pause(); $('#video-container').fadeOut(); } } }); jQuery(document).ready(function( $ ){ if($('body').hasClass('page-id-22895')){//start //var pinContainer = document.getElementsByClassName("pin-code")[0]; //var pinContainer = document.querySelector(".pin-code"); $('.pin-code input[type="number"]').on('keyup', function(e) { // Check if the pressed key is a number (0-9) $(this).val() >= 0 || $(this).val() <= 9 var $this = $(this); var maxlength = $this.attr('max').length; var value = $this.val(); console.log($(this).val().length); if (value && value.length >= maxlength) { $this.val(value.substr(0, maxlength)); } if ($(this).val().length > 0) { // Move to the next input field $(this).parent().next().find('input').focus(); } else if ($(this).val().length == 0) { // Backspace key pressed, move to the previous input field $(this).parent().prev().find('input').focus(); } }); }//end if($('body').hasClass('page-id-18993') || $('body').hasClass('page-id-19228') || $('body').hasClass('page-id-19049') || $('body').hasClass('page-id-19071')){ $('.reserve-slip-button>a').attr('href', '#'); } //lightbox grouping setTimeout(function(){ // Run after Divi's own lightbox code // Get a list of lightbox groups in the page var groups = []; $('div[class*=" lightbox-group-"]').each(function(){ var classes = $(this).attr('class').split(' '); for (var i = 0; i < classes.length; i++) { var matches = /^lightbox-group-(.+)/.exec(classes[i]); if (matches != null && $.inArray(matches[0], groups) === -1) { groups.push(matches[0]); } } }); // Create a magnific popup gallery for each group groups.map(function(group){ var $images = $('.' + group + ' .et_pb_lightbox_image'); $images.magnificPopup({ mainClass: 'mfp-fade', gallery: { enabled: true }, type: 'image', image: { // Show titles on images titleSrc: function(item) { var title = item.el.find('img').attr('title'); return title?title:''; } } }); }); }, 150); //lightbox grouping end $('.jobs-btn p').on('click', function(e) { e.stopPropagation(); // HIDE OTHER $('.chaaloo .arrow-btn').trigger('click'); // HIDE OTHER $(this).parents('.custom-jobs').find('.job-advance-field').slideToggle('1000'); $(this).hide(); $(this).parents('.custom-jobs').find('.arrow-btn').show(); $(this).parents(".custom-jobs-row").toggleClass('chaaloo'); }); $('.arrow-btn').on('click', function() { //$(this).parents(".custom-jobs-row").toggleClass('chaaloo'); $(this).parents('.custom-jobs').find('.job-advance-field').slideToggle('1000'); $(this).hide(); $(this).parents('.custom-jobs').find('.jobs-btn p').show(); $(this).parents(".custom-jobs-row").removeClass('chaaloo'); }); setTimeout(function(){ $('.pdfemb-zoomin').trigger('click'); }, 100); $('.page-id-16268 .cannes-all-tabs a').click(function(e){ e.preventDefault(); var cls = $(this).attr('data-row'); $('.page-id-16268 .cannes-divs').removeClass('active'); $('.page-id-16268 .cannes-all-tabs a').removeClass('active'); $(cls).addClass('active'); $(this).addClass('active'); }); setTimeout(function(){ if($('html').attr('lang') == 'fr'){ $('.tnp-email').attr('placeholder','ADRESSE E-MAIL'); $('.tnp-field.tnp-field-email p').text("E-mail de l'abonné."); } }, 1000); }); $(".mar-loc-head h4").each(function() { var text = $(this).text(); text = text.replace("3 Days Itinerary", "3 Day Itinerary"); $(this).text(text); }); //setTimeout(function(){$(".gfield-choice-input, .ginput_container_consent input").removeAttr( "disabled" );},1000) $(".mar-loc-head h3, .tab-transparent h3").each(function() { var text = $(this).text(); text = text.replace("3 days Itinerary", "3 Day Itinerary"); $(this).text(text); }); $(".mar-loc-head h3, .tab-transparent h3").each(function() { var text = $(this).text(); text = text.replace("5 days Itinerary", "5 day Itinerary"); $(this).text(text); }); $('.read-more-ipp').on("click",function(){ $('.hidden_on_ipad').slideToggle(600); $(this).text(function(i, text){ return text === "MORE INFORMATION" ? "LESS INFORMATION" : "MORE INFORMATION"; }) }) $('.tab-transparent .et_pb_tabs_controls li h3').each(function(){ var text = $(this).text(); if (window.location.href.indexOf("golfito") > -1) { text = text.replace("Annual Events", "Land Tours"); }else{ } $(this).text(text); }); var announcebar = $('.announcement-bar').attr('data-bg'); if(announcebar){ $('.yellow-announcement-marina').css('background-color', announcebar); } $(".monthly-newsletter .newsl-posts").each(function(i) { $(this).attr('id' , 'newsl-posts-' + i); }); if($('body').hasClass('single-marinas')){ $.urlParam = function(name){ var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href); if (results==null){ return null; } else{ return results[1] || 0; } } setTimeout(function() { var about_marina = $.urlParam('about_marina'); if(about_marina){ $("[data-href="+about_marina+"]").trigger('click'); $('html, body').animate({ scrollTop: $("div.marinas-about-block").offset().top }, 1500) } }, 1000); } if($('body').hasClass('page-id-5659') || $(".res-def")[0]){ setTimeout(function() { $.urlParam = function(name){ var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href); if (results==null){ return null; } else{ return results[1] || 0; } } var mid = $.urlParam('marina_id'); var arv = $.urlParam('ar'); var dpv = $.urlParam('dp'); var ar = arv * 1e3; var dp = dpv * 1e3; if(mid == 1084 || mid == 1087){$('.arc-p-div').addClass('active');$('.arc-p-div').attr('cmv',1);} if(mid != null){var opt = $('.res-cnt-row select.marina-select option[value="'+ mid +'"]'); $(opt).prop('selected', true); var sel = $(".res-cnt-row select.marina-select").find('option:selected').text(); $( ".mar-name" ).attr('value', sel );} var ardate = new Date(ar); var ary = ardate.getFullYear(); var arm = ardate.getMonth()+1; var ardd = ardate.getDate(); var dpdate = new Date(dp); var dpy = dpdate.getFullYear(); var dpm = dpdate.getMonth()+1; var dpdd = dpdate.getDate(); var ard = ary.toString().padStart(4, 0)+"-"+arm.toString().padStart(2, 0)+"-"+ardd.toString().padStart(2, 0); var dpd = dpy.toString().padStart(4, 0)+"-"+dpm.toString().padStart(2, 0)+"-"+dpdd.toString().padStart(2, 0); if(arv != null){ $('.ar-date').attr("value" , ard); $('.ar-date').attr("min" , ard);} if(dpv != null){ $('.dp-date').attr("value" , dpd); $('.dp-date').attr("min" , dpd);} }, 2000); } if($('body').hasClass('page-id-13013') || $(".res-cannes")[0]){ // JavaScript program to illustrate // calculation of no. of days between two date // To set two dates to two variables $(".dp-date").on("change",function(){ var selected = $('.ar-date').val(); var date1 = new Date(selected); var date2 = new Date($(this).val()); // To calculate the time difference of two dates var Difference_In_Time = date2.getTime() - date1.getTime(); // To calculate the no. of days between two dates var Difference_In_Days = Difference_In_Time / (1000 * 3600 * 24); $('#numOfDays').html(Difference_In_Days + ' Nights Selected'); }); $(".vessel-rep input").on("change",function(){ var selected = $(this).val(); $('.vessel-rep-content').hide(); if(selected == 'Yacht Management Agency'){ $('.yacht-management-content').fadeIn(); }else if(selected == 'Yacht Agent'){ $('.yacht-agent-content').fadeIn(); }else if(selected == 'Captain/Owner'){ $('.capt-own-content').fadeIn(); } }); $(document).on("change", ".berth-que input", function () { if ($(this).is(':checked')) { $('.reserv-birth-box').fadeIn(); $('.res-form-cannes').addClass('res-can-to-hide'); }else{ $('.reserv-birth-box').fadeOut(); $('.res-form-cannes').removeClass('res-can-to-hide'); } }); }