Tres Amigos (Dell Range) – Food Menu

Posted by:

Category:

Comments:

Post Date:


Tres Amigos (Dell Range) – Food Menu

[] Tres Amigos (Dell Range) - Food Menu 0) { $('.navbar.nav-v7').addClass('nav-scroll'); }else { $('.navbar.nav-v7').removeClass('nav-scroll'); } // For GO TO TOP button // if($(document).scrollTop() > 100) { // $('.nav-v8 .nav-tab.helper-tab a').fadeIn("slow"); // }else { // $('.nav-v8 .nav-tab.helper-tab a').fadeOut("fast"); // } }); $(function() { setDropDownMenuWidth(); function setDropDownMenuWidth() { var tabs_list = $('.navbar-tabs .navbar-nav'); $(tabs_list).find('li.drop-down-link').each(function() { var sub_menu_width = $(this).outerWidth(true); if (sub_menu_width 150) { $('html, body').animate({scrollTop: 0}, 750); } } else { window.location = "/"; } }); // $('.nav-v8 .helper-tab').click(function(event) { // event.preventDefault(); // var pageScrollTop = $(window).scrollTop(); // if(pageScrollTop > 150) { // $('html, body').animate({scrollTop: 0}, 750); // } // }); setTimeout(function(){ $('.navbar-fixed-bottom.nav-v1').addClass('show-bottom-nav'); triggerShowFooterEvents(); }, 4000); $(document).ready(function() { // init Masonry $('.food-menu-grid').masonry({ columnWidth: '.food-menu-grid-sizer', itemSelector: '.food-menu-grid-item', percentPosition: true, fitWidth: true }); // Detect if the page is linked from Menu nav tab or Order nav tab if (window.location.search.includes('order=yes')) { $('nav .nav-menu-page').removeClass('active'); $('nav .nav-order-menu-page').addClass('active'); } else { $('nav .nav-order-menu-page').removeClass('active'); $('nav .nav-menu-page').addClass('active'); } }); var active_tab; function showTab(className){ if (active_tab) { $("."+active_tab).hide(); $("."+active_tab+ "_link").removeClass("active"); } $("."+className).show(); active_tab = className; $("."+active_tab+ "_link").addClass("active"); } showTab("menu_112298"); $(".food-menu-v2-wrapper .food-menu-nav a.food-menu-nav-item").click(function(e) { var menu_id = $(this).attr('href'); var food_menu_tab = $(".menu_"+menu_id); if (food_menu_tab.length === 0) { return; } // prevent standard hash navigation (avoid blinking in IE) e.preventDefault(); showTab("menu_"+menu_id); // trigger Masonry layout $('.food-menu-grid').masonry('layout'); }); $( window ).load(function() { // trigger Masonry layout $('.food-menu-grid').masonry('layout'); }); ]]>= 0); linksWithPosition.sort(function(a,b) { return a.position - b.position; }); var footerLinkStyle = (footerLinkPaddingLeft == '0px' || footerLinkPaddingRight == '0px' ? 'style="padding-left: 8px; padding-right: 8px;"' : ''); linksWithPosition.forEach((e, i) => { var target = e.target || getUrlTarget(e.url); bottomNav.insertAdjacentHTML('beforeend', `
  • ${e.website_footer_label}`); }) var intervalCount = 0 var interval = setInterval(() => { if(intervalCount == 50){ clearInterval(interval); } removeOverflowingFooterLinks(); intervalCount ++; }, 200); $('.smart-footer-link').on("click", function(){ if (typeof shUrlParams !== "undefined" && shUrlParams['source'] === undefined){ shUrlParams['source'] = 'footer'; sessionStorage.setItem('shUrlParams', JSON.stringify(shUrlParams)); } var visibleLinks = $('.smart-footer-link').map(function (e) { return $(this).data('type'); }).toArray().join(','); universal_ga('send', 'event', position:" + $(this).data('position') + "); }); } function removeOverflowingFooterLinks(){ var bottomNavLinks = document.querySelectorAll('#bottom-navbar .navbar-nav li'); var width_sum = 0; bottomNavLinks.forEach(e => { width_sum += e.getBoundingClientRect().width; if ((width_sum) > window.innerWidth) { console.log(`%cLink %c${e.textContent} %cdeleted couldn't fit screen`,"color: #fff;background: #202124;", "background: red;color: #fff", "color: #fff;background: #202124;"); e.remove(); } }); } function getUrlTarget(url){ if(url.startsWith('tel')){ return '_self'; } if(url.startsWith('/') || url.includes('tmt.spotapps.co') || url.includes(window.location.host)){ return '_self'; } return '_blank'; } function npb() { var list= document.getElementsByClassName("bottom-list-item"); if (!list) return; if (document.getElementById("bottom-navbar") == null){ return; } var url = "" for (var i=0; i < all_cta_links.length; i++) { if (all_cta_links[i].cta_link_type == "order"){ url = all_cta_links[i].url; } } if ( url == ""){ return; } for (i=0; i < list.length; i++) { console.log(cta_link_matches_href(list[i].firstChild.href, url)); if (cta_link_matches_href(list[i].firstChild.href,url)) return; }; var item = list[list.length-1] document.getElementById("bottom-navbar").getElementsByClassName("nav navbar-nav")[0].appendChild(item.cloneNode(true)); var width_sum = 0; for (i=0; i window.innerWidth) { item.parentNode.removeChild(item); console.log("link deleted couldn't fit screen"); return; } item.firstChild.text = "Order"; item.firstChild.href = url; item.firstChild.id = "bottom_link_" + list.length; $(item.firstChild).on("click", function(){ if (typeof shUrlParams !== "undefined" && shUrlParams['source'] === undefined){ shUrlParams['source'] = 'footer'; sessionStorage.setItem('shUrlParams', JSON.stringify(shUrlParams)); } universal_ga('send', 'event', { eventCategory: 'Button', eventAction: 'Click', eventLabel: 'Plan B-2 Order', transport: 'beacon' }); }); } function activateSmartFooter(){ var smart_footer_active = true; var smart_footer_version = 2 if(window.location.hash == '#smartFooterV2=enabled'){ smartFooterV2(); return; } if (smart_footer_active){ if(smart_footer_version == 2 ){ smartFooterV2(); }else { npb(); } } } activateSmartFooter(); var corona_config_str = '{"id":21265,"spot_id":115936,"promote_deliveries":true,"promote_pick_up":true,"promote_gift_cards":true,"promote_private_parties":true,"promote_catering":true,"promote_reservations":true,"promote_happy_hour":true,"promote_events":true,"promote_walk_ins":true,"instructions_on_food_page":false,"food_page_instruction_text":"To place a delivery or curbside pick-up order, please call:","food_page_instruction_phone":null,"created_at":"2022-12-06T22:20:50+00:00","updated_at":"2023-04-05T19:53:42+00:00","food_page_button_color":null,"food_page_button_text_color":null,"food_page_link_color":null,"food_page_text_color":null,"wine_and_beer_to_go_license":false,"all_alcoholic_to_go_lincense":false,"current_operating_status":"Offering To Go and Dine-in with Full Capacity","contact_tracing_active":false,"contact_tracing_text":"In cooperation with health guidelines for contact tracing, please fill out the form below.","contact_tracing_address_required":false,"collapse_all":false,"deliveries_priority_value":3,"pick_ups_priority_value":3,"reservations_priority_value":0,"private_parties_priority_value":3,"catering_priority_value":0,"gift_cards_priority_value":3,"jobs_priority_value":0,"food_and_drinks_priority_value":3,"specials_priority_value":3,"national_days_priority_value":3,"holidays_priority_value":3,"sports_priority_value":3,"walk_ins_priority_value":3,"collecting_emails_priority_value":5,"collecting_phone_numbers_priority_value":5,"growing_social_media_followers_priority_value":5,"increasing_revenue_vs_saving_time_priority_value":0,"events_priority_value":1,"shopping_cart_type":"TMT","shopping_cart_active":true}'; var corona_config = corona_config_str != '' ? JSON.parse('{"id":21265,"spot_id":115936,"promote_deliveries":true,"promote_pick_up":true,"promote_gift_cards":true,"promote_private_parties":true,"promote_catering":true,"promote_reservations":true,"promote_happy_hour":true,"promote_events":true,"promote_walk_ins":true,"instructions_on_food_page":false,"food_page_instruction_text":"To place a delivery or curbside pick-up order, please call:","food_page_instruction_phone":null,"created_at":"2022-12-06T22:20:50+00:00","updated_at":"2023-04-05T19:53:42+00:00","food_page_button_color":null,"food_page_button_text_color":null,"food_page_link_color":null,"food_page_text_color":null,"wine_and_beer_to_go_license":false,"all_alcoholic_to_go_lincense":false,"current_operating_status":"Offering To Go and Dine-in with Full Capacity","contact_tracing_active":false,"contact_tracing_text":"In cooperation with health guidelines for contact tracing, please fill out the form below.","contact_tracing_address_required":false,"collapse_all":false,"deliveries_priority_value":3,"pick_ups_priority_value":3,"reservations_priority_value":0,"private_parties_priority_value":3,"catering_priority_value":0,"gift_cards_priority_value":3,"jobs_priority_value":0,"food_and_drinks_priority_value":3,"specials_priority_value":3,"national_days_priority_value":3,"holidays_priority_value":3,"sports_priority_value":3,"walk_ins_priority_value":3,"collecting_emails_priority_value":5,"collecting_phone_numbers_priority_value":5,"growing_social_media_followers_priority_value":5,"increasing_revenue_vs_saving_time_priority_value":0,"events_priority_value":1,"shopping_cart_type":"TMT","shopping_cart_active":true}') : null; //corona instuctions function show_corona_instructions(text, phone, btnText){ //format to US number var match = phone.match(/^(d{3})(d{3})(d{4})$/); if(corona_config.shopping_cart_type == "TMT" && corona_config.shopping_cart_active == true) { var linkLocation = "https://tmt.spotapps.co/ordering-menu/?spot_id="+corona_config.spot_id+"&images=yes&accordion=true"; var btnLinkLocation = "https://tmt.spotapps.co/ordering-menu/?spot_id="+corona_config.spot_id+"&images=yes&accordion=true"; }else { var linkLocation = 'tel:+1'+phone+''; var btnLinkLocation = 'tel:+1'+ match[1] + '-' + match[2] + '-' + match[3] +'' } var appendPhone = 'tel:+1'+phone+''; //inject html content if ($('.food-menu-nav').length) { //new template var pageEl = $('.food-menu-nav').css('margin','20px auto 10px auto'); var textColor = rgb2hex($('.section-header').css('color')); var linkColor = rgb2hex($('.food-menu-nav-item.active').css('background-color')); var fontSize = parseInt($('.food-menu-nav-item').css('font-size')); fontSize = fontSize + Math.round(fontSize * 0.25); // var html = '

    '+text+' '+ match[1] + '-' + match[2] + '-' + match[3] +''+btnText+''; var html = '

    '+text+' '+ match[1] + '-' + match[2] + '-' + match[3] +''+btnText+''; }else { //old template var pageEl = $('.tabnav'); var textColor = rgb2hex($('.menu-item-name-traditional').css('color')); var linkColor = rgb2hex($('.style-traditional .tabnav .nav>li.active>a').css('color')); var linkTextColor = getContrast50(linkColor); var fontSize = parseInt($('.menu-item-name-traditional').css('font-size')); fontSize = fontSize + Math.round(fontSize * 0.25); var textTransform = $('.style-traditional .tabnav .nav>li>a').css('text-transform'); // var html = '

    '+text+' '+ match[1] + '-' + match[2] + '-' + match[3] +''+btnText+''; var html = '

    '+text+' '+ match[1] + '-' + match[2] + '-' + match[3] +''+btnText+''; } //html content pageEl.prepend(html); } function rgb2hex(rgb) { if(typeof rgb !== "undefined"){ rgbColor = rgb.match(/^rgb((d+),s*(d+),s*(d+))$/); if (!rgbColor) { rgba = rgb.match(/^rgba?((d+),s*(d+),s*(d+)(,s*d+.*d+)?)$/); return "#" + hex(rgba[1]) + hex(rgba[2]) + hex(rgba[3]); } function hex(x) { return ("0" + parseInt(x).toString(16)).slice(-2); } return "#" + hex(rgbColor[1]) + hex(rgbColor[2]) + hex(rgbColor[3]); } return rgb; } function getContrast50(hexcolor){ return (parseInt(hexcolor, 16) > 0xffffff/2) ? '#000':'#fff'; } function show_corona_sidebar_instructions(text, phone){ //format to US number var match = phone.match(/^(d{3})(d{3})(d{4})$/); var divWidth = 230; var top = 50; var linkSize = '1.6em'; var pSize = $('p').css('font-size'); var appendPhone = 'tel:+1'+phone+''; if ($(window).width() < 1600) var top = 30; if ($(window).width() li.active>a').css('color'); var parent = $('.food-menu').length ? $('.food-menu') : $('.drink-menu'); var linkTextColor = getContrast50(linkColor); } // $(parent).append('

    '+text+' '+ match[1] + '-' + match[2] + '-' + match[3] +''); $(parent).append('

    '+text+' '+ match[1] + '-' + match[2] + '-' + match[3] +''); //check if resolution is bigger than tablet resolution /* if ($(window).width() > 991) { //detect scroll window.onscroll = function (e) { if ($(window).scrollTop() == 0) { $('#corona-instructions-sidebar').hide(); }else { $('#corona-instructions-sidebar').show(); } } } */ } function check_corona_config(config){ console.log(config) if (config) { if (config.instructions_on_food_page && config.food_page_instruction_text && config.food_page_instruction_phone) { if (!config.promote_deliveries && config.promote_pick_up) { var btnText = 'Call For Pick Up'; } if (config.promote_deliveries && !config.promote_pick_up) { var btnText = 'Call For Delivery'; } if (config.promote_deliveries && config.promote_pick_up) { var btnText = 'Call For Pick Up Or Delivery'; } if(typeof btnText !== "undefined"){ // check if pick up or delivery are true if(config.shopping_cart_type == "TMT" && config.shopping_cart_active == true) { var btnText = 'ORDER NOW'; if($('.food-menu-nav').length){ //new template var textColor = rgb2hex($('.section-header').css('color')); var linkColor = rgb2hex($('.food-menu-nav-item.active').css('background-color')); var fontSize = parseInt($('.food-menu-nav-item').css('font-size')); fontSize = fontSize + Math.round(fontSize * 0.25); } else { //old template var textColor = rgb2hex($('.menu-item-name-traditional').css('color')); var linkColor = rgb2hex($('.style-traditional .tabnav .nav>li.active>a').css('color')); var linkTextColor = getContrast50(linkColor); var fontSize = parseInt($('.menu-item-name-traditional').css('font-size')); fontSize = fontSize + Math.round(fontSize * 0.25); } show_corona_instructions('For online orders, use our own commission free ordering platform! or call:', config.food_page_instruction_phone, btnText); show_corona_sidebar_instructions(btnText, config.food_page_instruction_phone); } else { show_corona_instructions(config.food_page_instruction_text, config.food_page_instruction_phone, btnText); show_corona_sidebar_instructions(btnText, config.food_page_instruction_phone); } } } } } if (is_food_menu_page() && !window.location.search.includes("contactless=true")){ $( document ).ready(function() { setTimeout(function(){ check_corona_config(corona_config); }, 300); }); } function isPhone(phone){ var regex = /^(+d{1,2}s?)?(?d{3})?[s.-]?d{3}[s.-]?d{4}$/; return regex.test(phone); } function sendEmail_MT(input_id) { var shp_email_to_subscribe = $("#sph-newsletter-input-" + input_id); var shp_phone_checkbox = $("#sph-newsletter-checkbox-phone-" + input_id).is(':checked'); var shp_phone_to_subscribe = $("#sph-newsletter-phone-" + input_id); if (!isEmail(shp_email_to_subscribe.val())) { alert('Please enter valid email address'); return; } if (shp_phone_to_subscribe.val().length > 0 || shp_phone_checkbox) { if (!isPhone(shp_phone_to_subscribe.val())) { alert('Please enter a valid phone number'); return; } } var sph_email_form_div = $(".sph-email-form"); var sph_loading_img = $(".sph-loading-img"); var sph_response_message_div = $(".sph-response-message"); var sph_submit_label = $(".sph-submit-label"); sph_submit_label.hide(); sph_loading_img.show(); var request = $.ajax({ method: "POST", url: "https://www.spothopperapp.com/api/spots/115936/contacts/add_with_texting_permission", crossDomain: true, dataType: 'json', data: { email: shp_email_to_subscribe.val(), phone: shp_phone_to_subscribe.val(), texting_permission: shp_phone_checkbox }, success: function (data) { sph_response_message_div.html(data); sph_email_form_div.hide(); sph_response_message_div.show(); }, error: function (data) { sph_response_message_div.html("Something went wrong. Please try again later."); sph_email_form_div.hide(); sph_response_message_div.show(); } }); } ]]>


  • Source

    Share this post

    Leave a Reply

    Your email address will not be published. Required fields are marked *


    Related

    Posts