diff options
author | 2018-02-28 23:33:35 +0000 | |
---|---|---|
committer | 2018-02-28 23:33:35 +0000 | |
commit | c2dfc1bb34e8153bc7372ce6056c6883616ece9b (patch) | |
tree | 0df39f5f8d60d3f528d48347e9a5c8b276875175 /static/js/500.js | |
parent | reduce memory allocation from 2GB to 512MB (#28) (diff) |
Add error messages (#30)
* Add error messages
Signed-off-by: JoeBanks13 <[email protected]>
* Remove un-used keyword arg from 404
* Assert for status code instead of full content
* PEP8
* test lint
* please coverage
* oh
* Exclude websockets.py from coverage
* Move code output into terminal
* Switch typewriter href protocol
* Add tests for websockets.py
* Abort previous commit, coveralls did not let coverage go down
* Add more pauses and request => response
* move css and js out, add typewriter JS to our own repo & add method for appending text in bulk.
* Enable REPL on 4XX and change error descriptions
* commas
* /error path
Diffstat (limited to 'static/js/500.js')
-rw-r--r-- | static/js/500.js | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/static/js/500.js b/static/js/500.js new file mode 100644 index 00000000..2b1c461e --- /dev/null +++ b/static/js/500.js @@ -0,0 +1,36 @@ + var app = document.getElementById('error'); + + var typewriter = new Typewriter(app, { + loop: false, + deleteSpeed: 40, + typingSpeed: "natural", + devMode: false + }); + + + + typewriter.appendText('Python 3.6.4 (default, Jan 5 2018, 02:35:40)\n') + .appendText('[GCC 7.2.1 20171224] on linux\n') + .appendText('Type "help", "copyright", "credits" or "license" for more information.\n') + .appendText('>>> ') + .pauseFor(1000) + .typeString("impor requests") + .deleteChars(9) + .typeString("t requests\n") + .appendText(">>> ") + .pauseFor(750) + .changeSettings({typingSpeed: "natural"}) + .typeString("response = requests."+window._RequestMethod+"('https://pythim") + .deleteChars(2) + .typeString("ondiscord.con/") + .deleteChars(2) + .typeString("m"+window._Path+"')\n") + .pauseFor(1000) + .appendText("<Response ["+window._Code+"]>\n>>> ") + .typeString("# hmmmm") + .pauseFor(1000) + .deleteChars(7) + .pauseFor(1000) + .typeString("response.text\n") + .appendText("'"+window._ErrorMsg+"'\n>>> ") + .start(); |