SHOW:
|
|
- or go back to the newest paste.
| 1 | // run this function to update the spinning globe for another iteration | |
| 2 | - | var p, n, e, x, r, t; |
| 2 | + | |
| 3 | - | p = "<pre>"; |
| 3 | + | var e, x, r, t; |
| 4 | - | var n = ["zw2", |
| 4 | + | var newSource = "<pre>"; |
| 5 | - | "l6k\n", |
| 5 | + | var worldParts = ["zw2", |
| 6 | - | "e3t", |
| 6 | + | "l6k\n", |
| 7 | - | "jnt", |
| 7 | + | "e3t", |
| 8 | - | "qj2", |
| 8 | + | "jnt", |
| 9 | - | "xh2 x", |
| 9 | + | "qj2", |
| 10 | - | "2kty2", |
| 10 | + | "xh2 x", |
| 11 | - | "wrt", |
| 11 | + | "2kty2", |
| 12 | - | "13n2", |
| 12 | + | "wrt", |
| 13 | - | "3n9h2\n", |
| 13 | + | "13n2", |
| 14 | - | "3pdxt", |
| 14 | + | "3n9h2\n", |
| 15 | - | "1csb yz", |
| 15 | + | "3pdxt", |
| 16 | - | "3iyb6k", |
| 16 | + | "1csb yz", |
| 17 | - | "3pk72", |
| 17 | + | "3iyb6k", |
| 18 | - | "3nm\nr2", |
| 18 | + | "3pk72", |
| 19 | - | "" |
| 19 | + | "3nm\nr2", |
| 20 | - | ]; |
| 20 | + | "" |
| 21 | - | for (var y in n) {
|
| 21 | + | ]; |
| 22 | for (var y in worldParts) {
| |
| 23 | - | var t = String(parseInt(n[y], 36)); |
| 23 | + | |
| 24 | var t = String(parseInt(worldParts[y], 36)); | |
| 25 | ||
| 26 | for (var a in t) {
| |
| 27 | for (r = !r, i = 0; t[a] > i; i += .05) {
| |
| 28 | with(Math) {
| |
| 29 | x -= .05; | |
| 30 | var o = (new Date() / 1e3) + (x / PI); | |
| 31 | if (cos(o) < 0) {
| |
| 32 | e[~~ (32 * sin(o) * sin(.5 + y / 7)) + 60] = -~r; | |
| 33 | } | |
| 34 | } | |
| 35 | } | |
| 36 | - | p += " *#"[e[x++] + e[x++]] || (S = ("eval(updateWorld=\'" + updateWorld.split(B = "\\\\").join(B + B).split(Q = "\'").join(B + Q) + Q + ")//m1k")[x / 2 + 61 * y - 1]).fontcolor(/\\w/.test(S) && "#03B");
|
| 36 | + | |
| 37 | newSource += " *#"[e[x++] + e[x++]] || (S = ("eval(updateWorld=\'" + updateWorld.split(B = "\\\\").join(B + B).split(Q = "\'").join(B + Q) + Q + ")//m1k")[x / 2 + 61 * y - 1]).fontcolor(/\\w/.test(S) && "#03B");
| |
| 38 | } | |
| 39 | } | |
| 40 | - | document.body.innerHTML = p += B + "\\n" |
| 40 | + | |
| 41 | newSource = newSource + B + "\\n"; | |
| 42 | ||
| 43 | document.body.innerHTML = newSource; | |
| 44 | } | |
| 45 | }; | |
| 46 | ||
| 47 | // BUTTTTT it has to be a string, or we won't be able to manipulate it as a string | |
| 48 | var updateWorld = updateWorld.toString(); | |
| 49 | ||
| 50 | // update as fast as we can (minimum browser timeout = 4ms) | |
| 51 | setTimeout(updateWorld, 4); |