Skip to content

Commit 266824e

Browse files
authored
Merge pull request projecthorus#1 from LukePrior/main
initial working version
2 parents 249d053 + dfb2d90 commit 266824e

22 files changed

+3066
-3976
lines changed

DEVELOPER_README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Getting started
2+
3+
To get a copy of the code and run a test web server:
4+
5+
1. [Fork the repository](https://github.com/projecthorus/sondehub-amateur-tracker/fork) by visiting [https://github.com/projecthorus/sondehub-amateur-tracker/fork](https://github.com/projecthorus/sondehub-amateur-tracker/fork).
6+
2. Clone the repository with your git tool of choice.
7+
3. Run `build.sh` to compile the javascript files. (This requires Java to be installed and in your path.)
8+
4. Run `python serve.py` to run a simple web server to (This requires python 3.x)
9+
5. Visit [http://localhost:8000](http://localhost:8000) to view the local version of the server!

build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
echo -n "Compiling CSS... "
55
cd css
66
rm -f mobile.css
7-
cat base.css skeleton.css layout.css habitat-font.css main.css > mobile.tmp
7+
cat base.css skeleton.css layout.css habitat-font.css main.css leaflet.css leaflet.fullscreen.css skewt.css > mobile.tmp
88
java -jar "../tools/yuicompressor-2.4.8.jar" --type=css mobile.tmp > mobile.css
99
rm -f mobile.tmp
1010
cd ..
@@ -24,6 +24,8 @@ java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations -
2424
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge chasecar.lib.js | sed "s/{VER}/$VERSION/" >> mobile.js
2525
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge tracker.js >> mobile.js
2626
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge app.js >> mobile.js
27+
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge colour-map.js >> mobile.js
28+
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge format.js >> mobile.js
2729

2830
#compile plot lib and config
2931
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge _jquery.flot.js >> init_plot.js

css/base.css

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
blockquote cite:before { content: "\2014 \0020"; }
100100
blockquote cite a, blockquote cite a:visited, blockquote cite a:visited { color: #555; }
101101

102-
hr { border: solid #ddd; border-width: 1px 0 0; clear: both; margin: 10px 0 30px; height: 0; }
102+
hr { border: solid #ddd; border-width: 1px 0 0; clear: both; height: 0; }
103103

104104

105105
/* #Links
@@ -152,6 +152,7 @@
152152
border: 1px solid #aaa;
153153
border-top: 1px solid #ccc;
154154
border-left: 1px solid #ccc;
155+
margin-right: 1px;
155156
-moz-border-radius: 3px;
156157
-webkit-border-radius: 3px;
157158
border-radius: 3px;
@@ -162,7 +163,6 @@
162163
text-decoration: none;
163164
text-shadow: 0 1px rgba(255, 255, 255, .75);
164165
cursor: pointer;
165-
margin-bottom: 20px;
166166
line-height: normal;
167167
padding: 8px 10px;
168168
font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; }
@@ -229,8 +229,6 @@
229229
/* #Forms
230230
================================================== */
231231

232-
form {
233-
margin-bottom: 20px; }
234232
fieldset {
235233
margin-bottom: 20px; }
236234
input[type="text"],
@@ -247,10 +245,7 @@
247245
font: 13px "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
248246
color: #888;
249247
margin: 0;
250-
width: 210px;
251248
max-width: 100%;
252-
display: block;
253-
margin-bottom: 20px;
254249
background: #fff; }
255250
select {
256251
padding: 0; }

css/layout.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,6 @@ header h1{
8080
margin-bottom: 0 !important;
8181
}
8282

83-
.form.row select {
84-
/* base.css makes this different to input for some reason. */
85-
padding: 5px 4px;
86-
width: 220px;
87-
}
88-
8983
.validated input{
9084
float: left;
9185
}

css/main.css

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* SondeHub Mobile Tracker
1+
/* SondeHub Amateur
22
* Main style sheet
33
*
44
*/
@@ -153,7 +153,7 @@ body {
153153
position: absolute;
154154
display: block;
155155
width: 60vw;
156-
max-width: 483px;
156+
max-width: 300px;
157157
left: 50%;
158158
top: 50%;
159159
-ms-transform: translate(-50%, -50%);
@@ -403,7 +403,10 @@ header .search form input[type='submit'] {
403403
#main .row.follow .icon-target:before {
404404
display: inline-block;
405405
}
406-
#main .row.active .data { display: inline-block; }
406+
#main .row.active .data {
407+
display: inline-block;
408+
min-height: 190px;
409+
}
407410
#main .row .data .left,
408411
#main .row .data .right {
409412
position: relative;
@@ -412,7 +415,7 @@ header .search form input[type='submit'] {
412415
#main .row .data .vbutton {
413416
position: absolute;
414417
background-color: #fff;
415-
width: 25px !important;
418+
width: 30px !important;
416419
right: 5px;
417420
top: 150px;
418421
padding-left: 3px;
@@ -428,7 +431,7 @@ header .search form input[type='submit'] {
428431
#main .row .data .sbutton {
429432
position: absolute;
430433
background-color: #fff;
431-
width: 25px !important;
434+
width: 30px !important;
432435
right: 5px;
433436
top: 170px;
434437
padding-left: 3px;

css/skewt.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

img/markers/car-purple.png

20.8 KB
Loading

img/markers/car-teal.png

21 KB
Loading

img/splash/splash-narrow.png

77 KB
Loading

img/splash/splash-wide.png

63.4 KB
Loading

0 commit comments

Comments
 (0)