diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-01-24 12:06:09 +0100 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-01-24 12:06:09 +0100 |
| commit | c96e6ffafb62bde1e08987b1fdf3c0786487f6ec (patch) | |
| tree | 37eaf4cf199ca77dc131b4212c526b707adf2e30 /src/scripts/error404.entry.ts | |
Initial commit
Diffstat (limited to 'src/scripts/error404.entry.ts')
| -rw-r--r-- | src/scripts/error404.entry.ts | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/scripts/error404.entry.ts b/src/scripts/error404.entry.ts new file mode 100644 index 00000000..07dc9ca0 --- /dev/null +++ b/src/scripts/error404.entry.ts @@ -0,0 +1,26 @@ +///<reference path="../../typings/globals/jquery/index.d.ts" /> +import * as $ from "jquery"; + + +$(document).ready(() => { + let text = + " oo oooo oo <br>" + + " oo oo oo oo <br>" + + " oo oo oo oo <br>" + + " oooooo oo oo oooooo <br>" + + " oo oo oo oo <br>" + + " oo oooo oo <br>"; + let charList = text.split(''); + + let binary = "01001111011100000110010101101110010001000100001100100001"; + let binaryIndex = 0; + + for (let i = 0; i < charList.length; i++) { + if (charList[i] === "o") { + charList[i] = binary[binaryIndex]; + binaryIndex++; + } + } + + $(".code-block").html(charList.join("")); +});
\ No newline at end of file |
