forked from turanar/stellaris-tech-tree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
185 lines (176 loc) · 8.32 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width">
<title>Stellaris Tech Trees</title>
<link rel="icon" type="image/x-icon" href="./favicon.ico">
<link rel="icon" type="image/x-icon" href="../favicon.ico">
<style>
a {
color: -webkit-link;
cursor: pointer;
text-decoration: underline;
}
</style>
<link href="https://fonts.googleapis.com/css?family=Arimo" rel="stylesheet">
<link href="./assets/vendor/Treant.css" rel="stylesheet">
<link href="./assets/vendor/tooltipster.bundle.min.css" rel="stylesheet">
<script src="./assets/vendor/Treant.js"></script>
<script src="./assets/vendor/raphael.min.js"></script>
<script src="./assets/vendor/jquery.min.js"></script>
<script src="./assets/vendor/jquery.touchy.min.js"></script>
<script src="./assets/vendor/tooltipster.bundle.min.js"></script>
<script src="./assets/vendor/lozad.min.js"></script>
<script src="./assets/vendor/jsrender.min.js"></script>
<script src="./assets/js/dynamic-drag.js"></script>
<script id="node-template" type="text/x-jsrender">
<div class="icon lozad" data-background-image="../assets/img/{{:key}}.png"></div>
<p class="node-name" title="{{:name}}">{{:name}}</p>
<p class="node-title">
{{if tier < 1}}
{{:category}} - <span class="tier tier-0">Starting</span>
{{else}}
{{:category}} - <span class="tier tier-{{:tier}}">Tier {{:tier}}</span>
{{/if}}
</p>
<p class="node-desc">
{{if tier > 0}}
Cost: <span class="{{:area}}-research">{{:cost}}, Weight: {{:base_weight}}</span>
{{/if}}
</p>
<p class="node-desc" style="color:yellow">
{{if is_gestalt === true}}
<img src="../assets/icons/yes.png"/><img src="../assets/icons/ethic_gestalt_consciousness.png" height="21" width="21"/>
{{/if}}
{{if is_gestalt === false}}
<img src="../assets/icons/no.png"/><img src="../assets/icons/ethic_gestalt_consciousness.png" height="21" width="21"/>
{{/if}}
{{if is_machine_empire === true}}
<img src="../assets/icons/yes.png"/><img src="../assets/icons/auth_machine_intelligence.png" height="21" width="21"/>
{{/if}}
{{if is_machine_empire === false}}
<img src="../assets/icons/no.png"/><img src="../assets/icons/auth_machine_intelligence.png" height="21" width="21"/>
{{if is_drive_assimilator === true}}
<img src="../assets/icons/yes.png"/><img src="../assets/icons/civic_machine_assimilator.png" height="21" width="21"/>
{{/if}}
{{if is_rogue_servitor === true}}
<img src="../assets/icons/yes.png"/><img src="../assets/icons/civic_machine_servitor.png" height="21" width="21"/>
{{/if}}
{{/if}}
{{if is_hive_empire === true}}
<img src="../assets/icons/yes.png"/><img src="../assets/icons/auth_hive_mind.png" height="21" width="21"/>
{{/if}}
{{if is_hive_empire === false}}
<img src="../assets/icons/no.png"/><img src="../assets/icons/auth_hive_mind.png" height="21" width="21"/>
{{/if}}
{{if is_megacorp === true}}
<img src="../assets/icons/yes.png"/><img src="../assets/icons/auth_corporate.png" height="21" width="21"/>
{{/if}}
{{if is_megacorp === false}}
<img src="../assets/icons/no.png"/><img src="../assets/icons/auth_corporate" height="21" width="21"/>
{{/if}}
</p>
<div class="node-status"></div>
<div class="extra-data">
<div class="tooltip-header">Description</div>
<div class="tooltip-content" style="max-width:320px">{{:description}}</div>
{{if weight_modifiers.length > 0}}
<div class="tooltip-header">Weight Modifiers</div>
<div class="tooltip-content"><pre>{{:weight_modifiers.join('<br/>')}}</pre></div>
{{/if}}
{{if potential.length > 0}}
<div class="tooltip-header">Requirements</div>
<div class="tooltip-content"><pre>{{:potential.join('<br/>')}}</pre></div>
{{/if}}
{{if prerequisites.length > 1}}
<div class="tooltip-header">Required Technologies</div>
<div class="tooltip-content prerequisites">
{{for prerequisites}}
<img class="left {{:}}" height="52" width="52" src="//:0" data-src="../assets/img/{{:}}.png"">
{{/for}}
<div class="left">
{{for prerequisites_names}}
<span class="node-status {{:key}}">{{:name}}</span><br/>
{{/for}}
</div>
</div>
{{/if}}
{{if feature_unlocks.length > 0}}
<div class="tooltip-header">Research Effects</div>
<div class="tooltip-content">{{:feature_unlocks.join('<br/>')}}</div>
{{/if}}
</div>
</script>
<script>
addEventListener('popstate', event => window.location.reload());
const load_page = (param, title) => {
history.pushState({pageID: param}, param, `${param}/`);
document.title = title || param;
$('<link>').appendTo('head').attr({
type: 'text/css',
rel: 'stylesheet',
href: '../assets/css/tech-tree.css'
});
$('body').load('../assets/html/body.html', function() {
$('<script>').appendTo('head').attr({ src: '../assets/js/header.js' });
$('<script>').appendTo('head').attr({ src: '../assets/js/tech-tracking.js' });
$('<script>').appendTo('head').attr({ src: '../assets/js/tech-tree.js' });
});
};
</script>
<script>
$(document).ready(function(){
if (window.location.search) {
const page = window.routes.find(r => r.route === window.location.search.slice(1));
if (page) {
load_page(page.route, page.title);
}
}
});
</script>
<script>
window.routes = [
{ name: 'Andromeda 3.12.2', route: 'andromeda-3.12.2', title: 'Stellaris 3.12.2 (Andromeda)', },
{ name: 'Orion 3.6.0', route: 'orion-3.6.0', title: 'Stellaris 3.6.0 (Orion)', },
{ name: 'Fornax 3.5.3', route: 'vanilla', title: 'Stellaris 3.5.3 (Fornax)', },
{ name: 'Cepheus 3.4.3', route: 'cepheus-3.4.3', title: 'Stellaris 3.4.3 (Cepheus)', },
{ name: 'Herbert 3.2.2', route: 'herbert-3.2.2', title: 'Stellaris 3.2.2 (Herbert)', },
{ name: 'Lem 3.1.1', route: 'lem-3.1.1', title: 'Stellaris 3.1.1 (Lem)', },
{ name: 'Stellaris 3.0.1', route: 'dick-3.0.1', title: 'Stellaris 3.0.1 (Dick)', },
{ name: 'Stellaris 2.7.1', route: 'wells-2.7.1', title: 'Stellaris 2.7.1 (Wells)', },
{ name: 'Stellaris 2.6.0', route: 'verne-2.6.0', title: 'Stellaris 2.6.0 (Verne)', },
{ name: 'Stellaris 2.5.0', route: 'shelley-2.5.0', title: 'Stellaris 2.5.0 (Shelley)', },
{ name: 'Stellaris 2.3.3', route: 'wolfe-2.3.3', title: 'Stellaris 2.3.3 (Wolfe)', },
{ name: 'Stellaris 2.3.0', route: 'wolfe-2.3.0', title: 'Stellaris 2.3.0 (Wolfe)', },
{ name: 'Stellaris 2.2.7', route: 'leguin-2.2.7', title: 'Stellaris 2.2.7 (Leguin)', },
{ name: 'Stellaris 2.2.4', route: 'leguin-2.2.4', title: 'Stellaris 2.2.4 (Leguin)', },
{ name: 'Stellaris 2.2.3', route: 'leguin-2.2.3', title: 'Stellaris 2.2.3 (Leguin)', },
{ name: 'Stellaris 2.2.0', route: 'leguin-2.2.0', title: 'Stellaris 2.2.0 (Leguin)', },
];
$(document).ready(function(){
routes.forEach(page => {
const ele = $(`<li><a>${page.name}</a></li>`);
ele.on("click", function() { load_page(page.route,page.title) });
$('#tech-pages').append(ele);
});
});
</script>
</head>
<body>
<b>Technology</b>
<ul id="tech-pages">
</ul>
<b>Job List</b>
<ul>
<li><a href="jobs/index.html">Stellaris 2.2.7 Jobs List (WIP)</a></li>
</ul>
<p>
Original code by <a href="https://gitlab.com/bipedalshark/stellaris-tech-tree" target="_blank">bipedalshark</a><br/>
Parser code : <a href="https://github.com/turanar/stellaris-technology">Github</a><br/>
Website code : <a href="https://github.com/turanar/stellaris-tech-tree">Github</a><br/>
Contributors : SlenderPlays, Tsudico & Turanar<br/>
</p>
</body>
</html>