Hello Tom,
I need to run javascript to make a tabs plugin call a map plugin with each click of the tab, instead of all at once. Apparently, the responsive aspect of the map program causes it to size the image to 0x0 for non active tabs.
Can you recommend a javascript plugin that works well with GeneratePress?
My problem is that I have the javascript that will allow the individual tab call it’s contents to reload on click:
jQuery(function(){
var b="fadeIn";
var c;
var a;
d(jQuery("#myTab_640 a"),jQuery("#tab-content_640"));function d(e,f,g){
e.click(function(i){
// add your map calling fucntion here
});
}
});
and I believe I have the code to call the map:
<div id="map_container"></div>
<script>
var map = new FlaMap(config);
map.draw('map_container');
// OR
map.draw(document.getElementById('map_container'));
</script>
But I don’t see a way of doing this without a new plugin.
The results show https://arlinstitute.org/legislation-central
Thanks,
Steig