Mercurial > my-ubiquity-commands
view random-stuff/sample-status-bar.html @ 20:a07982ba7259
Added random stuff.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Wed, 06 May 2009 09:20:13 -0700 |
parents | |
children | e82bff1ef296 |
line wrap: on
line source
<html> <head> <title>Sample Status Bar Panel</title> </head> <body> This function embeds a simple status bar panel into your window. It requires <a href="index.html">this Ubiquity script</a> to run properly. <iframe id="widget" src="status-bar-widget.html"></iframe> <script src="jquery.js"></script> <script> var gPanel; var gIframe; $(window).ready( function() { gIframe = $("#widget").get(0).contentWindow; addSidebar( {url: "status-bar-widget.html", width: 200, callback: function(panel) { gPanel = panel; //console.log(panel, panel.document); } }); }); </script> </body> </html>