summaryrefslogtreecommitdiff
path: root/js/codeq/about.js
blob: a0ca261c3e594c499fceca2a2d4fcc2c47bd75ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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');
        }
    });

})();