trying pure js mobile blocks function
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 22 Jan 2016 21:13:52 +0000 (16:13 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 22 Jan 2016 21:13:52 +0000 (16:13 -0500)
js/app.js
js/custom/pageSetup.js

index 76898a8..bb725e0 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -180,15 +180,14 @@ $(document).ready(function () {
             $("#departOff").val(minDays);
         }
     });
-    $('#block-1, #block-2, #block-3').bind('touchstart', function(){
-        
-    });
+  
     
-//    if($(window).width() <= 1024){
-//        $("#block-1, #block-2, #block-3").on("click", function () {
-//            $(this).toggleClass('front-page-blocks');
-//        });
-//    }
+    if($(window).width() <= 1024){
+        var p = document.getElementById('block-1');
+        p.onclick = function() {
+         p.onhover.call(p);
+    };
+}
     
 //    $("#block-1, #block-2, #block-3").click(function () {
 //       var $tmp = $(this).find("p");
index d1d249e..81ebf35 100644 (file)
@@ -171,15 +171,14 @@ $(document).ready(function () {
             $("#departOff").val(minDays);
         }
     });
-    $('#block-1, #block-2, #block-3').bind('touchstart', function(){
-        
-    });
+  
     
-//    if($(window).width() <= 1024){
-//        $("#block-1, #block-2, #block-3").on("click", function () {
-//            $(this).toggleClass('front-page-blocks');
-//        });
-//    }
+    if($(window).width() <= 1024){
+        var p = document.getElementById('block-1');
+        p.onclick = function() {
+         p.onhover.call(p);
+    };
+}
     
 //    $("#block-1, #block-2, #block-3").click(function () {
 //       var $tmp = $(this).find("p");