Skip to content

Commit 68301e8

Browse files
Add files via upload
1 parent 7d80d88 commit 68301e8

File tree

7 files changed

+92
-8
lines changed

7 files changed

+92
-8
lines changed

Css/login.css

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
}

Css/settings.css

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
}

Css/style.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
--font: #ffffff;
66
--accent: #1976D2;
77
}
8-
8+
.zoom{
9+
zoom: 160%;
10+
}
911
.mainBG{
1012
position:relative;
1113
color: var(--font);
@@ -47,9 +49,9 @@
4749

4850
.projection{
4951
width: 100%;
50-
height: calc(100% - 44px);
52+
height: calc(100% - 43px);
5153
position: absolute;
52-
top: 44px;
54+
top: 43px;
5355
bottom: 0;
5456
background-color: var(--accent) ;
5557

Js/controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var joystick = false;
22
var circle = document.getElementById("controller");
33

4-
function test(event){
4+
function moveJoystick(event){
55
if (joystick && !followMode){
66
var x = event.clientX;
77
var y = event.clientY;

Js/navbar.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,15 @@ function followPlanet(planet){
77
}else{
88
button.innerHTML = "OFF"
99
}
10-
1110
}
11+
1212
function toggleFollowMode(){
1313
followMode = !followMode;
1414
followPlanet("ON")
1515
}
16+
17+
function followCheck(){
18+
if (followMode){
19+
$('.ui.sidebar').sidebar('toggle');
20+
}
21+
}

index.html

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
<div class="dimmed pusher">
5050
<div class="myNavbar">
51-
<a class="ui huge label" onclick="$('.ui.sidebar').sidebar('toggle');">
51+
<a class="ui huge label" onclick="followCheck()">
5252
<i class="star icon"></i> Top
5353
</a>
5454

@@ -67,7 +67,7 @@
6767
<div id="followMode" class="detail">OFF</div>
6868
</a>
6969
<!-- Thats right-->
70-
<a class="ui huge label right">
70+
<a class="ui huge label right" onclick="$('.ui.basic.modal').modal('show');">
7171
<i class="user icon"></i>
7272
Admin
7373
</a>
@@ -77,11 +77,31 @@
7777
Settings
7878
</a>
7979
</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)">
8181
<div class="controller" id="controller"><i class="ui icon Circle Thin center"></i></div>
8282
</div>
8383
</div>
8484

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+
85105
</body>
86106
<script src="Js/controller.js"></script>
87107
<script src="Js/navbar.js"></script>

semantic.rar

35 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)