From 35be5d7968805e018be82a804c5e47bbdd67ec6c Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 15 Jun 2023 12:39:17 +0000 Subject: [PATCH] Update 'PHP and jQuery - Reduce Long String to Preview Length and Reveal Full Text OnClick.md' --- ...ong String to Preview Length and Reveal Full Text OnClick.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PHP and jQuery - Reduce Long String to Preview Length and Reveal Full Text OnClick.md b/PHP and jQuery - Reduce Long String to Preview Length and Reveal Full Text OnClick.md index b07a199..bf4ea16 100644 --- a/PHP and jQuery - Reduce Long String to Preview Length and Reveal Full Text OnClick.md +++ b/PHP and jQuery - Reduce Long String to Preview Length and Reveal Full Text OnClick.md @@ -1,4 +1,5 @@ ```php +/*PHP*/ static function ReduceStringForPreview($text,$size=100) { define($reduced,''); @@ -18,6 +19,7 @@ return $text; ``` ```js +/*jQuery*/ $(".preview_releaser").click(function(){ $(this).children('span').toggle('fast',function(){ if($(this).css('display') == 'inline-block'){