-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
249 lines (226 loc) · 8.21 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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
---
layout: default
title: Torque 3D
root: .
---
<div class="jumbotron banner">
<div class="container">
<div class="row">
<div class="col-sm-4">
<img id="torque-logo" src="{{page.root}}/img/torque.png"></img>
</div>
<div class="col-sm-8">
<h1 class="title">Torque 3D</h1>
<p>The premier open-source game engine.</p>
</div>
</div>
</div>
</div>
<div class="break"></div>
<div class="container">
<div class="row">
<div class="col-sm-4">
<h2>Proven tech</h2>
<p>
Torque has been around for a while, and it's been used for everything
from driving simulators to MMOs to interactive coral reefs. Still
not convinced?
</p>
<center>
<a class="btn btn-default" href="{{page.root}}/engine">
See some games
<i class="fa fa-angle-right"></i>
</a>
</center>
</div>
<div class="col-sm-4">
<h2>Gratis et libre</h2>
<p>
When you get Torque, you get everything. Under the permissive MIT
open-source license, you can do what you want with the source code.
</p>
<center>
<a class="btn btn-default" href="{{page.root}}/start">
Download it now
<i class="fa fa-angle-right"></i>
</a>
</center>
</div>
<div class="col-sm-4">
<h2>Always evolving</h2>
<p>
Torque is being constantly developed by an enthusiastic community.
Its future is in <em>our</em> hands, not those of a company with a
bottom line to meet.
</p>
<center>
<a class="btn btn-default" href="{{page.root}}/contribute">
Get involved
<i class="fa fa-angle-right"></i>
</a>
</center>
</div>
</div>
</div>
<div class="break"></div>
<div class="container">
<div class="row">
<div class="col-sm-4">
<h2 class="status">Recent news</h2>
<div id="recent-news">Loading news...</div>
<a class="pull-right" href="http://forums.torque3d.org/viewforum.php?f=15">See all <i class="fa fa-angle-right"></i></a>
</div>
<div class="col-sm-4">
<h2 class="status">Activity</h2>
<p id="activity-loading">Loading activity...</p>
</div>
<div class="col-sm-4">
<h2>Quick links</h2>
<ul id="quick-links">
<li><a href="https://github.com/GarageGames/Torque3D/issues/new">Report an issue or suggest changes</a></li>
<li><a href="https://github.com/GarageGames/Torque3D/issues?labels=Final+review">Changes for final review</a></li>
<li><a href="http://t3dci.org">Builds and CI</a></li>
</ul>
</div>
</div>
</div>
<script type="text/javascript" src="{{page.root}}/js/jquery.cycle.all.js"></script>
<script type="text/javascript" src="{{page.root}}/js/jquery.timeago.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var images = {
1: 'Deadly Matter by Studio Dim Sum',
2: 'Airship Dragoon by YorkshireRifles',
3: 'Deadly Matter by Studio Dim Sum',
4: 'Life is Feudal',
5: 'Frozen Endzone by Mode 7',
6: 'The Reef by QUT',
7: 'Grim Prospects',
8: 'Grim Prospects',
9: 'BeamNG.drive by BeamNG',
12: 'Villagers and Heroes by Mad Otter Games',
13: 'Villagers and Heroes by Mad Otter Games',
14: 'Villagers and Heroes by Mad Otter Games',
15: 'Tower Wars by SuperVillain Studios',
16: 'Tower Wars by SuperVillain Studios',
17: 'Tower Wars by SuperVillain Studios',
18: 'Life is Feudal',
19: 'Chinatown (demo) by GarageGames',
20: 'Deathball Desert (demo) by GarageGames',
21: 'Deathball Desert (demo) by GarageGames',
22: 'Mars (demo) by GarageGames',
23: 'Airship Dragoon by YorkshireRifles',
24: 'Airship Dragoon by YorkshireRifles',
25: 'Frozen Endzone by Mode 7',
26: 'Frozen Endzone by Mode 7',
29: 'Dark Horizons: Mechanized Corps by Max Gaming Technologies',
30: 'Dark Horizons: Mechanized Corps by Max Gaming Technologies',
31: 'Dark Horizons: Mechanized Corps by Max Gaming Technologies',
32: 'Age of Decadence by Iron Tower Studio',
33: 'Age of Decadence by Iron Tower Studio',
34: 'Age of Decadence by Iron Tower Studio',
35: 'BeamNG.drive by BeamNG',
36: 'Terminal Overload by fr1tz',
37: 'Terminal Overload by fr1tz',
};
function shuffle(o) {
for(var j, x, i = o.length; i; j = Math.floor(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x);
return o;
}
// TODO: ensure no duplicate images occur.
function createBreaks() {
var breaks = $('div.break');
var delay = 0;
breaks.each(function(i) {
// Shuffle the list of pictures that will appear in each break.
var ids = shuffle(Object.keys(images));
for(var i = 0; i < ids.length; i++) {
$(this).append($('<img>')
.attr('width', '760px')
.attr('height', '144px')
.attr('src', '{{page.root}}/img/banner'+ids[i]+'.jpg')
.attr('title', images[ids[i]]));
}
$(this).cycle({fx: 'fade', delay: delay});
delay += 5000 / breaks.length;
});
};
createBreaks();
getFeed('https://github.com/GarageGames/Torque3D/commits/development.atom', 2)
.done(function (data) {
if(data.responseData.feed && data.responseData.feed.entries) {
var list = $('<ul/>').addClass('list-unstyled');
$.each(data.responseData.feed.entries, function (i, e) {
var li = $('<li/>').addClass('commit').appendTo(list);
var hash = e.link.split('/').pop().substr(0, 6);
var content = e.contentSnippet.split('\n').pop();
var contentel = $('<p/>').text(content).appendTo(li);
var hashel = $('<pre/>').addClass('inline').prependTo(contentel);
hashel.append($('<a/>')
.text(hash)
.attr('href', e.link)
.attr('target', '_blank'));
var d = new Date(e.publishedDate);
var stamp = $('<span/>').addClass('timeago').text('by ' + e.author + ' ').appendTo(li);
stamp.append($('<span/>')
.attr('title', d.toISOString())
.timeago());
});
$('#activity-loading').replaceWith(list);
}
})
getFeed('http://forums.torque3d.org/feed.php?mode=news', 1)
.done(function(data) {
if(data.responseData.feed && data.responseData.feed.entries) {
var news = $('#recent-news');
$.each(data.responseData.feed.entries, function (i, e) {
news.html('');
news.append($('<h5/>')
.append($('<a/>')
.attr('href', e.link)
.html(e.title)
)
);
var d = new Date(e.publishedDate);
var stamp = $('<span/>').addClass('timeago').text('by ' + e.author + ' ').appendTo(news);
stamp.append($('<span/>')
.attr('title', d.toISOString())
.timeago());
news.append($('<p/>').html(e.contentSnippet + ' ')
.append($('<a/>')
.attr('href', e.link)
.html('Read more')
)
);
});
}
});
$.get('http://api.github.com/repos/GarageGames/Torque3D/releases')
.done(function(releases) {
var latest = releases[0];
$('<li/>').append($('<a/>')
.attr('href', latest.html_url)
.html('Version ' + latest.name)
).prependTo('#quick-links');
})
.fail(function() {
$('#current-version').html('error');
});
// Get a feed through the Google feeds API with hourly caching.
function getFeed(feed, numResults) {
var now = new Date();
var googleAPI = document.location.protocol +
'//ajax.googleapis.com/ajax/services/feed/load?' +
'v=1.0' +
'&dailycache=' + [now.getUTCDate(), now.getUTCMonth(), now.getUTCFullYear()].join('-') +
'&num=' + numResults +
'&callback=?&q=';
var url = googleAPI + encodeURIComponent(feed);
return $.ajax({
url: url,
dataType: 'json'
});
}
});
</script>
<!-- T3D Site was ported -->