This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| emoji_decoder [2025/09/24 15:28] – Yuki | emoji_decoder [2025/09/24 18:49] (current) – Yuki | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Emoji decoder ====== | ====== Emoji decoder ====== | ||
| + | |||
| + | Hide any message in emojis! | ||
| + | |||
| + | ===== Decoder ===== | ||
| < | < | ||
| Line 8: | Line 12: | ||
| $emoji=document.querySelector("# | $emoji=document.querySelector("# | ||
| $out=document.querySelector("# | $out=document.querySelector("# | ||
| - | $out.innerHTML = String.fromCodePoint(...[...$emoji.value].map(a=> | + | $out.innerHTML = new TextDecoder().decode(new Uint8Array([...$emoji.value].map(a=> |
| } | } | ||
| </ | </ | ||
| </ | </ | ||
| - | ====== Encoder | + | ===== Encoder ===== |
| < | < | ||
| <script type=" | <script type=" | ||
| < | < | ||
| - | < | + | < |
| - | <span id=" | + | <br/>< |
| + | <input type=" | ||
| < | < | ||
| var emo = 0x1fae0; | var emo = 0x1fae0; | ||
| Line 25: | Line 30: | ||
| function encode(){ | function encode(){ | ||
| var $emoji2=document.querySelector("# | var $emoji2=document.querySelector("# | ||
| - | var cv=(e, | ||
| var $out=document.querySelector("# | var $out=document.querySelector("# | ||
| - | $out.innerHTML | + | $out.value = String.fromCodePoint(emo,...[...new TextEncoder().encode($emoji2.value)].map(a=> |
| } | } | ||
| </ | </ | ||
| </ | </ | ||