And also prune some outdated entries from the search menus. The main
thing is to properly and consistently segment names and URL-escape them.
Closes#329.
Usual practice is to provide an extra decimal place of RA precision
compared to Dec, since hours are more than 10 times coarse-grained than
degrees. Do this by adding a new `extraPrecision` argument to
`formatHms`. Also generally tidy up that implementation.
Closes#326.
If you tried to open the "Properties" panel for a thumbnail in the nearby
objects panel, it would land below the screen. Besides there being CSS
hardcoding the popover position, the whole popover content was encased in an
"ng-if" directive that meant that when the popover position was being
calculated, the apparent size of the popover was tiny and so the
bounds-checking didn't do much of anything. As far as I can tell, we can skip
the ng-if with proper setup of the scope of the popover in its creation.
Closes#91.
Now there are three buttons: hamburger menu, sharing, and settings. The
hamburger menu gives a subset of the links from the "AAS WorldWide Telescope"
menu of the desktop version; the links from the existing settings menu are
removed.
Both the hamburger menu and the settings are implemented as collapsible navs,
so we need to edit the hideMenu() logic to prevent both menus from being open
at the same time.
The positioning of the search submenu of the Settings nav was a bit weird, I
think accidentally, so I've reworked how that's done so that it's consistent
with the other popups.
I've also made the buttons a bit larger overall (@font-size-large to
@font-size-h3), so a few other CSS settings changed too.
AngularJS doesn't like our interpolations, raising `$interpolate:noconcat`
errors. I don't know why the mobile version has these issues while desktop
doesn't. But, whatever, OK.
We now have a variable $rootScope.is_mobile, and the logic setting it is now
centralized in the main controller. I've removed some random calls to
`wwt.resize()` that I don't think were doing anything.
There are a few `views` HTML files that include other ones, and if I wanted to
get them to also use the CDN for their references I'd have to put them through
the templating system too. I'm just not doing that now for laziness.