Browse Source

add more emojo sets!

master
mark 9 months ago
parent
commit
8bd2e3fd23
2 changed files with 37 additions and 2 deletions
  1. +9
    -2
      index.html
  2. +28
    -0
      script.js

+ 9
- 2
index.html View File

@@ -2,6 +2,7 @@
<html>
<head>
<meta charset="UTF-8">
<link rel="shortcut icon" href="/et/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:300,300italic,700,700italic" />
@@ -34,8 +35,14 @@
<label for="emoteType">Text Emote</label>
<select id="emoteType">
<option value="hacker">Hacker Text (hacker)</option>
<option value="sm64">Super Mario 64 (sm64)</option>
<option value="lazer">Lazer Text (lazer)</option>
<option value="sm64">Super Mario 64 (sm64)</option>
<option value="smb">Super Mario Bros (smb)</option>
<option value="eightbit">8 Bit (8b)</option>
<option value="lazer">Lazer Text (lazer)</option>
<option value="tp">Twin Peaks (tp)</option>
<option value="jhg">Neon (jhg)</option>
<option value="spooky">Spooky (rhg)</option>
<option value="emoji">Emoji (regional_indicator)</option>
<option value="clapping">Clapping Text 👏</option>
<option value="spaced">S P A C E D T E X T</option>


+ 28
- 0
script.js View File

@@ -102,7 +102,35 @@ var replaceMapping = {
regexp: /./g,
replace: "$& ",
downcase: false
},
eightbit: {
regexp: /[A-Za-z]/g,
replace: ":8b_$&:​",
downcase: true
},
jhg: {
regexp: /[A-Za-z]/g,
replace: ":jhg_$&:​",
downcase: true
},
tp: {
regexp: /[A-Za-z]/g,
replace: ":tp_$&:​",
downcase: true
},
smb: {
regexp: /[A-Za-z]/g,
replace: ":smb_$&:​",
downcase: true
},
spooky: {
regexp: /[A-Za-z]/g,
replace: ":rhg_$&:​",
downcase: true,
postReplaceMatch: [/\?/],
postReplace: "ques"
}
};
function updateOutput() {


Loading…
Cancel
Save