diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2012-11-08 23:48:57 -0500 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2012-11-08 23:48:57 -0500 |
| commit | c21117dba95fd9d64c7f5120c752825080dc87d1 (patch) | |
| tree | ad002a8afb3ed99d3d69f4e339c1122a8634d0ae /static/famille.js | |
| parent | f57da10d8c51b2a71e7d85705439c4082aa6c507 (diff) | |
| download | famille-flask-c21117dba95fd9d64c7f5120c752825080dc87d1.tar.gz | |
add the javascript files
Diffstat (limited to 'static/famille.js')
| -rw-r--r-- | static/famille.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/static/famille.js b/static/famille.js new file mode 100644 index 0000000..2739020 --- /dev/null +++ b/static/famille.js @@ -0,0 +1,24 @@ +$.fn.wait = function(time, type) { + time = time || 1000; + type = type || "fx"; + return this.queue(type, function() { + var self = this; + setTimeout(function() { + $(self).dequeue(); + }, time); + }); +}; + +$(document).ready(function(){ + $("div.infobox").wait(2000).slideUp("slow"); + $("div.errorbox").wait(2000).slideUp("slow"); + $("#add").click(function(){ + $(".hidden").fadeIn("slow"); + $(this).hide(0); + $("label.info").hide(0); + $(".tohide").hide(0); + }); + $("#kadobutton").click(function(){ + $(".kadoscope").animate({opacity:"1"},"5000"); + }); +});
\ No newline at end of file |
