Skip to content

Commit

Permalink
Updating repository to my latest source, going to give this mercurial…
Browse files Browse the repository at this point in the history
… thing another try and see if I can keep my changes current. Sorry for the lack of transparency to anyone who is paying attention.
  • Loading branch information
stan@stanlemon.local committed Nov 20, 2009
1 parent b5ac90f commit 78fc13e
Show file tree
Hide file tree
Showing 70 changed files with 1,949 additions and 43 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
406 changes: 406 additions & 0 deletions examples/css/eggplant/jquery-ui-1.7.2.custom.css

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
406 changes: 406 additions & 0 deletions examples/css/le-frog/jquery-ui-1.7.2.custom.css

Large diffs are not rendered by default.

406 changes: 406 additions & 0 deletions examples/css/redmond/jquery-ui-1.7.2.custom.css

Large diffs are not rendered by default.

406 changes: 406 additions & 0 deletions examples/css/start/jquery-ui-1.7.2.custom.css

Large diffs are not rendered by default.

26 changes: 19 additions & 7 deletions examples/jgrowl.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@
(function($){

$(document).ready(function(){

// This value can be true, false or a function to be used as a callback when the closer is clciked
$.jGrowl.defaults.closer = function() {
console.log("Closing everything!", this);
Expand All @@ -122,7 +121,6 @@
$.jGrowl("This notification will live a little longer.", { life: 1000 });
$.jGrowl("Sticky notification with a header", { header: 'A Header', sticky: true });
$.jGrowl("Custom theme, and a whole bunch of callbacks...", {
sticky: true,
theme: 'manilla',
speed: 'slow',
beforeOpen: function(e,m,o) {
Expand All @@ -141,7 +139,6 @@

$.jGrowl("Custom animation test...", {
theme: 'manilla',
sticky: true,
speed: 'slow',
animateOpen: {
height: "show"
Expand All @@ -153,14 +150,29 @@

$.jGrowl("Looks like the iPhone.", {
header: 'iPhone',
theme: 'iphone',
sticky: true
theme: 'iphone'
});


$.jGrowl("This message will not open because we have a callback that returns false.", {
beforeOpen: function() {
console.log("Going to open a notification, but not really...");
},
open: function() {
return false;
}
});

$.jGrowl("This message will not close because we have a callback that returns false.", {
beforeClose: function() {
return false;
}
});

$.jGrowl.defaults.closerTemplate = '<div>hide all notifications</div>';

$('#test1').jGrowl("Testing a custom container (this one is sticky, and will also be prepended).", {
closer: false,
sticky: true,
glue: 'before',
speed: 2000,
Expand Down Expand Up @@ -191,14 +203,12 @@

$('#test2').jGrowl("Trying a background image.", {
theme: 'smoke',
sticky: true,
closer: false
});

$('#test2').jGrowl("This demo notification uses images from the UI flora theme to create similar styled notifications.", {
theme: 'flora',
header: "Flora makes Fauna",
sticky: true,
closer: false
});
});
Expand All @@ -213,6 +223,8 @@ <h1>jGrowl Tests</h1>

<p><a href="javascript:void(0);" onclick="$('#test1').jGrowl('shutdown');">Shutdown jGrowl for the #test1 container in the top-left corner of the screen.</a></p>

<p><a href="javascript:void(0);" onclick="$('#test1').jGrowl('close');">Close all in #test1.</a></p>

<div id="random">An extra wide node, watch as the jGrowl containers stay put in the corners of the screen..</div>

<div id="logs"><h3>Log:</h3></div>
Expand Down
63 changes: 63 additions & 0 deletions examples/jquery-ui1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml" debug="true">
<head>
<title>jGrowl meet Twitter</title>
<link rel="stylesheet" href="../jquery.jgrowl.css" type="text/css"/>
<link type="text/css" href="css/eggplant/jquery-ui-1.7.2.custom.css" rel="Stylesheet" />
<script type="text/javascript">
$(function(){
$('.ui-state-default').hover(
function(){$(this).addClass('ui-state-hover');},
function(){$(this).removeClass('ui-state-hover');}
)
.mousedown(function(){$(this).addClass('ui-state-active');})
.mouseup(function(){$(this).removeClass('ui-state-active');})
.mouseout(function(){$(this).removeClass('ui-state-active');});
});
</script>

<script type="text/javascript" src="jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript" src="../jquery-1.3.2.js"></script>
<script type="text/javascript" src="../jquery.jgrowl.js"></script>
<script type="text/javascript">

// In case you don't have firebug...
if (!window.console || !console.firebug) {
var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
window.console = {};
for (var i = 0; i < names.length; ++i) window.console[names[i]] = function() {};
}

(function($){
/**
* @todo Add the twitter avatars to tweets, via tweet.user["profile_image_url"]
* @todo Find a way to calculate the dates relatively
* @todo Test is a cookie plugin is available so that some of this data can be 'cached'
*/
$.jTweet = function( username , total ) {
$.getJSON("http://twitter.com/status/user_timeline/" + username + ".json?count=" + total + "&callback=?", function(response) {
$.each(response, function(i, tweet) {
$.jGrowl( (tweet.text.replace(/[A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+/, function(m) {
return m.link(m);
})) + ' [' + tweet.source + ']' , { header: tweet.created_at , sticky: true } );
});
});
};
})(jQuery);

// Setup a twitter interface with jGrowl
$(document).ready(function() {
$.jTweet('jquery', 5);
});

</script>
</head>
<body>
<div id="trdevtool_contain" class="ui-widget ui-widget-content ui-corner-all">
<div class="ui-widget-header ui-corner-top">
<h1>jQuery UI ThemeRoller <span>Developer Tool</span></h1>
</div>
</div>

</body>
</html>
63 changes: 63 additions & 0 deletions examples/jquery-ui2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml" debug="true">
<head>
<title>jGrowl meet Twitter</title>
<link rel="stylesheet" href="../jquery.jgrowl.css" type="text/css"/>
<link type="text/css" href="css/le-frog/jquery-ui-1.7.2.custom.css" rel="Stylesheet" />
<script type="text/javascript">
$(function(){
$('.ui-state-default').hover(
function(){$(this).addClass('ui-state-hover');},
function(){$(this).removeClass('ui-state-hover');}
)
.mousedown(function(){$(this).addClass('ui-state-active');})
.mouseup(function(){$(this).removeClass('ui-state-active');})
.mouseout(function(){$(this).removeClass('ui-state-active');});
});
</script>

<script type="text/javascript" src="jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript" src="../jquery-1.3.2.js"></script>
<script type="text/javascript" src="../jquery.jgrowl.js"></script>
<script type="text/javascript">

// In case you don't have firebug...
if (!window.console || !console.firebug) {
var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
window.console = {};
for (var i = 0; i < names.length; ++i) window.console[names[i]] = function() {};
}

(function($){
/**
* @todo Add the twitter avatars to tweets, via tweet.user["profile_image_url"]
* @todo Find a way to calculate the dates relatively
* @todo Test is a cookie plugin is available so that some of this data can be 'cached'
*/
$.jTweet = function( username , total ) {
$.getJSON("http://twitter.com/status/user_timeline/" + username + ".json?count=" + total + "&callback=?", function(response) {
$.each(response, function(i, tweet) {
$.jGrowl( (tweet.text.replace(/[A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+/, function(m) {
return m.link(m);
})) + ' [' + tweet.source + ']' , { header: tweet.created_at , sticky: true } );
});
});
};
})(jQuery);

// Setup a twitter interface with jGrowl
$(document).ready(function() {
$.jTweet('jquery', 5);
});

</script>
</head>
<body>
<div id="trdevtool_contain" class="ui-widget ui-widget-content ui-corner-all">
<div class="ui-widget-header ui-corner-top">
<h1>jQuery UI ThemeRoller <span>Developer Tool</span></h1>
</div>
</div>

</body>
</html>
63 changes: 63 additions & 0 deletions examples/jquery-ui3.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml" debug="true">
<head>
<title>jGrowl meet Twitter</title>
<link rel="stylesheet" href="../jquery.jgrowl.css" type="text/css"/>
<link type="text/css" href="css/redmond/jquery-ui-1.7.2.custom.css" rel="Stylesheet" />
<script type="text/javascript">
$(function(){
$('.ui-state-default').hover(
function(){$(this).addClass('ui-state-hover');},
function(){$(this).removeClass('ui-state-hover');}
)
.mousedown(function(){$(this).addClass('ui-state-active');})
.mouseup(function(){$(this).removeClass('ui-state-active');})
.mouseout(function(){$(this).removeClass('ui-state-active');});
});
</script>

<script type="text/javascript" src="jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript" src="../jquery-1.3.2.js"></script>
<script type="text/javascript" src="../jquery.jgrowl.js"></script>
<script type="text/javascript">

// In case you don't have firebug...
if (!window.console || !console.firebug) {
var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
window.console = {};
for (var i = 0; i < names.length; ++i) window.console[names[i]] = function() {};
}

(function($){
/**
* @todo Add the twitter avatars to tweets, via tweet.user["profile_image_url"]
* @todo Find a way to calculate the dates relatively
* @todo Test is a cookie plugin is available so that some of this data can be 'cached'
*/
$.jTweet = function( username , total ) {
$.getJSON("http://twitter.com/status/user_timeline/" + username + ".json?count=" + total + "&callback=?", function(response) {
$.each(response, function(i, tweet) {
$.jGrowl( (tweet.text.replace(/[A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+/, function(m) {
return m.link(m);
})) + ' [' + tweet.source + ']' , { header: tweet.created_at , sticky: true } );
});
});
};
})(jQuery);

// Setup a twitter interface with jGrowl
$(document).ready(function() {
$.jTweet('jquery', 5);
});

</script>
</head>
<body>
<div id="trdevtool_contain" class="ui-widget ui-widget-content ui-corner-all">
<div class="ui-widget-header ui-corner-top">
<h1>jQuery UI ThemeRoller <span>Developer Tool</span></h1>
</div>
</div>

</body>
</html>
18 changes: 18 additions & 0 deletions examples/multiple-containers.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<script src="../jquery-1.3.2.js"></script>
<script src="../jquery.jgrowl.js"></script>
<link rel="stylesheet" type="text/css" href="../jquery.jgrowl.css"/>
</head>
<body>
<div>
<input type="button" onclick="$.jGrowl('Default Positioning');" value="Default"/>
<input type="button" onclick="$('#one').jGrowl('Bottom Right Positioning');" value="Bottom Right"/>
<input type="button" onclick="$('#two').jGrowl('Bottom Left Positioning');" value="Bottom Left"/>
</div>
<div id="one" class="jGrowl bottom-right"></div>
<div id="two" class="jGrowl bottom-left"></div>
</body>
</html>
10 changes: 9 additions & 1 deletion jquery.jgrowl.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
div.jGrowl {
padding: 10px;
z-index: 9999;
color: #fff;
}

/** Special IE6 Style Positioning **/
Expand Down Expand Up @@ -76,7 +77,6 @@ div.center div.jGrowl-notification, div.center div.jGrowl-closer {

div.jGrowl div.jGrowl-notification, div.jGrowl div.jGrowl-closer {
background-color: #000;
color: #fff;
opacity: .85;
filter: alpha(opacity = 85);
zoom: 1;
Expand All @@ -102,6 +102,7 @@ div.jGrowl div.jGrowl-notification div.header {
}

div.jGrowl div.jGrowl-notification div.close {
z-index: 99;
float: right;
font-weight: bold;
font-size: 12px;
Expand All @@ -117,3 +118,10 @@ div.jGrowl div.jGrowl-closer {
font-weight: bold;
text-align: center;
}

/** Hide jGrowl when printing **/
@media print {
div.jGrowl {
display: none;
}
}
Loading

0 comments on commit 78fc13e

Please sign in to comment.