Skip to main content

Town of Arlington, Town Bylaws, Title V, Article 18 (Short Term Rentals)

Citation
Town of Arlington, Town Bylaws, Title V, Article 18 (Short Term Rentals)
Jurisdiction
Arlington (municipal)
Source
Official source

Related Parts of This Source

Full Text

1,737 chars
if (("ontouchstart" in window // Chrome & Safari (IOS) && Firefox
|| "onpointerdown" in window // IE 11
|| window.MSPointerEvent // IE 10
) && ($(window).width() > 648)) {
var eventName = "ontouchstart" in window ? "touchstart"
: "onpointerdown" in window ? "pointerdown"
: window.MSPointerEvent ? "MSPointerDown"
: "";
if (eventName.length > 0) {
$('> ul.dropdownmenu li>a[data-navid]', menuContainer).bind(eventName, function (event) {

if (isTouchScreenEvent(event) == false) {
return true;
}

var currentLevelAnchor = $(this);
var currentLeveLi = currentLevelAnchor.closest("li");
var firstLevelLi = currentLevelAnchor.closest("li[id^='dropdownrootitem']");
var firstLevelAnchor = firstLevelLi.find(">a[data-navid]");
var inFirstLevel = currentLevelAnchor[0] == firstLevelAnchor[0];

var hasSubMenu = currentLevelAnchor.next("ul,div").length > 0;
if (hasSubMenu) {
$(this).closest("li").data("mouseDelay", 1);

// Menu is not selected
if (!firstLevelLi.hasClass('touch-active')) {
if ($(this).attr("href")) {
$(this).attr("data-href", $(this).attr("href"));
$(this).attr("href", "javascript:void(0);");
}
$(menuContainer).find('.touch-active').removeClass('touch-active').not(currentMenu).removeClass('active');

firstLevelLi.addClass('touch-active active');
currentLevelAnchor.addClass('touch-active active');
currentMenu.addClass("active");

$(' li:not(.touch-active)', menuContainer).not(firstLevelLi).removeClass('_current');
$(' li:not(.touch-active) li', menuContainer).not(currentLeveLi).removeClass('_current');

$('> ul.dropdownmenu > li:not(.touch-active) > a[data-navid]', menuContainer).next().css('display', 'none');
$('> ul.dropdownmenu > li.touch-active > a[data-navid]', menuContainer).next().css('display', 'block');