From: Anthony Talarico Date: Thu, 2 Mar 2017 15:47:03 +0000 (-0500) Subject: adding new locations to the dropdown day trips map X-Git-Tag: v1.0.0^2~7 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=e905d876952b0417cf02f07b5611972c36424aef;p=WP-Themes%2Fmackinawareavb.git adding new locations to the dropdown day trips map --- diff --git a/map.php b/map.php index 20caa37..c5e0697 100644 --- a/map.php +++ b/map.php @@ -69,59 +69,13 @@ - - - + Tahquamenon Falls - + Great Lakes Shipwreck Museum & Whitefish Point Light Station @@ -136,17 +90,17 @@ Tunnel of Trees - + Soo Locks Tours - - + + Tower of History- + Museum Ship Valley + Camp + + Pictured Rocks Cross in @@ -189,17 +143,24 @@ T Y + + Garlyn Zoo + + Fayette Historical & + State Park + + Riptide Ride + + diff --git a/parts/interactive-map.php b/parts/interactive-map.php index e6b0660..1346de1 100644 --- a/parts/interactive-map.php +++ b/parts/interactive-map.php @@ -79,17 +79,21 @@ $js_sites = json_encode($sites); } catch(e){ console.log("This page doesn't exist or it has the wrong id in the pages array"); } - - if( $(this).find('tspan').attr('y') === '9.25'){ - $(this).find('tspan').attr('y', '14.25'); + + + if( $(this).children('tspan').attr('y') === '9.25'){ + $(this).children('tspan').not('.camp-tspan').attr('y', '14.25'); } else { $(this).css('font-size', '16px'); } + $(this).find( $('.camp-tspan') ).attr('y', '25.25'); + }, function(){ + $(this).find( $('.camp-tspan') ).attr('y', '20.25'); if( $(this).find('tspan').attr('y') === '14.25'){ - $(this).find('tspan').attr('y', '9.25'); + $(this).find('tspan').not('.camp-tspan').attr('y', '9.25'); } else { $(this).css('font-size', '11px'); }