/openshift/adei-setups/asec

To get this branch, use:
bzr branch http://darksoft.org/webbzr/openshift/adei-setups/asec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
function adeiSetupStartup() {
    var ret = false;
    var Lstate = getCookie("LastState");
    var strArr = document.location.href.split("#",2);
    if((Lstate == null || Lstate == ""))
    {
        if((strArr[1] == null || strArr[1] == "" || strArr[1] == "#"))
        {
            if(strArr[1] == "" || strArr[1] == "#")
            {
                document.location.href = (document.location.href + "module=wiki&db_server=virtual&db_name=srctree&db_group=-3&control_group=-3&db_mask=all&experiment=-&window=86400&virtual=srctree&srctree=&infomod=scatter");
            }
            else
            {
                document.location.href = (document.location.href + "#module=wiki&db_server=virtual&db_name=srctree&db_group=-3&control_group=-3&db_mask=all&experiment=-&window=86400&module=wiki&virtual=srctree&srctree=&infomod=scatter");
            }
            document.location.reload(true);
            ret = true;
        }
    }
    else
    {
        if((strArr[1] == null || strArr[1] == ""))
        {
            document.location.href = Lstate;
            setCookie("LastState", "", -1);
            document.location.reload(true);
            ret = false;
        }
    }
    link = new BUTTON("http://crd.yerphi.am/Aragats_Sky_Monitoring?ds=start&de=stop&type=0", 'AllSkyCam', 'imgCrop_button_sky');
    linkld = new BUTTON("http://crd.yerphi.am/llm_aragats?ds=start&de=stop&type=0", 'StormTracker', 'imgCrop_button_ld');

    return ret;
}