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";

                        }

227 Smith Road, Unit 1-A
Grand Cayman, Cayman Islands PO BOX 10110   KY1-1001

Oasis Pool & Spa

Design, Construction, Service

Office:
Construction:
Service: 
Accounts: 

Hours:

+1 (345) 945 7665
+1 (345) 916 7665
+1 (345) 926 7665 
+1 (345) 936 7665

 8am - 5pm

© 2020 Oasis Pool & Spa

oasis clear new logo.png