implemented the emoji dictionary

master
Boyana 1 year ago
parent 797b6969ba
commit f331e08400

@ -65,6 +65,38 @@
']': 'sht',
'[': 'sh',
'|': 'yu',
}
e = {
'a': '📇',
'b': '🚝',
'c': '🚱',
'd': '🚯',
'e': '🛂',
'f': '🚞',
'g': '🚠',
'h': '🫃',
'i': '🪸',
'j': '🥟',
'k': '🧔‍♀️',
'l': '❤️‍🔥',
'm': '🉑',
'n': '🤡',
'o': '🔫',
'p': '⚰️',
'q': '🔣',
'r': '🤖',
's': '🦞',
't': '🛴',
'u': '🍶',
'v': '🪕',
'w': '📟',
'x': '🪅',
'y': '📫',
'z': '🥌',
'`': '🏵️',
']': '༎ຶ‿༎ຶ )',
'[': 'ଘ( ິ•ᆺ⃘• )ິଓ',
'|': '╭∩╮(ಠ۝ಠ)╭∩╮',
}
function convert(){
event.preventDefault();
@ -73,14 +105,16 @@
var charlesHex="";
var charlesDc="";
var charlesCY="";
var charlesE="";
for (var i=0;i<charles.length;i++){
console.log(i,charles.charCodeAt(i));
charlesBinary=charlesBinary+charles.charCodeAt(i).toString(2);
charlesHex=charlesHex+charles.charCodeAt(i).toString(16);
charlesDc=charlesDc+charles.charCodeAt(i).toString(10);
charlesCY=charlesCY+d[charles[i]];
charlesE=charlesE+e[charles[i]];
}
console.log(charles,charlesBinary,charlesHex,charlesDc,charlesCY);
console.log(charles,charlesBinary,charlesHex,charlesDc,charlesCY,charlesE);
}
</script>
</html>

Loading…
Cancel
Save