From: Anthony Talarico Date: Wed, 17 Jan 2018 15:31:13 +0000 (-0500) Subject: disabling hover map from navigating away in mobile X-Git-Tag: v1.0.2^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=c8f041f9b0992ceb59fe6d4672a37d0559c085db;p=WP-Themes%2Fcoldwater.git disabling hover map from navigating away in mobile mobile map needs to not navigate away on tap, just change the info section --- diff --git a/parts/header-meta.php b/parts/header-meta.php index a2695ec..7dba798 100644 --- a/parts/header-meta.php +++ b/parts/header-meta.php @@ -3,7 +3,7 @@ <?php wp_title(); ?> - + diff --git a/parts/map-section.php b/parts/map-section.php index 1b95f39..97d1c11 100644 --- a/parts/map-section.php +++ b/parts/map-section.php @@ -119,13 +119,13 @@ },function(){ $(this).css("fill", blue); }); - - city_region.on("click", function(){ - window.location.href = url; - }) - text_paths.on("click", function(){ + if( $(window).width() > 1023){ + city_region.on("click", function(){ window.location.href = url; - }) - + }) + text_paths.on("click", function(){ + window.location.href = url; + }) + } }); diff --git a/style.css b/style.css index 05e6572..50754d2 100644 --- a/style.css +++ b/style.css @@ -3,5 +3,5 @@ Theme Name: Coldwater Author: Gaslight Media Author URI: http://www.gaslightmedia.com Description: A theme for coldwater -Version: 1.0.1 +Version: 1.0.2 */