var mi_version = '8.19';
var mi_track_user = true;
var mi_no_track_reason = '';
var disableStrs = [
'ga-disable-G-158X3Y3RM5',
];/* Function to detect opted out users */
function __gtagTrackerIsOptedOut() {
for (var index = 0; index < disableStrs.length; index++) {
if (document.cookie.indexOf(disableStrs[index] + '=true') > -1) {
return true;
}
}return false;
}/* Disable tracking if the opt-out cookie exists. */
if (__gtagTrackerIsOptedOut()) {
for (var index = 0; index < disableStrs.length; index++) {
window[disableStrs[index]] = true;
}
}/* Opt-out function */
function __gtagTrackerOptout() {
for (var index = 0; index < disableStrs.length; index++) {
document.cookie = disableStrs[index] + '=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; path=/';
window[disableStrs[index]] = true;
}
}if ('undefined' === typeof gaOptout) {
function gaOptout() {
__gtagTrackerOptout();
}
}
window.dataLayer = window.dataLayer || [];window.MonsterInsightsDualTracker = {
helpers: {},
trackers: {},
};
if (mi_track_user) {
function __gtagDataLayer() {
dataLayer.push(arguments);
}function __gtagTracker(type, name, parameters) {
if (!parameters) {
parameters = {};
}if (parameters.send_to) {
__gtagDataLayer.apply(null, arguments);
return;
}if (type === 'event') {
parameters.send_to = monsterinsights_frontend.v4_id;
var hookName = name;
if (typeof parameters['event_category'] !== 'undefined') {
hookName = parameters['event_category'] + ':' + name;
}if (typeof MonsterInsightsDualTracker.trackers[hookName] !== 'undefined') {
MonsterInsightsDualTracker.trackers[hookName](parameters);
} else {
__gtagDataLayer('event', name, parameters);
}
} else {
__gtagDataLayer.apply(null, arguments);
}
}__gtagTracker('js', new Date());
__gtagTracker('set', {
'developer_id.dZGIzZG': true,
});
__gtagTracker('config', 'G-158X3Y3RM5', {"forceSSL":"true","link_attribution":"true"} );
window.gtag = __gtagTracker; (function () {
/* https://developers.google.com/analytics/devguides/collection/analyticsjs/ */
/* ga and __gaTracker compatibility shim. */
var noopfn = function () {
return null;
};
var newtracker = function () {
return new Tracker();
};
var Tracker = function () {
return null;
};
var p = Tracker.prototype;
p.get = noopfn;
p.set = noopfn;
p.send = function () {
var args = Array.prototype.slice.call(arguments);
args.unshift('send');
__gaTracker.apply(null, args);
};
var __gaTracker = function () {
var len = arguments.length;
if (len === 0) {
return;
}
var f = arguments[len - 1];
if (typeof f !== 'object' || f === null || typeof f.hitCallback !== 'function') {
if ('send' === arguments[0]) {
var hitConverted, hitObject = false, action;
if ('event' === arguments[1]) {
if ('undefined' !== typeof arguments[3]) {
hitObject = {
'eventAction': arguments[3],
'eventCategory': arguments[2],
'eventLabel': arguments[4],
'value': arguments[5] ? arguments[5] : 1,
}
}
}
if ('pageview' === arguments[1]) {
if ('undefined' !== typeof arguments[2]) {
hitObject = {
'eventAction': 'page_view',
'page_path': arguments[2],
}
}
}
if (typeof arguments[2] === 'object') {
hitObject = arguments[2];
}
if (typeof arguments[5] === 'object') {
Object.assign(hitObject, arguments[5]);
}
if ('undefined' !== typeof arguments[1].hitType) {
hitObject = arguments[1];
if ('pageview' === hitObject.hitType) {
hitObject.eventAction = 'page_view';
}
}
if (hitObject) {
action = 'timing' === arguments[1].hitType ? 'timing_complete' : hitObject.eventAction;
hitConverted = mapArgs(hitObject);
__gtagTracker('event', action, hitConverted);
}
}
return;
}function mapArgs(args) {
var arg, hit = {};
var gaMap = {
'eventCategory': 'event_category',
'eventAction': 'event_action',
'eventLabel': 'event_label',
'eventValue': 'event_value',
'nonInteraction': 'non_interaction',
'timingCategory': 'event_category',
'timingVar': 'name',
'timingValue': 'value',
'timingLabel': 'event_label',
'page': 'page_path',
'location': 'page_location',
'title': 'page_title',
};
for (arg in args) {
if (!(!args.hasOwnProperty(arg) || !gaMap.hasOwnProperty(arg))) {
hit[gaMap[arg]] = args[arg];
} else {
hit[arg] = args[arg];
}
}
return hit;
}try {
f.hitCallback();
} catch (ex) {
}
};
__gaTracker.create = newtracker;
__gaTracker.getByName = newtracker;
__gaTracker.getAll = function () {
return [];
};
__gaTracker.remove = noopfn;
__gaTracker.loaded = true;
window['__gaTracker'] = __gaTracker;
})();
} else {
console.log("");
(function () {
function __gtagTracker() {
return null;
}window['__gtagTracker'] = __gtagTracker;
window['gtag'] = __gtagTracker;
})();
}
window._wpemojiSettings = {"baseUrl":"https:\/\/s.w.org\/images\/core\/emoji\/14.0.0\/72x72\/","ext":".png","svgUrl":"https:\/\/s.w.org\/images\/core\/emoji\/14.0.0\/svg\/","svgExt":".svg","source":{"concatemoji":"https:\/\/officialmauritius.com\/wp-includes\/js\/wp-emoji-release.min.js?ver=6.4.1"}};
/*! This file is auto-generated */
!function(i,n){var o,s,e;function c(e){try{var t={supportTests:e,timestamp:(new Date).valueOf()};sessionStorage.setItem(o,JSON.stringify(t))}catch(e){}}function p(e,t,n){e.clearRect(0,0,e.canvas.width,e.canvas.height),e.fillText(t,0,0);var t=new Uint32Array(e.getImageData(0,0,e.canvas.width,e.canvas.height).data),r=(e.clearRect(0,0,e.canvas.width,e.canvas.height),e.fillText(n,0,0),new Uint32Array(e.getImageData(0,0,e.canvas.width,e.canvas.height).data));return t.every(function(e,t){return e===r[t]})}function u(e,t,n){switch(t){case"flag":return n(e,"\ud83c\udff3\ufe0f\u200d\u26a7\ufe0f","\ud83c\udff3\ufe0f\u200b\u26a7\ufe0f")?!1:!n(e,"\ud83c\uddfa\ud83c\uddf3","\ud83c\uddfa\u200b\ud83c\uddf3")&&!n(e,"\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc65\udb40\udc6e\udb40\udc67\udb40\udc7f","\ud83c\udff4\u200b\udb40\udc67\u200b\udb40\udc62\u200b\udb40\udc65\u200b\udb40\udc6e\u200b\udb40\udc67\u200b\udb40\udc7f");case"emoji":return!n(e,"\ud83e\udef1\ud83c\udffb\u200d\ud83e\udef2\ud83c\udfff","\ud83e\udef1\ud83c\udffb\u200b\ud83e\udef2\ud83c\udfff")}return!1}function f(e,t,n){var r="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?new OffscreenCanvas(300,150):i.createElement("canvas"),a=r.getContext("2d",{willReadFrequently:!0}),o=(a.textBaseline="top",a.font="600 32px Arial",{});return e.forEach(function(e){o[e]=t(a,e,n)}),o}function t(e){var t=i.createElement("script");t.src=e,t.defer=!0,i.head.appendChild(t)}"undefined"!=typeof Promise&&(o="wpEmojiSettingsSupports",s=["flag","emoji"],n.supports={everything:!0,everythingExceptFlag:!0},e=new Promise(function(e){i.addEventListener("DOMContentLoaded",e,{once:!0})}),new Promise(function(t){var n=function(){try{var e=JSON.parse(sessionStorage.getItem(o));if("object"==typeof e&&"number"==typeof e.timestamp&&(new Date).valueOf()<e.timestamp+604800&&"object"==typeof e.supportTests)return e.supportTests}catch(e){}return null}();if(!n){if("undefined"!=typeof Worker&&"undefined"!=typeof OffscreenCanvas&&"undefined"!=typeof URL&&URL.createObjectURL&&"undefined"!=typeof Blob)try{var e="postMessage("+f.toString()+"("+[JSON.stringify(s),u.toString(),p.toString()].join(",")+"));",r=new Blob([e],{type:"text/javascript"}),a=new Worker(URL.createObjectURL(r),{name:"wpTestEmojiSupports"});return void(a.onmessage=function(e){c(n=e.data),a.terminate(),t(n)})}catch(e){}c(n=f(s,u,p))}t(n)}).then(function(e){for(var t in e)n.supports[t]=e[t],n.supports.everything=n.supports.everything&&n.supports[t],"flag"!==t&&(n.supports.everythingExceptFlag=n.supports.everythingExceptFlag&&n.supports[t]);n.supports.everythingExceptFlag=n.supports.everythingExceptFlag&&!n.supports.flag,n.DOMReady=!1,n.readyCallback=function(){n.DOMReady=!0}}).then(function(){return e}).then(function(){var e;n.supports.everything||(n.readyCallback(),(e=n.source||{}).concatemoji?t(e.concatemoji):e.wpemoji&&e.twemoji&&(t(e.twemoji),t(e.wpemoji)))}))}((window,document),window._wpemojiSettings);
https://officialmauritius.com/wp-content/plugins/google-analytics-premium/assets/js/frontend-gtag.min.js
var monsterinsights_frontend = {"js_events_tracking":"true","download_extensions":"doc,pdf,ppt,zip,xls,docx,pptx,xlsx","inbound_paths":"[{\"path\":\"\\\/go\\\/\",\"label\":\"affiliate\"},{\"path\":\"\\\/recommend\\\/\",\"label\":\"affiliate\"}]","home_url":"https:\/\/officialmauritius.com","hash_tracking":"false","v4_id":"G-158X3Y3RM5"};
https://officialmauritius.com/wp-includes/js/jquery/jquery.min.js
https://officialmauritius.com/wp-includes/js/jquery/jquery-migrate.min.js
var pbLocalizeObj = {"seconds":"seconds","thisWillClose":"This will close in","icons":{"close_icon":"<svg class=\"ays_pb_material_close_icon\" xmlns=\"https:\/\/www.w3.org\/2000\/svg\" height=\"36px\" viewBox=\"0 0 24 24\" width=\"36px\" fill=\"#000000\" alt=\"Pop-up Close\"><path d=\"M0 0h24v24H0z\" fill=\"none\"\/><path d=\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"\/><\/svg>","close_circle_icon":"<svg class=\"ays_pb_material_close_circle_icon\" xmlns=\"https:\/\/www.w3.org\/2000\/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"36\" alt=\"Pop-up Close\"><path d=\"M0 0h24v24H0z\" fill=\"none\"\/><path d=\"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z\"\/><\/svg>","volume_up_icon":"<svg class=\"ays_pb_fa_volume\" xmlns=\"https:\/\/www.w3.org\/2000\/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"36\"><path d=\"M0 0h24v24H0z\" fill=\"none\"\/><path d=\"M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z\"\/><\/svg>","volume_mute_icon":"<svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\"><path d=\"M0 0h24v24H0z\" fill=\"none\"\/><path d=\"M7 9v6h4l5 5V4l-5 5H7z\"\/><\/svg>"}};
https://officialmauritius.com/wp-content/plugins/ays-popup-box/public/js/ays-pb-public.js
var breeze_prefetch = {"local_url":"https:\/\/officialmauritius.com","ignore_remote_prefetch":"1","ignore_list":["\/wp-admin\/"]};
https://officialmauritius.com/wp-content/plugins/breeze/assets/js/js-front-end/breeze-prefetch-links.min.js
var dwnotif = {"dwnotif_nonce":"9af7acb51d","dwnotif_ajax_url":"https:\/\/officialmauritius.com\/wp-admin\/admin-ajax.php","dwnotif_is_user_logged_in":"","dwnotif_current_time":"1701650868","dwnotif_constants":{"MINUTE_IN_SECONDS":60,"HOUR_IN_SECONDS":3600,"DAY_IN_SECONDS":86400,"WEEK_IN_SECONDS":604800,"MONTH_IN_SECONDS":2592000,"YEAR_IN_SECONDS":31536000}};
https://officialmauritius.com/wp-content/plugins/dw-notifications/assets/js/dw-notifications.js
https://officialmauritius.com/wp-content/plugins/dw-question-answer-pro/assets/js/simplemde.min.js
https://officialmauritius.com/wp-includes/js/jquery/ui/core.min.js
https://officialmauritius.com/wp-includes/js/jquery/ui/menu.min.js
https://officialmauritius.com/wp-includes/js/dist/vendor/wp-polyfill-inert.min.js
https://officialmauritius.com/wp-includes/js/dist/vendor/regenerator-runtime.min.js
https://officialmauritius.com/wp-includes/js/dist/vendor/wp-polyfill.min.js
https://officialmauritius.com/wp-includes/js/dist/dom-ready.min.js
https://officialmauritius.com/wp-includes/js/dist/hooks.min.js
https://officialmauritius.com/wp-includes/js/dist/i18n.min.js
wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );
https://officialmauritius.com/wp-includes/js/dist/a11y.min.js
var uiAutocompleteL10n = {"noResults":"No results found.","oneResult":"1 result found. Use up and down arrow keys to navigate.","manyResults":"%d results found. Use up and down arrow keys to navigate.","itemSelected":"Item selected."};
https://officialmauritius.com/wp-includes/js/jquery/ui/autocomplete.min.js
var dwqa_mention = {"dwqa_mention_nonce":"d7abebb33a","dwqa_mention_ajax_url":"https:\/\/officialmauritius.com\/wp-admin\/admin-ajax.php"};
https://officialmauritius.com/wp-content/plugins/dw-question-answer-pro/assets/js/dwqa-mention-user.js
https://officialmauritius.com/wp-content/plugins/ninja-google-review/assets/frontend/slick/slick.min.js
var njt_ggreviews = {"read_more":"Read more","read_less":"Read less"};
var njt_ggreviews = {"read_more":"Read more","read_less":"Read less"};
https://officialmauritius.com/wp-content/plugins/ninja-google-review/assets/frontend/js/google-review.js
var qcpdr_frontend_objects = {"ajax_url":"https:\/\/officialmauritius.com\/wp-admin\/admin-ajax.php"};
https://officialmauritius.com/wp-content/plugins/sbd-rating-review-addon/frontend/assets/js/script.js
https://officialmauritius.com/wp-content/plugins/woo-social-login/includes/js/sdk/google/api_client.js
var pd_snazzymap_js = [
{
"featureType": "all",
"elementType": "labels.text.fill",
"stylers": [
{
"color": "#ffffff"
}
]
},
{
"featureType": "all",
"elementType": "labels.text.stroke",
"stylers": [
{
"color": "#000000"
},
{
"lightness": 13
}
]
},
{
"featureType": "administrative",
"elementType": "geometry.fill",
"stylers": [
{
"color": "#000000"
}
]
},
{
"featureType": "administrative",
"elementType": "geometry.stroke",
"stylers": [
{
"color": "#144b53"
},
{
"lightness": 14
},
{
"weight": 1.4
}
]
},
{
"featureType": "landscape",
"elementType": "all",
"stylers": [
{
"color": "#08304b"
}
]
},
{
"featureType": "poi",
"elementType": "labels",
"stylers": [
{ "visibility": "off" }
]
},
{
"featureType": "road.highway",
"elementType": "geometry.fill",
"stylers": [
{
"color": "#000000"
}
]
},
{
"featureType": "road.highway",
"elementType": "geometry.stroke",
"stylers": [
{
"color": "#0b434f"
},
{
"lightness": 25
}
]
},
{
"featureType": "road.arterial",
"elementType": "geometry.fill",
"stylers": [
{
"color": "#000000"
}
]
},
{
"featureType": "road.arterial",
"elementType": "geometry.stroke",
"stylers": [
{
"color": "#0b3d51"
},
{
"lightness": 16
}
]
},
{
"featureType": "road.local",
"elementType": "geometry",
"stylers": [
{
"color": "#000000"
}
]
},
{
"featureType": "transit",
"elementType": "all",
"stylers": [
{
"color": "#146474"
}
]
},
{
"featureType": "water",
"elementType": "all",
"stylers": [
{
"color": "#021019"
}
]
}
];
var ajaxurl = "https://officialmauritius.com/wp-admin/admin-ajax.php";
var qc_sbd_get_ajax_nonce = "815e56ee00";
jQuery(document).ready(function ($){
if (navigator.userAgent.match(/OFFICIALMAURITIUS/i)) {
$('.site-header').hide();
$('#site-footer').hide();
$('#announcement_bar_slider').hide();
$('#catchflights').hide();
};
});
Skip to content Cascade Léon, also known as Exil Waterfall, holds a special place in our hearts as one of the most beloved waterfalls in Mauritius . Situated in the southern region of Rivière des Anguilles, near Souillac, this hidden gem can be reached by traversing a path meandering through a vibrant and lush tropical forest. While the journey may require stepping over a few rocks, the reward is truly breathtaking as you witness the majestic 20-foot cascade gracefully plunging into the inviting pool below. This enchanting waterfall serves as an idyllic picnic spot, so be sure to pack a delectable lunch and an ample supply of water. Additionally, we highly recommend bringing your swimwear, as you can take a refreshing dip in the pool and even venture behind the waterfall to discover a concealed cave. This exhilarating experience is an absolute must on your Mauritius bucket list.
modal-check Dismiss ad Dismiss ad
This will close in 0 seconds
https://officialmauritius.com/wp-content/plugins/bzplayerpro/player/js/video.min.js
https://officialmauritius.com/wp-content/plugins/bzplayerpro/player/js/youtube.min.js
https://officialmauritius.com/wp-content/plugins/bzplayerpro/player/js/watermark.js
https://officialmauritius.com/wp-content/plugins/bzplayerpro/player/js/remember.js
https://officialmauritius.com/wp-content/plugins/bzplayerpro/player/js/volume.js
https://officialmauritius.com/wp-content/plugins/bzplayerpro/player/js/share.js
https://officialmauritius.com/wp-content/plugins/bzplayerpro/player/js/social.js
https://officialmauritius.com/wp-content/plugins/bzplayerpro/player/js/toggle.min.js
videojs('player_729721890', {
controls: true,
techOrder: ["youtube"],
sources: [{ "type": "video/youtube", "src": "https://www.youtube.com/watch?v=0b629WqvG0o"}],
}, function(){
var player = this;
player.on('resolutionchange', function(){
console.info('Source changed')
})
});
var player = videojs('#player_729721890');
player.watermark({ file: 'https://officialmauritius.com/wp-content/uploads/2023/08/wplogo.png', clickable: true, url: "https://officialmauritius.com" });
var myVideo = document.getElementById("player_729721890");
if (myVideo.addEventListener) {
myVideo.addEventListener('contextmenu', function(e) {
e.preventDefault();
}, false);
} else {
myVideo.attachEvent('oncontextmenu', function() {
window.event.returnValue = false;
});
}
player.remember({"localStorageKey": "videojs.remember.https://officialmauritius.com/cascade-leon/"});
player.persistvolume({
namespace: "set volume"
});
player.share();
(function(window, videojs) {
player.theaterToggle({
"saveTheaterState" : true,
"localItemName" : 'theaterVideoState'
});
player.on("theaterMode",function(){
if(player.theaterToggle().isTheater()){
player.fluid(true);
}else {
player.fluid(false);
}
});
}(window, window.videojs));
if (window.innerWidth < 768) { jQuery(document).find('.ays-pb-modal_2').css({'top': '0', 'right': '0', 'bottom': '0', 'left': '0'}); } else { jQuery(document).find('.ays-pb-modal_2').css({'top': '0', 'right': '0', 'bottom': '0', 'left': '0'}); }
(function( $ ) {
'use strict';
$(document).ready(function(){
var ays_flag = true;
var show_only_once = 'off';
let isMobile = false;
let closePopupOverlay = 1;
let isPageScrollDisabled = 1;
if (window.innerWidth < 768) {
isMobile = true;
closePopupOverlay = 1;
isPageScrollDisabled = 1;
}
$(document).find('.innericon').on('click', function(){
$(document).find('.ays_music_sound').css({'display':'block'});if(show_only_once == 'on'){
$.ajax({
url: 'https://officialmauritius.com/wp-admin/admin-ajax.php',
method: 'post',
dataType: 'json',
data: {
action: 'ays_pb_set_cookie_only_once',
id: 2,
title: 'Search',
},
});
}
var dataAttr = $(document).find('.ays-pb-modal_2').attr('data-ays-flag');
if(ays_flag && dataAttr == 'true'){
ays_flag = false;
$(document).find('.av_pop_modals_2').css('display','block');
$(document).find('.av_pop_modals_2').css('pointer-events', 'auto');if (window.innerWidth < 768) {
$(document).find('.ays_pb_timer_2 span').html($(document).find('.ays_pb_timer_2 span').attr('data-ays-mobile-seconds'));
}
else{
$(document).find('.ays_pb_timer_2 span').html($(document).find('.ays_pb_timer_2 span').attr('data-ays-seconds'));}
clearInterval(timer_pb_2);
timer_pb_2 = null;
$(document).find('.ays-pb-modal_2').removeClass($(document).find('#ays_pb_modal_animate_out_2').val());
$(document).find('.ays-pb-modal_2').addClass($(document).find('#ays_pb_modal_animate_in_2').val());
$(document).find('.ays-pb-modal_2').css('display', 'block');
if (window.innerWidth < 768 && $(document).find('#ays-pb-screen-shade_2').attr('data-mobile-overlay') == 'true') {
$(document).find('#ays-pb-screen-shade_2').css({'opacity': '0.5', 'display': 'block'});
}
else{
$(document).find('#ays-pb-screen-shade_2').css({'opacity': '0.500000', 'display': 'block'});
}
$(document).find('.ays-pb-modal-check_2').prop('checked', true);
$(document).find('.ays-pb-modal-check_2').attr('checked', true);
// $(document).find('#ays-pb-modal-checkbox_2').trigger('click');
var ays_pb_animation_close_speed = $(document).find('#ays_pb_animation_close_speed_2').val();
var ays_pb_animation_close_seconds = (ays_pb_animation_close_speed / 1000);
var sound_src = $(document).find('#ays_pb_sound_2').attr('src');
var close_sound_src = $(document).find('#ays_pb_close_sound_2').attr('src');ays_pb_animation_close_speed = parseFloat(ays_pb_animation_close_speed) - 50;
if ('off' === 'on' && typeof sound_src !== 'undefined'){
$('#ays_pb_sound_2').get(0).play();
$(document).find('.ays_pb_pause_sound_2').on('click',function(){
var audio = $('#ays_pb_sound_2').get(0);
audio.pause();
audio.currentTime = 0;
});
}
//close sound start
if('1' && typeof close_sound_src !== 'undefined' && 'off' === 'on'){
if('1' !== 0){
$(document).find('.ays_pb_pause_sound_2').on('click',function(){
$('#ays_pb_close_sound_2').get(0).play();
if(ays_pb_effectOut_2 != 'none'){
setTimeout(function(){
$(document).find('.ays-pb-modal_2').css('display', 'none');
var audio = $('#ays_pb_close_sound_2').get(0);
audio.pause();
audio.currentTime = 0;
clearInterval(timer_pb_2);
}, ays_pb_animation_close_speed);
}else{
$(document).find('.ays-pb-modal_2').css('display', 'none');
var audio = $('#ays_pb_close_sound_2').get(0);
audio.pause();
audio.currentTime = 0;
}
});
}
}
//close sound endvar time_pb_str_2 = $(document).find('.ays_pb_timer_2 span').attr('data-ays-seconds');
if (window.innerWidth < 768) {
var mobileTimer = +$(document).find('.ays_pb_timer_2 span').attr('data-ays-mobile-seconds');
$(document).find('.ays_pb_timer_2 span').html(mobileTimer);
time_pb_str_2 = mobileTimer;
}
var time_pb_2 = parseInt(time_pb_str_2);
if(time_pb_2 !== undefined){
if(time_pb_2 !== 0){
var timer_pb_2 = setInterval(function(){
let newTime_pb_2 = time_pb_2--;
let ays_pb_effectOut_2 = $(document).find('#ays_pb_modal_animate_out_2').val();
$(document).find('.ays_pb_timer_2 span').text(newTime_pb_2);
$(document).find('.ays-pb-modal_2').css({
'animation-duration': ays_pb_animation_close_seconds + 's'
});
if(newTime_pb_2 <= 0){
$(document).find('.ays-pb-modal-close_2').trigger('click');
$(document).find('.ays-pb-modal_2').attr('class', 'ays_lil_window ays-pb-modal_2 '+$(document).find('#ays_pb_modal_animate_out_2').val());
if(ays_pb_effectOut_2 != 'none'){
setTimeout(function(){
$(document).find('.ays-pb-modal_2').css('display', 'none');
ays_flag = true;
}, ays_pb_animation_close_speed);
}else{
$(document).find('.ays-pb-modal_2').css('display', 'none');
ays_flag = true;
}
if ('off' === 'on' && typeof sound_src !== 'undefined'){
var audio = $('#ays_pb_sound_2').get(0);
audio.pause();
audio.currentTime = 0;
clearInterval(timer_pb_2);
}
if ('1' && typeof close_sound_src !== 'undefined' && 'off' === 'on'){
if('1' !== 0){
$('#ays_pb_close_sound_2').get(0).play();
if(ays_pb_effectOut_2 != 'none'){
setTimeout(function(){
$(document).find('.ays-pb-modal_2').css('display', 'none');
ays_flag = true;
var audio = $('#ays_pb_close_sound_2').get(0);
audio.pause();
audio.currentTime = 0;
clearInterval(timer_pb_2);
}, ays_pb_animation_close_speed);
}else{
$(document).find('.ays-pb-modal_2').css('display', 'none');
ays_flag = true;
var audio = $('#ays_pb_close_sound_2').get(0);
audio.pause();
audio.currentTime = 0;
}
}
}
}
$(document).find('.ays-pb-modal-close_2').one('click', function(){
$(document).find('.av_pop_modals_2').css('pointer-events', 'none');
$(document).find('.ays-pb-modal_2').attr('class', 'ays_lil_window ays-pb-modal_2 '+ays_pb_effectOut_2);
$(this).parents('.ays-pb-modals').find('iframe').each(function(){
var key = /https:\/\/www.youtube.com/;
var src = $(this).attr('src');
$(this).attr('src', $(this).attr('src'));
});
$(this).parents('.ays-pb-modals').find('video.wp-video-shortcode').each(function(){
if(typeof $(this).get(0) != 'undefined'){
if ( ! $(this).get(0).paused ) {
$(this).get(0).pause();
}}
});
$(this).parents('.ays-pb-modals').find('audio.wp-audio-shortcode').each(function(){
if(typeof $(this).get(0) != 'undefined'){
if ( ! $(this).get(0).paused ) {
$(this).get(0).pause();
}}
});
if(ays_pb_effectOut_2 != 'none'){
setTimeout(function(){
$(document).find('.ays-pb-modal_2').css('display', 'none');
ays_flag = true;
}, ays_pb_animation_close_speed);
}else{
$(document).find('.ays-pb-modal_2').css('display', 'none');
ays_flag = true;
}
$(document).find('#ays-pb-screen-shade_2').css({'opacity': '0', 'display': 'none'});
clearInterval(timer_pb_2);
});
var ays_pb_flag = true;
$(document).on('keydown', function(event) {
if('1' && ays_pb_flag){
if (event.keyCode == 27) {
$(document).find('.ays-pb-modal-close_2').trigger('click');
ays_pb_flag = false;
if ('off' === 'on' && typeof sound_src !== 'undefined'){
var audio = $('#ays_pb_sound_2').get(0);
audio.pause();
audio.currentTime = 0;
clearInterval(timer_pb_2);
}
if('1' && typeof close_sound_src !== 'undefined' && 'off' === 'on'){
if('1' !== 0){
$('#ays_pb_close_sound_2').get(0).play();
if(ays_pb_effectOut_2 != 'none'){
setTimeout(function(){
$(document).find('.ays-pb-modal_2').css('display', 'none');
var audio = $('#ays_pb_close_sound_2').get(0);
audio.pause();
audio.currentTime = 0;
clearInterval(timer_pb_2);
}, ays_pb_animation_close_speed);
}else{
$(document).find('.ays-pb-modal_2').css('display', 'none');
var audio = $('#ays_pb_close_sound_2').get(0);
audio.pause();
audio.currentTime = 0;
clearInterval(timer_pb_2);
}
}
}
}
}
});
}, 1000);
if('clickSelector' != 'both'){
if(closePopupOverlay && 'On' == 'On'){
$(document).find('#ays-pb-screen-shade_2').on('click', function() {
var pb_parent_div = $(this).find('.ays-pb-modals');
var pb_div = $(this).parents('.ays-pb-modals').find('.ays-pb-modal_2');
if (!pb_parent_div.is(pb_div) && pb_parent_div.has(pb_div).length === 0){
$(document).find('.ays-pb-modal-close_2').click();
if ('off' === 'on' && typeof sound_src !== 'undefined'){
var audio = $('#ays_pb_sound_2').get(0);
audio.pause();
audio.currentTime = 0;
clearInterval(timer_pb_2);
}
if('1' && typeof close_sound_src !== 'undefined' && 'off' === 'on'){
if('1' !== 0){
$('#ays_pb_close_sound_2').get(0).play();
if(ays_pb_effectOut_2 != 'none'){
setTimeout(function(){
$(document).find('.ays-pb-modal_2').css('display', 'none');
var audio = $('#ays_pb_close_sound_2').get(0);
audio.pause();
audio.currentTime = 0;
}, ays_pb_animation_close_speed);
}else{
$(document).find('.ays-pb-modal_2').css('display', 'none');
var audio = $('#ays_pb_close_sound_2').get(0);
audio.pause();
audio.currentTime = 0;
}
}
}
}
});
}
}else{
if(closePopupOverlay && 'On' == 'On'){
$(document).find('.av_pop_modals_2').on('click', function(e) {
var pb_parent_div = $(this);
var pb_div = $(this).find('.ays-pb-modal_2');
if (!pb_div.is(e.target) && pb_div.has(e.target).length === 0){
$(document).find('.ays-pb-modal-close_2').click();
if ('off' === 'on' && typeof sound_src !== 'undefined'){
var audio = $('#ays_pb_sound_2').get(0);
audio.pause();
audio.currentTime = 0;
clearInterval(timer_pb_2);
}
if('1' && typeof close_sound_src !== 'undefined' && 'off' === 'on'){
if('1' !== 0){
$('#ays_pb_close_sound_2').get(0).play();
if(ays_pb_effectOut_2 != 'none'){
setTimeout(function(){
$(document).find('.ays-pb-modal_2').css('display', 'none');
var audio = $('#ays_pb_close_sound_2').get(0);
audio.pause();
audio.currentTime = 0;
clearInterval(timer_pb_2);
}, ays_pb_animation_close_speed);
}else{
$(document).find('.ays-pb-modal_2').css('display', 'none');
var audio = $('#ays_pb_close_sound_2').get(0);
audio.pause();
audio.currentTime = 0;
}
}
}
}
});
}
}
} else {
$(document).find('.ays_pb_timer_2').css('display','none');
$(document).find('.ays-pb-modal_2').css({
'animation-duration': ays_pb_animation_close_seconds + 's'
});
$(document).find('.ays-pb-modal-close_2').one('click', function(){
let ays_pb_effectOut_2 = $(document).find('#ays_pb_modal_animate_out_2').val();
$(document).find('.av_pop_modals_2').css('pointer-events', 'none');
$(document).find('.ays-pb-modal_2').attr('class', 'ays_lil_window ays-pb-modal_2 '+ays_pb_effectOut_2);
$(this).parents('.ays-pb-modals').find('iframe').each(function(){
var key = /https:\/\/www.youtube.com/;
var src = $(this).attr('src');
$(this).attr('src', $(this).attr('src'));
});
$(this).parents('.ays-pb-modals').find('video.wp-video-shortcode').each(function(){
if(typeof $(this).get(0) != 'undefined'){
if ( ! $(this).get(0).paused ) {
$(this).get(0).pause();
}}
});
$(this).parents('.ays-pb-modals').find('audio.wp-audio-shortcode').each(function(){
if(typeof $(this).get(0) != 'undefined'){
if ( ! $(this).get(0).paused ) {
$(this).get(0).pause();
}}
});
if(ays_pb_effectOut_2 != 'none'){
setTimeout(function(){
$(document).find('.ays-pb-modal_2').css('display', 'none');
$(document).find('.av_pop_modals_2').css('display', 'none');
ays_flag = true;
}, ays_pb_animation_close_speed);
}else{
$(document).find('.ays-pb-modal_2').css('display', 'none');
$(document).find('.av_pop_modals_2').css('display', 'none');
ays_flag = true;
}
$(document).find('#ays-pb-screen-shade_2').css({'opacity': '0', 'display': 'none'});
});
}
}if(isPageScrollDisabled){
$(document).find('body').addClass('pb_disable_scroll_2');
$(document).find('html').addClass('pb_disable_scroll_2');jQuery(document).on('click', '.ays-pb-modal-close_2', function() {
$(document).find('body').removeClass('pb_disable_scroll_2');
$(document).find('html').removeClass('pb_disable_scroll_2');
});
}if ('On' != 'On'){
$(document).find('#ays-pb-screen-shade_2').css({'opacity': '0', 'display': 'none !important', 'pointer-events': 'none'});
$(document).find('.ays-pb-modal_2').css('pointer-events', 'auto');
$(document).find('.av_pop_modals_2').css('pointer-events','none');
};
if('false' == 'true' && window.innerWidth < 768){
if(0 != 0 && 'off' != 'on'){
$(document).find('.ays-pb-modal-close_2').css({'display': 'none'});
setTimeout(function(){
$(document).find('.ays-pb-modal-close_2').css({'display': 'block'});
},0);
}
}
else{
if(0 != 0 && 'off' != 'on'){
$(document).find('.ays-pb-modal-close_2').css({'display': 'none'});
setTimeout(function(){
$(document).find('.ays-pb-modal-close_2').css({'display': 'block'});
},0);
}
}
}
// if(0 == 0){
if(closePopupOverlay && 'On' == 'On'){
$(document).find('.av_pop_modals_2').on('click', function(e) {
var pb_parent = $(this);
var pb_div = $(this).find('.ays-pb-modal_2');
if (!pb_div.is(e.target) && pb_div.has(e.target).length === 0){
$(document).find('.ays-pb-modal-close_2').click();
}
});
}
var ays_pb_flag = true;
$(document).on('keydown', function(event) {
if('1' && ays_pb_flag){
if (event.keyCode == 27) {
$(document).find('.ays-pb-modal-close_2').trigger('click');
ays_pb_flag = false;
}
}
});
// }
});
if ('On' != 'On'){
$(document).find('#ays-pb-screen-shade_2').css({'opacity': '0', 'display': 'none !important', 'pointer-events': 'none'});
$(document).find('.ays-pb-modal_2').css('pointer-events', 'auto');
$(document).find('.av_pop_modals_2').css('pointer-events','none');
};
if('clickSelector' != 'both'){
if($(document).find('.ays-pb-modals video').hasClass('wp-video-shortcode')){
var videoWidth = $(document).find('.ays-pb-modals video.wp-video-shortcode').attr('width');
var videoHeight = $(document).find('.ays-pb-modals video.wp-video-shortcode').attr('height');
setTimeout(function(){
$(document).find('.ays-pb-modals .wp-video').removeAttr('style');
$(document).find('.ays-pb-modals .mejs-container').removeAttr('style');
$(document).find('.ays-pb-modals video.wp-video-shortcode').removeAttr('style');$(document).find('.ays-pb-modals .wp-video').css({'width': '100%'});
$(document).find('.ays-pb-modals .mejs-container').css({'width': '100%','height': videoHeight + 'px'});
$(document).find('.ays-pb-modals video.wp-video-shortcode').css({'width': '100%','height': videoHeight + 'px'});
},1000);
}
if($(document).find('.ays-pb-modals iframe').attr('style') != ''){
setTimeout(function(){
$(document).find('.ays-pb-modals iframe').removeAttr('style');
},500);
}
}
if('off' == 'on') {
var video = $(document).find('video.wp-video-shortcode');
for (let i = 0; i < video.length; i++) {
video[i].addEventListener('ended', function() {
if ($(this).next().val() === 'on') {
$(this).parents('.ays_video_window').find('.close-image-btn').trigger('click');
}
});
}
}
});
})( jQuery );
if(typeof aysPopupOptions === "undefined"){
var aysPopupOptions = [];
}
aysPopupOptions["2"] = "eyJwb3B1cGJveCI6eyJpZCI6IjIiLCJ0aXRsZSI6IlNlYXJjaCIsInBvcHVwX25hbWUiOiIiLCJkZXNjcmlwdGlvbiI6IkxpdmUgU2VhcmNoIiwiY2F0ZWdvcnlfaWQiOiIxIiwiYXV0b2Nsb3NlIjoiMCIsImNvb2tpZSI6IjAiLCJ3aWR0aCI6NjAwLCJoZWlnaHQiOjYwMCwiYmdjb2xvciI6IiNmZmZmZmYiLCJ0ZXh0Y29sb3IiOiIjMDAwMDAwIiwiYm9yZGVyc2l6ZSI6IjEiLCJib3JkZXJjb2xvciI6IiNmZmZmZmYiLCJib3JkZXJfcmFkaXVzIjoiNCIsInNob3J0Y29kZSI6Ilt3cGRyZWFtc19hamF4c2VhcmNocHJvIGlkPTJdIiwidXNlcnNfcm9sZSI6IltdIiwiY3VzdG9tX2NsYXNzIjoiIiwiY3VzdG9tX2NzcyI6IiIsImN1c3RvbV9odG1sIjoiSGVyZSBjYW4gYmUgeW91ciBjdXN0b20gSFRNTCBvciBTaG9ydGNvZGUiLCJvbm9mZnN3aXRjaCI6Ik9uIiwic2hvd19vbmx5X2Zvcl9hdXRob3IiOiJvZmYiLCJzaG93X2FsbCI6ImFsbCIsImRlbGF5IjoiMCIsInNjcm9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l9jb2xvclwiOlwiI2ZmZlwiLFwiY2xvc2VfYnV0dG9uX2hvdmVyX2NvbG9yXCI6XCIjMDAwMDAwXCIsXCJibHVyZWRfb3ZlcmxheVwiOlwib2ZmXCIsXCJwYl9hdXRvY2xvc2VfbW9iaWxlXCI6XCIyMFwiLFwiZW5hYmxlX2F1dG9jbG9zZV9kZWxheV90ZXh0X21vYmlsZVwiOlwib2ZmXCIsXCJlbmFibGVfb3ZlcmxheV90ZXh0X21vYmlsZVwiOlwib2ZmXCIsXCJvdmVybGF5X21vYmlsZV9vcGFjaXR5XCI6XCIwLjVcIn0ifX0=";
/* MonsterInsights Scroll Tracking */
if ( typeof(jQuery) !== 'undefined' ) {
jQuery( document ).ready(function(){
function monsterinsights_scroll_tracking_load() {
if ( ( typeof(__gaTracker) !== 'undefined' && __gaTracker && __gaTracker.hasOwnProperty( "loaded" ) && __gaTracker.loaded == true ) || ( typeof(__gtagTracker) !== 'undefined' && __gtagTracker ) ) {
(function(factory) {
factory(jQuery);
}(function($) {/* Scroll Depth */
"use strict";
var defaults = {
percentage: true
};var $window = $(window),
cache = [],
scrollEventBound = false,
lastPixelDepth = 0;/*
* Plugin
*/$.scrollDepth = function(options) {var startTime = +new Date();options = $.extend({}, defaults, options);/*
* Functions
*/function sendEvent(action, label, scrollDistance, timing) {
if ( 'undefined' === typeof MonsterInsightsObject || 'undefined' === typeof MonsterInsightsObject.sendEvent ) {
return;
}
var paramName = action.toLowerCase();
var fieldsArray = {
send_to: 'G-158X3Y3RM5',
non_interaction: true
};
fieldsArray[paramName] = label;if (arguments.length > 3) {
fieldsArray.scroll_timing = timing
MonsterInsightsObject.sendEvent('event', 'scroll_depth', fieldsArray);
} else {
MonsterInsightsObject.sendEvent('event', 'scroll_depth', fieldsArray);
}
}function calculateMarks(docHeight) {
return {
'25%' : parseInt(docHeight * 0.25, 10),
'50%' : parseInt(docHeight * 0.50, 10),
'75%' : parseInt(docHeight * 0.75, 10),
/* Cushion to trigger 100% event in iOS */
'100%': docHeight - 5
};
}function checkMarks(marks, scrollDistance, timing) {
/* Check each active mark */
$.each(marks, function(key, val) {
if ( $.inArray(key, cache) === -1 && scrollDistance >= val ) {
sendEvent('Percentage', key, scrollDistance, timing);
cache.push(key);
}
});
}function rounded(scrollDistance) {
/* Returns String */
return (Math.floor(scrollDistance/250) * 250).toString();
}function init() {
bindScrollDepth();
}/*
* Public Methods
*//* Reset Scroll Depth with the originally initialized options */
$.scrollDepth.reset = function() {
cache = [];
lastPixelDepth = 0;
$window.off('scroll.scrollDepth');
bindScrollDepth();
};/* Add DOM elements to be tracked */
$.scrollDepth.addElements = function(elems) {if (typeof elems == "undefined" || !$.isArray(elems)) {
return;
}$.merge(options.elements, elems);/* If scroll event has been unbound from window, rebind */
if (!scrollEventBound) {
bindScrollDepth();
}};/* Remove DOM elements currently tracked */
$.scrollDepth.removeElements = function(elems) {if (typeof elems == "undefined" || !$.isArray(elems)) {
return;
}$.each(elems, function(index, elem) {var inElementsArray = $.inArray(elem, options.elements);
var inCacheArray = $.inArray(elem, cache);if (inElementsArray != -1) {
options.elements.splice(inElementsArray, 1);
}if (inCacheArray != -1) {
cache.splice(inCacheArray, 1);
}});};/*
* Throttle function borrowed from:
* Underscore.js 1.5.2
* http://underscorejs.org
* (c) 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Underscore may be freely distributed under the MIT license.
*/function throttle(func, wait) {
var context, args, result;
var timeout = null;
var previous = 0;
var later = function() {
previous = new Date;
timeout = null;
result = func.apply(context, args);
};
return function() {
var now = new Date;
if (!previous) previous = now;
var remaining = wait - (now - previous);
context = this;
args = arguments;
if (remaining <= 0) {
clearTimeout(timeout);
timeout = null;
previous = now;
result = func.apply(context, args);
} else if (!timeout) {
timeout = setTimeout(later, remaining);
}
return result;
};
}/*
* Scroll Event
*/function bindScrollDepth() {scrollEventBound = true;$window.on('scroll.scrollDepth', throttle(function() {
/*
* We calculate document and window height on each scroll event to
* account for dynamic DOM changes.
*/var docHeight = $(document).height(),
winHeight = window.innerHeight ? window.innerHeight : $window.height(),
scrollDistance = $window.scrollTop() + winHeight,/* Recalculate percentage marks */
marks = calculateMarks(docHeight),/* Timing */
timing = +new Date - startTime;checkMarks(marks, scrollDistance, timing);
}, 500));}init();
};/* UMD export */
return $.scrollDepth;}));jQuery.scrollDepth();
} else {
setTimeout(monsterinsights_scroll_tracking_load, 200);
}
}
monsterinsights_scroll_tracking_load();
});
}
/* End MonsterInsights Scroll Tracking */
https://officialmauritius.com/wp-content/plugins/contact-form-7/includes/swv/js/index.js
var wpcf7 = {"api":{"root":"https:\/\/officialmauritius.com\/wp-json\/","namespace":"contact-form-7\/v1"},"cached":"1"};
https://officialmauritius.com/wp-content/plugins/contact-form-7/includes/js/index.js
https://officialmauritius.com/wp-content/plugins/simple-weather/js/vue.min.js
https://officialmauritius.com/wp-content/plugins/simple-weather/js/vue-resource.min.js
https://officialmauritius.com/wp-content/plugins/simple-weather/js/moment.min.js
var SimpleWeather = {"rest_route":"https:\/\/officialmauritius.com\/wp-json\/","locale":{"firstDay":1,"months":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthsShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"weekdays":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"weekdaysShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"weekdaysMin":["S","M","T","W","T","F","S"],"gmtOffset":14400},"settings":{"console_log":false}};
var SimpleWeatherAtts = [];
var SimpleWeatherFeeds = [];
https://officialmauritius.com/wp-content/plugins/simple-weather/js/simple-weather.js
https://officialmauritius.com/wp-content/themes/hello-elementor/assets/js/mobilesearch.js
https://officialmauritius.com/wp-content/themes/hello-elementor/assets/js/hello-frontend.min.js
function heateorSssLoadEvent(e) {var t=window.onload;if (typeof window.onload!="function") {window.onload=e}else{window.onload=function() {t();e()}}}; var heateorSssSharingAjaxUrl = 'https://officialmauritius.com/wp-admin/admin-ajax.php', heateorSssCloseIconPath = 'https://officialmauritius.com/wp-content/plugins/sassy-social-share/public/../images/close.png', heateorSssPluginIconPath = 'https://officialmauritius.com/wp-content/plugins/sassy-social-share/public/../images/logo.png', heateorSssHorizontalSharingCountEnable = 0, heateorSssVerticalSharingCountEnable = 0, heateorSssSharingOffset = -10; var heateorSssMobileStickySharingEnabled = 1;var heateorSssCopyLinkMessage = "Link copied.";var heateorSssUrlCountFetched = [], heateorSssSharesText = 'Shares', heateorSssShareText = 'Share';function heateorSssPopup(e) {window.open(e,"popUpWindow","height=400,width=600,left=400,top=100,resizable,scrollbars,toolbar=0,personalbar=0,menubar=no,location=no,directories=no,status")}
https://officialmauritius.com/wp-content/plugins/sassy-social-share/public/js/sassy-social-share-public.js
https://officialmauritius.com/wp-includes/js/hoverIntent.min.js
var megamenu = {"timeout":"300","interval":"100"};
https://officialmauritius.com/wp-content/plugins/megamenu/js/maxmegamenu.js
https://officialmauritius.com/wp-content/plugins/megamenu-pro/assets/public.js
https://officialmauritius.com/wp-content/plugins/announcement-bar/js/carousel.min.js
var announcementBar = {"margin_top_to_bar_height":"header","padding_top_to_bar_height":"","abar_position":"sticky","include_admin_bar":"1"};
https://officialmauritius.com/wp-content/plugins/announcement-bar/js/scripts.js
window.ASP_INSTANCES = [];window.ASP_INSTANCES[1] = {"homeurl":"https:\/\/officialmauritius.com\/","is_results_page":0,"resultstype":"vertical","resultsposition":"hover","resultsSnapTo":"left","results":{"width":"auto","width_tablet":"auto","width_phone":"auto"},"itemscount":4,"charcount":0,"highlight":0,"highlightWholewords":1,"singleHighlight":0,"scrollToResults":{"enabled":0,"offset":0},"autocomplete":{"enabled":1,"trigger_charcount":0,"googleOnly":0,"lang":"en","mobile":1},"trigger":{"delay":300,"autocomplete_delay":310,"update_href":0,"facet":1,"type":1,"click":"ajax_search","click_location":"same","return":"ajax_search","return_location":"same","redirect_url":"?s={phrase}","elementor_url":"https:\/\/officialmauritius.com\/?asp_ls={phrase}"},"overridewpdefault":0,"override_method":"get","settings":{"hideChildren":0},"settingsimagepos":"right","settingsVisible":0,"settingsHideOnRes":0,"prescontainerheight":"400px","closeOnDocClick":1,"focusOnPageload":0,"isotopic":{"itemWidth":"200px","itemWidthTablet":"200px","itemWidthPhone":"200px","itemHeight":"200px","itemHeightTablet":"200px","itemHeightPhone":"200px","pagination":1,"rows":2,"gutter":5,"showOverlay":1,"blurOverlay":1,"hideContent":1},"loaderLocation":"auto","show_more":{"enabled":1,"url":"?s={phrase}","elementor_url":"https:\/\/officialmauritius.com\/?asp_ls={phrase}","action":"ajax","location":"same","infinite":1},"mobile":{"trigger_on_type":1,"click_action":"ajax_search","return_action":"ajax_search","click_action_location":"same","return_action_location":"same","redirect_url":"?s={phrase}","elementor_url":"https:\/\/officialmauritius.com\/?asp_ls={phrase}","menu_selector":"","hide_keyboard":0,"force_res_hover":0,"force_sett_hover":0,"force_sett_state":"none"},"compact":{"enabled":1,"focus":1,"width":"200px","width_tablet":"480px","width_phone":"320px","closeOnMagnifier":1,"closeOnDocument":1,"position":"static","overlay":0},"sb":{"redirect_action":"ajax_search","redirect_location":"same","redirect_url":"?s={phrase}","elementor_url":"https:\/\/officialmauritius.com\/?asp_ls={phrase}"},"rb":{"action":"nothing"},"animations":{"pc":{"settings":{"anim":"fadedrop","dur":300},"results":{"anim":"fadedrop","dur":300},"items":"fadeInDown"},"mob":{"settings":{"anim":"fadedrop","dur":300},"results":{"anim":"fadedrop","dur":300},"items":"voidanim"}},"select2":{"nores":"No results match"},"detectVisibility":0,"autop":{"state":"disabled","phrase":"","count":10},"wooShop":{"useAjax":0,"selector":"#main","url":""},"taxArchive":{"useAjax":0,"selector":"#main","url":""},"cptArchive":{"useAjax":0,"selector":"#main","url":""},"resPage":{"useAjax":0,"selector":"#main","trigger_type":1,"trigger_facet":1,"trigger_magnifier":0,"trigger_return":0},"fss_layout":"flex","scrollBar":{"horizontal":{"enabled":1}},"divi":{"bodycommerce":0},"preventBodyScroll":0,"statistics":0};window.ASP_INSTANCES[2] = {"homeurl":"https:\/\/officialmauritius.com\/","is_results_page":0,"resultstype":"vertical","resultsposition":"hover","resultsSnapTo":"left","results":{"width":"auto","width_tablet":"auto","width_phone":"auto"},"itemscount":4,"charcount":0,"highlight":1,"highlightWholewords":1,"singleHighlight":0,"scrollToResults":{"enabled":0,"offset":0},"autocomplete":{"enabled":1,"trigger_charcount":0,"googleOnly":0,"lang":"en","mobile":1},"trigger":{"delay":300,"autocomplete_delay":310,"update_href":0,"facet":1,"type":1,"click":"ajax_search","click_location":"same","return":"ajax_search","return_location":"same","redirect_url":"?s={phrase}","elementor_url":"https:\/\/officialmauritius.com\/?asp_ls={phrase}"},"overridewpdefault":0,"override_method":"get","settings":{"hideChildren":0},"settingsimagepos":"left","settingsVisible":0,"settingsHideOnRes":0,"prescontainerheight":"400px","closeOnDocClick":1,"focusOnPageload":0,"isotopic":{"itemWidth":"200px","itemWidthTablet":"200px","itemWidthPhone":"200px","itemHeight":"200px","itemHeightTablet":"200px","itemHeightPhone":"200px","pagination":1,"rows":2,"gutter":5,"showOverlay":1,"blurOverlay":1,"hideContent":1},"loaderLocation":"auto","show_more":{"enabled":1,"url":"?s={phrase}","elementor_url":"https:\/\/officialmauritius.com\/?asp_ls={phrase}","action":"ajax","location":"same","infinite":1},"mobile":{"trigger_on_type":1,"click_action":"ajax_search","return_action":"ajax_search","click_action_location":"same","return_action_location":"same","redirect_url":"?s={phrase}","elementor_url":"https:\/\/officialmauritius.com\/?asp_ls={phrase}","menu_selector":"","hide_keyboard":0,"force_res_hover":0,"force_sett_hover":0,"force_sett_state":"none"},"compact":{"enabled":0,"focus":1,"width":"100%","width_tablet":"480px","width_phone":"320px","closeOnMagnifier":1,"closeOnDocument":0,"position":"static","overlay":0},"sb":{"redirect_action":"ajax_search","redirect_location":"same","redirect_url":"?s={phrase}","elementor_url":"https:\/\/officialmauritius.com\/?asp_ls={phrase}"},"rb":{"action":"nothing"},"animations":{"pc":{"settings":{"anim":"fadedrop","dur":300},"results":{"anim":"fadedrop","dur":300},"items":"fadeInDown"},"mob":{"settings":{"anim":"fadedrop","dur":300},"results":{"anim":"fadedrop","dur":300},"items":"voidanim"}},"select2":{"nores":"No results match"},"detectVisibility":0,"autop":{"state":"disabled","phrase":"","count":10},"wooShop":{"useAjax":0,"selector":"#main","url":""},"taxArchive":{"useAjax":0,"selector":"#main","url":""},"cptArchive":{"useAjax":0,"selector":"#main","url":""},"resPage":{"useAjax":0,"selector":"#main","trigger_type":1,"trigger_facet":1,"trigger_magnifier":0,"trigger_return":0},"fss_layout":"flex","scrollBar":{"horizontal":{"enabled":1}},"divi":{"bodycommerce":0},"preventBodyScroll":0,"statistics":0};
if ( typeof window.ASP == 'undefined') { window.ASP = {wp_rocket_exception: "DOMContentLoaded", ajaxurl: "https:\/\/officialmauritius.com\/wp-admin\/admin-ajax.php", backend_ajaxurl: "https:\/\/officialmauritius.com\/wp-admin\/admin-ajax.php", asp_url: "https:\/\/officialmauritius.com\/wp-content\/plugins\/ajax-search-pro\/", upload_url: "https:\/\/officialmauritius.com\/wp-content\/uploads\/asp_upload\/", detect_ajax: 1, media_query: "I6Wf5u", version: 5060, pageHTML: "", additional_scripts: [{"handle":"wd-asp-ajaxsearchpro","path":"\/home\/motinews\/public_html\/officialmauritius\/wp-content\/plugins\/ajax-search-pro\/js\/min\/plugin\/optimized\/asp-prereq.js","src":"https:\/\/officialmauritius.com\/wp-content\/plugins\/ajax-search-pro\/js\/min\/plugin\/optimized\/asp-prereq.js","prereq":[]},{"handle":"wd-asp-ajaxsearchpro-core","path":"\/home\/motinews\/public_html\/officialmauritius\/wp-content\/plugins\/ajax-search-pro\/js\/min\/plugin\/optimized\/asp-core.js","src":"https:\/\/officialmauritius.com\/wp-content\/plugins\/ajax-search-pro\/js\/min\/plugin\/optimized\/asp-core.js","prereq":[]},{"handle":"wd-asp-ajaxsearchpro-compact","path":"\/home\/motinews\/public_html\/officialmauritius\/wp-content\/plugins\/ajax-search-pro\/js\/min\/plugin\/optimized\/asp-compact.js","src":"https:\/\/officialmauritius.com\/wp-content\/plugins\/ajax-search-pro\/js\/min\/plugin\/optimized\/asp-compact.js","prereq":["wd-asp-ajaxsearchpro"]},{"handle":"wd-asp-ajaxsearchpro-vertical","path":"\/home\/motinews\/public_html\/officialmauritius\/wp-content\/plugins\/ajax-search-pro\/js\/min\/plugin\/optimized\/asp-results-vertical.js","src":"https:\/\/officialmauritius.com\/wp-content\/plugins\/ajax-search-pro\/js\/min\/plugin\/optimized\/asp-results-vertical.js","prereq":["wd-asp-ajaxsearchpro"]},{"handle":"wd-asp-ajaxsearchpro-live","path":"\/home\/motinews\/public_html\/officialmauritius\/wp-content\/plugins\/ajax-search-pro\/js\/min\/plugin\/optimized\/asp-live.js","src":"https:\/\/officialmauritius.com\/wp-content\/plugins\/ajax-search-pro\/js\/min\/plugin\/optimized\/asp-live.js","prereq":["wd-asp-ajaxsearchpro"]},{"handle":"wd-asp-ajaxsearchpro-autocomplete","path":"\/home\/motinews\/public_html\/officialmauritius\/wp-content\/plugins\/ajax-search-pro\/js\/min\/plugin\/optimized\/asp-autocomplete.js","src":"https:\/\/officialmauritius.com\/wp-content\/plugins\/ajax-search-pro\/js\/min\/plugin\/optimized\/asp-autocomplete.js","prereq":["wd-asp-ajaxsearchpro"]},{"handle":"wd-asp-ajaxsearchpro-load","path":"\/home\/motinews\/public_html\/officialmauritius\/wp-content\/plugins\/ajax-search-pro\/js\/min\/plugin\/optimized\/asp-load.js","src":"https:\/\/officialmauritius.com\/wp-content\/plugins\/ajax-search-pro\/js\/min\/plugin\/optimized\/asp-load.js","prereq":["wd-asp-ajaxsearchpro-autocomplete"]},{"handle":"wd-asp-ajaxsearchpro-addon-elementor","path":"\/home\/motinews\/public_html\/officialmauritius\/wp-content\/plugins\/ajax-search-pro\/js\/min\/plugin\/optimized\/asp-addons-elementor.js","src":"https:\/\/officialmauritius.com\/wp-content\/plugins\/ajax-search-pro\/js\/min\/plugin\/optimized\/asp-addons-elementor.js","prereq":["wd-asp-ajaxsearchpro-load"]}], script_async_load: false, font_url: "https:\/\/officialmauritius.com\/wp-content\/plugins\/ajax-search-pro\/css\/fonts\/icons\/icons2.woff2", init_only_in_viewport: true, highlight: {"enabled":false,"data":[]}, debug: false, instances: {}, analytics: {"method":"event","tracking_id":"","event":{"focus":{"active":1,"action":"focus","category":"ASP {search_id} | {search_name}","label":"Input focus","value":"1"},"search_start":{"active":0,"action":"search_start","category":"ASP {search_id} | {search_name}","label":"Phrase: {phrase}","value":"1"},"search_end":{"active":1,"action":"search_end","category":"ASP {search_id} | {search_name}","label":"{phrase} | {results_count}","value":"1"},"magnifier":{"active":1,"action":"magnifier","category":"ASP {search_id} | {search_name}","label":"Magnifier clicked","value":"1"},"return":{"active":1,"action":"return","category":"ASP {search_id} | {search_name}","label":"Return button pressed","value":"1"},"try_this":{"active":1,"action":"try_this","category":"ASP {search_id} | {search_name}","label":"Try this click | {phrase}","value":"1"},"facet_change":{"active":0,"action":"facet_change","category":"ASP {search_id} | {search_name}","label":"{option_label} | {option_value}","value":"1"},"result_click":{"active":1,"action":"result_click","category":"ASP {search_id} | {search_name}","label":"{result_title} | {result_url}","value":"1"}}}}};
https://officialmauritius.com/wp-content/cache/asp/asp-68ad1ac0.js