mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 17:08:48 +00:00
jappixmini: include jappix source
This commit is contained in:
parent
61eb1f0d18
commit
302b2820d1
231 changed files with 96082 additions and 2 deletions
113
jappixmini/jappix/js/smileys.js
Normal file
113
jappixmini/jappix/js/smileys.js
Normal file
|
@ -0,0 +1,113 @@
|
|||
/*
|
||||
|
||||
Jappix - An open social platform
|
||||
These are the smileys JS scripts for Jappix
|
||||
|
||||
-------------------------------------------------
|
||||
|
||||
License: AGPL
|
||||
Author: Vanaryon
|
||||
Last revision: 21/03/11
|
||||
|
||||
*/
|
||||
|
||||
// Generates the correct HTML code for an emoticon insertion tool
|
||||
function emoteLink(smiley, image, hash) {
|
||||
return '<a href="#" class="emoticon emoticon-' + image + ' smileys-images" data-smiley="' + smiley + '"></a>';
|
||||
}
|
||||
|
||||
// Emoticon links arrays
|
||||
function smileyLinks(hash) {
|
||||
var links = '';
|
||||
|
||||
var sArray = new Array(
|
||||
':-D',
|
||||
']:->',
|
||||
'8-)',
|
||||
':-P',
|
||||
':-)',
|
||||
';-)',
|
||||
':-$',
|
||||
':-|',
|
||||
':-/',
|
||||
'=-O',
|
||||
':-(',
|
||||
':\'-(',
|
||||
':-@',
|
||||
':-!',
|
||||
'({)',
|
||||
'(})',
|
||||
':3',
|
||||
'(@)',
|
||||
':-[',
|
||||
':-{}',
|
||||
'<3',
|
||||
'</3',
|
||||
'@}->--',
|
||||
'(W)',
|
||||
'(Y)',
|
||||
'(N)',
|
||||
'(I)',
|
||||
'(C)',
|
||||
'(D)',
|
||||
'(B)',
|
||||
'(Z)',
|
||||
'(X)',
|
||||
'(P)',
|
||||
'(T)',
|
||||
'(8)',
|
||||
'(%)',
|
||||
'(E)',
|
||||
'(R)',
|
||||
'(*)',
|
||||
'(S)'
|
||||
);
|
||||
|
||||
var cArray = new Array(
|
||||
'biggrin',
|
||||
'devil',
|
||||
'coolglasses',
|
||||
'tongue',
|
||||
'smile',
|
||||
'wink',
|
||||
'blush',
|
||||
'stare',
|
||||
'frowning',
|
||||
'oh',
|
||||
'unhappy',
|
||||
'cry',
|
||||
'angry',
|
||||
'puke',
|
||||
'hugright',
|
||||
'hugleft',
|
||||
'lion',
|
||||
'pussy',
|
||||
'bat',
|
||||
'kiss',
|
||||
'heart',
|
||||
'brheart',
|
||||
'flower',
|
||||
'brflower',
|
||||
'thumbup',
|
||||
'thumbdown',
|
||||
'lamp',
|
||||
'coffee',
|
||||
'drink',
|
||||
'beer',
|
||||
'boy',
|
||||
'girl',
|
||||
'photo',
|
||||
'phone',
|
||||
'music',
|
||||
'cuffs',
|
||||
'mail',
|
||||
'rainbow',
|
||||
'star',
|
||||
'moon'
|
||||
);
|
||||
|
||||
for(i in sArray)
|
||||
links += emoteLink(sArray[i], cArray[i], hash);
|
||||
|
||||
return links;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue