blob: b4603924b7a93dbb6e5e88f8fd28aa8d7c867c6e (
plain)
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
|
$.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(){
$('[data-toggle="tooltip"]').tooltip()
$("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");
});
$('span.timeago').timeago();
var addr = $(location).attr('pathname');
$("#"+addr.replace(/\//g,"")).addClass("active")
});
|