Skip to content

Commit 2298860

Browse files
rework about page; motd & upcoming flights
1 parent d2f7608 commit 2298860

File tree

2 files changed

+23
-17
lines changed

2 files changed

+23
-17
lines changed

index.html

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -76,28 +76,21 @@ <h2>Embed tracker
7676
</div>
7777
<div id="aboutbox" style="display: none" class="flatpage">
7878
<div class="slimContainer">
79-
<h2><i class="icon-question rfloat"></i>About</h2>
80-
<hr>
81-
<p>
82-
This is the Habitat Mobile Tracker app. It sits on spacenear.us API, which gives us the latest from Habitat.
83-
You can run the app on almost any device, all you need is a modern browser. Try it on a phone, table, or PC.
84-
There are a few differences. Specifically, on mobile devices the app will provide access to 'chase car'
85-
functionality. This especially useful when you are hunting for your freshly landed HAB.
86-
</p>
79+
<h2><i class="icon-question rfloat"></i>Motd</h2>
80+
<hr/>
81+
<div id='motd'></div>
82+
<br/>
8783
<p>
8884
Want to track with <b>Google Earth</b> instead?<br/> <a href="track.kml">Just click here</a>
8985
</p>
90-
<h2>Bugs</h2>
91-
<hr>
92-
<p>
93-
If you experience any bugs when loading up the tracker, try clearing your browser cache. If it still does
94-
not work, please leave us a message on IRC or github. Thanks!
95-
</p>
86+
<iframe data-src="https://www.google.com/calendar/embed?title=Habhub%20Calendar&amp;showTitle=0&amp;showNav=0&amp;showPrint=0&amp;showTabs=0&amp;showCalendars=0&amp;mode=AGENDA&amp;height=450&amp;wkst=2&amp;bgcolor=%23ffffff&amp;src=5m4629p2h0esfojq1elep31einvu2q0v%40import.calendar.google.com&amp;color=%2300a3d3&amp;ctz=Pacific%2FMidway" style=" border-width:0 " width="290" height="450" frameborder="0" scrolling="no"></iframe>
9687
<h2>Contribute</h2>
97-
<hr>
88+
<hr/>
9889
<p>
99-
Suggestions and pull requests are welcome. Just find us on <u>#highaltitude</u> at <u>irc.freenode.org</u>.
100-
Or at <a href="https://github.com/rossengeorgiev/habitat-mobile-tracker">github/habitat-mobile-tracker</a>
90+
Did you know the tracker is open-source? Check it out on
91+
<a href="https://github.com/rossengeorgiev/habitat-mobile-tracker">github/habitat-mobile-tracker</a>.
92+
Bug reports, suggetion and pull request are welcome. You can also
93+
find us on IRC in <u>#highaltitude</u> at <u>irc.freenode.org</u>.
10194
</p>
10295
</div>
10396
</div>

js/app.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,19 @@ $(window).ready(function() {
495495
$('.flatpage').hide();
496496
box.show().scrollTop(0);
497497

498+
if(name == 'about') {
499+
if(box.hasClass('inited')) return;
500+
box.addClass('inited');
501+
502+
$.getJSON("http://spacenear.us/tracker/datanew.php?type=info", function(data) {
503+
if('html' in data) $('#motd').html(data.html.replace(/\\/g,''));
504+
});
505+
506+
var iframe = box.find('iframe');
507+
var src = iframe.attr('data-src');
508+
iframe.attr('src', src);
509+
}
510+
498511
// analytics
499512
var pretty_name;
500513
switch(name) {

0 commit comments

Comments
 (0)