[Support request] javascript plugin

Home Forums Support [Support request] javascript plugin

Home Forums Support javascript plugin

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #280708
    Steig

    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

    #280821
    Tom
    Lead Developer
    Lead Developer

    Hmm, I’m afraid I can’t see a reason.

    This might be a better question for a site like: http://stackoverflow.com/

    #280944
    Steig

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

    #280973
    Tom
    Lead Developer
    Lead Developer

    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).

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.