20
|
1 <html>
|
|
2 <head>
|
|
3 <title>Sample Status Bar Panel</title>
|
|
4 </head>
|
|
5 <body>
|
|
6 This function embeds a simple status bar panel into your window. It
|
|
7 requires <a href="index.html">this Ubiquity script</a> to run properly.
|
|
8 <iframe id="widget" src="status-bar-widget.html"></iframe>
|
|
9 <script src="jquery.js"></script>
|
|
10 <script>
|
|
11 var gPanel;
|
|
12 var gIframe;
|
|
13
|
|
14 $(window).ready(
|
|
15 function() {
|
|
16 gIframe = $("#widget").get(0).contentWindow;
|
|
17
|
|
18 addSidebar(
|
|
19 {url: "status-bar-widget.html",
|
|
20 width: 200,
|
|
21 callback: function(panel) {
|
|
22 gPanel = panel;
|
|
23 //console.log(panel, panel.document);
|
|
24 }
|
|
25 });
|
|
26 });
|
|
27 </script>
|
|
28 </body>
|
|
29 </html>
|