diff options
author | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2015-11-19 10:36:00 +0100 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2015-11-19 10:36:00 +0100 |
commit | 805efb5c9a4df66735f590af1243cc40e0cf88cf (patch) | |
tree | bb74157c372849f6468fab787557f52c780bf466 | |
parent | df1704ef911847d4e390d1cde0cc80c35a19cbbe (diff) |
Convert js/codeq/language.js to Unix format
-rw-r--r-- | js/codeq/language.js | 56 |
1 files changed, 28 insertions, 28 deletions
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'); + } + }); +})(); |