From 1973db21715555e7b668c83e6aace2c7499f8eaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20Smodi=C5=A1?= Date: Tue, 25 Aug 2015 14:22:58 +0200 Subject: Login now fetches the list of available problems from the server. Made the query work, so terminal interaction now works. --- js/codeq/comms.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'js/codeq/comms.js') diff --git a/js/codeq/comms.js b/js/codeq/comms.js index fb5d348..d2c2910 100644 --- a/js/codeq/comms.js +++ b/js/codeq/comms.js @@ -59,6 +59,15 @@ sendQuery: function commsSendQuery (json) { json['sid'] = codeq.sid; return send('query', codeq.jsonize(json)); + }, + + getProblem: function commsGetProblem (language, problem_group, problem) { + return send('get_problem', codeq.jsonize({ + 'sid': codeq.sid, + 'language': language, + 'problem_group': problem_group, + 'problem': problem + })); } }; })(); -- cgit v1.2.1