summaryrefslogtreecommitdiff
path: root/src/scripts/error404.entry.ts
diff options
context:
space:
mode:
authorGeorgios Andreadis <G.Andreadis@student.tudelft.nl>2017-01-27 10:26:54 +0100
committerGitHub <noreply@github.com>2017-01-27 10:26:54 +0100
commit50fcb0634c9ebe894988103184d50d372bc76907 (patch)
tree5af172c03599f7c680cd32205eab5329b841c85c /src/scripts/error404.entry.ts
parent3ad08353d289720cf8f43e1dba078da43c35e97d (diff)
parentb462c9183ec7c2e41f14daad49f03d8afaa4ec59 (diff)
Merge pull request #4 from tudelft-atlarge/states-batch-fetch
Fetch experiment states in one batch
Diffstat (limited to 'src/scripts/error404.entry.ts')
-rw-r--r--src/scripts/error404.entry.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/scripts/error404.entry.ts b/src/scripts/error404.entry.ts
index 07dc9ca0..477a46c0 100644
--- a/src/scripts/error404.entry.ts
+++ b/src/scripts/error404.entry.ts
@@ -3,24 +3,24 @@ import * as $ from "jquery";
$(document).ready(() => {
- let text =
+ const 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('');
+ const charList = text.split('');
- let binary = "01001111011100000110010101101110010001000100001100100001";
- let binaryIndex = 0;
+ const binaryString = "01001111011100000110010101101110010001000100001100100001";
+ let binaryIndex = 0;
for (let i = 0; i < charList.length; i++) {
if (charList[i] === "o") {
- charList[i] = binary[binaryIndex];
+ charList[i] = binaryString[binaryIndex];
binaryIndex++;
}
}
$(".code-block").html(charList.join(""));
-}); \ No newline at end of file
+});