TomTech Posted December 4, 2020 Posted December 4, 2020 Site URL: https://www.kvmexhibits.org/showmoredemo In the second section of the provided url, I'm using the following: Markdown: ### **+RYAN'S CIRCUS** Held in October 1991... Then at the bottom of the section I'm using the following code block: <script type="text/javascript"src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script><script>$(document).ready(function(){$('.markdown-block .sqs-block-content h3').css('cursor','help');$(".markdown-block .sqs-block-content h3").nextUntil("h3").slideToggle();$(".markdown-block .sqs-block-content h3").click(function(){$(this).nextUntil("h3").slideToggle();});});</script> I'm wondering if there's an addition to this code that would add a collapse function at the end of a markdown. On mobile, some of these markdowns will be really long and it would be nice to just collapse when you're done reading, instead of scrolling back up to collapse it.
tuanphan Posted December 6, 2020 Posted December 6, 2020 Hi. Have you found the solution yet? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.