-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
86 lines (77 loc) · 2.03 KB
/
index.html
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
82
83
84
85
86
<!DOCTYPE html>
<html>
<head>
<link href="https://fonts.googleapis.com/css?family=Kaushan+Script&display=swap" rel="stylesheet">
<meta charset="UTF-8">
<title>Emite Server</title>
</head>
<body>
<h1>Emite</h1>
<div class="testing">
<p>Tu servidor se encuentra en:</p>
<div class="code">
<script>
var os = require('os');
var interfaces = os.networkInterfaces();
var addresses = [];
for (var k in interfaces) {
for (var k2 in interfaces[k]) {
var address = interfaces[k][k2];
if (address.family === 'IPv4' && !address.internal) {
addresses.push(address.address);
}
}
}
console.log(addresses);
addresses.forEach(element => {
document.write("" +
element + ":5454<br/>");
});
</script>
</div>
</div>
<p class="version">
<script>
document.write(require("electron").remote.app.getVersion());
</script>
</p>
</body>
<style>
* {
user-select: none;
}
body {
color: white;
font-family: sans-serif;
text-align: center;
background: linear-gradient(to bottom, rgb(245, 78, 0), rgb(173, 55, 0));
background-size: cover;
background-attachment: fixed;
}
h1 {
font-family: Kaushan Script;
font-style: italic;
}
p.version {
position: fixed;
text-align: right;
bottom: 0px;
right: 5px;
font-size: 10px!important;
}
p {
font-size: 14px;
}
.testing {
vertical-align: bottom;
height: 100%;
width: 100%;
}
.code {
font-family: consolas;
margin: 15px auto;
width: 50%;
background: rgb(238, 203, 88, 0.5);
}
</style>
</html>