-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy paththreedots.min.demo.html
1189 lines (1052 loc) · 44.6 KB
/
threedots.min.demo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<html>
<head>
<title>ThreeDots Plugin Demo (aka Fun with Ellipses)</title>
<script src="js/jquery-1.4.js" type="text/javascript"></script>
<script src="js/jquery.ThreeDots.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
// SECTION ONE: basic demos/tests //
// row 1 & 1.5
var the_obj = $('.text_here').ThreeDots({
max_rows: 1
});
// row 2
var the_obj2 = $('.text_here2').ThreeDots({
max_rows: 3
});
// row 3
var the_obj = $('.text_here3').ThreeDots({
max_rows: 100
});
// row 4 - 6
var the_obj = $('.text_here4').ThreeDots({
max_rows: 1,
ellipsis_string: '<a href="google.com">(click here)</a>'
});
// SECTION TWO: whole-word demos/tests //
// row 7
var the_obj = $('.text_here5').ThreeDots({
max_rows: 1,
whole_word: false
});
// row 8
var the_obj = $('.text_here6').ThreeDots({
max_rows: 3,
whole_word: false
});
// row 9
var the_obj = $('.text_here7').ThreeDots({
max_rows: 1,
whole_word: false
});
$(the_obj).ThreeDots.update({
max_rows: 100
});
// row 10 - 12
var the_obj = $('.text_here8').ThreeDots({
max_rows: 1,
whole_word: false,
ellipsis_string: '<a href="google.com">(click here)</a>'
});
// SECTION THREE: delimiter demos/tests //
// row 15
var the_obj = $('.text_here9').ThreeDots({
max_rows: 1,
valid_delimiters: [null]
});
// row 16
var the_obj = $('.text_here10').ThreeDots({
max_rows: 1,
ellipsis_string: '<a href="google.com">(click here)</a>',
whole_word: false,
valid_delimiters: [null]
});
// row 17
var the_obj = $('.text_here11').ThreeDots({
max_rows: 1,
valid_delimiters: ['long']
});
// row 18
var the_obj = $('.text_here12').ThreeDots({
max_rows: 1,
whole_word: false,
valid_delimiters: ['long'],
ellipsis_string: '<a href="google.com">(click here)</a>'
});
// row 19&20
var the_obj2 = $('.text_here13').ThreeDots({
max_rows: 1,
valid_delimiters: ['*']
});
// row 21
var the_obj = $('.text_here14').ThreeDots({
max_rows: 1,
valid_delimiters: ['*'],
ellipsis_string: '<a href="google.com">(click here)</a>'
});
// row 22
var the_obj = $('.text_here15').ThreeDots({
max_rows: 1,
valid_delimiters: ['*'],
whole_word: false,
ellipsis_string: '<a href="google.com">(click here)</a>'
});
// SECTION FOUR: Dangles and More Special Cases demos/tests //
// row 23
var the_obj = $('.text_here16').ThreeDots({
max_rows: 0,
valid_delimiters: ['*'],
whole_word: false,
ellipsis_string: '<a href="google.com">(click here)</a>'
});
// row 24
var the_obj = $('.text_here17').ThreeDots({
max_rows: 2,
valid_delimiters: ['*'],
whole_word: true,
allow_dangle: true,
ellipsis_string: '<a href="google.com">(click here)</a>'
});
// row 25-26
var the_obj = $('.text_here18').ThreeDots({
max_rows: 2,
valid_delimiters: ['*'],
whole_word: true,
allow_dangle: false,
ellipsis_string: '<a href="google.com">(click here)</a>'
});
// row 27
var the_obj = $('.text_here19').ThreeDots({
max_rows: 2,
whole_word: true,
allow_dangle: false,
ellipsis_string: '<a href="google.com">(click here)</a>'
});
// row 28
var the_obj = $('.text_here20').ThreeDots({
max_rows: 1,
whole_word: true,
allow_dangle: false,
ellipsis_string: '<a href="google.com">(click here)</a>'
});
// SECTION FIVE: Simple Hover Text demos/tests //
// row 29
var the_obj = $('.text_here21').ThreeDots({
max_rows: 2,
whole_word: true,
allow_dangle: false,
ellipsis_string: '<a href="google.com">(click here)</a>',
alt_text_e: true,
alt_text_t: false
});
// row 30
var the_obj = $('.text_here22').ThreeDots({
max_rows: 100,
whole_word: true,
allow_dangle: false,
ellipsis_string: '<a href="google.com">(click here)</a>',
alt_text_e: true,
alt_text_t: false
});
// row 31
var the_obj = $('.text_here23').ThreeDots({
max_rows: 2,
whole_word: true,
allow_dangle: false,
ellipsis_string: '<a href="google.com">(click here)</a>',
alt_text_e: false,
alt_text_t: true
});
// row 32
var the_obj = $('.text_here24').ThreeDots({
max_rows: 100,
whole_word: true,
allow_dangle: false,
ellipsis_string: '<a href="google.com">(click here)</a>',
alt_text_e: false,
alt_text_t: true
});
// row 33
var the_obj = $('.text_here25').ThreeDots({
max_rows: 2,
whole_word: true,
allow_dangle: false,
ellipsis_string: '<a href="google.com">(click here)</a>',
alt_text_e: false,
alt_text_t: false
});
// row 34
var the_obj = $('.text_here26').ThreeDots({
max_rows: 100,
whole_word: true,
allow_dangle: false,
ellipsis_string: '<a href="google.com">(click here)</a>',
alt_text_e: false,
alt_text_t: false
});
// row 35
var the_obj = $('.text_here27').ThreeDots({
max_rows: 2,
whole_word: true,
allow_dangle: false,
ellipsis_string: '<a href="google.com">(click here)</a>',
alt_text_e: true,
alt_text_t: true
});
// row 36
var the_obj = $('.text_here28').ThreeDots({
max_rows: 100,
whole_word: true,
allow_dangle: false,
ellipsis_string: '<a href="google.com">(click here)</a>',
alt_text_e: true,
alt_text_t: true
});
});
</script>
</head>
<!-- START OF WORD WRAP ENABLE CODE -->
<!-- !! this is special code to enable word wrap
for this demo AND this functionality
is NOT REQUIRED for the plugin to work -->
<style>
table {
table-layout:fixed;
}
span {
align:left;
}
div {
align:left
white-space: pre-wrap; /* default = normal */
word-wrap: break-word; /* default = normal */
}
</style>
<!-- END OF WORD WRAP ENABLE CODE -->
<body>
<!--
<table width='200px'>
<tr >
<td >
<div >
Long_Word_Wrap_Enabled_Long_Word_Wrap_Enabled_Long_Word_Wrap_Enabled_Long_Word_Wrap_Enabled_Long_Word_Wrap_Enabled_Long_Word_Wrap_Enabled_Long_Word_Wrap_Enabled
</div>
</td>
</tr>
</table>
-->
<a href='http://tpgblog.com/threedots'>return to ThreeDots HomePage >>></a><br><br>
<table border="1" cellpadding="0" cellspacing="0" bordercolor="#000000">
<tr>
<td align="center" valign="middle">
<b>action</b>
</td>
<td align="center" valign="middle">
<b>before</b>
</td>
<td align="center" valign="middle">
<b>after</b>
</td>
</tr>
<tr>
<!-- ------------------------------------------------------------------------- -->
<!-- ------------------------------------------------------------------------- -->
<!-- ------------------------------------------------------------------------- -->
<!-- -------------- SECTION ONE, Test/Demo basic functionality --------------- -->
<!-- ------------------------------------------------------------------------- -->
<!-- ------------------------------------------------------------------------- -->
<!-- ------------------------------------------------------------------------- -->
<!-- ROW 1, focus: basic functionality -->
<td align="left" valign="top">
[01] focus: basic functionality
<ol>
<li>$('.text_here').ThreeDots({max_rows:1});</li>
</ol>
</td>
<td align="left" valign="top">
<div style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>asd as daodsiajda dsafoiaf afsoiajsfas nfas
fasofijasf asfoiajsfa sfaoijfasd asoidjasd
asdaisjdads asodijasd asdoijasdiojsad</span>
</div>
</td>
<td align="left" valign="top">
<div class="text_here" style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>asd as daodsiajda dsafoiaf afsoiajsfas nfas
fasofijasf asfoiajsfa sfaoijfasd asoidjasd
asdaisjdads asodijasd asdoijasdiojsad</span>
</div>
</td>
</tr>
<!-- ROW 1.5, focus: basic functionality -->
<tr>
<td align="left" valign="top">
[01.5] focus: basic functionality; don't truncate
<ol>
<li>$('.text_here').ThreeDots({max_rows:1});</li>
</ol>
</td>
<td align="left" valign="top">
<div style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>asd as daodsiajda</span>
</div>
</td>
<td align="left" valign="top">
<div class="text_here" style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>asd as daodsiajda</span>
</div>
</td>
</tr>
<!-- ROW 2, focus: max_rows = 3 -->
<tr>
<td align="left" valign="top">
[02] focus: max_rows = 3
<ol>
<li>the_obj2 = $('.text_here2').ThreeDots({max_rows:3});</li>
</ol>
</td>
<td align="left" valign="top">
<div style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>asd as daodsiajda dsafoiaf afsoiajsfas nfas
fasofijasf asfoiajsfa sfaoijfasd asoidjasd
asdaisjdads asodijasd asdoijasdiojsad</span>
</div>
</td>
<td align="left" valign="top">
<div class="text_here2" style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>asd as daodsiajda dsafoiaf afsoiajsfas nfas
fasofijasf asfoiajsfa sfaoijfasd asoidjasd
asdaisjdads asodijasd asdoijasdiojsad</span>
</div>
</td>
</tr>
<!-- ROW 3, focus: max_rows = 100 -->
<tr>
<td align="left" valign="top">
[03] focus: max_rows = 100
<ol>
<li>the_obj = $('.text_here3').ThreeDots({max_rows:100});</li>
</ol>
</td>
<td align="left" valign="top">
<div style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>asd as daodsiajda dsafoiaf afsoiajsfas nfas
fasofijasf asfoiajsfa sfaoijfasd asoidjasd
asdaisjdads asodijasd asdoijasdiojsad</span>
</div>
</td>
<td align="left" valign="top">
<div class="text_here3" style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>asd as daodsiajda dsafoiaf afsoiajsfas nfas
fasofijasf asfoiajsfa sfaoijfasd asoidjasd
asdaisjdads asodijasd asdoijasdiojsad</span>
</div>
</td>
</tr>
<!-- ROW 4, focus: word truncation enabled & link as ellipsis -->
<tr>
<td align="left" valign="top">
[04] focus: word truncation enabled & link as ellipsis
<ol>
<li>the_obj = $('.text_here4').ThreeDots({max_rows:1, ellipsis_string:'<a href="google.com">(click here)</a>'});</li>
</ol>
</td>
<td align="left" valign="top">
<div style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>asd as daodsiajda dsafoiaf afsoiajsfas nfas
fasofijasf asfoiajsfa sfaoijfasd asoidjasd
asdaisjdads asodijasd asdoijasdiojsad</span>
</div>
</td>
<td align="left" valign="top">
<div class="text_here4" style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>asd as daodsiajda dsafoiaf afsoiajsfas nfas
fasofijasf asfoiajsfa sfaoijfasd asoidjasd
asdaisjdads asodijasd asdoijasdiojsad</span>
</div>
</td>
</tr>
<!-- ROW 5, focus: word truncation enabled & link as ellipsis WITH 1 long word -->
<tr>
<td align="left" valign="top">
[05] focus: word truncation enabled & link as ellipsis WITH 1 long word
<ol>
<li>the_obj = $('.text_here4').ThreeDots({max_rows:1, ellipsis_string:'<a href="google.com">(click here)</a>'});</li>
</ol>
</td>
<td align="left" valign="top">
<div style="padding: 5em; margin: 2em; width:220px">
<span style="word-break: break-all;" class='ellipsis_text'>jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj</span>
</div>
</td>
<td align="left" valign="top">
<div class="text_here4" style="padding: 5em; margin: 2em; width:220px">
<span style="word-break: break-all;" class='ellipsis_text'>jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj</span>
</div>
</td>
</tr>
<!-- ROW 6, focus: word truncation enabled & link as ellipsis WITH many long word -->
<tr>
<td align="left" valign="top">
[06] focus: word truncation enabled & link as ellipsis WITH many long words
<ol>
<li>the_obj = $('.text_here4').ThreeDots({max_rows:1, ellipsis_string:'<a href="google.com">(click here)</a>'});</li>
</ol>
</td>
<td align="left" valign="top">
<div style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>jjj jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj jjjjjjjjjjjjjjjjjjjj jjjjjjjjjjjjjjjjjjjjj</span>
</div>
</td>
<td align="left" valign="top">
<div class="text_here4" style="padding: 5em; margin: 2em; width:220px;">
<span class='ellipsis_text'>jjj jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj jjjjjjjjjjjjjjjjjjjj jjjjjjjjjjjjjjjjjjjjj</span>
</div>
</td>
</tr>
<!-- ------------------------------------------------------------------------- -->
<!-- ------------------------------------------------------------------------- -->
<!-- ------------------------------------------------------------------------- -->
<!-- -------------- SECTION TWO, Test/Demo whole_word:false ------------------ -->
<!-- ------------------------------------------------------------------------- -->
<!-- ------------------------------------------------------------------------- -->
<!-- ------------------------------------------------------------------------- -->
<!-- ROW 7, focus: basic functionality WITH whole_word = false -->
<tr>
<td align="left" valign="top">
[07] focus: basic functionality WITH whole_word = false
<ol>
<li>$('.text_here5').ThreeDots({max_rows:1, whole_word:false});</li>
</ol>
</td>
<td align="left" valign="top">
<div style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>asd as daodsiajda dsafoiaf afsoiajsfas nfas
fasofijasf asfoiajsfa sfaoijfasd asoidjasd
asdaisjdads asodijasd asdoijasdiojsad</span>
</div>
</td>
<td align="left" valign="top">
<div class="text_here5" style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>asd as daodsiajda dsafoiaf afsoiajsfas nfas
fasofijasf asfoiajsfa sfaoijfasd asoidjasd
asdaisjdads asodijasd asdoijasdiojsad</span>
</div>
</td>
</tr>
<!-- ROW 8, focus: max_rows = 3 WITH whole_word = false -->
<tr>
<td align="left" valign="top">
[08] focus: max_rows = 3 WITH whole_word = false
<ol>
<li>the_obj = $('.text_here6').ThreeDots({max_rows:3, whole_word:false});</li>
</ol>
</td>
<td align="left" valign="top">
<div style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>asd as daodsiajda dsafoiaf afsoiajsfas nfas
fasofijasf asfoiajsfa sfaoijfasd asoidjasd
asdaisjdads asodijasd asdoijasdiojsad</span>
</div>
</td>
<td align="left" valign="top">
<div class="text_here6" style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>asd as daodsiajda dsafoiaf afsoiajsfas nfas
fasofijasf asfoiajsfa sfaoijfasd asoidjasd
asdaisjdads asodijasd asdoijasdiojsad</span>
</div>
</td>
</tr>
<!-- ROW 9, focus: max_rows = 1 WITH whole_word = false DESTRUCTED by max_rows = 100 ONLY -->
<tr>
<td align="left" valign="top">
[09] focus: max_rows = 1 WITH whole_word = false DESTRUCTED by max_rows = 100 ONLY
<ol>
<li>the_obj = $('.text_here7').ThreeDots({max_rows:1, whole_word:false});</li>
<li>$(the_obj).ThreeDots.update({max_rows:100});</li>
</ol>
</td>
<td align="left" valign="top">
<div style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>asd as daodsiajda dsafoiaf afsoiajsfas nfas
fasofijasf asfoiajsfa sfaoijfasd asoidjasd
asdaisjdads asodijasd asdoijasdiojsad</span>
</div>
</td>
<td align="left" valign="top">
<div class="text_here7" style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>asd as daodsiajda dsafoiaf afsoiajsfas nfas
fasofijasf asfoiajsfa sfaoijfasd asoidjasd
asdaisjdads asodijasd asdoijasdiojsad</span>
</div>
</td>
</tr>
<!-- ROW 10, focus: max_rows = 1 WITH whole_word = false AND ellipsis as link -->
<tr>
<td align="left" valign="top">
[10] focus: max_rows = 1 WITH whole_word = false AND ellipsis as link
<ol>
<li>the_obj = $('.text_here8').ThreeDots({max_rows:1, whole_word:false, ellipsis_string:'<a href="google.com">(click here)</a>'});</li>
</ol>
</td>
<td align="left" valign="top">
<div style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>asd as daodsiajda dsafoiaf afsoiajsfas nfas
fasofijasf asfoiajsfa sfaoijfasd asoidjasd
asdaisjdads asodijasd asdoijasdiojsad</span>
</div>
</td>
<td align="left" valign="top">
<div class="text_here8" style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>asd as daodsiajda dsafoiaf afsoiajsfas nfas
fasofijasf asfoiajsfa sfaoijfasd asoidjasd
asdaisjdads asodijasd asdoijasdiojsad</span>
</div>
</td>
</tr>
<!-- ROW 11, focus: max_rows = 1 WITH whole_word = false AND ellipsis as link WITH 1 long word -->
<tr>
<td align="left" valign="top">
[11] focus: max_rows = 1 WITH whole_word = false AND ellipsis as link WITH 1 long word
<ol>
<li>the_obj = $('.text_here8').ThreeDots({max_rows:1, whole_word:false, ellipsis_string:'<a href="google.com">(click here)</a>'});</li>
</ol>
</td>
<td align="left" valign="top">
<div style="padding: 5em; margin: 2em; width:220px">
<span style="word-break: break-all;" class='ellipsis_text'>jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj</span>
</div>
</td>
<td align="left" valign="top">
<div class="text_here8" style="padding: 5em; margin: 2em; width:220px">
<span style="word-break: break-all;" class='ellipsis_text'>jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj</span>
</div>
</td>
</tr>
<!-- ROW 12, focus: max_rows = 1 WITH whole_word = false AND ellipsis as link WITH multiple long words -->
<tr>
<td align="left" valign="top">
[12] focus: max_rows = 1 WITH whole_word = false AND ellipsis as link WITH multiple long words
<ol>
<li>the_obj = $('.text_here8').ThreeDots({max_rows:1, whole_word:false, ellipsis_string:'<a href="google.com">(click here)</a>'});</li>
</ol>
</td>
<td align="left" valign="top">
<div style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>jjj jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj jjjjjjjjjjjjjjjjjjjj jjjjjjjjjjjjjjjjjjjjj</span>
</div>
</td>
<td align="left" valign="top">
<div class="text_here8" style="padding: 5em; margin: 2em; width:220px;">
<span class='ellipsis_text'>jjj jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj jjjjjjjjjjjjjjjjjjjj jjjjjjjjjjjjjjjjjjjjj</span>
</div>
</td>
</tr>
<!-- ------------------------------------------------------------------------- -->
<!-- ------------------------------------------------------------------------- -->
<!-- ------------------------------------------------------------------------- -->
<!-- -------------- SECTION THREE, Test/Demo non-space delimiter-------------- -->
<!-- ------------------------------------------------------------------------- -->
<!-- ------------------------------------------------------------------------- -->
<!-- ------------------------------------------------------------------------- -->
<!-- ROW 13, focus: max_rows = 1 WITH delimiter emphasis on PERIOD -->
<tr>
<td align="left" valign="top">
[13] focus: max_row = 1 WITH delimiter emphasis on PERIOD
<ol>
<li>$('.text_here').ThreeDots({max_rows:1});</li>
</ol>
</td>
<td align="left" valign="top">
<div style="padding: 5em; margin: 2em; width:220px">
<span.class='ellipsis_text'>asd as.daodsiajda.dsafoiaf.afsoiajsfas.nfas.fasofijasf.asfoiajsfa.sfaoijfasd.asoidjasd.asdaisjdads.asodijasd.asdoijasdiojsad</span>
</div>
</td>
<td align="left" valign="top">
<div class="text_here" style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>asd as.daodsiajda.dsafoiaf.afsoiajsfas.nfas.fasofijasf.asfoiajsfa.sfaoijfasd.asoidjasd.asdaisjdads.asodijasd.asdoijasdiojsad</span>
</div>
</td>
</tr>
<!-- ROW 14, focus: max_rows = 1 WITH whole_word = false AND ellipsis as link WITH emphasis on PERIOD delimiter -->
<tr>
<td align="left" valign="top">
[14] focus: max_rows = 1 WITH whole_word = TRUE AND ellipsis as link WITH emphasis on PERIOD delimiter
<ol>
<li>the_obj = $('.text_here4').ThreeDots({max_rows:1, whole_word:false, ellipsis_string:'<a href="google.com">(click here)</a>'});</li>
</ol>
</td>
<td align="left" valign="top">
<div style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>jjj.jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj.jjjjjjjjjjjjjjjjjjjj jjjjjjjjjjjjjjjjjjjjj</span>
</div>
</td>
<td align="left" valign="top">
<div class="text_here4" style="padding: 5em; margin: 2em; width:220px;">
<span class='ellipsis_text'>jjj.jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj.jjjjjjjjjjjjjjjjjjjj jjjjjjjjjjjjjjjjjjjjj</span>
</div>
</td>
</tr>
<!-- ROW 15, focus: empty delmiter specification -->
<tr>
<td align="left" valign="top">
[15] focus: empty delimiter specification
<ol>
<li>$('.text_here9').ThreeDots({max_rows:1; valid_delimiters[null]});</li>
</ol>
</td>
<td align="left" valign="top">
<div style="padding: 5em; margin: 2em; width:220px">
<span.class='ellipsis_text'>asd as.daodsiajda.dsafoiaf.afsoiajsfas.nfas.fasofijasf.asfoiajsfa.sfaoijfasd.asoidjasd.asdaisjdads.asodijasd.asdoijasdiojsad</span>
</div>
</td>
<td align="left" valign="top">
<div class="text_here9" style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>asd as.daodsiajda.dsafoiaf.afsoiajsfas.nfas.fasofijasf.asfoiajsfa.sfaoijfasd.asoidjasd.asdaisjdads.asodijasd.asdoijasdiojsad</span>
</div>
</td>
</tr>
<!-- ROW 16, focus: empty delmiter specification WITH max_rows = 1 AND ellipsis as LINK AND whole_word = false -->
<tr>
<td align="left" valign="top">
[16] focus: empty delmiter specification WITH max_rows = 1 AND ellipsis as LINK AND whole_word = false
<ol>
<li>the_obj = $('.text_here10').ThreeDots({max_rows:1, whole_word:false, valid_delimiters[null], ellipsis_string:'<a href="google.com">(click here)</a>'});</li>
</ol>
</td>
<td align="left" valign="top">
<div style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>jjj.jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj.jjjjjjjjjjjjjjjjjjjj jjjjjjjjjjjjjjjjjjjjj</span>
</div>
</td>
<td align="left" valign="top">
<div class="text_here10" style="padding: 5em; margin: 2em; width:220px;">
<span class='ellipsis_text'>jjj.jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj.jjjjjjjjjjjjjjjjjjjj jjjjjjjjjjjjjjjjjjjjj</span>
</div>
</td>
</tr>
<!-- ROW 17, focus: invalid multi-character delimiter specified -->
<tr>
<td align="left" valign="top">
[17] focus: invalid multi-character delimiter specified
<ol>
<li>$('.text_here11').ThreeDots({max_rows:1; valid_delimiters['long']});</li>
</ol>
</td>
<td align="left" valign="top">
<div style="padding: 5em; margin: 2em; width:220px">
<span.class='ellipsis_text'>asd as.longsiajda.dsafoiaf.afsoiajsfas.nfas.fasofijasf.asfoiajsfa.sfaoijfasd.asoidjasd.asdaisjdads.asodijasd.asdoijasdiojsad</span>
</div>
</td>
<td align="left" valign="top">
<div class="text_here11" style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>asd as.longsiajda.dsafoiaf.afsoiajsfas.nfas.fasofijasf.asfoiajsfa.sfaoijfasd.asoidjasd.asdaisjdads.asodijasd.asdoijasdiojsad</span>
</div>
</td>
</tr>
<!-- ROW 18, focus: invalid multi-char delimiter WITH whole_word = false -->
<tr>
<td align="left" valign="top">
[18] focus: invalid multi-char delimiter WITH whole_word = false
<ol>
<li>the_obj = $('.text_here12').ThreeDots({max_rows:1, whole_word:false, valid_delimiters['long'], ellipsis_string:'<a href="google.com">(click here)</a>'});</li>
</ol>
</td>
<td align="left" valign="top">
<div style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>jlongjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj.jjjjjjjjjjjjjjjjjjjj jjjjjjjjjjjjjjjjjjjjj</span>
</div>
</td>
<td align="left" valign="top">
<div class="text_here12" style="padding: 5em; margin: 2em; width:220px;">
<span class='ellipsis_text'>jlongjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj.jjjjjjjjjjjjjjjjjjjj jjjjjjjjjjjjjjjjjjjjj</span>
</div>
</td>
</tr>
<!-- ROW 19, focus: MISSING CLASS: 'ellipsis_text' AND W/ custom delimiter '*'-->
<tr>
<td align="left" valign="top">
[19] focus: MISSING CLASS: 'ellipsis_text' AND W/ custom delimiter '*'
<ol>
<li>the_obj2 = $('.text_here13').ThreeDots({max_rows:1; valid_delimiters['*']});</li>
</ol>
</td>
<td align="left" valign="top">
<div style="padding: 5em; margin: 2em; width:220px">
<span class='WRONG'>
a*d a*.long*iajda.d*afoiaf.af*oiaj*fa*.nfa*.fa*ofija*f.a*foiaj*fa.*faoijfa*d.a*oidja*d.a*dai*jdad*.a*odija*d.a*doija*dioj*ad
</span>
</div>
</td>
<td align="left" valign="top">
<div class="WRONG" style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>
a*d a*.long*iajda.d*afoiaf.af*oiaj*fa*.nfa*.fa*ofija*f.a*foiaj*fa.*faoijfa*d.a*oidja*d.a*dai*jdad*.a*odija*d.a*doija*dioj*ad
</span>
</div>
</td>
</tr>
<!-- ROW 20, focus: MISSING CLASS part 2: CLASS 'ellipsis_text' is PRESENT AND W/ custom delimiter '*' AND whole_word = TRUE-->
<tr>
<td align="left" valign="top">
[20] focus: MISSING CLASS part 2: CLASS 'ellipsis_text' is PRESENT AND W/ custom delimiter '*'
<ol>
<li>the_obj2 = $('.text_here13').ThreeDots({max_rows:1; valid_delimiters['*']});</li>
</ol>
</td>
<td align="left" valign="top">
<div style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>
a*d a*.long*iajda.d*afoiaf.af*oiaj*fa*.nfa*.fa*ofija*f.a*foiaj*fa.*faoijfa*d.a*oidja*d.a*dai*jdad*.a*odija*d.a*doija*dioj*ad
</span>
</div>
</td>
<td align="left" valign="top">
<div class="text_here13" style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>
a*d a*.long*iajda.d*afoiaf.af*oiaj*fa*.nfa*.fa*ofija*f.a*foiaj*fa.*faoijfa*d.a*oidja*d.a*dai*jdad*.a*odija*d.a*doija*dioj*ad
</span>
</div>
</td>
</tr>
<!-- ROW 21, focus: custom delimiter '*' AND whole_word = TRUE AND ellipsis_string AS LINK -->
<tr>
<td align="left" valign="top">
[21] focus: custom delimiter '*' AND whole_word = TRUE AND ellipsis_string AS LINK AND CUSTOM DELIMITER '*'
<ol>
<li>the_obj = $('.text_here14').ThreeDots({max_rows:1, whole_word:false, valid_delimiters['*'], ellipsis_string:'<a href="google.com">(click here)</a>'});</li>
</ol>
</td>
<td align="left" valign="top">
<div style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>
a*d a*.long*iajda.d*afoiaf.af*oiaj*fa*.nfa*.fa*ofija*f.a*foiaj*fa.*faoijfa*d.a*oidja*d.a*dai*jdad*.a*odija*d.a*doija*dioj*ad
</span>
</div>
</td>
<td align="left" valign="top">
<div class="text_here14" style="padding: 5em; margin: 2em; width:220px;">
<span class='ellipsis_text'>
a*d a*.long*iajda.d*afoiaf.af*oiaj*fa*.nfa*.fa*ofija*f.a*foiaj*fa.*faoijfa*d.a*oidja*d.a*dai*jdad*.a*odija*d.a*doija*dioj*ad
</span>
</div>
</td>
</tr>
<!-- ROW 22, focus: custom delimiter '*' AND whole_word = FALSE AND ellipsis_string AS LINK AND CUSTOM DELIMITER '*' -->
<tr>
<td align="left" valign="top">
[22] focus: custom delimiter '*' AND whole_word = FALSE AND ellipsis_string AS LINK AND CUSTOM DELIMITER '*'
<ol>
<li>the_obj = $('.text_here15').ThreeDots({max_rows:1, whole_word:false, valid_delimiters['*'], ellipsis_string:'<a href="google.com">(click here)</a>'});</li>
</ol>
</td>
<td align="left" valign="top">
<div style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>
a*d a*.long*iajda.d*afoiaf.af*oiaj*fa*.nfa*.fa*ofija*f.a*foiaj*fa.*faoijfa*d.a*oidja*d.a*dai*jdad*.a*odija*d.a*doija*dioj*ad
</span>
</div>
</td>
<td align="left" valign="top">
<div class="text_here15" style="padding: 5em; margin: 2em; width:220px;">
<span class='ellipsis_text'>
a*d a*.long*iajda.d*afoiaf.af*oiaj*fa*.nfa*.fa*ofija*f.a*foiaj*fa.*faoijfa*d.a*oidja*d.a*dai*jdad*.a*odija*d.a*doija*dioj*ad
</span>
</div>
</td>
</tr>
<!-- ------------------------------------------------------------------------- -->
<!-- ------------------------------------------------------------------------- -->
<!-- ------------------------------------------------------------------------- -->
<!-- -------- SECTION FOUR, Test/Demo Dangle and More Special Cases ---------- -->
<!-- ------------------------------------------------------------------------- -->
<!-- ------------------------------------------------------------------------- -->
<!-- ------------------------------------------------------------------------- -->
<!-- ROW 23, focus: max_rows = 0 -->
<tr>
<td align="left" valign="top">
[23] focus: max_rows = 0
<ol>
<li>the_obj = $('.text_here16').ThreeDots({max_rows:0, whole_word:false, valid_delimiters['*'], ellipsis_string:'<a href="google.com">(click here)</a>'});</li>
</ol>
</td>
<td align="left" valign="top">
<div style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>
a*d a*.long*iajda.d*afoiaf.af*oiaj*fa*.nfa*.fa*ofija*f.a*foiaj*fa.*faoijfa*d.a*oidja*d.a*dai*jdad*.a*odija*d.a*doija*dioj*ad
</span>
</div>
</td>
<td align="left" valign="top">
<div class="text_here16" style="padding: 5em; margin: 2em; width:220px;">
<span class='ellipsis_text'>
a*d a*.long*iajda.d*afoiaf.af*oiaj*fa*.nfa*.fa*ofija*f.a*foiaj*fa.*faoijfa*d.a*oidja*d.a*dai*jdad*.a*odija*d.a*doija*dioj*ad
</span>
</div>
</td>
</tr>
<!-- ROW 24, focus: allow dangling ellipsis -->
<tr>
<td align="left" valign="top">
[24] focus: allow dangling ellipsis
<ol>
<li>the_obj = $('.text_here17').ThreeDots({max_rows:2, allow_dangle: true, whole_word:true, valid_delimiters['*'], ellipsis_string:'<a href="google.com">(click here)</a>'});</li>
</ol>
</td>
<td align="left" valign="top">
<div style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>
a*d a*.long*iajda.d*afoiaf.af*oiaj*fa*.nfa*.fa*ofija*f.a*foiaj*fa.*faoijfa*d.a*oidja*d.a*dai*jdad*.a*odija*d.a*doija*dioj*ad
</span>
</div>
</td>
<td align="left" valign="top">
<div class="text_here17" style="padding: 5em; margin: 2em; width:220px;">
<span class='ellipsis_text'>
a*d a*.long*iajda.d*afoiaf.af*oiaj*fa*.nfa*.fa*ofija*f.a*foiaj*fa.*faoijfa*d.a*oidja*d.a*dai*jdad*.a*odija*d.a*doija*dioj*ad
</span>
</div>
</td>
</tr>
<!-- ROW 25, focus: don't allow dangling ellipsis -->
<tr>
<td align="left" valign="top">
[25] focus: don't allow dangling ellipsis
<ol>
<li>the_obj = $('.text_here18').ThreeDots({max_rows:2, allow_dangle: false, whole_word:true, valid_delimiters['*'], ellipsis_string:'<a href="google.com">(click here)</a>'});</li>
</ol>
</td>
<td align="left" valign="top">
<div style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>
a*d a*.long*iajda.d*afoiaf.af oiaj*fa*.nfa*.fa*ofija*f.a*foiaj*fa.*faoijfa*d.a*oidja*d.a*dai*jdad*.a*odija*d.a*doija*dioj*ad
</span>
</div>
</td>
<td align="left" valign="top">
<div class="text_here18" style="padding: 5em; margin: 2em; width:220px;">
<span class='ellipsis_text'>
a*d a*.long*iajda.d*afoiaf.af oiaj*fa*.nfa*.fa*ofija*f.a*foiaj*fa.*faoijfa*d.a*oidja*d.a*dai*jdad*.a*odija*d.a*doija*dioj*ad
</span>
</div>
</td>
</tr>
<!-- ROW 26, focus: empty string -->
<tr>
<td align="left" valign="top">
[26] focus: empty string
<ol>
<li>the_obj = $('.text_here18').ThreeDots({max_rows:2, allow_dangle: false, whole_word:true, valid_delimiters['*'], ellipsis_string:'<a href="google.com">(click here)</a>'});</li>
</ol>
</td>
<td align="left" valign="top">
<div style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'></span>
</div>
</td>
<td align="left" valign="top">
<div class="text_here18" style="padding: 5em; margin: 2em; width:220px;">
<span class='ellipsis_text'></span>
</div>
</td>
</tr>
<!-- ROW 27, focus: leading delimiter -->
<tr>
<td align="left" valign="top">
[27] focus: leading delimiter
<ol>
<li>the_obj = $('.text_here19').ThreeDots({max_rows:2, allow_dangle: false, whole_word:true, ellipsis_string:'<a href="google.com">(click here)</a>'});</li>
</ol>
</td>
<td align="left" valign="top">
<div style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>.sadasd asdasd.sadasd asdasd.sadasd asdasd.sadasd asdasd.sadasd asdasd.sadasd asdasd</span>
</div>
</td>
<td align="left" valign="top">
<div class="text_here19" style="padding: 5em; margin: 2em; width:220px;">
<span class='ellipsis_text'>.sadasd asdasd.sadasd asdasd.sadasd asdasd.sadasd asdasd.sadasd asdasd.sadasd asdasd</span>
</div>
</td>
</tr>
<!-- ROW 28, focus: only delimiters -->
<tr>
<td align="left" valign="top">
[28] focus: leading delimiter
<ol>
<li>the_obj = $('.text_here20').ThreeDots({max_rows:2, allow_dangle: false, whole_word:true, ellipsis_string:'<a href="google.com">(click here)</a>'});</li>
</ol>
</td>
<td align="left" valign="top">
<div style="padding: 5em; margin: 2em; width:220px">
<span class='ellipsis_text'>........................................................................................................................................................................................................................................................................................................................</span>
</div>
</td>
<td align="left" valign="top">
<div class="text_here20" style="padding: 5em; margin: 2em; width:220px;">
<span class='ellipsis_text'>........................................................................................................................................................................................................................................................................................................................</span>
</div>
</td>
</tr>