Widget
My LookUP Widget
It is now possible to use the astronomy lookUP service on a remote website using the lookUP widget. The widget is still in a testing stage so please keep in mind that it may change as bugs are found and improvements made. To try it out, follow these steps:
- Add the Javascript code to your page header e.g.
<script type="text/javascript" src="http://www.strudel.org.uk/lookUP/widget.js"></script>
- Place a
div
tag in your page to hold the contents of the widget. e.g.
<div id="lookUP">My LookUP Widget</div>
You can replace the "My LookUP Widget" text with whatever you want to appear before the search box. - Optionally, you can style the search box and the results using CSS on your site. All the lookUP content is held within the element
#lookUP
and the search results are within the sub element named#lookUPresults
. So, the styling could be e.g.
#lookUP { float: right; border: 1px solid #bbb; background-color: #ddd; padding:0.5em; margin: 0 0 0.5em 0.5em; text-align: center; } #lookUPresults img { width:90%; border:1px solid #bbb; }