Site logo

Archived topic

javascript plugin

3 replies · Started by Steig on February 18, 2017

Viewing posts 1–4 of 4

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

Could you recommend a javascript plugin that works well with generatepress theme?

Javascript is a coding language, so that's a little vague. I'm not sure anything exists to do exactly what you're looking for there, but if you post your question on StackOverflow someone might be able to spot the issue (and sometimes it only takes a few minutes).

This archived topic is closed to new replies.