Update 'PHP and jQuery - Reduce Long String to Preview Length and Reveal Full Text OnClick.md'
This commit is contained in:
parent
97d3baa4b7
commit
35be5d7968
|
@ -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'){
|
||||
|
|
Loading…
Reference in New Issue