summaryrefslogtreecommitdiff
path: root/js/codeq/about.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/codeq/about.js')
-rw-r--r--js/codeq/about.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/js/codeq/about.js b/js/codeq/about.js
new file mode 100644
index 0000000..a0ca261
--- /dev/null
+++ b/js/codeq/about.js
@@ -0,0 +1,22 @@
+/**
+ * Created by markop on 11/09/15.
+ */
+(function(){
+
+ var jqScreen = $("#screen_about"),
+ jqBtnGoBack = $("#btnAboutGoBack");
+
+ codeq.globalStateMachine.register('about',{
+ 'enter': function(){
+ jqBtnGoBack.on('click',function(){
+ history.back();//forces a transition to the previous state
+ });
+ jqScreen.css('display', '');
+ },
+ 'exit' : function(){
+ jqScreen.css('display', 'none');
+ jqBtnGoBack.off('click');
+ }
+ });
+
+})();