From: Anthony Talarico Date: Fri, 22 Jan 2016 19:17:00 +0000 (-0500) Subject: testing blocks on click for mobile devices X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=5fd9c2338f2aa730dcd7cb5291990a9f9a49626b;p=WP-Themes%2Fglmthemes%2Fsaultstemarie-theme.git testing blocks on click for mobile devices --- diff --git a/js/app.js b/js/app.js index f494bc9..dc445fa 100644 --- a/js/app.js +++ b/js/app.js @@ -180,4 +180,19 @@ $(document).ready(function () { $("#departOff").val(minDays); } }); + + $("#block-1, #block-2, #block-3").click(function () { + var $tmp = $(this).find("p"); + var $tmp2 = $(this).find("h2"); + var $tmp3 = $(this).find("a.blocks-readmore"); + + $tmp.css("display", "inline-block"); + $tmp.css("padding", "0px 47px"); + $tmp.css("color", "white"); + $tmp.css("position", "relative"); + $tmp.css("top", "15px"); + + $tmp2.css("position", "relative"); + $tmp2.css("top", "15px"); + }); }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index ac7082b..0a4082d 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -171,4 +171,19 @@ $(document).ready(function () { $("#departOff").val(minDays); } }); + + $("#block-1, #block-2, #block-3").click(function () { + var $tmp = $(this).find("p"); + var $tmp2 = $(this).find("h2"); + var $tmp3 = $(this).find("a.blocks-readmore"); + + $tmp.css("display", "inline-block"); + $tmp.css("padding", "0px 47px"); + $tmp.css("color", "white"); + $tmp.css("position", "relative"); + $tmp.css("top", "15px"); + + $tmp2.css("position", "relative"); + $tmp2.css("top", "15px"); + }); }); diff --git a/parts/glm-blocks.php b/parts/glm-blocks.php index 7e0cab9..3955c4b 100644 --- a/parts/glm-blocks.php +++ b/parts/glm-blocks.php @@ -7,6 +7,8 @@
ID); ?> + + + +