aboutsummaryrefslogtreecommitdiffstats
path: root/static/js/500.js
blob: f8407da1108e5d44d8c32a719db7134147eed01a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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();

function closeWindow(){
    var app = document.getElementById("win");
    var current_class = app.getAttribute("class");
    app.setAttribute("class", current_class + " uk-animation-scale-up uk-animation-reverse")
}