Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port to JavaScript #9

Merged
merged 5 commits into from
Aug 8, 2018
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
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
*.xo
*.pyc
.DS_Store
locale
4 changes: 3 additions & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
Gary Cliff Martin <[email protected]>
Gary Cliff Martin <[email protected]> GTK+ 2
SHIRSH ZIBBU <[email protected]> Port to JavaScript
llaske <[email protected]> Fixes
528 changes: 190 additions & 338 deletions COPYING

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
What is this?
=============

Moon phase viewer, includes Lunar phase information and eclipse data.

The Moon Activity provides a graphical representation of the current Lunar phase, and a range of common astronomical information including, phase, Julian date, Moon age, Lunation, surface visibility, selenographic terminator longitude (position of shadow on Moon's surface), next Full Moon, next New Moon, next Lunar eclipse, next Solar eclipse. The graphical image can be generated for Northern or Southern hemisphere viewing locations, and a latitude/longitude grid can be added for surface feature reference.

This activity does not require internet access to work, and will show reasonably accurate information (within an error of about 60 seconds), up until the end of 2024.

How to use?
===========

Moon is part of the Sugar desktop. Please refer to;

* [How to Get Sugar on sugarlabs.org](https://sugarlabs.org/),
* [How to use Sugar](https://help.sugarlabs.org/),
File renamed without changes
13 changes: 5 additions & 8 deletions activity/activity.info
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
[Activity]
name = Moon
summary = For all those interested in the moon! See the different phases of the moon, latitudes and longitudes and impress all by "predicting" the next full moon!
activity_version = 18
host_version = 1
activity_version = 19
bundle_id = com.garycmartin.Moon
icon = moon-icon
exec = sugar-activity moon.MoonActivity
show_launcher = yes
license = GPLv2+
max_participants = 1
exec = sugar-activity-web
icon = activity-icon
license = Apache-2.0
repository = https://github.com/sugarlabs/moon-activity.git
summary = For all those interested in the moon! See the different phases of the moon, latitudes and longitudes and impress all by "predicting" the next full moon!
271 changes: 0 additions & 271 deletions ca.po

This file was deleted.

34 changes: 34 additions & 0 deletions css/activity.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
@import url(navbar.css);

body {
overflow: hidden;
}

#panel-container {
height: 100%;
width: 100%;
}

.panel {
box-sizing: border-box;
float: left;
height: 100%;
}

#panel-left {
overflow-y: auto;
padding: 10px;
width: 40%;
}

#panel-right {
background-color: black;
width: 60%;
position: relative;
}

canvas {
position: absolute;
top: 0;
left: 0;
}
16 changes: 16 additions & 0 deletions css/navbar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#main-toolbar button:active,
#main-toolbar button.active {
background-color: #ddd;
}

#activity-button {
background-image: url(../activity/activity-icon.svg);
}

#toggle-grid-button {
background-image: url(../icons/toggle-grid.svg);
}

#toggle-hemisphere-button {
background-image: url(../icons/toggle-hemisphere.svg);
}
Loading