t // For full API documentation, including code examples, visit https://wix.to/94BuAAs
$w.onReady(function () {
let length = $w("#text30").html.length;
let long = $w("#text30").html;
let short = $w("#text30").html.substr(0, 200) + "...";
$w("#text30").html = short;
$w("#button6").onClick((event, $w) => {
if (length > 200 && $w("#text1").html.length < length) {
$w("#text30").html = long;
$w("#button6").label = "Show Less";
} else if (length > 200 && $w("#text1").html.length >= length) {
$w("#text30").html = short;
$w("#button6").label = "Read More";
}