Completed
Push — master ( 62cb27...c16962 )
by mains
03:25
created

js/jQueryEmoji.js   A

Complexity

Total Complexity 19
Complexity/F 1.9

Size

Lines of Code 58
Function Count 10

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 0
nc 32
dl 0
loc 58
rs 10
c 0
b 0
f 0
wmc 19
mnd 3
bc 12
fnc 10
bpm 1.2
cpm 1.9
noi 6

6 Functions

Rating   Name   Duplication   Size   Complexity  
B jQueryEmoji.js ➔ toCodePoint 0 1 5
A jQueryEmoji.js ➔ toSurrogatePairs 0 1 2
A jQueryEmoji.js ➔ noExtra 0 1 1
A $.Emoji 0 22 1
A $.fn.Emoji 0 8 1
A jQueryEmoji.js ➔ parser 0 9 1
1
/*
2
Copyright (c) by Rodrigo Polo - http://RodrigoPolo.com
3
Licensed under MIT
4
*/
5
(function($) {
0 ignored issues
show
Duplication introduced by
This code seems to be duplicated in your project.
Loading history...
6
7
	// deleted *,#,0,1,2,3,4,5,6,7,8,9
8
	// check tauros und co mit kreis hinter
9
	//Flaggen wird wohl passen
10
	var emojis = '😀,😁,😂,🤣,😃,😄,😅,😆,😉,😊,😋,😎,😍,😘,😗,😙,😚,☺,🙂,🤗,🤔,😐,😑,😶,🙄,😏,😣,😥,😮,🤐,😯,😪,😫,😴,😌,🤓,😛,😜,😝,🤤,😒,😓,😔,😕,🙃,🤑,😲,☹,🙁,😖,😞,😟,😤,😢,😭,😦,😧,😨,😩,😬,😰,😱,😳,😵,😡,😠,😇,🤠,🤡,🤥,😷,🤒,🤕,🤢,🤧,😈,👿,👹,👺,💀,☠,👻,👽,👾,🤖,💩,😺,😸,😹,😻,😼,😽,🙀,😿,😾,🙈,🙉,🙊,👩‍❤️‍💋‍👨,👨‍❤️‍💋‍👨,👩‍❤️‍💋‍👩,💑,👩‍❤️‍👨,👨‍❤️‍👨,👩‍❤️‍👩,👪,👨‍👩‍👧‍👦,👨‍👩‍👦‍👦,👨‍👩‍👧‍👧,👨‍👨‍👧‍👦,👨‍👨‍👦‍👦,👨‍👨‍👧‍👧,👩‍👩‍👧‍👦,👩‍👩‍👦‍👦,👩‍👩‍👧‍👧,👨‍👨‍👦,👨‍👨‍👧,👩‍👧‍👦,👩‍👧‍👧,👨‍👩‍👦,👩‍👩‍👦,👨‍👩‍👧,👩‍👩‍👧,👨‍👧‍👦,👨‍👦‍👦,👨‍👧‍👧,👩‍👦‍👦,👩‍👧,👩‍👦,👨‍👧,👨‍👦,👦🏻,👦🏼,👦🏽,👦🏾,👦🏿,👦,👧🏻,👧🏼,👧🏽,👧🏾,👧🏿,👧,👴🏻,👴🏼,👴🏽,👴🏾,👴🏿,👴,👵🏻,👵🏼,👵🏽,👵🏾,👵🏿,👵,👶🏻,👶🏼,👶🏽,👶🏾,👶🏿,👶,👼🏻,👼🏼,👼🏽,👼🏾,👼🏿,👼,👨🏻‍⚕️,👨🏼‍⚕️,👨🏽‍⚕️,👨🏾‍⚕️,👨🏿‍⚕️,👨‍⚕️,👩🏻‍⚕️,👩🏼‍⚕️,👩🏽‍⚕️,👩🏾‍⚕️,👩🏿‍⚕️,👩‍⚕️,👨🏻‍🎓,👨🏼‍🎓,👨🏽‍🎓,👨🏾‍🎓,👨🏿‍🎓,👨‍🎓,👩🏻‍🎓,👩🏼‍🎓,👩🏽‍🎓,👩🏾‍🎓,👩🏿‍🎓,👩‍🎓,👨🏻‍🏫,👨🏼‍🏫,👨🏽‍🏫,👨🏾‍🏫,👨🏿‍🏫,👨‍🏫,👩🏻‍🏫,👩🏼‍🏫,👩🏽‍🏫,👩🏾‍🏫,👩🏿‍🏫,👩‍🏫,👨🏻‍⚖️,👨🏼‍⚖️,👨🏽‍⚖️,👨🏾‍⚖️,👨🏿‍⚖️,👨‍⚖️,👩🏻‍⚖️,👩🏼‍⚖️,👩🏽‍⚖️,👩🏾‍⚖️,👩🏿‍⚖️,👩‍⚖️,👨🏻‍🌾,👨🏼‍🌾,👨🏽‍🌾,👨🏾‍🌾,👨🏿‍🌾,👨‍🌾,👩🏻‍🌾,👩🏼‍🌾,👩🏽‍🌾,👩🏾‍🌾,👩🏿‍🌾,👩‍🌾,👨🏻‍🍳,👨🏼‍🍳,👨🏽‍🍳,👨🏾‍🍳,👨🏿‍🍳,👨‍🍳,👩🏻‍🍳,👩🏼‍🍳,👩🏽‍🍳,👩🏾‍🍳,👩🏿‍🍳,👩‍🍳,👨🏻‍🔧,👨🏼‍🔧,👨🏽‍🔧,👨🏾‍🔧,👨🏿‍🔧,👨‍🔧,👩🏻‍🔧,👩🏼‍🔧,👩🏽‍🔧,👩🏾‍🔧,👩🏿‍🔧,👩‍🔧,👨🏻‍🏭,👨🏼‍🏭,👨🏽‍🏭,👨🏾‍🏭,👨🏿‍🏭,👨‍🏭,👩🏻‍🏭,👩🏼‍🏭,👩🏽‍🏭,👩🏾‍🏭,👩🏿‍🏭,👩‍🏭,👨🏻‍💼,👨🏼‍💼,👨🏽‍💼,👨🏾‍💼,👨🏿‍💼,👨‍💼,👩🏻‍💼,👩🏼‍💼,👩🏽‍💼,👩🏾‍💼,👩🏿‍💼,👩‍💼,👨🏻‍🔬,👨🏼‍🔬,👨🏽‍🔬,👨🏾‍🔬,👨🏿‍🔬,👨‍🔬,👩🏻‍🔬,👩🏼‍🔬,👩🏽‍🔬,👩🏾‍🔬,👩🏿‍🔬,👩‍🔬,👨🏻‍💻,👨🏼‍💻,👨🏽‍💻,👨🏾‍💻,👨🏿‍💻,👨‍💻,👩🏻‍💻,👩🏼‍💻,👩🏽‍💻,👩🏾‍💻,👩🏿‍💻,👩‍💻,👨🏻‍🎤,👨🏼‍🎤,👨🏽‍🎤,👨🏾‍🎤,👨🏿‍🎤,👨‍🎤,👩🏻‍🎤,👩🏼‍🎤,👩🏽‍🎤,👩🏾‍🎤,👩🏿‍🎤,👩‍🎤,👨🏻‍🎨,👨🏼‍🎨,👨🏽‍🎨,👨🏾‍🎨,👨🏿‍🎨,👨‍🎨,👩🏻‍🎨,👩🏼‍🎨,👩🏽‍🎨,👩🏾‍🎨,👩🏿‍🎨,👩‍🎨,👨🏻‍✈️,👨🏼‍✈️,👨🏽‍✈️,👨🏾‍✈️,👨🏿‍✈️,👨‍✈️,👩🏻‍✈️,👩🏼‍✈️,👩🏽‍✈️,👩🏾‍✈️,👩🏿‍✈️,👩‍✈️,👨🏻‍🚀,👨🏼‍🚀,👨🏽‍🚀,👨🏾‍🚀,👨🏿‍🚀,👨‍🚀,👩🏻‍🚀,👩🏼‍🚀,👩🏽‍🚀,👩🏾‍🚀,👩🏿‍🚀,👩‍🚀,👨🏻‍🚒,👨🏼‍🚒,👨🏽‍🚒,👨🏾‍🚒,👨🏿‍🚒,👨‍🚒,👩🏻‍🚒,👩🏼‍🚒,👩🏽‍🚒,👩🏾‍🚒,👩🏿‍🚒,👩‍🚒,👨🏻,👨🏼,👨🏽,👨🏾,👨🏿,👨,👩🏻,👩🏼,👩🏽,👩🏾,👩🏿,👩,👮🏻‍♂️,👮🏼‍♂️,👮🏽‍♂️,👮🏾‍♂️,👮🏿‍♂️,👮‍♂️,👮🏻‍♀️,👮🏼‍♀️,👮🏽‍♀️,👮🏾‍♀️,👮🏿‍♀️,👮‍♀️,👮🏻,👮🏼,👮🏽,👮🏾,👮🏿,👮,🕵🏻‍♂️,🕵🏼‍♂️,🕵🏽‍♂️,🕵🏾‍♂️,🕵🏿‍♂️,🕵️‍♂️,🕵🏻‍♀️,🕵🏼‍♀️,🕵🏽‍♀️,🕵🏾‍♀️,🕵🏿‍♀️,🕵️‍♀️,🕵🏻,🕵🏼,🕵🏽,🕵🏾,🕵🏿,🕵,💂🏻‍♂️,💂🏼‍♂️,💂🏽‍♂️,💂🏾‍♂️,💂🏿‍♂️,💂‍♂️,💂🏻‍♀️,💂🏼‍♀️,💂🏽‍♀️,💂🏾‍♀️,💂🏿‍♀️,💂‍♀️,💂🏻,💂🏼,💂🏽,💂🏾,💂🏿,💂,👷🏻‍♂️,👷🏼‍♂️,👷🏽‍♂️,👷🏾‍♂️,👷🏿‍♂️,👷‍♂️,👷🏻‍♀️,👷🏼‍♀️,👷🏽‍♀️,👷🏾‍♀️,👷🏿‍♀️,👷‍♀️,👷🏻,👷🏼,👷🏽,👷🏾,👷🏿,👷,👳🏻‍♂️,👳🏼‍♂️,👳🏽‍♂️,👳🏾‍♂️,👳🏿‍♂️,👳‍♂️,👳🏻‍♀️,👳🏼‍♀️,👳🏽‍♀️,👳🏾‍♀️,👳🏿‍♀️,👳‍♀️,👳🏻,👳🏼,👳🏽,👳🏾,👳🏿,👳,👱🏻‍♂️,👱🏼‍♂️,👱🏽‍♂️,👱🏾‍♂️,👱🏿‍♂️,👱‍♂️,👱🏻‍♀️,👱🏼‍♀️,👱🏽‍♀️,👱🏾‍♀️,👱🏿‍♀️,👱‍♀️,👱🏻,👱🏼,👱🏽,👱🏾,👱🏿,👱,🎅🏻,🎅🏼,🎅🏽,🎅🏾,🎅🏿,🎅,🤶🏻,🤶🏼,🤶🏽,🤶🏾,🤶🏿,🤶,👸🏻,👸🏼,👸🏽,👸🏾,👸🏿,👸,🤴🏻,🤴🏼,🤴🏽,🤴🏾,🤴🏿,🤴,👰🏻,👰🏼,👰🏽,👰🏾,👰🏿,👰,🤵🏻,🤵🏼,🤵🏽,🤵🏾,🤵🏿,🤵,🤰🏻,🤰🏼,🤰🏽,🤰🏾,🤰🏿,🤰,👲🏻,👲🏼,👲🏽,👲🏾,👲🏿,👲,🙍🏻‍♂️,🙍🏼‍♂️,🙍🏽‍♂️,🙍🏾‍♂️,🙍🏿‍♂️,🙍‍♂️,🙍🏻‍♀️,🙍🏼‍♀️,🙍🏽‍♀️,🙍🏾‍♀️,🙍🏿‍♀️,🙍‍♀️,🙍🏻,🙍🏼,🙍🏽,🙍🏾,🙍🏿,🙍,🙎🏻‍♂️,🙎🏼‍♂️,🙎🏽‍♂️,🙎🏾‍♂️,🙎🏿‍♂️,🙎‍♂️,🙎🏻‍♀️,🙎🏼‍♀️,🙎🏽‍♀️,🙎🏾‍♀️,🙎🏿‍♀️,🙎‍♀️,🙎🏻,🙎🏼,🙎🏽,🙎🏾,🙎🏿,🙎,🙅🏻‍♂️,🙅🏼‍♂️,🙅🏽‍♂️,🙅🏾‍♂️,🙅🏿‍♂️,🙅‍♂️,🙅🏻‍♀️,🙅🏼‍♀️,🙅🏽‍♀️,🙅🏾‍♀️,🙅🏿‍♀️,🙅‍♀️,🙅🏻,🙅🏼,🙅🏽,🙅🏾,🙅🏿,🙅,🙆🏻‍♂️,🙆🏼‍♂️,🙆🏽‍♂️,🙆🏾‍♂️,🙆🏿‍♂️,🙆‍♂️,🙆🏻‍♀️,🙆🏼‍♀️,🙆🏽‍♀️,🙆🏾‍♀️,🙆🏿‍♀️,🙆‍♀️,🙆🏻,🙆🏼,🙆🏽,🙆🏾,🙆🏿,🙆,💁🏻‍♂️,💁🏼‍♂️,💁🏽‍♂️,💁🏾‍♂️,💁🏿‍♂️,💁‍♂️,💁🏻‍♀️,💁🏼‍♀️,💁🏽‍♀️,💁🏾‍♀️,💁🏿‍♀️,💁‍♀️,💁🏻,💁🏼,💁🏽,💁🏾,💁🏿,💁,🙋🏻‍♂️,🙋🏼‍♂️,🙋🏽‍♂️,🙋🏾‍♂️,🙋🏿‍♂️,🙋‍♂️,🙋🏻‍♀️,🙋🏼‍♀️,🙋🏽‍♀️,🙋🏾‍♀️,🙋🏿‍♀️,🙋‍♀️,🙋🏻,🙋🏼,🙋🏽,🙋🏾,🙋🏿,🙋,🙇🏻‍♂️,🙇🏼‍♂️,🙇🏽‍♂️,🙇🏾‍♂️,🙇🏿‍♂️,🙇‍♂️,🙇🏻‍♀️,🙇🏼‍♀️,🙇🏽‍♀️,🙇🏾‍♀️,🙇🏿‍♀️,🙇‍♀️,🙇🏻,🙇🏼,🙇🏽,🙇🏾,🙇🏿,🙇,🤦🏻‍♂️,🤦🏼‍♂️,🤦🏽‍♂️,🤦🏾‍♂️,🤦🏿‍♂️,🤦‍♂️,🤦🏻‍♀️,🤦🏼‍♀️,🤦🏽‍♀️,🤦🏾‍♀️,🤦🏿‍♀️,🤦‍♀️,🤷🏻‍♂️,🤷🏼‍♂️,🤷🏽‍♂️,🤷🏾‍♂️,🤷🏿‍♂️,🤷‍♂️,🤷🏻‍♀️,🤷🏼‍♀️,🤷🏽‍♀️,🤷🏾‍♀️,🤷🏿‍♀️,🤷‍♀️,🤦🏻,🤦🏼,🤦🏽,🤦🏾,🤦🏿,🤦,🤷🏻,🤷🏼,🤷🏽,🤷🏾,🤷🏿,🤷,💆🏻‍♂️,💆🏼‍♂️,💆🏽‍♂️,💆🏾‍♂️,💆🏿‍♂️,💆‍♂️,💆🏻‍♀️,💆🏼‍♀️,💆🏽‍♀️,💆🏾‍♀️,💆🏿‍♀️,💆‍♀️,💆🏻,💆🏼,💆🏽,💆🏾,💆🏿,💆,💇‍♂️,💇🏻‍♂️,💇🏼‍♂️,💇🏽‍♂️,💇🏾‍♂️,💇🏿‍♂️,💇‍♀️,💇🏻‍♀️,💇🏼‍♀️,💇🏽‍♀️,💇🏾‍♀️,💇🏿‍♀️,💇🏻,💇🏼,💇🏽,💇🏾,💇🏿,💇,🚶🏻‍♂️,🚶🏼‍♂️,🚶🏽‍♂️,🚶🏾‍♂️,🚶🏿‍♂️,🚶‍♂️,🚶🏻‍♀️,🚶🏼‍♀️,🚶🏽‍♀️,🚶🏾‍♀️,🚶🏿‍♀️,🚶‍♀️,🚶🏻,🚶🏼,🚶🏽,🚶🏾,🚶🏿,🚶,🏃🏻‍♂️,🏃🏼‍♂️,🏃🏽‍♂️,🏃🏾‍♂️,🏃🏿‍♂️,🏃🏻‍♀️,🏃‍♂️,🏃🏼‍♀️,🏃🏽‍♀️,🏃🏾‍♀️,🏃🏿‍♀️,🏃‍♀️,🏃🏻,🏃🏼,🏃🏽,🏃🏾,🏃🏿,🏃,💃🏻,💃🏼,💃🏽,💃🏾,💃🏿,💃,🕺🏻,🕺🏼,🕺🏽,🕺🏾,🕺🏿,🕺,👯‍♂️,👯‍♀️,👯,🕴🏻,🕴🏼,🕴🏽,🕴🏾,🕴🏿,🕴,🗣,👤,👥,🤺,🏇🏻,🏇🏼,🏇🏽,🏇🏾,🏇🏿,🏇,⛷,🏂🏻,🏂🏼,🏂🏽,🏂🏾,🏂🏿,🏂,🏌🏻‍♂️,🏌🏼‍♂️,🏌🏽‍♂️,🏌🏾‍♂️,🏌🏿‍♂️,🏌️‍♂️,🏌🏻‍♀️,🏌🏼‍♀️,🏌🏽‍♀️,🏌🏾‍♀️,🏌🏿‍♀️,🏌️‍♀️,🏌🏻,🏌🏼,🏌🏽,🏌🏾,🏌🏿,🏌,🏄🏻‍♂️,🏄🏼‍♂️,🏄🏽‍♂️,🏄🏾‍♂️,🏄🏿‍♂️,🏄‍♂️,🏄🏻‍♀️,🏄🏼‍♀️,🏄🏽‍♀️,🏄🏾‍♀️,🏄🏿‍♀️,🏄‍♀️,🏄🏻,🏄🏼,🏄🏽,🏄🏾,🏄🏿,🏄,🚣🏻‍♂️,🚣🏼‍♂️,🚣🏽‍♂️,🚣🏾‍♂️,🚣🏿‍♂️,🚣‍♂️,🚣🏻‍♀️,🚣🏼‍♀️,🚣🏽‍♀️,🚣🏾‍♀️,🚣🏿‍♀️,🚣‍♀️,🚣🏻,🚣🏼,🚣🏽,🚣🏾,🚣🏿,🚣,🏊🏻‍♂️,🏊🏼‍♂️,🏊🏽‍♂️,🏊🏾‍♂️,🏊🏿‍♂️,🏊‍♂️,🏊🏻‍♀️,🏊🏼‍♀️,🏊🏽‍♀️,🏊🏾‍♀️,🏊🏿‍♀️,🏊‍♀️,🏊🏻,🏊🏼,🏊🏽,🏊🏾,🏊🏿,🏊,⛹🏻‍♂️,⛹🏼‍♂️,⛹🏽‍♂️,⛹🏾‍♂️,⛹🏿‍♂️,⛹️‍♂️,⛹🏻‍♀️,⛹🏼‍♀️,⛹🏽‍♀️,⛹🏾‍♀️,⛹🏿‍♀️,⛹️‍♀️,⛹🏻,⛹🏼,⛹🏽,⛹🏾,⛹🏿,⛹,🏋🏻‍♂️,🏋🏼‍♂️,🏋🏽‍♂️,🏋🏾‍♂️,🏋🏿‍♂️,🏋️‍♂️,🏋🏻‍♀️,🏋🏼‍♀️,🏋🏽‍♀️,🏋🏾‍♀️,🏋🏿‍♀️,🏋️‍♀️,🏋🏻,🏋🏼,🏋🏽,🏋🏾,🏋🏿,🏋,🚴🏻‍♂️,🚴🏼‍♂️,🚴🏽‍♂️,🚴🏾‍♂️,🚴🏿‍♂️,🚴‍♂️,🚴🏻‍♀️,🚴🏼‍♀️,🚴🏽‍♀️,🚴🏾‍♀️,🚴🏿‍♀️,🚴‍♀️,🚴🏻,🚴🏼,🚴🏽,🚴🏾,🚴🏿,🚴,🚵🏻‍♂️,🚵🏼‍♂️,🚵🏽‍♂️,🚵🏾‍♂️,🚵🏿‍♂️,🚵‍♂️,🚵🏻‍♀️,🚵🏼‍♀️,🚵🏽‍♀️,🚵🏾‍♀️,🚵🏿‍♀️,🚵‍♀️,🚵🏻,🚵🏼,🚵🏽,🚵🏾,🚵🏿,🚵,🏎,🏍,🤸🏻‍♂️,🤸🏼‍♂️,🤸🏽‍♂️,🤸🏾‍♂️,🤸🏿‍♂️,🤸‍♂️,🤸🏻‍♀️,🤸🏼‍♀️,🤸🏽‍♀️,🤸🏾‍♀️,🤸🏿‍♀️,🤸‍♀️,🤸🏻,🤸🏼,🤸🏽,🤸🏾,🤸🏿,🤸,🤼‍♂️,🤼‍♀️,🤼,🤽🏻‍♂️,🤽🏼‍♂️,🤽🏽‍♂️,🤽🏾‍♂️,🤽🏿‍♂️,🤽‍♂️,🤽🏻‍♀️,🤽🏼‍♀️,🤽🏽‍♀️,🤽🏾‍♀️,🤽🏿‍♀️,🤽‍♀️,🤽🏻,🤽🏼,🤽🏽,🤽🏾,🤽🏿,🤽,🤾🏻‍♂️,🤾🏼‍♂️,🤾🏽‍♂️,🤾🏾‍♂️,🤾🏿‍♂️,🤾‍♂️,🤾🏻‍♀️,🤾🏼‍♀️,🤾🏽‍♀️,🤾🏾‍♀️,🤾🏿‍♀️,🤾‍♀️,🤾🏻,🤾🏼,🤾🏽,🤾🏾,🤾🏿,🤾,🤹🏻‍♂️,🤹🏼‍♂️,🤹🏽‍♂️,🤹🏾‍♂️,🤹🏿‍♂️,🤹‍♂️,🤹🏻‍♀️,🤹🏼‍♀️,🤹🏽‍♀️,🤹🏾‍♀️,🤹🏿‍♀️,🤹‍♀️,🤹🏻,🤹🏼,🤹🏽,🤹🏾,🤹🏿,🤹,👫,👬,👭,💏,🤳🏻,🤳🏼,🤳🏽,🤳🏾,🤳🏿,🤳,💪🏻,💪🏼,💪🏽,💪🏾,💪🏿,💪,👈🏻,👈🏼,👈🏽,👈🏾,👈🏿,👈,👉🏻,👉🏼,👉🏽,👉🏾,👉🏿,👉,☝🏻,☝🏼,☝🏽,☝🏾,☝🏿,☝,👆🏻,👆🏼,👆🏽,👆🏾,👆🏿,👆,🖕🏻,🖕🏼,🖕🏽,🖕🏾,🖕🏿,🖕,👇🏻,👇🏼,👇🏽,👇🏾,👇🏿,👇,✌🏻,✌🏼,✌🏽,✌🏾,✌🏿,✌,🤞🏻,🤞🏼,🤞🏽,🤞🏾,🤞🏿,🤞,🖖🏻,🖖🏼,🖖🏽,🖖🏾,🖖🏿,🖖,🤘🏻,🤘🏼,🤘🏽,🤘🏾,🤘🏿,🤘,🤙🏻,🤙🏼,🤙🏽,🤙🏾,🤙🏿,🤙,🖐🏻,🖐🏼,🖐🏽,🖐🏾,🖐🏿,🖐,✋🏻,✋🏼,✋🏽,✋🏾,✋🏿,✋,👌🏻,👌🏼,👌🏽,👌🏾,👌🏿,👌,👍🏻,👍🏼,👍🏽,👍🏾,👍🏿,👍,👎🏻,👎🏼,👎🏽,👎🏾,👎🏿,👎,✊🏻,✊🏼,✊🏽,✊🏾,✊🏿,✊,👊🏻,👊🏼,👊🏽,👊🏾,👊🏿,👊,🤛🏻,🤛🏼,🤛🏽,🤛🏾,🤛🏿,🤛,🤜🏻,🤜🏼,🤜🏽,🤜🏾,🤜🏿,🤜,🤚🏻,🤚🏼,🤚🏽,🤚🏾,🤚🏿,🤚,👋🏻,👋🏼,👋🏽,👋🏾,👋🏿,👋,👏🏻,👏🏼,👏🏽,👏🏾,👏🏿,👏,✍🏻,✍🏼,✍🏽,✍🏾,✍🏿,👐🏻,👐🏼,👐🏽,👐🏾,👐🏿,✍,👐,🙌🏻,🙌🏼,🙌🏽,🙌🏾,🙌🏿,🙌,🙏🏻,🙏🏼,🙏🏽,🙏🏾,🙏🏿,🙏,🤝,💅🏻,💅🏼,💅🏽,💅🏾,💅🏿,💅,👂🏻,👂🏼,👂🏽,👂🏾,👂🏿,👂,👃🏻,👃🏼,👃🏽,👃🏾,👃🏿,👃,👣,👀,👁,👁️‍🗨️,👅,👄,💋,💘,❤,💓,💔,💕,💖,💗,💙,💚,💛,💜,🖤,💝,💞,💟,❣,💌,💤,💢,💣,💥,💦,💨,💫,💬,🗨,🗯,💭,🕳,👓,🕶,👔,👕,👖,👗,👘,👙,👚,👛,👜,👝,🛍,🎒,👞,👟,👠,👡,👢,👑,👒,🎩,🎓,⛑,📿,💄,💍,💎,🐵,🐒,🦍,🐶,🐕,🐩,🐺,🦊,🐱,🐈,🦁,🐯,🐅,🐆,🐴,🐎,🦌,🦄,🐮,🐂,🐃,🐄,🐷,🐖,🐗,🐽,🐏,🐑,🐐,🐪,🐫,🐘,🦏,🐭,🐁,🐀,🐹,🐰,🐇,🐿,🦇,🐻,🐨,🐼,🐾,🦃,🐔,🐓,🐣,🐤,🐥,🐦,🐧,🕊,🦅,🦆,🦉,🐸,🐊,🐢,🦎,🐍,🐲,🐉,🐳,🐋,🐬,🐟,🐠,🐡,🦈,🐙,🐚,🦀,🦐,🦑,🦋,🐌,🐛,🐜,🐝,🐞,🕷,🕸,🦂,💐,🌸,💮,🏵,🌹,🥀,🌺,🌻,🌼,🌷,🌱,🌲,🌳,🌴,🌵,🌾,🌿,☘,🍀,🍁,🍂,🍃,🍇,🍈,🍉,🍊,🍋,🍌,🍍,🍎,🍏,🍐,🍑,🍒,🍓,🥝,🍅,🥑,🍆,🥔,🥕,🌽,🌶,🥒,🍄,🥜,🌰,🍞,🥐,🥖,🥞,🧀,🍖,🍗,🥓,🍔,🍟,🍕,🌭,🌮,🌯,🥙,🥚,🍳,🥘,🍲,🥗,🍿,🍱,🍘,🍙,🍚,🍛,🍜,🍝,🍠,🍢,🍣,🍤,🍥,🍡,🍦,🍧,🍨,🍩,🍪,🎂,🍰,🍫,🍬,🍭,🍮,🍯,🍼,🥛,☕,🍵,🍶,🍾,🍷,🍸,🍹,🍺,🍻,🥂,🥃,🍽,🍴,🥄,🔪,🏺,🌍,🌎,🌏,🌐,🗺,🗾,🏔,⛰,🌋,🗻,🏕,🏖,🏜,🏝,🏞,🏟,🏛,🏗,🏘,🏙,🏚,🏠,🏡,🏢,🏣,🏤,🏥,🏦,🏨,🏩,🏪,🏫,🏬,🏭,🏯,🏰,💒,🗼,🗽,⛪,🕌,🕍,⛩,🕋,⛲,⛺,🌁,🌃,🌄,🌅,🌆,🌇,🌉,♨,🌌,🎠,🎡,🎢,💈,🎪,🎭,🖼,🎨,🎰,🚂,🚃,🚄,🚅,🚆,🚇,🚈,🚉,🚊,🚝,🚞,🚋,🚌,🚍,🚎,🚐,🚑,🚒,🚓,🚔,🚕,🚖,🚗,🚘,🚙,🚚,🚛,🚜,🚲,🛴,🛵,🚏,🛣,🛤,⛽,🚨,🚥,🚦,🚧,🛑,⚓,⛵,🛶,🚤,🛳,⛴,🛥,🚢,✈,🛩,🛫,🛬,💺,🚁,🚟,🚠,🚡,🚀,🛰,🛎,🚪,🛌🏻,🛌🏼,🛌🏽,🛌🏾,🛌🏿,🛌,🛏,🛋,🚽,🚿,🛀🏻,🛀🏼,🛀🏽,🛀🏾,🛀🏿,🛀,🛁,⌛,⏳,⌚,⏰,⏱,⏲,🕰,🕛,🕧,🕐,🕜,🕑,🕝,🕒,🕞,🕓,🕟,🕔,🕠,🕕,🕡,🕖,🕢,🕗,🕣,🕘,🕤,🕙,🕥,🕚,🕦,🌑,🌒,🌓,🌔,🌕,🌖,🌗,🌘,🌙,🌚,🌛,🌜,🌡,☀,🌝,🌞,⭐,🌟,🌠,☁,⛅,⛈,🌤,🌥,🌦,🌧,🌨,🌩,🌪,🌫,🌬,🌀,🌈,🌂,☂,☔,⛱,⚡,❄,☃,⛄,☄,🔥,💧,🌊,🎃,🎄,🎆,🎇,✨,🎈,🎉,🎊,🎋,🎍,🎎,🎏,🎐,🎑,🎀,🎁,🎗,🎟,🎫,🎖,🏆,🏅,🥇,🥈,🥉,⚽,⚾,🏀,🏐,🏈,🏉,🎾,🎱,🎳,🏏,🏑,🏒,🏓,🏸,🥊,🥋,🥅,🎯,⛳,⛸,🎣,🎽,🎿,🎮,🕹,🎲,♠,♥,♦,♣,🃏,🀄,🎴,🔇,🔈,🔉,🔊,📢,📣,📯,🔔,🔕,🎼,🎵,🎶,🎙,🎚,🎛,🎤,🎧,📻,🎷,🎸,🎹,🎺,🎻,🥁,📱,📲,☎,📞,📟,📠,🔋,🔌,💻,🖥,🖨,⌨,🖱,🖲,💽,💾,💿,📀,🎥,🎞,📽,🎬,📺,📷,📸,📹,📼,🔍,🔎,🔬,🔭,📡,🕯,💡,🔦,🏮,📔,📕,📖,📗,📘,📙,📚,📓,📒,📃,📜,📄,📰,🗞,📑,🔖,🏷,💰,💴,💵,💶,💷,💸,💳,💹,💱,💲,✉,📧,📨,📩,📤,📥,📦,📫,📪,📬,📭,📮,🗳,✏,✒,🖋,🖊,🖌,🖍,📝,💼,📁,📂,🗂,📅,📆,🗒,🗓,📇,📈,📉,📊,📋,📌,📍,📎,🖇,📏,📐,✂,🗃,🗄,🗑,🔒,🔓,🔏,🔐,🔑,🗝,🔨,⛏,⚒,🛠,🗡,⚔,🔫,🏹,🛡,🔧,🔩,⚙,🗜,⚗,⚖,🔗,⛓,💉,💊,🚬,⚰,⚱,🗿,🛢,🔮,🛒,🏧,🚮,🚰,♿,🚹,🚺,🚻,🚼,🚾,🛂,🛃,🛄,🛅,⚠,🚸,⛔,🚫,🚳,🚭,🚯,🚱,🚷,📵,🔞,☢,☣,⬆,↗,➡,↘,⬇,↙,⬅,↖,↕,↔,↩,↪,⤴,⤵,🔃,🔄,🔙,🔚,🔛,🔜,🔝,🛐,⚛,🕉,✡,☸,☯,✝,☦,☪,☮,🕎,🔯,♈,♉,♊,♋,♌,♍,♎,♏,♐,♑,♒,♓,⛎,🔀,🔁,🔂,▶,⏩,⏭,⏯,◀,⏪,⏮,🔼,⏫,🔽,⏬,⏸,⏹,⏺,⏏,🎦,🔅,🔆,📶,📳,📴,♻,📛,⚜,🔰,🔱,⭕,✅,☑,✔,✖,❌,❎,➕,♀,♂,⚕,➖,➗,➰,➿,〽,✳,✴,❇,‼,⁉,❓,❔,❕,❗,〰,©,®,™,#️⃣,*️⃣,0️⃣,1️⃣,2️⃣,3️⃣,4️⃣,5️⃣,6️⃣,7️⃣,8️⃣,9️⃣,🔟,💯,🔠,🔡,🔢,🔣,🔤,🅰,🆎,🅱,🆑,🆒,🆓,ℹ,🆔,Ⓜ,🆕,🆖,🅾,🆗,🅿,🆘,🆙,🆚,🈁,🈂,🈷,🈶,🈯,🉐,🈹,🈚,🈲,🉑,🈸,🈴,🈳,㊗,㊙,🈺,🈵,▪,▫,◻,◼,◽,◾,⬛,⬜,🔶,🔷,🔸,🔹,🔺,🔻,💠,🔘,🔲,🔳,⚪,⚫,🔴,🔵,🏁,🚩,🎌,🏴,🏳️‍🌈,🏳,🏻,🏼,🏽,🏾,🏿,🇦🇨,🇦🇩,🇦🇪,🇦🇫,🇦🇬,🇦🇮,🇦🇱,🇦🇲,🇦🇴,🇦🇶,🇦🇷,🇦🇸,🇦🇹,🇦🇺,🇦🇼,🇦🇽,🇦🇿,🇧🇦,🇧🇧,🇧🇩,🇧🇪,🇧🇫,🇧🇬,🇧🇭,🇧🇮,🇧🇯,🇧🇱,🇧🇲,🇧🇳,🇧🇴,🇧🇶,🇧🇷,🇧🇸,🇧🇹,🇧🇻,🇧🇼,🇧🇾,🇧🇿,🇨🇦,🇨🇨,🇨🇩,🇨🇫,🇨🇬,🇨🇭,🇨🇮,🇨🇰,🇨🇱,🇨🇲,🇨🇳,🇨🇴,🇨🇵,🇨🇷,🇨🇺,🇨🇻,🇨🇼,🇨🇽,🇨🇾,🇨🇿,🇩🇪,🇩🇬,🇩🇯,🇩🇰,🇩🇲,🇩🇴,🇩🇿,🇪🇦,🇪🇨,🇪🇪,🇪🇬,🇪🇭,🇪🇷,🇪🇸,🇪🇹,🇪🇺,🇫🇮,🇫🇯,🇫🇰,🇫🇲,🇫🇴,🇫🇷,🇬🇦,🇬🇧,🇬🇩,🇬🇪,🇬🇫,🇬🇬,🇬🇭,🇬🇮,🇬🇱,🇬🇲,🇬🇳,🇬🇵,🇬🇶,🇬🇷,🇬🇸,🇬🇹,🇬🇺,🇬🇼,🇬🇾,🇭🇰,🇭🇲,🇭🇳,🇭🇷,🇭🇹,🇭🇺,🇮🇨,🇮🇩,🇮🇪,🇮🇱,🇮🇲,🇮🇳,🇮🇴,🇮🇶,🇮🇷,🇮🇸,🇮🇹,🇯🇪,🇯🇲,🇯🇴,🇯🇵,🇰🇪,🇰🇬,🇰🇭,🇰🇮,🇰🇲,🇰🇳,🇰🇵,🇰🇷,🇰🇼,🇰🇾,🇰🇿,🇱🇦,🇱🇧,🇱🇨,🇱🇮,🇱🇰,🇱🇷,🇱🇸,🇱🇹,🇱🇺,🇱🇻,🇱🇾,🇲🇦,🇲🇨,🇲🇩,🇲🇪,🇲🇫,🇲🇬,🇲🇭,🇲🇰,🇲🇱,🇲🇲,🇲🇳,🇲🇴,🇲🇵,🇲🇶,🇲🇷,🇲🇸,🇲🇹,🇲🇺,🇲🇻,🇲🇼,🇲🇽,🇲🇾,🇲🇿,🇳🇦,🇳🇨,🇳🇪,🇳🇫,🇳🇬,🇳🇮,🇳🇱,🇳🇴,🇳🇵,🇳🇷,🇳🇺,🇳🇿,🇴🇲,🇵🇦,🇵🇪,🇵🇫,🇵🇬,🇵🇭,🇵🇰,🇵🇱,🇵🇲,🇵🇳,🇵🇷,🇵🇸,🇵🇹,🇵🇼,🇵🇾,🇶🇦,🇷🇪,🇷🇴,🇷🇸,🇷🇺,🇷🇼,🇸🇦,🇸🇧,🇸🇨,🇸🇩,🇸🇪,🇸🇬,🇸🇭,🇸🇮,🇸🇯,🇸🇰,🇸🇱,🇸🇲,🇸🇳,🇸🇴,🇸🇷,🇸🇸,🇸🇹,🇸🇻,🇸🇽,🇸🇾,🇸🇿,🇹🇦,🇹🇨,🇹🇩,🇹🇫,🇹🇬,🇹🇭,🇹🇯,🇹🇰,🇹🇱,🇹🇲,🇹🇳,🇹🇴,🇹🇷,🇹🇹,🇹🇻,🇹🇼,🇹🇿,🇺🇦,🇺🇬,🇺🇲,🇺🇳,🇺🇸,🇺🇾,🇺🇿,🇻🇦,🇻🇨,🇻🇪,🇻🇬,🇻🇮,🇻🇳,🇻🇺,🇼🇫,🇼🇸,🇽🇰,🇾🇪,🇾🇹,🇿🇦,🇿🇲,🇿🇼'.split(',');
11
	var regx_arr=[];
12
	var noExtra = function(s){return s.replace(/\ufe0f/gm, '');}///\ufe0f|\u200d/gm, ''
13
	var toSurrogatePairs = function(r){for(var t="",n=0;n<r.length;n++)t+="\\u"+("000"+r[n].charCodeAt(0).toString(16)).substr(-4);return t}
0 ignored issues
show
Coding Style Best Practice introduced by
Curly braces around statements make for more readable code and help prevent bugs when you add further statements.

Consider adding curly braces around all statements when they are executed conditionally. This is optional if there is only one statement, but leaving them out can lead to unexpected behaviour if another statement is added later.

Consider:

if (a > 0)
    b = 42;

If you or someone else later decides to put another statement in, only the first statement will be executed.

if (a > 0)
    console.log("a > 0");
    b = 42;

In this case the statement b = 42 will always be executed, while the logging statement will be executed conditionally.

if (a > 0) {
    console.log("a > 0");
    b = 42;
}

ensures that the proper code will be executed conditionally no matter how many statements are added or removed.

Loading history...
14
	var toCodePoint = function(t){for(var n=[],r=0,o=0,h=0;h<t.length;)r=t.charCodeAt(h++),o?(n.push((65536+(o-55296<<10)+(r-56320)).toString(16)),o=0):r>=55296&&56319>=r?o=r:n.push(r.toString(16));return n.join("-")}
0 ignored issues
show
Comprehensibility introduced by
Usage of the sequence operator is discouraged, since it may lead to obfuscated code.

The sequence or comma operator allows the inclusion of multiple expressions where only is permitted. The result of the sequence is the value of the last expression.

This operator is most often used in for statements.

Used in another places it can make code hard to read, especially when people do not realize it even exists as a seperate operator.

This check looks for usage of the sequence operator in locations where it is not necessary and could be replaced by a series of expressions or statements.

var a,b,c;

a = 1, b = 1,  c= 3;

could just as well be written as:

var a,b,c;

a = 1;
b = 1;
c = 3;

To learn more about the sequence operator, please refer to the MDN.

Loading history...
Coding Style Best Practice introduced by
Curly braces around statements make for more readable code and help prevent bugs when you add further statements.

Consider adding curly braces around all statements when they are executed conditionally. This is optional if there is only one statement, but leaving them out can lead to unexpected behaviour if another statement is added later.

Consider:

if (a > 0)
    b = 42;

If you or someone else later decides to put another statement in, only the first statement will be executed.

if (a > 0)
    console.log("a > 0");
    b = 42;

In this case the statement b = 42 will always be executed, while the logging statement will be executed conditionally.

if (a > 0) {
    console.log("a > 0");
    b = 42;
}

ensures that the proper code will be executed conditionally no matter how many statements are added or removed.

Loading history...
15
	for (var i=0;i<emojis.length;i++){regx_arr.push(toSurrogatePairs(emojis[i]));};
16
	var re = new RegExp('(' + regx_arr.join('|') + ')', 'g');
17
	regx_arr = null;
0 ignored issues
show
Unused Code introduced by
The assignment to regx_arr seems to be never used. If you intend to free memory here, this is not necessary since the variable leaves the scope anyway.
Loading history...
18
	emojis = null;
0 ignored issues
show
Unused Code introduced by
The assignment to emojis seems to be never used. If you intend to free memory here, this is not necessary since the variable leaves the scope anyway.
Loading history...
19
20
	var parser = function (txt, path, alt, eclass, ext){
21
		return txt.replace(re, function (a, b) {
22
			var r = '<img draggable="false"';
23
			r += (eclass)?' class="'+eclass+'"':'';
24
			r += (alt)?' alt="'+b+'"':'';
25
			r += ' src="'+path+toCodePoint(noExtra(b))+'.'+ext+'">';
26
			return r;
27
		});
28
	}
29
30
	$.Emoji = function(element, options) {
31
32
		var plugin = this,
33
			$element = $(element),
34
			element = element,
0 ignored issues
show
Unused Code introduced by
The assignment to variable element seems to be never used. Consider removing it.
Loading history...
35
			defaults = {
36
				path:'img/apple72/',//edit this to your web folder
37
				class: 'emoji',
38
				alt: true,
39
				ext: 'png'
40
			};
41
		plugin.settings = {};
42
43
		plugin.init = function() {
44
			plugin.settings = $.extend({}, defaults, options);
45
			$element.html(parser($element.html(), plugin.settings.path, plugin.settings.alt, plugin.settings.class, plugin.settings.ext));
46
			
47
		}
48
		
49
		plugin.init();
50
51
	}
52
53
	$.fn.Emoji = function(options) {
54
		return this.each(function() {
55
			if (undefined == $(this).data('Emoji')) {
56
				var plugin = new $.Emoji(this, options);
57
				$(this).data('Emoji', plugin);
58
			}
59
		});
60
	}
61
62
})(jQuery);
63