Skip to content

Commit

Permalink
Updated URLs on about:yip, replaced default icon with a 32x32 version…
Browse files Browse the repository at this point in the history
… and removed onclick handlers on test notifications (because Snarl, Growl for Windows lack support for this at the moment).
  • Loading branch information
abi committed Jul 26, 2009
1 parent 41feb15 commit 7e064e7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion components/yip.js
Expand Up @@ -26,7 +26,7 @@ Yip.prototype = {

var title = aNotifyObject.title ? aNotifyObject.title : "Yip Notification";
var text = aNotifyObject.description ? aNotifyObject.description : "";
var icon = aNotifyObject.icon ? aNotifyObject.icon : "chrome://yip/content/images/icon.png";
var icon = aNotifyObject.icon ? aNotifyObject.icon : "chrome://yip/content/images/icon-32.png";
var textClickable = false;
var cookie = "";
var alertListener = null;
Expand Down
Binary file added content/images/icon-32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 7 additions & 9 deletions content/yip.html
Expand Up @@ -14,12 +14,10 @@

<script type="text/javascript" charset="utf-8">

window.fluid.showGrowlNotification({title:"Yip!", description:"This is a test notification that shows up when you load the about:yip page. Try clicking it!", onclick:function(){
fluid.showGrowlNotification(
{title:"You just clicked!",
description: "This behavior can be implemented with the onclick callback. Read about:yip for more information."
});
}});
window.fluid.showGrowlNotification({
title : "Yip!",
description : "This is a test notification that shows up when you load the about:yip page."
});

</script>

Expand Down Expand Up @@ -95,10 +93,10 @@
<h1>You're using Yip!</h1>
<p>Yip is a small extension that ports the Fluid and Prism notification APIs over to Firefox so you can receive notifications from web applications. If you log into <a href="http://www.meebo.com">Meebo</a> or another site that supports notifications, the next time your friends send you an IM, you should see a notification (obviously, Meebo should not be your focused window/tab at that point).
</p>
<p>To learn more about Yip, its future and how to support notifications on your site, <a href="http://abcdefu.wordpress.com"> visit this page.</a> Yip's source code is <a href="http://github.com/abi/yip/tree/master">available on Github.</a></p>
<p>To learn more about Yip, its future and how to support notifications on your site, <a href="http://www.yipyip.com"> visit this page.</a> Yip's source code is <a href="http://github.com/abi/yip/tree/master">available on Github.</a></p>
<ul id="footer">
<li><a href="http://abcdefu.wordpress.com"> created by Abi</a></li>
<li onclick="platform.showNotification('You clicked the star.', 'Why would you do that?', 'resource://yip/content/images/icon.png')"></li>
<li><a href="http://www.abi.sh"> created by Abi</a></li>
<li onclick="platform.showNotification('You clicked the star.', 'Why would you do that?', 'resource://yip/content/images/icon-32.png')"></li>
<li><a href="http://www.dapino-colada.nl">icon by Dapino</a></li>
</ul>
</div>
Expand Down

0 comments on commit 7e064e7

Please sign in to comment.