1
1
// Load config
2
- let settings = JSON . parse ( require ( 'fs' ) . readFileSync ( require ( 'path' ) . join ( __dirname , " settings.json") , { encoding : "utf-8" } ) ) ;
2
+ let settings = require ( "./ settings.json") ;
3
3
4
- let resumeInit , initUI ;
4
+ let resumeInit , initUI , initMods ;
5
5
let bootScreen = document . getElementById ( "boot_screen" ) ;
6
6
let log = require ( 'fs' ) . readFileSync ( require ( 'path' ) . join ( __dirname , 'assets/misc/boot_log.txt' ) ) . toString ( ) . split ( '\n' ) ;
7
7
let i = 0 ;
@@ -68,9 +68,18 @@ resumeInit = () => {
68
68
} ;
69
69
70
70
initUI = ( ) => {
71
- document . body . innerHTML += `<section id="main_shell" style="height:0%;width:0%;opacity:0;">
71
+ document . body . innerHTML += `<section class="mod_column" id="mod_column_left">
72
+ <h3 class="title"><p>PANEL</p><p>SYSTEM</p></h3>
73
+ <h3 class="title" style="top:27px;width:14.5%;left:8px;"><p></p><p></p></h3>
74
+ </section>
75
+ <section id="main_shell" style="height:0%;width:0%;opacity:0;">
76
+ <h3 class="title" style="opacity:0;"><p>TERMINAL</p><p>MAIN SHELL</p></h3>
72
77
<pre id="terminal"></pre>
73
78
</section>
79
+ <section class="mod_column" id="mod_column_right">
80
+ <h3 class="title"><p>PANEL</p><p>NETWORK</p></h3>
81
+ <h3 class="title" style="top:27px;width:14.5%;right:8px;"><p></p><p></p></h3>
82
+ </section>
74
83
<section id="keyboard" style="opacity:0;">
75
84
</section>` ;
76
85
@@ -80,6 +89,7 @@ initUI = () => {
80
89
} ) ;
81
90
setTimeout ( ( ) => {
82
91
document . getElementById ( "main_shell" ) . setAttribute ( "style" , "" ) ;
92
+ document . querySelector ( "#main_shell > h3.title" ) . setAttribute ( "style" , "" ) ;
83
93
setTimeout ( ( ) => {
84
94
document . getElementById ( "main_shell" ) . setAttribute ( "style" , "opacity: 0;" ) ;
85
95
setTimeout ( ( ) => {
@@ -97,6 +107,7 @@ initUI = () => {
97
107
setTimeout ( ( ) => {
98
108
document . getElementById ( "keyboard" ) . setAttribute ( "class" , "" ) ;
99
109
} , 1100 ) ;
110
+ initMods ( ) ;
100
111
} , 100 ) ;
101
112
} , 50 ) ;
102
113
} , 260 ) ;
@@ -105,6 +116,13 @@ initUI = () => {
105
116
} , 10 ) ;
106
117
} ;
107
118
119
+ initMods = ( ) => {
120
+ document . querySelectorAll ( ".mod_column" ) . forEach ( ( e ) => {
121
+ e . setAttribute ( "class" , "mod_column activated" ) ;
122
+ } ) ;
123
+
124
+ let clock = new Clock ( "mod_column_left" ) ;
125
+ } ;
108
126
109
127
// Prevent showing menu, exiting fullscreen or app with keyboard shortcuts
110
128
window . onkeydown = ( e ) => {
0 commit comments