testing top bar return false to stop links
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 11 Dec 2015 13:51:49 +0000 (08:51 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 11 Dec 2015 13:51:49 +0000 (08:51 -0500)
js/app.js
js/custom/pageSetup.js

index 2ee98a0..de9329d 100644 (file)
--- 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
     
index 156870c..0f4a035 100644 (file)
@@ -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