/**** accessibility info box ****/
$("#expandAccessibility").click(function() {
$("#expandAccessibility").hide();
$("#preExpandIcons").hide();
$("#collapseAccessibility").show();
$("#accessibilityMoreInfo").show();
});
$("#collapseAccessibility").click(function() {
$("#expandAccessibility").show();
$("#preExpandIcons").show();
$("#collapseAccessibility").hide();
$("#accessibilityMoreInfo").hide();
});
/**** hgi lead gen interactions ****/
$('.base-tourlead').click(function() {
const venueSelect = "";
const venueCity = "";
$('.hgi-tourlead-post .venueAbe').val(venueSelect);
$('.hgi-venue-int-select-container').css('display', 'block');
$('.hgi-tourleads .baseTitle').css('display', 'block');
$('.hgi-tourleads .cityTitle').css('display', 'none');
$('.hgi-tourleads .cityLabel').html(venueCity);
});
$('.venue-tourlead').click(function() {
const venueSelect = $(this).attr('data-vId');
const venueCity = $(this).attr('data-city');
$('.hgi-tourlead-post .venueAbe').val(venueSelect);
$('.hgi-venue-int-select-container').css('display', 'none');
$('.hgi-tourleads .baseTitle').css('display', 'none');
$('.hgi-tourleads .cityTitle').css('display', 'block');
$('.hgi-tourleads .cityLabel').html(venueCity);
});
/**** hide subnav on desktop scroll ****/
$(document).ready(function() {
$(window).scroll(function () {
var offset = $('header').outerHeight(true);
if ($(window).scrollTop() > offset) {
$('.hfe-nav.navbar .desktop-only .nav-item .subnav-container').addClass('hide');
}
else {
$('.hfe-nav.navbar .desktop-only .nav-item .subnav-container').removeClass('hide');
}
});
});