Project

General

Profile

1
package eu.dnetlib.repo.manager.client;
2

    
3
import com.google.gwt.dom.client.Document;
4
import com.google.gwt.dom.client.Style;
5

    
6
/**
7
 * Created by stefania on 12/2/15.
8
 */
9
public class LandingPage {
10

    
11
    private static LandingPage instance = null;
12

    
13
    private LandingPage() {
14
    }
15

    
16
    public static final LandingPage getInstance() {
17

    
18
        if(instance==null)
19
            instance = new LandingPage();
20

    
21
        return instance;
22
    }
23

    
24
    public void showLandingPage() {
25

    
26
        Document.get().getElementById("login").getStyle().setDisplay(Style.Display.NONE);
27
        Document.get().getElementById("register").getStyle().setDisplay(Style.Display.NONE);
28
        Document.get().getElementById("wrapper").getStyle().setDisplay(Style.Display.NONE);
29
        Document.get().getElementById("landingPage").getStyle().setDisplay(Style.Display.BLOCK);
30

    
31
//        Document.get().getBody().removeClassName("gray-bg");
32
//        Document.get().getBody().addClassName("landing-page");
33
    }
34
}
(4-4/12)