From 91bb685e531c43f291cc52b46a91c4ea087f95fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Pu=C5=A1nik?= Date: Mon, 9 Nov 2015 12:50:44 +0100 Subject: =?UTF-8?q?about=20screen=20mockup;=20TODO:=20text&design=20->=20L?= =?UTF-8?q?oni&Sa=C5=A1a?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/codeq/about.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 js/codeq/about.js (limited to 'js/codeq/about.js') 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'); + } + }); + +})(); -- cgit v1.2.1