Skip to content

shvabuk/satellite-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Satellite tracker

A library that shows the location of the ISS relative to the Earth.

Main file

src/satellite-tracker.js

Integration example

HTML

<div class="iss-tracker"></div>

CSS

.satellite-world-map {
    position: relative;
    margin: 0 auto;
    background-image: url("../images/world-map.png");
    background-size: cover;
    max-width: 512px;
}

.satellite-world-map:before {
    content: "";
    display: block;
    width: 100%;
    padding-top: 50%;
}

.satellite-marker {
    box-sizing: border-box;
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid black;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: blink 1s linear infinite;
}

JavaScript

import { ISSTracker } from 'path_to_file/satellite-tracker.js';

const ISS = new ISSTracker();
const updateInterval = 60000; // milliseconds
ISS.runAutoupdate(updateInterval);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published