From 805efb5c9a4df66735f590af1243cc40e0cf88cf Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Thu, 19 Nov 2015 10:36:00 +0100 Subject: Convert js/codeq/language.js to Unix format --- js/codeq/language.js | 56 ++++++++++++++++++++++++++-------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'js/codeq') diff --git a/js/codeq/language.js b/js/codeq/language.js index 97691e6..45dffdc 100644 --- a/js/codeq/language.js +++ b/js/codeq/language.js @@ -1,28 +1,28 @@ -/** - * Created by robert on 9/18/15. - */ - -(function(){ - var jqScreen = $('#screen_language'), - jqProlog = $('#choose-prolog'), - jqPython = $('#choose-python'), - jqRobot = $('#choose-robot'), - choose = function (language) { - codeq.globalStateMachine.transition('problem_list', language); - }; - - codeq.globalStateMachine.register('language',{ - 'enter': function(){ - jqScreen.css('display', ''); - jqProlog.on('click', function (e) { e.preventDefault(); choose('prolog') }); - jqPython.on('click', function (e) { e.preventDefault(); choose('python') }); - jqRobot.on('click', function (e) { e.preventDefault(); choose('robot') }); - }, - 'exit' : function(){ - jqProlog.off(); - jqPython.off(); - jqRobot.off(); - jqScreen.css('display', 'none'); - } - }); -})(); +/** + * Created by robert on 9/18/15. + */ + +(function(){ + var jqScreen = $('#screen_language'), + jqProlog = $('#choose-prolog'), + jqPython = $('#choose-python'), + jqRobot = $('#choose-robot'), + choose = function (language) { + codeq.globalStateMachine.transition('problem_list', language); + }; + + codeq.globalStateMachine.register('language',{ + 'enter': function(){ + jqScreen.css('display', ''); + jqProlog.on('click', function (e) { e.preventDefault(); choose('prolog') }); + jqPython.on('click', function (e) { e.preventDefault(); choose('python') }); + jqRobot.on('click', function (e) { e.preventDefault(); choose('robot') }); + }, + 'exit' : function(){ + jqProlog.off(); + jqPython.off(); + jqRobot.off(); + jqScreen.css('display', 'none'); + } + }); +})(); -- cgit v1.2.1