buzzmap icon indicating copy to clipboard operation
buzzmap copied to clipboard

Display all nodes

Open rosecook opened this issue 10 years ago • 7 comments

Hi,

I'm new to jquery and attempting to integrate your minima into a website. Is there an easy way of changing the code so instead of only showing the next branches of mind map after clicking the parent, you can just see them all at once? It'd also be great to be responsive if you have any updates for that.

Thanks!

rosecook avatar May 26 '15 08:05 rosecook

There's no option for that, but you can manually activate all nodes:

$('#container').buzzmap()
$('#container.buzzmap .node').addClass('active');

This should do the trick :)

marcelklehr avatar May 26 '15 10:05 marcelklehr

Thanks so much for the help. That didn't seem to do anything for me though.. where abouts do you suggest adding it? for reference this is what I have: http://rogueskins.com/uquine/buzzmap-master/index.html

I'm wanting it within wordpress once I've got it built. Not sure on the best way to do it so that it is responsive with my wordpress theme - at the moment it seems to go off the page if you have different screen size. Do you have any suggestions? I've been fiddling around for a while but not having much luck.

Thanks :)

On 26 May 2015 at 11:15, Marcel Klehr [email protected] wrote:

There's no option for that, but you can manually activate all nodes:

$('#container').buzzmap() $('#container.buzzmap .node').addClass('active');

This should do the trick :)

— Reply to this email directly or view it on GitHub https://github.com/marcelklehr/buzzmap/issues/6#issuecomment-105477489.

Rose Lawrence Digital Assets Designer

Cooking Vinyl 12 & 13 Swainson Road Acton London W3 7XB

Office: +44 208 600 9243 Mobile: +44 7800 893 811 W: www.cookingvinyl.com Map: http://g http://goo.gl/maps/W7YgCoo.gl/maps/W7YgC http://goo.gl/maps/W7YgC

Check out our latest releases: http://po.st/LatestReleases

WEBSITE http://www.cookingvinyl.com/ | TWITTER https://twitter.com/cookingvinyl | FACEBOOK http://facebook.com/cookingvinylrecords | SPOTIFY http://open.spotify.com/user/cooking_vinyl | SOUNDCLOUD https://soundcloud.com/cookingvinyl | YOUTUBE https://www.youtube.com/user/CookingVinylRecords

  • http://WWW.EMBRACE.CO.UK* E-mail non-disclosure: The information contained in this e-mail is confidential, may be privileged and is intended solely for the use of the named addressee. Access to this e-mail by any other person is not authorised. If you are not the intended recipient, you should not disclose, copy, distribute, take any action or rely on it and you should, please, notify the sender by reply.

rosecook avatar May 26 '15 11:05 rosecook

You need to call it inside the $(document).ready callback, otherwise it won't work. Just put $('#container.buzzmap .node').addClass('active'); right after buzzmap = $('#container').buzzmap({ ... })

marcelklehr avatar May 26 '15 11:05 marcelklehr

thanks so much! I feel silly now :P.

On 26 May 2015 at 12:28, Marcel Klehr [email protected] wrote:

You need to call it inside the $(document).ready callback, otherwise it won't work. Just put $('#container.buzzmap .node').addClass('active'); right after buzzmap = $('#container').buzzmap({ ... })

— Reply to this email directly or view it on GitHub https://github.com/marcelklehr/buzzmap/issues/6#issuecomment-105494049.

Rose Lawrence Digital Assets Designer

Cooking Vinyl 12 & 13 Swainson Road Acton London W3 7XB

Office: +44 208 600 9243 Mobile: +44 7800 893 811 W: www.cookingvinyl.com Map: http://g http://goo.gl/maps/W7YgCoo.gl/maps/W7YgC http://goo.gl/maps/W7YgC

Check out our latest releases: http://po.st/LatestReleases

WEBSITE http://www.cookingvinyl.com/ | TWITTER https://twitter.com/cookingvinyl | FACEBOOK http://facebook.com/cookingvinylrecords | SPOTIFY http://open.spotify.com/user/cooking_vinyl | SOUNDCLOUD https://soundcloud.com/cookingvinyl | YOUTUBE https://www.youtube.com/user/CookingVinylRecords

  • http://WWW.EMBRACE.CO.UK* E-mail non-disclosure: The information contained in this e-mail is confidential, may be privileged and is intended solely for the use of the named addressee. Access to this e-mail by any other person is not authorised. If you are not the intended recipient, you should not disclose, copy, distribute, take any action or rely on it and you should, please, notify the sender by reply.

rosecook avatar May 26 '15 15:05 rosecook

How do I remove the function that hides the child nodes on click of parent? I've got them all showing but sometimes when you click the box and not the text the child nodes vanish until refresh

I'd really appreciate the help :)

On 26 May 2015 at 16:28, Rose Lawrence [email protected] wrote:

thanks so much! I feel silly now :P.

On 26 May 2015 at 12:28, Marcel Klehr [email protected] wrote:

You need to call it inside the $(document).ready callback, otherwise it won't work. Just put $('#container.buzzmap .node').addClass('active'); right after buzzmap = $('#container').buzzmap({ ... })

— Reply to this email directly or view it on GitHub https://github.com/marcelklehr/buzzmap/issues/6#issuecomment-105494049.

Rose Lawrence Digital Assets Designer

Cooking Vinyl 12 & 13 Swainson Road Acton London W3 7XB

Office: +44 208 600 9243 Mobile: +44 7800 893 811 W: www.cookingvinyl.com Map: http://g http://goo.gl/maps/W7YgCoo.gl/maps/W7YgC http://goo.gl/maps/W7YgC

Check out our latest releases: http://po.st/LatestReleases

WEBSITE http://www.cookingvinyl.com/ | TWITTER https://twitter.com/cookingvinyl | FACEBOOK http://facebook.com/cookingvinylrecords | SPOTIFY http://open.spotify.com/user/cooking_vinyl | SOUNDCLOUD https://soundcloud.com/cookingvinyl | YOUTUBE https://www.youtube.com/user/CookingVinylRecords

  • http://WWW.EMBRACE.CO.UK* E-mail non-disclosure: The information contained in this e-mail is confidential, may be privileged and is intended solely for the use of the named addressee. Access to this e-mail by any other person is not authorised. If you are not the intended recipient, you should not disclose, copy, distribute, take any action or rely on it and you should, please, notify the sender by reply.

Rose Lawrence Digital Assets Designer

Cooking Vinyl 12 & 13 Swainson Road Acton London W3 7XB

Office: +44 208 600 9243 Mobile: +44 7800 893 811 W: www.cookingvinyl.com Map: http://g http://goo.gl/maps/W7YgCoo.gl/maps/W7YgC http://goo.gl/maps/W7YgC

Check out our latest releases: http://po.st/LatestReleases

WEBSITE http://www.cookingvinyl.com/ | TWITTER https://twitter.com/cookingvinyl | FACEBOOK http://facebook.com/cookingvinylrecords | SPOTIFY http://open.spotify.com/user/cooking_vinyl | SOUNDCLOUD https://soundcloud.com/cookingvinyl | YOUTUBE https://www.youtube.com/user/CookingVinylRecords

  • http://WWW.EMBRACE.CO.UK* E-mail non-disclosure: The information contained in this e-mail is confidential, may be privileged and is intended solely for the use of the named addressee. Access to this e-mail by any other person is not authorised. If you are not the intended recipient, you should not disclose, copy, distribute, take any action or rely on it and you should, please, notify the sender by reply.

rosecook avatar Jun 24 '15 14:06 rosecook

https://github.com/marcelklehr/buzzmap/blob/master/buzzmap.js#L129 This is the function you gotta change. Just add a return true before this line and you're good ;)

marcelklehr avatar Jun 24 '15 19:06 marcelklehr

thank you :)

rosecook avatar Jun 29 '15 10:06 rosecook