From c21117dba95fd9d64c7f5120c752825080dc87d1 Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Thu, 8 Nov 2012 23:48:57 -0500 Subject: add the javascript files --- static/famille.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 static/famille.js (limited to 'static/famille.js') 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 -- cgit v1.2.3-70-g09d2