Created
April 29, 2016 02:30
-
-
Save tcdw/18296ff880f4cedf21e317ea999899c1 to your computer and use it in GitHub Desktop.
Lingoys 早!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- | |
| Lingoys!Art 问候语 | |
| by tcdw (吐槽大王) | |
| WTFPL | |
| --> | |
| <div id="info" style="background-color: #000"></div> | |
| <script> | |
| var hello = "Lingoys 早!".split(""); | |
| var output = ""; | |
| for (var i in hello) { | |
| var r = Math.floor(Math.random() * 192 + 64); | |
| var g = Math.floor(Math.random() * 192 + 64); | |
| var b = Math.floor(Math.random() * 192 + 64); | |
| output += '<span style="color: rgb(' + r + ', ' + g + ', ' + b + ')">' + hello[i] + '</span>'; | |
| } | |
| document.getElementById("info").innerHTML = output; | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment