Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
initial working version
  • Loading branch information
LukePrior committed Apr 3, 2022
commit dfb2d9047cd953ca3b964320b06925e6ed1334d1
9 changes: 9 additions & 0 deletions DEVELOPER_README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Getting started

To get a copy of the code and run a test web server:

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).
2. Clone the repository with your git tool of choice.
3. Run `build.sh` to compile the javascript files. (This requires Java to be installed and in your path.)
4. Run `python serve.py` to run a simple web server to (This requires python 3.x)
5. Visit [http://localhost:8000](http://localhost:8000) to view the local version of the server!
4 changes: 3 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
echo -n "Compiling CSS... "
cd css
rm -f mobile.css
cat base.css skeleton.css layout.css habitat-font.css main.css > mobile.tmp
cat base.css skeleton.css layout.css habitat-font.css main.css leaflet.css leaflet.fullscreen.css skewt.css > mobile.tmp
java -jar "../tools/yuicompressor-2.4.8.jar" --type=css mobile.tmp > mobile.css
rm -f mobile.tmp
cd ..
Expand All @@ -24,6 +24,8 @@ java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations -
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge chasecar.lib.js | sed "s/{VER}/$VERSION/" >> mobile.js
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge tracker.js >> mobile.js
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge app.js >> mobile.js
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge colour-map.js >> mobile.js
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge format.js >> mobile.js

#compile plot lib and config
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge _jquery.flot.js >> init_plot.js
Expand Down
9 changes: 2 additions & 7 deletions css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
blockquote cite:before { content: "\2014 \0020"; }
blockquote cite a, blockquote cite a:visited, blockquote cite a:visited { color: #555; }

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


/* #Links
Expand Down Expand Up @@ -152,6 +152,7 @@
border: 1px solid #aaa;
border-top: 1px solid #ccc;
border-left: 1px solid #ccc;
margin-right: 1px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
Expand All @@ -162,7 +163,6 @@
text-decoration: none;
text-shadow: 0 1px rgba(255, 255, 255, .75);
cursor: pointer;
margin-bottom: 20px;
line-height: normal;
padding: 8px 10px;
font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; }
Expand Down Expand Up @@ -229,8 +229,6 @@
/* #Forms
================================================== */

form {
margin-bottom: 20px; }
fieldset {
margin-bottom: 20px; }
input[type="text"],
Expand All @@ -247,10 +245,7 @@
font: 13px "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
color: #888;
margin: 0;
width: 210px;
max-width: 100%;
display: block;
margin-bottom: 20px;
background: #fff; }
select {
padding: 0; }
Expand Down
6 changes: 0 additions & 6 deletions css/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,6 @@ header h1{
margin-bottom: 0 !important;
}

.form.row select {
/* base.css makes this different to input for some reason. */
padding: 5px 4px;
width: 220px;
}

.validated input{
float: left;
}
Expand Down
13 changes: 8 additions & 5 deletions css/main.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* SondeHub Mobile Tracker
/* SondeHub Amateur
* Main style sheet
*
*/
Expand Down Expand Up @@ -153,7 +153,7 @@ body {
position: absolute;
display: block;
width: 60vw;
max-width: 483px;
max-width: 300px;
left: 50%;
top: 50%;
-ms-transform: translate(-50%, -50%);
Expand Down Expand Up @@ -403,7 +403,10 @@ header .search form input[type='submit'] {
#main .row.follow .icon-target:before {
display: inline-block;
}
#main .row.active .data { display: inline-block; }
#main .row.active .data {
display: inline-block;
min-height: 190px;
}
#main .row .data .left,
#main .row .data .right {
position: relative;
Expand All @@ -412,7 +415,7 @@ header .search form input[type='submit'] {
#main .row .data .vbutton {
position: absolute;
background-color: #fff;
width: 25px !important;
width: 30px !important;
right: 5px;
top: 150px;
padding-left: 3px;
Expand All @@ -428,7 +431,7 @@ header .search form input[type='submit'] {
#main .row .data .sbutton {
position: absolute;
background-color: #fff;
width: 25px !important;
width: 30px !important;
right: 5px;
top: 170px;
padding-left: 3px;
Expand Down
1 change: 1 addition & 0 deletions css/skewt.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added img/markers/car-purple.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/markers/car-teal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/splash/splash-narrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/splash/splash-wide.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading