forked from heyitsmdr/mysaas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
146 lines (143 loc) · 5.69 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
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!DOCTYPE html>
<html lang="en" >
<head>
<script src="https://kit.fontawesome.com/d0545d09d6.js" crossorigin="anonymous"></script>
<title>mySaaS</title>
<link href='css/main.css' rel='stylesheet' type='text/css' />
<link href="https://fonts.googleapis.com/css?family=Ubuntu+Mono:400,400i,700,700i" rel="stylesheet">
<script type="text/javascript" src="vendor/system.js"></script>
<script type="text/javascript" src="vendor/fontawesome-all.min.js"></script>
<script type="text/javascript" src="build/game.js"></script>
</head>
<body>
<div class="stats">
<strong>mySaaS</strong> |
<span class="name">Hits</span>
<span class="value" id="hit-count">0</span>
<span class="name">Money</span>
<span class="value" id="money-count">$0</span> |
<span class="name">DCs</span>
<span class="value" id="dc-count">0</span>
<span class="name">Racks</span>
<span class="value" id="rack-count">0</span>
<span class="name">Servers</span>
<span class="value" id="server-count">0</span>
<span class="name">VMs</span>
<span class="value" id="vm-count">0</span> |
<span class="name">CPUs</span>
<span class="value" id="cpu-count">0</span>
<span class="name">Memory</span>
<span class="value" id="memory-count">0GB</span>
<span class="name">Storage</span>
<span class="value" id="storage-count">0GB</span> |
<span class="name">200-Req/s</span>
<span class="value" id="success-rps-count">0</span>
<span class="name">503-Req/s</span>
<span class="value" id="failure-rps-count">0</span>
</div>
<div class="root">
<div class="traffic">
<div>
<span class="button large" onmousedown="Game.eventManager.emit('visit_website')"><i class="fas fa-mouse-pointer"></i>Visit Website</span>
</div>
<div>
<span class="button" onmousedown="Game.eventManager.emit(`toggle_logs`)">
<i class="fas fa-mouse-pointer"></i>
Toggle logs
</span>
</div>
<div class="access-logs-header">Traffic Logs</div>
<div class="access-logs">
<div class="container"></div>
</div>
</div>
<div class="game">
<div class="header">
<div id="view-name" class="left"><i class="fas fa-server"></i>Your Infrastructure</div>
<div class="right">
| <span id="view-link-infra" class="view-links selected" onclick="Game.eventManager.emit('switch_view', 'infra')">Infrastructure</span> |
<span id="view-link-dc" class="view-links" onclick="Game.eventManager.emit('switch_view', 'dc')">DataCenters</span> |
<span id="view-link-bank" class="view-links" onclick="Game.eventManager.emit('switch_view', 'bank')">Bank</span> |
<span id="view-link-shop" class="view-links" onclick="Game.eventManager.emit('switch_view', 'shop')">Shop</span> |
<span id="view-link-settings" class="view-links" onclick="Game.eventManager.emit('switch_view', 'settings')">Settings</span> |
</div>
</div>
<div class="game-view infrastructure">
<div class="container"></div>
</div>
<div class="game-view settings hidden">
<div class="header">Settings</div>
<div class="container">
</div>
</div>
<div class="game-view datacenters hidden">
<div class="header"></div>
<div class="container">
</div>
</div>
<div class="game-view racks hidden">
<div class="header"></div>
<div class="container">
</div>
</div>
<div class="game-view bank hidden">
<div class="container">This is the Bank.</div>
</div>
<div class="game-view shop hidden">
<div class="container">
<div class="shop-section">
<div class="header">Marketing</div>
<div class="shop-container marketing">
<div class="item">
<div class="icon">
<i class="fas fa-users"></i>
</div>
<div class="about">
<div class="name">Tell My Friends I</div>
<div class="desc">This will increase traffic to your website by <span>+1/s</span>.</div>
</div>
<div class="actions">
ACQUIRED
</div>
</div>
</div>
</div>
<div class="shop-section">
<div class="header">Components</div>
<div class="shop-container components">
<div class="item">
<div class="icon">
<i class="fas fa-microchip"></i>
</div>
</div>
</div>
</div>
<div class="shop-section">
<div class="header">Components II</div>
<div class="shop-container components2">
<div class="item">
<div class="icon">
<i class="fas fa-microchip"></i>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="game-view ssh hidden">
<div class="container">
<div class="last-login"></div>
<div class="uptime"></div>
<div class="actions">
<div class="header">Actions:</div>
<div class="container"></div>
</div>
</div>
</div>
</div>
</div>
<script>
System.import('game');
</script>
</body>
</html>