]> git.mxchange.org Git - friendica-addons.git/blob - jappixmini/jappix/js/smileys.js
Merge branch 'master' of ../../save/merge/frio_hovercard into frio
[friendica-addons.git] / jappixmini / jappix / js / smileys.js
1 /*
2
3 Jappix - An open social platform
4 These are the smileys JS scripts for Jappix
5
6 -------------------------------------------------
7
8 License: AGPL
9 Author: Vanaryon
10 Last revision: 21/03/11
11
12 */
13
14 // Generates the correct HTML code for an emoticon insertion tool
15 function emoteLink(smiley, image, hash) {
16         return '<a href="#" class="emoticon emoticon-' + image + ' smileys-images" data-smiley="' + smiley + '"></a>';
17 }
18
19 // Emoticon links arrays
20 function smileyLinks(hash) {
21         var links = '';
22         
23         var sArray = new Array(
24                 ':-D',
25                 ']:->',
26                 '8-)',
27                 ':-P',
28                 ':-)',
29                 ';-)',
30                 ':-$',
31                 ':-|',
32                 ':-/',
33                 '=-O',
34                 ':-(',
35                 ':\'-(',
36                 ':-@',
37                 ':-!',
38                 '({)',
39                 '(})',
40                 ':3',
41                 '(@)',
42                 ':-[',
43                 ':-{}',
44                 '<3',
45                 '</3',
46                 '@}->--',
47                 '(W)',
48                 '(Y)',
49                 '(N)',
50                 '(I)',
51                 '(C)',
52                 '(D)',
53                 '(B)',
54                 '(Z)',
55                 '(X)',
56                 '(P)',
57                 '(T)',
58                 '(8)',
59                 '(%)',
60                 '(E)',
61                 '(R)',
62                 '(*)',
63                 '(S)'
64         );
65         
66         var cArray = new Array(
67                 'biggrin',
68                 'devil',
69                 'coolglasses',
70                 'tongue',
71                 'smile',
72                 'wink',
73                 'blush',
74                 'stare',
75                 'frowning',
76                 'oh',
77                 'unhappy',
78                 'cry',
79                 'angry',
80                 'puke',
81                 'hugright',
82                 'hugleft',
83                 'lion',
84                 'pussy',
85                 'bat',
86                 'kiss',
87                 'heart',
88                 'brheart',
89                 'flower',
90                 'brflower',
91                 'thumbup',
92                 'thumbdown',
93                 'lamp',
94                 'coffee',
95                 'drink',
96                 'beer',
97                 'boy',
98                 'girl',
99                 'photo',
100                 'phone',
101                 'music',
102                 'cuffs',
103                 'mail',
104                 'rainbow',
105                 'star',
106                 'moon'
107         );
108         
109         for(i in sArray)
110                 links += emoteLink(sArray[i], cArray[i], hash);
111         
112         return links;
113 }