Any recommendations for an Accordion javascript that will play nicely with Storyteller? The store owner would like to use it within "content" type pages.
Announcement
Collapse
No announcement yet.
Content Accordions
Collapse
X
-
Content Accordions
Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Tags: None
-
Hi Leslie,
Since Storyteller ships with jQuery, you should be able to use any of the plugins out there for this. Another option would be to roll your own, something like https://css-tricks.com/snippets/jque...ery-accordion/Matt Zimmermann
Miva Web Developer
Alchemy Web Development
https://www.alchemywebdev.com
Site Development - Maintenance - Consultation
Miva Certified Developer
Miva Professional Developer
https://www.dev4web.net | Twitter
-
Bruce Golub
Phosphor Media - "Your Success is our Business"
Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
phosphormedia.com
Comment
-
This is the one I'm using:
https://jsfiddle.net/nikdtu/3amzhp6z/
It's nice and neat too. The only issue I ran into - the jQuery included with Storyteller couldn't run it.
Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Comment
-
Hi Leslie,
You may need to make sure the site is on the latest version of jQuery and update the click event to the modern ON version.
Code:$(document).ready(function () { //toggle the component with class accordion_body $(".accordion_head").on('click', function () { if ($('.accordion_body').is(':visible')) { $(".accordion_body").slideUp(300); $(".plusminus").text('+'); } if ($(this).next(".accordion_body").is(':visible')) { $(this).next(".accordion_body").slideUp(300); $(this).children(".plusminus").text('+'); } else { $(this).next(".accordion_body").slideDown(300); $(this).children(".plusminus").text('-'); } }); });
Matt Zimmermann
Miva Web Developer
Alchemy Web Development
https://www.alchemywebdev.com
Site Development - Maintenance - Consultation
Miva Certified Developer
Miva Professional Developer
https://www.dev4web.net | Twitter
Comment
Comment