changeset 23:f90dcea4d6b8

Added sample jetpack feed.
author Atul Varma <varmaa@toolness.com>
date Sun, 10 May 2009 15:10:09 -0700
parents ecd868a32247
children f7c3f977da53
files sample-jetpack-feed/index.html sample-jetpack-feed/sample-jetpack-feed.js
diffstat 2 files changed, 20 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sample-jetpack-feed/index.html	Sun May 10 15:10:09 2009 -0700
@@ -0,0 +1,10 @@
+<html>
+<head>
+  <link rel="jetpack" href="sample-jetpack-feed.js"/>
+  <title>Sample Jetpack Feed</title>
+</head>
+<body>
+This is a sample Jetpack feed. View its
+source <a href="sample-jetpack-feed.js">here</a>.
+</body>
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sample-jetpack-feed/sample-jetpack-feed.js	Sun May 10 15:10:09 2009 -0700
@@ -0,0 +1,10 @@
+addStatusBarPanel({
+  html: "<p>kill flash</p>",
+  onLoad: function(panel) {
+    var button = $(panel.document).find("p");
+    button.css({cursor: "pointer", fontFamily: "sans-serif"});
+    button.click(function() {
+      var doc = $(Application.activeWindow.activeTab.document);
+      doc.find("embed[type=application/x-shockwave-flash]").slideUp();
+    });
+  }});