App-RPi-EnvUI

 view release on metacpan or  search on metacpan

public/css/envui.css  view on Meta::CPAN

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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
        color: #FFF;
}
.menuHeader:hover {
        background: green;
}
 
.menuBackground {
        background: #c0c0c0;
        text-align: left;
}
.dropDownMenu a {
        color: #FFF;
}
 
.dropDownMenu,
.dropDownMenu ul {
        list-style: none;
        margin: 0;
        padding: 0;
}
.dropDownMenu li {
        position: relative;
}
.dropDownMenu a {
        padding: 10px 20px;
        display: block;
        text-decoration: none;
}
.dropDownMenu a:hover {
        background: green;
}
 
/* Level 1 Drop Down */
.dropDownMenu > li {
        display: inline-block;
        vertical-align: top;
        margin-left: -4px; /* solve the 4 pixels spacing between list-items */
}
 
.dropDownMenu > li:first-child {
        margin-left: 0;
}
 
/* Level 2 */
.dropDownMenu ul {
        box-shadow: 2px 2px 15px 0 rgba(0,0,0, 0.5);
}
.dropDownMenu > li > ul {
        text-align: left;
        display: none;
        background: #c0c0c0;
        position: absolute;
        top: 100%;
        left: 0;
        width: 240px;
        z-index: 999999;
}
 
/* Level 3 */
.dropDownMenu > li > ul > li > ul {
        text-align: left;
        display: none;
        background: #c0c0c0;
        position: absolute;
        left: 100%;
        top: 0;
        z-index: 9999999;
}
 
.graph_container {

public/js/core.js  view on Meta::CPAN

62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
        }
    });
}
 
// button event
 
$('div.ui-page-active .button').on('change', aux_action);
 
// main menu
 
$('div.ui-page-active .myMenu ul li').hover(function() {
    $(this).children('ul').stop(true, false, true).slideToggle(300);
});
 
$.get('/get_config/devel', function(devel){
    if (parseInt(devel) == '1'){
        $('#time').css({'background-color': 'red'});
    }
});
 
// draggable widgets

public/js/core.js  view on Meta::CPAN

115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
    // initialization
 
    event_interval();
    display_env();
    display_light();
});
 
 
$(document).on('pageshow', '#stats', function(){
 
    $('div.ui-page-active .myMenu ul li').hover(function() {
        $(this).children('ul').stop(true, false, true).slideToggle(300);
    });
    $('div.ui-page-active #auth').addClass('a');
 
    if (logged_in){
        $('div.ui-page-active #auth').text('Logout');
        $('div.ui-page-active #auth').attr('href', '/logout');
    }
    else {
        $('div.ui-page-active #auth').text('Login');

views/main.tt  view on Meta::CPAN

15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
    <script type="text/javascript" src="js/core.js"></script>
</head>
 
<body>
<div data-role="page" id="home">
<table width="100%">
    <tr>
    <td width="90%" style="white-space: nowrap;" >
        <div class="menuBackground">
            <div class="center myMenu">
                <ul class="dropDownMenu">
                    <li><a href="/">Home</a></li>
                    <li class="menuHeader">System
                        <ul>
                            <li><a onClick="reset_display(); return false;">Reset Layout</a></li>
                        </ul>
                    </li>
                    <li><a href="/stats">Statistics</a></li>
                    <li class="menuHeader">About
                        <ul>
                            <li><a href="https://github.com/stevieb9" target="_blank">Author Github</a></li>

views/stats.tt  view on Meta::CPAN

15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
    <script type="text/javascript" src="js/core.js"></script>
</head>
 
<body>
<div data-role="page" id="stats">
<table width="100%">
    <tr>
    <td width="90%" style="white-space: nowrap;" >
        <div class="menuBackground">
            <div class="center myMenu">
                <ul class="dropDownMenu">
                    <li><a href="/">Home</a></li>
                    <li class="menuHeader">System
                        <ul>
                            <li><a onClick="reset_display(); return false;">Reset Layout</a></li>
                        </ul>
                    </li>
                    <li><a href="/stats">Statistics</a></li>
                    <li class="menuHeader">About
                        <ul>
                            <li><a href="https://github.com/stevieb9" target="_blank">Author Github</a></li>



( run in 0.279 second using v1.01-cache-2.11-cpan-a9ef4e587e4 )