<!DOCTYPE html>
<html lang="en"><head><!-- Google tag (gtag.js) --><script async="async" src="https://www.googletagmanager.com/gtag/js?id=G-VG24VK2VKT"></script><script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());

    gtag('set', 'linker', {'domains': ['tmt.spotapps.co','spothopperapp.com']});
    gtag('config', 'G-RG0PC924CG');
    gtag('config', 'G-VG24VK2VKT');
  </script><!-- wcache 2025-03-31 11:04:58.754918Z --><!--
smart_footer: false,
smart_footer_version: 1,
scripting_active: false
--><meta charset="utf-8"/><meta content="IE=edge" http-equiv="X-UA-Compatible"/><meta content="width=device-width, initial-scale=1" name="viewport"/><meta content="" name="description"/><meta content="" name="author"/><meta content="Well Hung Vineyard- Landing Page - Charleston, SC" property="og:title"/><meta content="website" property="og:type"/><meta content="http://wellhungvineyard.com/" property="og:url"/><meta content="..." property="og:description"/><meta content="https://static.spotapps.co/website_images/ab_websites/339175_website_v1/social.jpg" property="og:image"/><meta content="Spot logo" property="og:image:alt"/><meta content="image/png" property="og:image:type"/><meta content="summary_large_image" name="twitter:card"/><meta content="Well Hung Vineyard- Landing Page - Charleston, SC" name="twitter:title"/><meta content="..." name="twitter:description"/><meta content="https://static.spotapps.co/website_images/ab_websites/339175_website_v1/social.jpg" name="twitter:image"/><title>Well Hung Vineyard- Landing Page - Charleston, SC</title><script>document.cookie='resolution='+Math.max(screen.width,screen.height)+("devicePixelRatio" in window ? ","+devicePixelRatio : ",1")+'; path=/';</script><link href="https://static.spotapps.co/website_images/ab_websites/339175_website_v1/favicons/apple-touch-icon.png" rel="apple-touch-icon" sizes="180x180"/><link href="https://static.spotapps.co/website_images/ab_websites/339175_website_v1/favicons/favicon-32x32.png" rel="icon" sizes="32x32" type="image/png"/><link href="https://static.spotapps.co/website_images/ab_websites/339175_website_v1/favicons/favicon-16x16.png" rel="icon" sizes="16x16" type="image/png"/><link href="https://static.spotapps.co/website_images/ab_websites/339175_website_v1/favicons/site.webmanifest" rel="manifest"/><link color="#5bbad5" href="https://static.spotapps.co/website_images/ab_websites/339175_website_v1/favicons/safari-pinned-tab.svg" rel="mask-icon"/><link href="https://static.spotapps.co/website_images/ab_websites/339175_website_v1/favicons/favicon.ico" rel="shortcut icon"/><meta content="#da532c" name="msapplication-TileColor"/><meta content="https://static.spotapps.co/website_images/ab_websites/339175_website_v1/favicons/browserconfig.xml" name="msapplication-config"/><meta content="#ffffff" name="theme-color"/><link href="https://static.spotapps.co/web/wellhungvineyard--com/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet"/><link href="https://static.spotapps.co/web/wellhungvineyard--com/lib/gallery/gallery.css" rel="stylesheet"/><link href="https://static.spotapps.co/web/wellhungvineyard--com/lib/fancybox/source/jquery.fancybox.css" media="screen" rel="stylesheet" type="text/css"/><link href="https://static.spotapps.co/web/wellhungvineyard--com/lib/fancybox/source/helpers/jquery.fancybox-thumbs.css" rel="stylesheet" type="text/css"/><link href="//unpkg.com/leaflet-gesture-handling/dist/leaflet-gesture-handling.min.css" rel="stylesheet" type="text/css"/><link href="https://static.spotapps.co/web/wellhungvineyard--com/lib/uikit/css/uikit.docs.min.css" rel="stylesheet"/><link href="https://static.spotapps.co/web/wellhungvineyard--com/lib/uikit/css/slidenav.css" rel="stylesheet"/><link href="https://static.spotapps.co/web/wellhungvineyard--com/lib/font-awesome-4.7.0/css/font-awesome.min.css" rel="stylesheet"/><link href="https://static.spotapps.co/web/wellhungvineyard--com/lib/hover_css/css/hover-min.css" rel="stylesheet"/><link href="https://static.spotapps.co/web/wellhungvineyard--com/lib/owlcarousel/owl.carousel.min.css" rel="stylesheet"/><link href="https://static.spotapps.co/web/wellhungvineyard--com/lib/owlcarousel/owl.theme.default.min.css" rel="stylesheet"/><link href="https://unpkg.com/leaflet@1.3.1/dist/leaflet.css" rel="stylesheet"/><link href="https://static.spotapps.co/web/wellhungvineyard--com/css/style.css?version2" id="mainCSS" rel="stylesheet"/><link href="css/custom.css?v1733481198&domain=wellhungvineyard.com" rel="stylesheet"/><link href="https://static.spotapps.co/web/wellhungvineyard--com/lib/icons_font/css/social_icons.css" rel="stylesheet"/><!--[if IE 7]><link rel="stylesheet" href="lib/icons_font/css/social_icons-ie7.css"><![endif]--><link href="https://static.spotapps.co/web/wellhungvineyard--com/lib/twitter_x_font_icon/css/twitter_x.css" rel="stylesheet"/><!--[if IE 7]><link rel="stylesheet" href="lib/twitter_x_font_icon/css/twitter_x-ie7.css"><![endif]--><!--[if lt IE 9]>
    <script src="//oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="//oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]--><style>

#accessibility-footer {
  padding: 20px 5px;
  background-color: #353638;
  color: #fff;
  text-align: center;
}
#accessibility-footer p {
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: initial;
  color: #fff;
}
#accessibility-footer .accessibility-link {
  display: inline-block;
  color: inherit;
  text-decoration: underline;
  font-weight: 600;
}

@media (max-width: 767px) {
  #accessibility-footer .accessibility-link {
   display: block;
  }
}

</style><script>
function ga_check(){
  return true;
}
</script><script>
function universal_ga(action, type, category, ev_action, label){
  if(typeof ga === 'function')
  {
    if(!(action && label))
      ga(action, type, category)
    else
      ga(action, type, category, ev_action, label)
  }

  if(typeof gtag === 'function')
  {
    if(!(action && label))
    {
      hash = category
      ev_label = hash["eventLabel"]
      var splits = ev_label.match(/.{1,100}/g) ?? [];
      delete(hash["eventLabel"])
      
      if(splits.length <= 1)
        hash["eventLabel"] = ev_label
      else
      {
        for (let i = 0; i < splits.length; i++) {
          var key = "eventLabel_"+i
          hash[key] = splits[i]
        }
      }
      console.log(hash)
      gtag("event", hash["eventCategory"], hash);
    }
    else
    {
      var hash = {
        eventCategory: category, 
        eventAction: ev_action 
      }

      var splits = label.match(/.{1,100}/g) ?? [];
      if(splits.length <= 1)
        hash["eventLabel"] = label
      else
      {
        for (let i = 0; i < splits.length; i++) {
          var key = "eventLabel_"+i
          hash[key] = splits[i]
        }
      }
      gtag("event", hash["eventCategory"], hash);
    }
  }
}
</script></head><body class="home-page" data-spot-id="339175"><header class="header cover-type-html" style="
    background-image: url(https://static.spotapps.co/website_images/ab_websites/339175_website_v1/back.jpg);
          background-image: linear-gradient( rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) ), url(https://static.spotapps.co/website_images/ab_websites/339175_website_v1/back.jpg);
      background-image: -webkit-linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url(https://static.spotapps.co/website_images/ab_websites/339175_website_v1/back.jpg);
       
    background-repeat: no-repeat;
    background-position: center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
        z-index: 100000;
        "><div id="home_page_cover" style="height:100%;"><style>
.on-cover-content {
  display: table;
}
</style><div class="on-cover-content  content-center"><div class="section-wrapper"><div class="container"><h1 class="section-header"><img alt="Well Hung Vineyard and Restaurant" class="cover-logo-img" src="https://static.spotapps.co/website_images/ab_websites/339175_website_v1/logo.png"/><span>Seriously Fun Wines &amp; Inspired Cuisine</span></h1><div class="buttons-group-holder"><a class="custom-temp-btn hvr-fade" href="https://gordonsville.wellhungvineyard.com/" target="_blank"><span class="visuallyhidden">Visit the</span>Gordonsville, VA<span class="visuallyhidden">location website</span></a><a class="custom-temp-btn hvr-fade" href="https://roanoke.wellhungvineyard.com/" target="_blank"><span class="visuallyhidden">Visit the</span>Roanoke, VA<span class="visuallyhidden">location website</span></a><a class="custom-temp-btn hvr-fade" href="https://charleston.wellhungvineyard.com/" target="_blank"><span class="visuallyhidden">Visit the</span>Charleston, SC<span class="visuallyhidden">location website</span></a><a class="custom-temp-btn hvr-fade" href="https://wellhungvineyard.myshopify.com/collections/all" target="_blank"><span class="visuallyhidden">Visit the</span>Merch Shop<span class="visuallyhidden">location website</span></a><a class="custom-temp-btn hvr-fade" href="https://store.princemichel.com/Shop-Wine---Gifts/Well-Hung" target="_blank"><span class="visuallyhidden">Visit the</span>Wine Shop<span class="visuallyhidden">website</span></a></div></div></div></div></div></header><main id="content" role="main"></main><script src="https://static.spotapps.co/web/wellhungvineyard--com/lib/jquery/jquery.min.js"></script><script src="https://static.spotapps.co/web/wellhungvineyard--com/lib/jquery/jquery.browser.min.js"></script><script src="https://static.spotapps.co/web/wellhungvineyard--com/lib/bootstrap/js/bootstrap.min.js"></script><script src="https://static.spotapps.co/web/wellhungvineyard--com/lib/owlcarousel/owl.carousel.min.js"></script><script src="https://static.spotapps.co/web/wellhungvineyard--com/lib/masonry/masonry.pkgd.min.js"></script><script src="https://static.spotapps.co/web/wellhungvineyard--com/lib/fancybox/source/jquery.fancybox.js" type="text/javascript"></script><script src="https://static.spotapps.co/web/wellhungvineyard--com/lib/fancybox/source/jquery.fancybox.pack.js" type="text/javascript"></script><script src="https://static.spotapps.co/web/wellhungvineyard--com/lib/fancybox/source/helpers/jquery.fancybox-thumbs.js?v=1.0.7" type="text/javascript"></script><script src="https://static.spotapps.co/web/wellhungvineyard--com/lib/fancybox/source/helpers/jquery.fancybox-media.js?v=1.0.6" type="text/javascript"></script><script type="text/javascript">




    var navigation_alpha_starts_from = 0;
    var navigation_background_color = "rgba(0, 0, 0,";
    var navigation_darkens_on_scroll = "1";
    var top_nav_new_style = !navigation_darkens_on_scroll && ($(window).width() > 767);
    var custom_nav_style = "1";
    if(!custom_nav_style){
      $('.navbar-regular').css('background-color', 'rgba(255, 255, 255,' + navigation_alpha_starts_from + ')');
      $('.navbar-inverse').css('background-color', navigation_background_color + (top_nav_new_style ? 0 : navigation_alpha_starts_from) + ')');
    }

    if (navigation_darkens_on_scroll && !custom_nav_style) {
        $(document).on('scroll', function (e) {
            var alpha = navigation_alpha_starts_from + $(document).scrollTop() / 1950;
            $('.navbar-inverse').css('background-color', navigation_background_color + alpha + ')');
            $('.navbar-regular').css('background-color', 'rgba(255, 255, 255,' + alpha + ')');
        });
    }

    if (!navigation_darkens_on_scroll && !custom_nav_style) {
        $(window).resize(function() {
            if ($(window).width() > 767)
                $('.navbar-inverse').css('background-color', navigation_background_color + 0 + ')');
            else
                $('.navbar-inverse').css('background-color', navigation_background_color + navigation_alpha_starts_from + ')');
        });
    }

</script><script>
    var animate_sections = ["banner","aboutus_v2","gallery_v3","aboutus_v7"];

    for (var i = 0; i < animate_sections.length; i++) {
      $('#'+animate_sections[i]).addClass('animation-element');
    }

    var $animation_elements = $('.animation-element');
    var $window = $(window);

    function check_if_in_view() {
    var window_height = $window.height();
    var window_top_position = $window.scrollTop();
    var window_bottom_position = (window_top_position + window_height/2);

    $.each($animation_elements, function() {
      var $element = $(this);
      var element_height = $element.outerHeight();
      var element_top_position = $element.offset().top;
      var element_bottom_position = (element_top_position + element_height/2);

      //check to see if this current container is within viewport
      if ((element_bottom_position >= window_top_position) &&
          (element_top_position <= window_bottom_position)) {
        $element.addClass('animate');
      } else {
        // $element.removeClass('in-view');
      }
    });
    }

    $window.on('scroll resize', check_if_in_view);
    $window.trigger('scroll');
  </script><script>
$(function () {
  //If Newsletter widget (popup or section) is on
  if ($('.newsletter-popup').length || $('.map-newsletter').length || $('.newsletter-section').length) {
    //Inject html needed for ADA
    var waitSPHWidget = setInterval(function(){
      if ($('.sph-email-input').length) {
        //
        $('.sph-loading-img img').attr('alt', 'Newsletter Loader icon');
        clearInterval(waitSPHWidget)
      }
    }, 300);
  }
});
</script><script>
// Functions needed for Newsletter (sh widget) subscription submit (case when texting is Off in SH)
function isEmail(email) {
  var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;
  return regex.test(email);
}
function submitEmail(input_id) {
  var shp_email_to_subscribe = $("#sph-newsletter-input-" + input_id);
  if (!isEmail(shp_email_to_subscribe.val())) {
    alert('Please enter valid email address');
    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/339175/contacts/add",
    crossDomain: true,
    dataType: 'json',
    data: { email: shp_email_to_subscribe.val() },
    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();
    }
  });
}
</script><script>// ALL_PAGES_COMPONENT
var smart_footer_active = 'false' == 'true';
var smart_footer_version = '1';

</script><footer id="accessibility-footer"><p>We strive to make our website accessible to everybody. <a aria-label="Learn More About our website accessibility" class="accessibility-link" href="/accessibility-page-01" target="_self">Learn More.</a></p></footer><script>

  var spot_id = 339175;
  var sh_generic_form_params=JSON.parse('{}');

  if (false){
    console.log("Check SpotHopper configuration. Probably there is no 'WEBSITE::DOMAIN_NAME' key for your website");
  }

  if (navigator.userAgent.match(/iPhone/i)
     || navigator.userAgent.match(/iPad/i)
     || navigator.userAgent.match(/iPod/i)){
    $(document).ready(function(){
          document.body.className += " " + "webkit-mobile-body";
    });
  }

  var promotion_url_param_domain = getPromotionUrlParams()['domain'];
  if ( promotion_url_param_domain && ( new URL(document.location).host == 'localhost:4000' || new URL(document.location).host == 'wcache.spotapps.co' ||  new URL(document.location).host == 'website-editor.spotapps.co' || new URL(document.location).host == 'website-editor-staging.spotapps.co' || new URL(document.location).host == 'wcache-staging.spotapps.co')){
    $("a[href^='/']").each(function(){
      if (this.href.indexOf('domain=') == -1){
        var sh_internal_url = new URL(this.href);
        sh_internal_url.searchParams.set("domain", promotion_url_param_domain);
        this.href = sh_internal_url.toString();
      }
    })
  }


  function cta_link_matches_href(href, url){
    var domain = 'wellhungvineyard.com';
    if(typeof url === 'undefined'){
      return false;
    }
    var partsOfURL = url.split(domain);
    if (partsOfURL.length != 2){
      return href == url;
    }else{
      var urlPath = partsOfURL[1];
      if (urlPath.substring(0,1) == "/"){
        urlPath = urlPath.substring(1,urlPath.length);
      }
      return href.indexOf(urlPath, domain.length + href.indexOf(domain)-1) !== -1;
    }
  }

  var all_cta_links = [];

  function find_cta_link(href) {
    for (var i=0; i< all_cta_links.length; i++){
      var cta_link = all_cta_links[i];
      if ( cta_link_matches_href(href, cta_link.url)){
        return cta_link;
      }
    }
  }

  function find_cta_links(href) {
    var cta_links = []
    for (var i=0; i< all_cta_links.length; i++){
      var cta_link = all_cta_links[i];
      if ( cta_link_matches_href(href, cta_link.url)){
        cta_links.push(cta_link);
      }
    }
    return cta_links;
  }


  function get_current_page_cta_link_types(){
    var types = [];
    var cta_links = find_cta_links(document.location.href);
    for (var i=0; i<cta_links.length; i++){
      types.push(cta_links[i].cta_link_type);
    }
    return types;
  }


  function is_food_menu_page(){
    var cta_link_types = get_current_page_cta_link_types();
    for (var i=0; i<cta_link_types.length; i++){
      if ('food_menu' == cta_link_types[i])
        return true;
    }
    return false;
  }


  function get_form_cat_from_cta(){
    var cta_link = find_cta_link(document.location.href);
    if (cta_link == null) {
        return null;
    }
    if (cta_link.cta_link_type == 'private_parties'){
        return 'private_party';
    }else if (cta_link.cta_link_type == 'reservations'){
        return 'reservation';
    }else if (cta_link.cta_link_type == 'catering'){
        return 'catering';
    }else if (cta_link.cta_link_type == 'job_listing'){
        return 'job_listings';
    }else if (cta_link.cta_link_type == 'gift_cards'){
          return 'gift_cards';
    }
    return null;
  }

  function element_has_events_defined(elem){
    if ($._data(elem, "events") === undefined){
      return false;
    }
    return true;
  }

  function create_ga_events_for_cta_clicks(){
    if (typeof $ === 'function'){

      var cta_link_of_the_page = find_cta_link(location.href);


      $("a").each(function(index, elem){
        var href = $(elem).attr('href');

        if (href  === undefined ){
           return;
        }

        if (href.substring(0,4) == 'tel:'){
          if (!element_has_events_defined(elem)){  // not footer links
            $(elem).on("click", function(){
                universal_ga('send', 'event', {
                  eventCategory: 'Button',
                  eventAction: 'Click',
                  eventLabel: 'Phone',
                  transport: 'beacon'
                });
             });

             if (cta_link_of_the_page){
                $(elem).on("click", function(){
                    universal_ga('send', 'event', {
                      eventCategory: 'Button',
                      eventAction: 'Click',
                      eventLabel: cta_link_of_the_page.cta_link_type +  ' page phone',
                      transport: 'beacon'
                    });
                 });
             }
          } else {
             if (cta_link_of_the_page){
               $(elem).on("click", function(){
                   universal_ga('send', 'event', {
                        eventCategory: 'Button',
                        eventAction: 'Click',
                        eventLabel: cta_link_of_the_page.cta_link_type +  ' page phone footer',
                        transport: 'beacon'
                   });
               });
             }
          }


        }else{
          var cta_link = find_cta_link(href);
          if (elem.className != null && elem.className.indexOf("bottom-link") > -1){
            // console.log("bottom link detected");
          }else{
            if (cta_link != null){
              $(elem).on("click", function(){
                universal_ga('send', 'event', {
                        eventCategory: 'Website Link',
                        eventAction: 'Click',
                        eventLabel: cta_link.cta_link_type,
                        transport: 'beacon'
                  });
              });
            }
          }
        }


      });
    }
  }

  if (typeof angular === "undefined") {
    create_ga_events_for_cta_clicks();
  } else {
    angular.element(document).ready(function () {
      create_ga_events_for_cta_clicks();
    });
  }


  function triggerShowFooterEvents(){
    if (window.screen.availWidth < 768){
        universal_ga('send', 'event', {
                eventCategory: 'Mobile Footer',
                eventAction: 'View',
                eventLabel: '',
                transport: 'beacon'
          });
    }
  }




  ////////////
  function smartFooterV2()
  {
    var list= document.getElementsByClassName("bottom-list-item");
    if (!list) return;

    if (document.getElementById("bottom-navbar") == null){
      return;
    }

    var bottomNav = document.querySelector('#bottom-navbar .navbar-nav');
    var footerLinkPaddingLeft = $('#bottom-navbar .navbar-nav li a').css('padding-left');
    var footerLinkPaddingRight = $('#bottom-navbar .navbar-nav li a').css('padding-right');

    bottomNav.innerHTML = '';
    var linksWithPosition = all_cta_links.filter(e => e.position != null && e.position >= 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',
        `<li class="bottom-list-item" style="white-space: nowrap;width: auto;"><a ${footerLinkStyle} class="bottom-link smart-footer-link" data-type="${e.cta_link_type}" data-position="${i}" target="${target}" href="${e.url}">${e.website_footer_label}</a></li>`);
    })

    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', {
                  eventCategory: 'Button',
                  eventAction: 'Click_footer_2',
                  eventLabel: "type:" + $(this).data('type') + "|position:" + $(this).data('position') + "|visible:" + visibleLinks,
                  transport: 'beacon'
            });
    });
  }

  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 < list.length; i++) {
    		width_sum += list[i].getBoundingClientRect().width;
    	}

    	var item = list[list.length-1]
    	if ((width_sum - 10) > 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 = false;
    var smart_footer_version = 1
    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 = '';
  var corona_config =  corona_config_str != '' ?  JSON.parse('') : 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 = '<div id="show-corona-instructions" style="padding:20px;flex: 0 1 100%;" class="text-center"><p style="color:'+textColor+';">'+text+' <a onclick="ga(\'send\', \'event\', \'Button\', \'Click\', \'Corona Instructions Phone\');" style="color:'+linkColor+';"href="tel:+1'+phone+'">'+ match[1] + '-' + match[2] + '-' + match[3] +'</a></p><a onclick="ga(\'send\', \'event\', \'Button\', \'Click\', \'Corona Instructions Phone\');" style="font-size:'+fontSize+'px" class="food-menu-nav-item custom-temp-btn hvr-fade active" href="tel:+1'+phone+'">'+btnText+'</a></div>';
      var html = '<div id="show-corona-instructions" style="padding:20px;flex: 0 1 100%;" class="text-center"><p style="color:'+textColor+';">'+text+' <a onclick="ga(\'send\', \'event\', \'Button\', \'Click\', \'Corona Instructions Phone\');this.href=\'' + appendPhone + '\';" style="text-decoration: underline;color:'+textColor+';" href="/call-us/'+phone+'">'+ match[1] + '-' + match[2] + '-' + match[3] +'</a></p><a onclick="ga(\'send\', \'event\', \'Button\', \'Click\', \'Corona Instructions Phone\');" style="display: inline-block !important;font-size:'+fontSize+'px" class="food-menu-nav-item custom-temp-btn hvr-fade active" href="'+btnLinkLocation +'">'+btnText+'</a></div>';

    }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 = '<div id="show-corona-instructions" style="padding:20px;flex: 0 1 100%;" class="text-center"><p style="color:'+textColor+';margin-bottom:20px;">'+text+' <a onclick="ga(\'send\', \'event\', \'Button\', \'Click\', \'Corona Instructions Phone\');" style="color:'+linkColor+';"href="tel:+1'+phone+'">'+ match[1] + '-' + match[2] + '-' + match[3] +'</a></p><a onclick="ga(\'send\', \'event\', \'Button\', \'Click\', \'Corona Instructions Phone\');" style="margin: 20px auto; padding: 10px 50px 10px 30px; cursor: pointer; background-color: '+linkColor+'; background: '+linkColor+'; text-decoration: none; color: '+textColor+'; border: 2px solid '+linkColor+';font-size:'+fontSize+'px;text-transform: '+textTransform+'" href="tel:+1'+phone+'">'+btnText+'</a></div>';
      var html = '<div id="show-corona-instructions" style="padding:20px;flex: 0 1 100%;" class="text-center"><p style="color:'+textColor+';margin-bottom:20px;">'+text+' <a onclick="ga(\'send\', \'event\', \'Button\', \'Click\', \'Corona Instructions Phone\');" style="text-decoration: underline;color:'+textColor+';"href="tel:+1'+phone+'">'+ match[1] + '-' + match[2] + '-' + match[3] +'</a></p><a onclick="ga(\'send\', \'event\', \'Button\', \'Click\', \'Corona Instructions Phone\');" style="margin: 20px auto; padding: 10px 30px 10px 30px; cursor: pointer; background-color: '+linkColor+'; background: '+linkColor+'; text-decoration: none; color: '+linkTextColor+'; border: 2px solid '+linkColor+';font-size:'+fontSize+'px;text-transform: '+textTransform+'" href="'+btnLinkLocation+'">'+btnText+'</a></div>';

    }
     //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() < 1200){
      var divWidth = 180;
      var linkSize = '1.4em';
      var pSize ='1.1em';
    }

    if($('.food-menu-nav').length){ //new template
      var textColor = $('.food-menu-nav-item.active').css('color');
      var linkColor = $('.food-menu-nav-item.active').css('background-color');

      var linkTextColor = $('.food-menu-nav-item.active').css('color');
      var parent = $('.food-menu-page');
    }
    else { //old template
      var textColor = $('.menu-item-name-traditional').css('color');
      var linkColor = $('.style-traditional .tabnav .nav>li.active>a').css('color');
      var parent = $('.food-menu').length ? $('.food-menu') : $('.drink-menu');
      var linkTextColor = getContrast50(linkColor);
    }

    // $(parent).append('<div id="corona-instructions-sidebar" style="display:none;position:fixed;width:'+divWidth+'px;top:'+top+'vh;right:0;background-color:'+linkColor+';padding:15px;text-align:center;color:'+textColor+';text-transform:uppercase;"><p style="margin:0 0 5px;font-size:'+pSize+';">'+text+'</p><i class="fa fa-phone" aria-hidden="true"></i> <a onclick="ga(\'send\', \'event\', \'Button\', \'Click\', \'Food Page Side Element Phone\');"  style="font-size:'+linkSize+';color:'+textColor+';" href="tel:+1'+phone+'">'+ match[1] + '-' + match[2] + '-' + match[3] +'</a></div>');
    $(parent).append('<div id="corona-instructions-sidebar" style="display:none;position:fixed;width:'+divWidth+'px;top:'+top+'vh;right:0;background-color:'+linkColor+';padding:15px;text-align:center;color:'+linkTextColor+';text-transform:uppercase;"><p style="margin:0 0 5px;font-size:'+pSize+';">'+text+'</p><i class="fa fa-phone" aria-hidden="true"></i> <a onclick="ga(\'send\', \'event\', \'Button\', \'Click\', \'Food Page Side Element Phone\');this.href=\'' + appendPhone + '\';"  style="font-size:'+linkSize+';color:'+linkTextColor+';" href="/call-us/'+phone+'">'+ match[1] + '-' + match[2] + '-' + match[3] +'</a></div>');

    //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 <a style="text-decoration:underline;color: '+textColor+';" href="https://tmt.spotapps.co/ordering-menu/?spot_id='+config.spot_id+'&images=yes&accordion=true#"> commission free ordering platform! </a> 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) {
    const $loader = $("[data-id=newsletter-widget-2] .sph-loading-img");

    const $step = {
      form: $("[data-id=newsletter-widget-2] .sph-email-form"),
      message: $("[data-id=newsletter-widget-2] .sph-response-message"),
    }

    const $field = {
      email: $("[data-id=newsletter-widget-2] #sph-newsletter-input-" + input_id),
      phone: $("[data-id=newsletter-widget-2] #sph-newsletter-phone-" + input_id),
      consent: $("[data-id=newsletter-widget-2] #sph-newsletter-checkbox-phone-" + input_id),
    };

    const $error = {
      email: $("[data-id=newsletter-widget-2] #sph-newsletter-email-error-" + input_id),
      phone: $("[data-id=newsletter-widget-2] #sph-newsletter-phone-error-" + input_id),
    };

    if ($field.email.val().trim() === "") {
        $error.email
          .html("This field is required")
          .show();
    }
    else if (!isEmail($field.email.val().trim())) {
      $error.email
        .html("Please use the format “email@example.com”")
        .show();
    } else {
      $error.email
        .html("")
        .hide();
    }

    if ($field.consent.is(':checked') && $field.phone.val().trim() === "") {
      $error.phone
        .html("This field is required")
        .show();
    } else if ($field.phone.val().trim().length > 0 && !isPhone($field.phone.val().trim())) {
      $error.phone
        .html("The phone number must contain 10 digits")
        .show();
    } else {
      $error.phone
        .html("")
        .hide();
    }

    const errorField = $step.form.find('.sh-form-error:visible');

    if (errorField.length > 0) {
      const input = errorField.first().next();

      document.activeElement.blur();

      setTimeout(() => {
        input.focus();
      }, 160)

      return;
    }

    $loader
      .show()
      .prev()
      .hide();

    $.ajax({
      method: "POST",
      url: "https://www.spothopperapp.com/api/spots/339175/contacts/add_with_texting_permission",
      crossDomain: true,
      dataType: 'json',
      data: {
        email: $field.email.val().trim(),
        phone: $field.phone.val().trim(),
        texting_permission: $field.consent.is(':checked'),
      },
      success: function (data) {
        afterRequestSubmission(data);
      },
      error: function () {
        afterRequestSubmission("Something went wrong. Please try again later.");
      }
    });

    function afterRequestSubmission (data) {
      $step.form.hide();

      $step.message
        .html(data)
        .show()
        .trigger('focus');
    }
  }
</script><script>function addPromotionParamsToTMTLinks()
{
    if (sessionStorage.getItem('shUrlParams')) {
        let shParams = JSON.parse(sessionStorage.getItem('shUrlParams'));
        if (!Object.keys(shParams).length)
            return;
        if(!shParams.source)
            return;
        $('a').each(function () {
            if (this.href.includes('tmt.spotapps.co')) {
                if(this.href.includes('&source=') || this.href.includes('&destination=') || this.href.includes('&promotion='))
                    return;

                this.href = this.href + '&source=' + shParams.source;
                if(shParams.destination)
                    this.href = this.href + '&destination=' + shParams.destination;
                if(shParams.promotion)
                    this.href = this.href + '&promotion=' + shParams.promotion;
                if(shParams.fb_post_id)
                    this.href = this.href + '&fb_post_id=' + shParams.fb_post_id;
                if(shParams.email_post_id)
                    this.href = this.href + '&email_post_id=' + shParams.email_post_id;
            }
        })
    }
}
setTimeout(function() {
  addPromotionParamsToTMTLinks();
  addFooterToSourceParam();
},600)

function addFooterToSourceParam()
{
    $('.bottom-link').each(function (){
        if(shouldAddSourceParam(this.href))
          this.href = this.href + '&source=footer';
    })
    $('#sh-multiple-links-content-holder a').each(function (){
       if(shouldAddSourceParam(this.href))
          this.href = this.href + '&source=footer';
    })
}
function shouldAddSourceParam(link){
  if (link.includes('tmt.spotapps.co') && !link.includes('&source=')){
    return true;
  }
  return false;
}
</script><script type="text/javascript" src="https://static.spotapps.co/slideshow_and_video_control_buttons_mt_plugin_v2.js"></script><script>
;(async () => {
if (typeof window.focusTrap === 'undefined') {
    await getScript('https://unpkg.com/tabbable/dist/index.umd.js');
    await getScript('https://unpkg.com/focus-trap/dist/focus-trap.umd.js');
}

document.querySelectorAll('.modal').forEach((element) => {
    const trap = window.focusTrap?.createFocusTrap(element, {
        allowOutsideClick: true,
    });

    $(element).on('shown.bs.modal', () => {
	    trap?.activate();
	});

	$(element).on('hidden.bs.modal', () => {
        trap?.deactivate();
    });
});

async function getScript (source) {
    return new Promise((resolve, reject) => {
        const script = document.createElement('script');
        script.src = source;
        script.async = true;

        script.onload = resolve;
        script.onerror = reject;

        document.head.appendChild(script);
    });
}
})();
</script><script src="https://wcache-plugins.spotapps.co/staging/wcpl_bootstrap_ada_fix/wcpl_bootstrap_ada_fix.js"></script><link href="https://wcache-plugins.spotapps.co/production/wcpl_website_editor_interpreter/website_interpreter_helper_style.css" rel="stylesheet" media="screen"/><script>var changes_log_array = {};</script><script src="https://wcache-plugins.spotapps.co/production/wcpl_website_editor_interpreter/website_interpreter.js"></script></body></html>