diff options
author | Pacien TRAN-GIRARD | 2015-01-26 00:18:14 +0100 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2015-01-26 00:18:14 +0100 |
commit | dcd3a89153ea747e1ce8569bbc95a43010faad2e (patch) | |
tree | fe6822017d9daebf5a08f89b7370173e5d70c2d2 /public/javascripts | |
parent | 23e3828213facfd4dbb2f977e2e5636afacb3bd7 (diff) | |
download | minibay-dcd3a89153ea747e1ce8569bbc95a43010faad2e.tar.gz |
Improve konami
Diffstat (limited to 'public/javascripts')
-rw-r--r-- | public/javascripts/cheat.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/public/javascripts/cheat.js b/public/javascripts/cheat.js index 863e53a..242dd79 100644 --- a/public/javascripts/cheat.js +++ b/public/javascripts/cheat.js | |||
@@ -10,6 +10,10 @@ new Konami(function () { | |||
10 | // play nice soundtrack | 10 | // play nice soundtrack |
11 | (new Audio('/assets/medias/sims2-university-theme.ogg')).play(); | 11 | (new Audio('/assets/medias/sims2-university-theme.ogg')).play(); |
12 | 12 | ||
13 | // substitute currency symbols with § | ||
14 | var currencySymbols = /[\$\xA2-\xA5\u058F\u060B\u09F2\u09F3\u09FB\u0AF1\u0BF9\u0E3F\u17DB\u20A0-\u20BD\uA838\uFDFC\uFE69\uFF04\uFFE0\uFFE1\uFFE5\uFFE6]/; | ||
15 | document.body.innerHTML = document.body.innerHTML.replace(currencySymbols, "§"); | ||
16 | |||
13 | // display cheat console | 17 | // display cheat console |
14 | var form = document.createElement('form'); | 18 | var form = document.createElement('form'); |
15 | form.classList.add('cheat-form'); | 19 | form.classList.add('cheat-form'); |