disabling hover map from navigating away in mobile
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 17 Jan 2018 15:31:13 +0000 (10:31 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 17 Jan 2018 15:31:13 +0000 (10:31 -0500)
mobile map needs to not navigate away on tap, just change the info section

parts/header-meta.php
parts/map-section.php
style.css

index a2695ec..7dba798 100644 (file)
@@ -3,7 +3,7 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <meta http-equiv="X-UA-Compatible" content="IE=10">
     <title><?php wp_title(); ?></title>
-    <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ; ?>/css/app.css?v=1.0.1">
+    <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ; ?>/css/app.css?v=1.0.2">
     <link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon.ico">
     <link href="https://fonts.googleapis.com/css?family=Roboto+Slab:400,700" rel="stylesheet">
     <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700" rel="stylesheet">
index 1b95f39..97d1c11 100644 (file)
         },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;
+            })
+        }
     });
 </script>
index 05e6572..50754d2 100644 (file)
--- 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
 */