Check-in [268cdcdf71]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:[a7c9cfbcda] Made changes to CSS and TS to implement.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:268cdcdf716f359c6fef746c99ba85fb720eef1f
User & Date: adamc 2016-11-13 14:52:54
Context
2016-11-13
16:24
[5ffa27ef60] Discovered that the formula parser needed an optional whitespace parser between the "what is" and "what does" literals and the numeric parsing. check-in: 52bdfe5d46 user: adamc tags: trunk
14:52
[a7c9cfbcda] Made changes to CSS and TS to implement. check-in: 268cdcdf71 user: adamc tags: trunk
14:26
[bb7eb5d898] Changed the demo app code to use the new static Parse method. check-in: a356076104 user: adamc tags: trunk
Changes

Changes to app/chattymath.css.

5
6
7
8
9
10
11

12
13
14
15
16
17
18
..
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
body {

}

#main {
    width: 80%;
    margin: 0 auto;

}

form {
    margin-top: 3em;
}

form button {
................................................................................

label {
    margin-top: 1em;
}

#answers {
    margin-top: 2em;
    height: 50%;
    overflow-y: auto;
}

.answer {
    margin-top: 1em;
}

span.questionpart {
    font-style: italic;
}







>







 







|










5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
..
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
body {

}

#main {
    width: 80%;
    margin: 0 auto;
    height: 100%;
}

form {
    margin-top: 3em;
}

form button {
................................................................................

label {
    margin-top: 1em;
}

#answers {
    margin-top: 2em;
    height: 400px;
    overflow-y: auto;
}

.answer {
    margin-top: 1em;
}

span.questionpart {
    font-style: italic;
}

Changes to app/chattymath.ts.

308
309
310
311
312
313
314
315
316
317
    $("#answerRequest").click(function (e) {
        e.preventDefault();
        let data = {
            "question": $("#question").val(),
            "answer": yourChatty.ask($("#question").val())
        };

        $("#answers").append(tmpl.tmpl("answerTemplate", data));
    });
});







|


308
309
310
311
312
313
314
315
316
317
    $("#answerRequest").click(function (e) {
        e.preventDefault();
        let data = {
            "question": $("#question").val(),
            "answer": yourChatty.ask($("#question").val())
        };

        $("#answers").prepend(tmpl.tmpl("answerTemplate", data));
    });
});