<?php hm_get_template_part( 'parts/community-map-svg', [ 'community_map_caller' => 'dropdown' ] ); ?>
</div>
<div id="mapRegionData">
- <?php $community_page_object = get_page( 155 ); ?>
- <?php $community_page_image = wp_get_attachment_url( get_post_thumbnail_id( 155 )); ?>
+ <!-- 155 -->
+ <?php $community_page_object = get_page( 1365 ); ?>
+ <?php $community_page_image = wp_get_attachment_url( get_post_thumbnail_id( 1365 )); ?>
<?php $community_page_content = substr(strip_tags($community_page_object->post_content),0, 300) . "..."; ?>
<?php $community_page_content = json_encode(strip_shortcodes($community_page_content)); ?>
// set the default data next to the dropdown community map
function set_default_data(){
+ regionData.find(image_container).css("display", "inline-block");
regionData.find(page_title).html('<?php echo $community_page_object->post_title; ?>');
regionData.find(image_container).css("height","175px").css("width", "300px").css("background", "url(' <?php echo $community_page_image; ?> ')no-repeat center center").css("background-position", "cover");
regionData.find(page_content).html(default_content);
});
$(community_link).find(".dropdown").mouseleave( function () {
set_default_data();
+ console.log("leave");
});
// hover effects and data collection