Mercurial > my-ubiquity-commands
comparison sample-jetpack-feed/sample-jetpack-feed.js @ 23:f90dcea4d6b8
Added sample jetpack feed.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Sun, 10 May 2009 15:10:09 -0700 |
parents | |
children | f7c3f977da53 |
comparison
equal
deleted
inserted
replaced
22:ecd868a32247 | 23:f90dcea4d6b8 |
---|---|
1 addStatusBarPanel({ | |
2 html: "<p>kill flash</p>", | |
3 onLoad: function(panel) { | |
4 var button = $(panel.document).find("p"); | |
5 button.css({cursor: "pointer", fontFamily: "sans-serif"}); | |
6 button.click(function() { | |
7 var doc = $(Application.activeWindow.activeTab.document); | |
8 doc.find("embed[type=application/x-shockwave-flash]").slideUp(); | |
9 }); | |
10 }}); |