username@email.com
2025-04-27 15eb82df2d6ec539e9d4245bfe08d531e8eb6379
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
;$(window).load(function ()
{
    var roadInit = new RoadUI.Init();
    roadInit.calendar();
    roadInit.dict();
    roadInit.validate();
    roadInit.select();
    roadInit.combox();
    roadInit.table();
    roadInit.editor();
    roadInit.text();
    roadInit.textarea();
    roadInit.button();
    roadInit.textFocus();
});
 
;RoadUI.Init = function ()
{
    this.validate = function ()
    {
        new RoadUI.Validate().bind($("[validate]"));
    };
 
    this.textFocus = function ()
    {
        var $txt = $('<input type="text" style="height:0; width:0;" />');
        try
        {
            $("body").prepend($txt);
            $txt.get(0).focus();
            $txt.remove();
        } catch (e) { }
    };
 
    this.text = function ()
    {
        new RoadUI.Text().init($(".mytext"));
    };
 
    this.textarea = function ()
    {
        new RoadUI.Textarea().init($(".mytextarea"));
    };
 
    this.editor = function ()
    {
        new RoadUI.Editor().init($(".myeditor"));
    };
 
    this.calendar = function ()
    {
        new RoadUI.Calendar().init($(".mycalendar"));
    };
 
    this.select = function ()
    {
        new RoadUI.Select().init($(".myselect"));
    };
 
    this.combox = function ()
    {
        new RoadUI.Combox().init($(".mycombox"));
    };
 
    this.button = function ()
    {
        new RoadUI.Button().init($(".mybutton"));
    };
 
 
    this.dict = function ()
    {
        new RoadUI.Dict().init($(".mydict,.mylrselect"));
    };
 
    this.table = function ()
    {
        $(".listtable tbody tr:even td").removeClass().addClass("listtabletrout");
        $(".listtable tbody tr:odd td").removeClass().addClass("listtabletrover");
    };
}