PageSourceSearch

https://primobarbados.com/wp-content/plugins/tlp-food-menu/assets/js/foodmenu.min.js?m=1788924565

js primobarbados.com collected 2026-10-09 23:41:35 UTC 6,473 bytes, 1 lines download raw bytes

1!function(){"use strict";!function(e){var o=localStorage.getItem("fmp_location");if(o)try{JSON.parse(o).name||(localStorage.removeItem("fmp_location"),o=null)}catch(e){localStorage.removeItem("fmp_location"),o=null}e(document).ready(function(){t.fmLocationSet(),t.fmLocationOptionChange(),o||t.fmAddBodyClassForModal("fmp-popup-modal","fmp-location-popup"),t.fmLocationPopupClose(),t.fmSetLocationFormVal(),t.fmFloatingLocationBtn(),t.fmSpecialMenuPopup()});var t={fmSetLocationFormVal:function(){if(null!=o){var t=JSON.parse(o);e(".fmp-location-name").val(t.value).html(t.value),e("#fmp-location-field").show();var n=t.name?parseInt(t.name,10):0;n&&(document.cookie="fmp_location_id=".concat(n,"; path=/; max-age=").concat(2592e3,"; SameSite=Lax")),document.dispatchEvent(new CustomEvent("fmp:location-changed",{detail:{id:n,name:t.value}}))}else e("#fmp-location-field").hide()},fmFloatingLocationBtn:function(){var t=e("#fmp-location-float-btn");if(t.length){if(o){var n=JSON.parse(o);n.value&&(t.find(".fmp-location-float-name").text(n.value),t.show())}t.on("click",function(){var t=e("#fmp-location-modal");if(t.length){if(o){var n=JSON.parse(o);t.find(".fmp-location").val(n.name)}t.fadeIn(),e("body").addClass("fmp-location-popup")}}),document.addEventListener("fmp:location-changed",function(e){e.detail&&e.detail.name?(t.find(".fmp-location-float-name").text(e.detail.name),t.show()):t.hide()})}},fmLocationPopupClose:function(){e(".fmp-popup-modal").on("click",".fmp-close",function(){t.closePopUp("fmp-location-popup",".fmp-popup-modal")})},fmLocationOptionChange:function(){e(".fmp-location").on("change",function(){e(".confirm-msg").removeClass("fmp-hidden")})},fmLocationSet:function(){e(".fmp-popup-modal").on("click",".fmp-save-option",function(){if(e(".fmp-location").val())if(t.saveLocationData(),e(".confirm-msg").addClass("fmp-hidden"),o){var n=JSON.parse(o);e(".fmp-location-name").val(n.value).html(n.value),e(".fmp-location-title").css("display","block")}else e(".fmp-location-title").css("display","none");else e(".confirm-msg").removeClass("fmp-hidden")})},saveLocationData:function(){var t=e(".fmp-location option:selected").val(),n=e(".fmp-location option:selected").text(),a=""===t?"":n;localStorage.setItem("fmp_location",JSON.stringify({name:t,value:a}));var i=t?parseInt(t,10):0;document.cookie="fmp_location_id=".concat(i,"; path=/; max-age=").concat(2592e3,"; SameSite=Lax"),e("#filter_location").find('option[text="'.concat(a,'"]')).prop("selected",!0),e(".fmp-popup-modal").fadeOut(),e("body").removeClass("fmp-location-popup"),o=localStorage.getItem("fmp_location"),document.dispatchEvent(new CustomEvent("fmp:location-changed",{detail:{id:i,name:a}})),location.reload()},fmAddBodyClassForModal:function(o,t){null!==document.querySelector("."+o)&&(e("."+o).fadeIn(),e("body").addClass(t))},fmSpecialMenuPopup:function(){var o=e(".fmp-menu-popup"),n=String(o.attr("data-close-behavior")||"");console.log({closeBehavior:n});var a={1:1,6:6,12:12,24:24}[n]||0;if(e(".menu-popup-close").on("click",function(){t.closePopUp("",".fmp-menu-popup"),t.specialMenuSave(n)}),0!==o.length){if(!a)return localStorage.removeItem("fmp_special_menu"),void o.delay(3e3).fadeIn();var i=60*a*60*1e3,l=JSON.parse(localStorage.getItem("fmp_special_menu"))||{fmp_special_menu:null};if(String(l.behavior)!==n)return localStorage.removeItem("fmp_special_menu"),void o.delay(3e3).fadeIn();var c=l.endDate?new Date(l.endDate):null;c&&new Date-c>i&&localStorage.removeItem("fmp_special_menu"),!l.fmp_special_menu||"yes"!==l.fmp_special_menu||c&&new Date-c>i?o.delay(3e3).fadeIn():o.fadeOut()}},specialMenuSave:function(e){var o=String(e);if(-1!==["1","6","12","24"].indexOf(o)){var t={fmp_special_menu:"yes",endDate:new Date,behavior:o};localStorage.setItem("fmp_special_menu",JSON.stringify(t))}else localStorage.removeItem("fmp_special_menu")},closePopUp:function(){e("body").removeClass(arguments.length<=0?void 0:arguments[0]),e(arguments.length<=1?void 0:arguments[1]).css("display","none").addClass("fmp-hidden")}};window.initFoodMenu=function(){e(".fmp-wrapper").each(function(){var o=e(this),t=e(this).attr("data-layout"),n=o.find(".fmp-pre-loader"),a=o.find(".fmp-content-loader");t&&(0===n.find(".fmp-loading-overlay").length&&n.append('<div class="fmp-loading-overlay"></div><div class="fmp-loading fmp-ball-clip-rotate"><div></div></div>'),o.find(".fmp-content-loader").removeClass("element-loading"),a.find(".fmp-loading, .fmp-loading-overlay").fadeOut(100,function(){var o=this;setTimeout(function(){e(o).remove()},700)}),setTimeout(function(){a.removeClass("fmp-pre-loader")},700))})},e(window).on("load",function(){window.initFoodMenu()}),e(window).on("elementor/frontend/init",function(){elementorFrontend.isEditMode()&&parent.document.addEventListener("mousedown",function(e){var o=parent.document.querySelectorAll(".elementor-element--promotion");if(o.length>0)for(var t=0;t<o.length;t++)if(o[t].contains(e.target)){var n=parent.document.querySelector("#elementor-element--promotion__dialog");if(o[t].querySelector(".icon > i").classList.toString().indexOf("rtfm-elementor-icon")>=0)if(n.querySelector(".dialog-buttons-action").style.visibility="hidden",n.querySelector(".dialog-buttons-action").style.width=0,n.querySelector(".dialog-buttons-action").style.height=0,n.querySelector(".dialog-buttons-action").style.opacity=0,n.querySelector(".dialog-buttons-action").style.padding=0,null===n.querySelector(".rt-dialog-buttons-action")){var a=document.createElement("a"),i=document.createTextNode("Get Pro");a.setAttribute("href","https://www.radiustheme.com/downloads/food-menu-pro-wordpress/"),a.setAttribute("target","_blank"),a.classList.add("dialog-button","dialog-action","dialog-buttons-action","elementor-button","elementor-button-success","rt-dialog-buttons-action"),a.appendChild(i),n.querySelector(".dialog-buttons-action").insertAdjacentHTML("afterend",a.outerHTML)}else n.querySelector(".rt-dialog-buttons-action").style.display="";else n.querySelector(".dialog-buttons-action").style.display="",n.querySelector(".dialog-buttons-action").style.visibility="",n.querySelector(".dialog-buttons-action").style.width="",n.querySelector(".dialog-buttons-action").style.height="",n.querySelector(".dialog-buttons-action").style.opacity="",n.querySelector(".dialog-buttons-action").style.padding="",null!==n.querySelector(".rt-dialog-buttons-action")&&(n.querySelector(".rt-dialog-buttons-action").style.display="none");break}})})}(jQuery)}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.