This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| emoji_decoder [2025/09/23 01:47] – created Yuki | emoji_decoder [2025/09/24 18:49] (current) – Yuki | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Emoji decoder ====== | ||
| + | |||
| + | Hide any message in emojis! | ||
| + | |||
| + | ===== Decoder ===== | ||
| + | |||
| < | < | ||
| <input type=" | <input type=" | ||
| - | <span id=" | + | <pre id=" |
| < | < | ||
| function conv(){ | function conv(){ | ||
| $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 ===== | ||
| + | |||
| + | < | ||
| + | <script type=" | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | <input type=" | ||
| + | < | ||
| + | var emo = 0x1fae0; | ||
| + | document.querySelector(" | ||
| + | function encode(){ | ||
| + | var $emoji2=document.querySelector("# | ||
| + | var $out=document.querySelector("# | ||
| + | $out.value = String.fromCodePoint(emo, | ||
| } | } | ||
| </ | </ | ||
| </ | </ | ||