From c8f041f9b0992ceb59fe6d4672a37d0559c085db Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Wed, 17 Jan 2018 10:31:13 -0500 Subject: [PATCH] disabling hover map from navigating away in mobile mobile map needs to not navigate away on tap, just change the info section --- parts/header-meta.php | 2 +- parts/map-section.php | 14 +++++++------- style.css | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) 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 */ -- 2.17.1