From: Anthony Talarico Date: Fri, 22 Jan 2016 21:13:52 +0000 (-0500) Subject: trying pure js mobile blocks function X-Git-Tag: v1.0.0^2~126 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=10b46bc0bef81927c074532bd8dc3a0de66b5f5e;p=WP-Themes%2Fsaultstemarie.git trying pure js mobile blocks function --- diff --git a/js/app.js b/js/app.js index 76898a8..bb725e0 100644 --- 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"); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index d1d249e..81ebf35 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -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");