-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdashboard.html
124 lines (123 loc) · 10.3 KB
/
dashboard.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
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
117
118
119
120
121
122
123
124
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<meta name='description' content='Starlite is a game website that creates its own games.'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<meta name='robots' content='noindex, follow'>
<link rel='shortcut icon' href='/starlite-logo.png' type='image/png'>
<link rel='stylesheet' type='text/css' href='/style/dashboard.css' />
<title>Starlite</title>
</head>
<header class='header' id='header'>
<img width='50px' height='50px' src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAABHNCSVQICAgIfAhkiAAAAF96VFh0UmF3IHByb2ZpbGUgdHlwZSBBUFAxAAAImeNKT81LLcpMVigoyk/LzEnlUgADYxMuE0sTS6NEAwMDCwMIMDQwMDYEkkZAtjlUKNEABZiYm6UBoblZspkpiM8FAE+6FWgbLdiMAAANMklEQVR4nO3d4ZKjNhaAUTqVp8wD5jW9P7IQ2gEbhAT3SudUpTY7Y8tuS/5GMMb5maCu19v//3nkWdClP55+AgBHCRaQhmABaTi/QE3v569m1hlV2GEBaQgWkIZgAWk4t0Ate+evZtYal9lhAWkIFpCGYAFpOK9ADd/OX82sNy6xwwLSECwgDcEC0nBOgauOnr+aWXMUs8MC0hAsIA3BAtJwPoErzp6/mll3FLHDAtIQLCANwQLScC6BUqXnr2bWHqfZYQFpCBaQhmABaTiPQImr569m1h+n2GEBaQgWkIZgAWk4h8BZt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5SFYzyuKllidsxctscpFsGIo3mmJ1XHvr5VY5WMSYnk9/QTY5H0ShImI53C0XkHzNu9coj+/ozdv9DQo4JAwnlsv4xmNWOUmWDGJVgNilZ9gxSVaFYlVHwQrNtGqQKz6IVjxidYFYtUXwcpBtAqIVX8EKw/ROkGs+iRYuYjWAWLVL8HKR7Q+EKu+CVZOorVBrPonWHmJ1opYjUGwchOtSaxGIlj5DR0tsRqLYPVhyGiJ1XgEqx9DRUusxiRYfRkiWmI1LsHqT9fREquxCVafuoyWWCFY/eoqWmLFNAkWkIhg9a2LXZbdFTPBAtIQrP6l3mXZXbEmWEAagjWGlLssuyveCRaQhmCNI9Uuy+6KLYIFpCFYY0mxy7K7Yo9gAWkI1nhC77LsrvhEsIA0BGtMIXdZdld8I1hAGoI1rlC7LLsrjhAsIA3BGluIXZbdFUcJFpCGYPHoLsvuijMEC0hDsIA0BItpeuiw0OEgZwkWkIZgAWkIFrNbDwsdDlJCsIA0BAtIQ7BYu+Ww0OEgpQQLSEOwgDQEi3dNDwsdDnKFYAFpCBaQhmCxpclhocNBrhIsIA3BAtIQLPZUPSx0OEgNFgafvB56XOuSTXZYQBr+JOObu3dZ1iS77LCANAQLSMP2myPuOiy0HvnIDgtIQ7CANGzBOar1YaG1yFd2WEAaggWkYRvOGa0OC61DDrHDAtIQLCANwQLScO6As2qfx7IGOcwOC0hDsIA0BAtIw/kDStQ6j2X9cYodFpCGYAFpCBaQhnMIlLp6Hsva4zQ7LCANwQLSECwgDecRuKL0PJZ1RxE7LCANwQLSECwgDecSuOrseSxrjmJ2WEAaggWkIVhAGs4nUMPR81jWG5fYYQFpCBaQhmABaTinQC3fzmNZa1xmhwWkIVhAGoIFpOG8AjXtnceyzqjCDgtIQ7CANAQLSMO5BWp7P49ljVGNHRaQhmABaQgWkMb/AKDSE9Ry1daZAAAAAElFTkSuQmCC' />
<strong>
<a href='/' class='site-name'>Starlite</a>
<a href='/news'><button>News</button></a>
<a href='/problems'><button>Bugs</button></a>
<a href='/chat'><button>Chat</button></a>
<a href='/projects'><button>Projects</button></a>
<a href='/settings'><button id='username'></button></a>
<script>
document.getElementById('username').innerHTML = sessionStorage.username;
window.addEventListener('scroll', function() {
if (document.documentElement.scrollTop == 0) {
document.getElementById('header').style = 'box-shadow: none; -moz-box-shadow: none; -webkit-box-shadow: none;';
} else {
document.getElementById('header').style = 'box-shadow: 0px 5px 5px #888; -moz-box-shadow: 0px 5px 5px #888; -webkit-box-shadow: 0px 5px 5px #888;';
}
}, false);
if(sessionStorage.username == undefined) {
window.location.href='/';
}
</script>
</strong>
</header>
<div class='body'>
<iframe id='database'></iframe>
<div class='content-main-container'>
<h1 class='content-title-main'>Welcome To Dashboard!</h1>
<div class='content-flex-container'>
<div class='content-column'>
<h1 class='content-title'>Increedible Tanks Stats</h1>
<div id='stat-holder'>
Loading...
</div>
<script>
var socket = new WebSocket('wss://'+window.location.hostname+'/server');
function get(username, callback) {
socket.send(JSON.stringify({
operation: 'database',
task: 'get',
token: sessionStorage.token,
username: sessionStorage.username,
}));
socket.onmessage = function(data) {
callback(JSON.parse(data.data));
}
}
setTimeout(function() {
get(sessionStorage.username, callback);
}, 1000);
var statHolder = document.getElementById('stat-holder');
function callback(data) {
data = data.data[0];
console.log(data.playerdata)
statHolder.innerHTML = '<h1>Name:</h1><i>'+JSON.parse(data.playerdata)['increedible-tanks'].username+'</i><h2>Your coins:</h2><i>'+JSON.parse(data.playerdata)['increedible-tanks'].coins+'</i><h2>Toolkits</h2><i>'+JSON.parse(data.playerdata)['increedible-tanks'].toolkits+'</i><h2>Blocks</h2><i>'+JSON.parse(data.playerdata)['increedible-tanks'].blocks+'</i><h2>Boosts</h2><i>'+JSON.parse(data.playerdata)['increedible-tanks'].boosts+'</i><h2>Flashbangs</h2><i>'+JSON.parse(data.playerdata)['increedible-tanks'].flashbangs+'</i>'
}
</script>
</div>
<div class='content-column' id='right-column'>
<h1 class='content-title'>New Features</h1>
Here are a list of some features that will be added soon:
<div id='feature-holder'>
</div>
<script>
var features = [
{
name: 'Blog',
timeOfRelease: new Date("Nov 28 2021"),
description: 'We are adding a blog full of tips and tricks to help you up your game, warn about glitches, and teach you how to use the website.'
},
{
name: 'Full Site Design Update',
timeOfRelease: new Date("June 30 2021"),
description: 'We are currently updating the sites looks and features to improve it.'
}
];
window.setInterval(function() {
document.getElementById('feature-holder').innerHTML = '';
var l = 0;
while (l<features.length) {
var distance = features[l].timeOfRelease - new Date();
var days = Math.floor(distance / (1000 * 60 * 60 * 24));
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
document.getElementById('feature-holder').innerHTML+='<h2>'+features[l].name+'</h2>'+'<i>'+days+'d '+hours+'h '+minutes+'m '+seconds+'s</i><br>'+features[l].description;
l++;
}
}, 200);
</script>
</div>
</div>
</div>
<div class='form'>
<iframe src="https://docs.google.com/forms/d/e/1FAIpQLSdk45dKrlO_UHobTrQdgT0OkAN9TznIus4p1bRIGP8h568cnQ/viewform?embedded=true" width="640" height="797" frameborder="0" marginheight="0" marginwidth="0" class='displayed-iframe'>Loading…</iframe>
</div>
<footer class='footer'>
<div class='footer-column'>
<h2 class='footer-title'>Blog</h2>
<b class='footer-option'>Coming Soon</b>
</div>
<div class='footer-column'>
<h2 class='footer-title'>Projects</h2>
<a href='/increedible-tanks' class='footer-option'>Increedible Tanks</a>
</div>
<div class='footer-column'>
<h2 class='footer-title'>Other</h2>
<a href='/news' class='footer-option'>News</a>
<a href='/projects' class='footer-option'>Projects</a>
</div>
</footer>
</html>