📜 ⬆️ ⬇️

ʇxǝʇ dılɟ

I stumbled upon a funny online service - the text is written in one field, the same text appears in another field, but rotated 180 degrees, the text that you can optionally copy to the clipboard. The implementation of this idea became interesting and decided to look into the source.

I did not even think that it could be done, but with such a beautiful implementation on JS. Everything is very simple: a hash of matching characters is compiled, for example, “n” is inverted “u”, etc. For characters that do not have reflected copies in the alphabet, matches are searched for in the Unicode table. After that, the hash achieves its reverse version and it remains only to access it through functions on events.

In general, the idea is good, for statuses you can use passwords, etc.

Service site: www.fliptitle.com
')
ZY In this example, it works only with Latin letters, with the domestic layout, it will probably not be so simple.

Source: https://habr.com/ru/post/45275/


All Articles