$w.onReady(function () { let length = $w("#text36").html.length; let long = $w("#text36").html; let short = $w("#text36").html.substr(0, 200) + "..."; // Set summary text length // ​ $w("#text36").html = short; ​ $w("#button1").onClick((event, $w) => { ​ if (length > 200 && $w("#text36").html.length < length) { $w("#text36").html = long; $w("#button1").label = "Show Less"; } else if (length > 200 && $w("#text36").html.length >= length) { $w("#text36").html = short; $w("#button1").label = "Read More"; } }); });
 

Children's Ministry

Learn More about JAM here!

Heading 4