From 2930257521e92d3e15c94fc68cb165ef260ee8b1 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 11 Dec 2015 08:51:49 -0500 Subject: [PATCH] testing top bar return false to stop links --- js/app.js | 13 ++++++++----- js/custom/pageSetup.js | 13 ++++++++----- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/js/app.js b/js/app.js index 2ee98a0..de9329d 100644 --- a/js/app.js +++ b/js/app.js @@ -199,11 +199,14 @@ $(document).ready(function () { $("#properties .top-bar .top-bar-section ul#menu-properties li ul.dropdown li a").mouseout(function () { $("#properties .top-bar .top-bar-section ul#menu-properties #menu-item-1517 > a").css("box-shadow", "0px -7px 10px -9px rgba(0, 0, 0, 0.5) inset"); }); - $("a:contains('Stay')").attr("href", "#"); - $("a:contains('Dine')").attr("href", "#"); - $("a:contains('Explore')").attr("href", "#"); - $("a:contains('Play')").attr("href", "#"); - $(".parent-link a:contains('Our Properties')").text("Stafford's Home"); + $("#long-bar section.top-bar-section ul#menu-front-menu > li > a").on("click", function (e) { + e.preventDefault(); + return false; + }); +// $("a:contains('Dine')").attr("href", "#"); +// $("a:contains('Explore')").attr("href", "#"); +// $("a:contains('Play')").attr("href", "#"); +// $(".parent-link a:contains('Our Properties')").text("Stafford's Home"); // the following functions handle tablet view drop down menus being treated as pc view hover menus diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 156870c..0f4a035 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -190,11 +190,14 @@ $(document).ready(function () { $("#properties .top-bar .top-bar-section ul#menu-properties li ul.dropdown li a").mouseout(function () { $("#properties .top-bar .top-bar-section ul#menu-properties #menu-item-1517 > a").css("box-shadow", "0px -7px 10px -9px rgba(0, 0, 0, 0.5) inset"); }); - $("a:contains('Stay')").attr("href", "#"); - $("a:contains('Dine')").attr("href", "#"); - $("a:contains('Explore')").attr("href", "#"); - $("a:contains('Play')").attr("href", "#"); - $(".parent-link a:contains('Our Properties')").text("Stafford's Home"); + $("#long-bar section.top-bar-section ul#menu-front-menu > li > a").on("click", function (e) { + e.preventDefault(); + return false; + }); +// $("a:contains('Dine')").attr("href", "#"); +// $("a:contains('Explore')").attr("href", "#"); +// $("a:contains('Play')").attr("href", "#"); +// $(".parent-link a:contains('Our Properties')").text("Stafford's Home"); // the following functions handle tablet view drop down menus being treated as pc view hover menus -- 2.17.1