File tree Expand file tree Collapse file tree 7 files changed +92
-8
lines changed Expand file tree Collapse file tree 7 files changed +92
-8
lines changed Original file line number Diff line number Diff line change
1
+ : root {
2
+ --main-dark : # 2e3136 ;
3
+ --main-darker : # 24272b ;
4
+ --main-lighter : # 36393e ;
5
+ --font : # ffffff ;
6
+ --accent : # 1976D2 ;
7
+ }
8
+ .zoom {
9
+ zoom : 110% ;
10
+ }
11
+ .mainBG {
12
+ position : relative;
13
+ color : var (--font );
14
+ background-color : var (--main-dark );
15
+ -webkit-touch-callout : none; /* iOS Safari */
16
+ -webkit-user-select : none; /* Safari */
17
+ -khtml-user-select : none; /* Konqueror HTML */
18
+ -moz-user-select : none; /* Firefox */
19
+ -ms-user-select : none; /* Internet Explorer/Edge */
20
+ user-select : none; /* Non-prefixed version, currently
21
+ supported by Chrome and Opera */
22
+ }
23
+
24
+ .ui .card {
25
+ position : absolute;
26
+ left : 50% ;
27
+ top : 20% ;
28
+ margin : -100px 0 0 -150px ;
29
+ }
Original file line number Diff line number Diff line change
1
+ : root {
2
+ --main-dark : # 2e3136 ;
3
+ --main-darker : # 24272b ;
4
+ --main-lighter : # 36393e ;
5
+ --font : # ffffff ;
6
+ --accent : # 1976D2 ;
7
+ }
8
+
9
+ .mainBG {
10
+ position : relative;
11
+ color : var (--font );
12
+ background-color : var (--main-dark );
13
+ -webkit-touch-callout : none; /* iOS Safari */
14
+ -webkit-user-select : none; /* Safari */
15
+ -khtml-user-select : none; /* Konqueror HTML */
16
+ -moz-user-select : none; /* Firefox */
17
+ -ms-user-select : none; /* Internet Explorer/Edge */
18
+ user-select : none; /* Non-prefixed version, currently
19
+ supported by Chrome and Opera */
20
+ }
21
+
22
+ .ui .card {
23
+ position : absolute;
24
+ left : 50% ;
25
+ top : 20% ;
26
+ margin : -100px 0 0 -150px ;
27
+ }
Original file line number Diff line number Diff line change 5
5
--font : # ffffff ;
6
6
--accent : # 1976D2 ;
7
7
}
8
-
8
+ .zoom {
9
+ zoom : 160% ;
10
+ }
9
11
.mainBG {
10
12
position : relative;
11
13
color : var (--font );
47
49
48
50
.projection {
49
51
width : 100% ;
50
- height : calc (100% - 44 px );
52
+ height : calc (100% - 43 px );
51
53
position : absolute;
52
- top : 44 px ;
54
+ top : 43 px ;
53
55
bottom : 0 ;
54
56
background-color : var (--accent ) ;
55
57
Original file line number Diff line number Diff line change 1
1
var joystick = false ;
2
2
var circle = document . getElementById ( "controller" ) ;
3
3
4
- function test ( event ) {
4
+ function moveJoystick ( event ) {
5
5
if ( joystick && ! followMode ) {
6
6
var x = event . clientX ;
7
7
var y = event . clientY ;
Original file line number Diff line number Diff line change @@ -7,9 +7,15 @@ function followPlanet(planet){
7
7
} else {
8
8
button . innerHTML = "OFF"
9
9
}
10
-
11
10
}
11
+
12
12
function toggleFollowMode ( ) {
13
13
followMode = ! followMode ;
14
14
followPlanet ( "ON" )
15
15
}
16
+
17
+ function followCheck ( ) {
18
+ if ( followMode ) {
19
+ $ ( '.ui.sidebar' ) . sidebar ( 'toggle' ) ;
20
+ }
21
+ }
Original file line number Diff line number Diff line change 48
48
49
49
< div class ="dimmed pusher ">
50
50
< div class ="myNavbar ">
51
- < a class ="ui huge label " onclick ="$('.ui.sidebar').sidebar('toggle'); ">
51
+ < a class ="ui huge label " onclick ="followCheck() ">
52
52
< i class ="star icon "> </ i > Top
53
53
</ a >
54
54
67
67
< div id ="followMode " class ="detail "> OFF</ div >
68
68
</ a >
69
69
<!-- Thats right-->
70
- < a class ="ui huge label right ">
70
+ < a class ="ui huge label right " onclick =" $('.ui.basic.modal').modal('show'); " >
71
71
< i class ="user icon "> </ i >
72
72
Admin
73
73
</ a >
77
77
Settings
78
78
</ a >
79
79
</ div >
80
- < div class ="projection " onmouseup ="toggleJoystick(event) " onmousemove ="test (event) " onmousedown ="toggleJoystick(event) ">
80
+ < div class ="projection " onmouseup ="toggleJoystick(event) " onmousemove ="moveJoystick (event) " onmousedown ="toggleJoystick(event) ">
81
81
< div class ="controller " id ="controller "> < i class ="ui icon Circle Thin center "> </ i > </ div >
82
82
</ div >
83
83
</ div >
84
84
85
+ < div class ="ui basic modal ">
86
+ < div class ="ui icon header ">
87
+ < i class ="Sign out icon "> </ i >
88
+ Signing out?
89
+ </ div >
90
+ < div class ="content ">
91
+ < p > You are signing out from administrator account and leaving the Kepler Controll unit. Have a nice time, Bye</ p >
92
+ </ div >
93
+ < div class ="actions ">
94
+ < div class ="ui red basic cancel inverted button ">
95
+ < i class ="remove icon "> </ i >
96
+ No
97
+ </ div >
98
+ < a class ="ui green ok inverted button " href ="login.html ">
99
+ < i class ="checkmark icon "> </ i >
100
+ Yes
101
+ </ a >
102
+ </ div >
103
+ </ div >
104
+
85
105
</ body >
86
106
< script src ="Js/controller.js "> </ script >
87
107
< script src ="Js/navbar.js "> </ script >
You can’t perform that action at this time.
0 commit comments