diff options
author | Robert Zorko <robertz@gurucue.com> | 2015-09-22 18:13:31 +0200 |
---|---|---|
committer | Robert Zorko <robertz@gurucue.com> | 2015-09-22 18:13:31 +0200 |
commit | 5c87d98c0b3383c7ad63f0b69e36110b915e36c2 (patch) | |
tree | 8170ff14a78fdfc62a30e600d9fce8eb261afe2b /js/codeq/language.js | |
parent | 9043754b69c64419c285a703daf203b87af70506 (diff) |
enabled buttons in the navigation header (at least buttons on the left side of the bar), renamed stateMachine to navigation
Diffstat (limited to 'js/codeq/language.js')
-rw-r--r-- | js/codeq/language.js | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/js/codeq/language.js b/js/codeq/language.js index 2864098..d4b6ee4 100644 --- a/js/codeq/language.js +++ b/js/codeq/language.js @@ -5,14 +5,31 @@ (function(){ codeq.globalStateMachine.register('language',{ 'enter': function(){ - $("#screen_language").css('display', ''); $('#submit_language').on('click',function(){ codeq.globalStateMachine.transition('problem',$('#language').val()); + //var lan = $('#language').val(); + //codeq.activateState('problem',{'lan':lan}); }); + + $('#navigation-login').css('display', ''); + /*$('#navigation-login').on('click', function(){ + codeq.globalStateMachine.transition('login'); + //codeq.activateState('login'); + });*/ + $("#navigation-language").addClass("active"); + $('#navigation-language').css('display', ''); + + $("#screen_language").css('display', ''); }, 'exit' : function(){ $("#submit_language").off(); $("#screen_language").css('display', 'none'); + + $('#navigation-login').css('display', 'none'); + //$('#navigation-login').off(); + $('#navigation-language').css('display', 'none'); + $("#navigation-language").removeClass("active"); + $('#language').val("prolog");//reset to the default value } }); |