public
Description: Quicky Growl-like implementation for Prototype
Clone URL: git://github.com/tdreyno/prototypegrowl.git
Click here to lend your support to: prototypegrowl and make a donation at www.pledgie.com !
commit  1384aec747dbf94076c8fdf7a73222bce8b6ea76
tree    43186039ff1a273290bb70ce4efea4ca2bdb3411
parent  78a639474384ccb4c42c2c8544063da69eec36ae
prototypegrowl / test.html
100644 45 lines (43 sloc) 1.68 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Window.Growl 2.0</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" charset="utf-8" src="prototype-1.6.0.2.js"></script>
<script type="text/javascript" charset="utf-8" src="growl.js"></script>
<script type="text/javascript" charset="utf-8" src="scriptaculous.js"></script>
<script type="text/javascript" charset="utf-8" src="effects.js"></script>
<link rel="stylesheet" href="http://icebeat.bitacoras.com/mootools/growl/css.css" type="text/css" />
</head>
<body>
  <h3><img src="http://icebeat.bitacoras.com/mootools/growl/logo.jpg" alt="Window.Growl 2.0" title="Window.Growl 2.0"></h3>
  <ul>
    <li><a href="#" id="smoke" title="Show msg Smoke">Show Growl Smoke.</a></li>
    <li><a href="#" id="bezel" title="Show msg Bezel">Show Growl Bezel.</a> <b>(NOT WORKING YET)</b></li>
    <li><a href="growl.js" title="Download">Download js.</a></li>
  </ul>
  <pre><code>Growl.Smoke({
  title: &apos;Window.Growl By Daniel Mota&apos;,
  text: &apos;http://icebeat.bitacoras.com&apos;,
  image: &apos;growl.jpg&apos;,
  duration: 2
});</code></pre>
  <p>
    By <a href="http://icebeat.bitacoras.com" title="Blog">Daniel Mota</a>.
  </p>
 
  <script type="text/javascript" charset="utf-8">
    var growl = new Growl.Smoke;
    $('smoke').observe('click', function(event) {
      growl.show();
      event.stop();
    });
    
    $('bezel').observe('click', function(event) {
      var growl = new Growl.Bezel;
      growl.show({
        title: 'Window.Growl<br />By Daniel Mota'
      });
      event.stop();
    });
  </script>
</body>
</html>