Skip to content

Commit 0a08b58

Browse files
added embed page to hmt
1 parent 162c869 commit 0a08b58

File tree

3 files changed

+46
-4
lines changed

3 files changed

+46
-4
lines changed

glyphs/icon-code.svg

Lines changed: 14 additions & 0 deletions
Loading

index.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,33 @@
3939
<li class="home"><i class="icon-habhub"></i></li>
4040
<li class="chasecar" style="display: none"><i class="icon-car"></i></li>
4141
<li class="settings"><i class="icon-settings"></i></li>
42+
<li class="embed">
43+
<svg width="100%" height="100%" viewbox="0 0 35 40" version="1.1">
44+
<path style="fill:#ffffff;" d="m19.188,4.0378c-1.698,10.6-3.396,21.2-5.094,31.8,1.478,0.9,2.037-0.6,2.024-1.7,1.607-10.1,3.213-20.1,4.82-30.1h-1.75zm-6.469,5.3c-3.9064,3-7.8129,6-11.719,9v3.7c3.9045,3,7.8143,6,11.719,9v-3.9c-3.0949-2.3-6.1868-4.6-9.2815-7,3.0937-2.3,6.1875-4.6,9.2815-6.9v-3.9zm9.562,0v3.9c3.094,2.3,6.188,4.6,9.281,6.9-3.093,2.4-6.187,4.7-9.281,7v3.9c3.905-3,7.814-6,11.719-9v-3.7c-3.906-3-7.813-6-11.719-9z"/>
45+
</svg>
46+
</li>
4247
<li class="about last"><i class="icon-question"></i></li>
4348
</ol>
4449
<span id="locate-me" style="display: none"><i class="icon-target"></i></span>
4550
<span id="app_name"><b>mobile<br/>tracker</b></span>
4651
</div>
4752
</header>
4853

54+
<div id="embedbox" style="display: none" class="flatpage">
55+
<div class="slimContainer">
56+
<h2>Embed tracker</h2>
57+
<hr>
58+
<span>
59+
It's possible to embed the mobile tracker on any page. If you are developing a HAB project, you can add the tracker
60+
to your website. You can customize the tracker to fit. There are options to limit, the visible vehicles to
61+
a specific callsign. Or two, or three. There are options to play with. It's easy. Just visit the page bellow and check it out.
62+
</span>
63+
<br/><br/>
64+
<span>
65+
<a href="embed-preview.html">Customize tracker for embedding</a>
66+
</span>
67+
</div>
68+
</div>
4969
<div id="aboutbox" style="display: none" class="flatpage">
5070
<div class="slimContainer">
5171
<h2>About</h2>

js/app.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ $(window).ready(function() {
312312
var e = $(this);
313313
var box = $('.main_screen');
314314
if(box.is(':hidden')) {
315-
$('#chasecarbox,#aboutbox,#settingsbox').hide();
315+
$('#chasecarbox,#aboutbox,#settingsbox,#embedbox').hide();
316316
box.show();
317317
}
318318
checkSize();
@@ -321,7 +321,7 @@ $(window).ready(function() {
321321
var e = $(this);
322322
var box = $('#chasecarbox');
323323
if(box.is(':hidden')) {
324-
$('.main_screen,#aboutbox,#settingsbox').hide();
324+
$('.main_screen,#aboutbox,#settingsbox,#embedbox').hide();
325325
box.show();
326326
}
327327
checkSize();
@@ -330,7 +330,7 @@ $(window).ready(function() {
330330
var e = $(this);
331331
var box = $('#aboutbox');
332332
if(box.is(':hidden')) {
333-
$('.main_screen,#chasecarbox,#settingsbox').hide();
333+
$('.main_screen,#chasecarbox,#settingsbox,#embedbox').hide();
334334
box.show();
335335
}
336336
checkSize();
@@ -339,7 +339,15 @@ $(window).ready(function() {
339339
var e = $(this);
340340
var box = $('#settingsbox');
341341
if(box.is(':hidden')) {
342-
$('.main_screen,#chasecarbox,#aboutbox').hide();
342+
$('.main_screen,#chasecarbox,#aboutbox,#embedbox').hide();
343+
box.show();
344+
}
345+
})
346+
.on('click', '.embed', function() {
347+
var e = $(this);
348+
var box = $('#embedbox');
349+
if(box.is(':hidden')) {
350+
$('.main_screen,#chasecarbox,#aboutbox,#settingsbox').hide();
343351
box.show();
344352
}
345353
});

0 commit comments

Comments
 (0)