remove jquery ui

This commit is contained in:
Robin 2012-02-03 21:20:02 +01:00
parent 8d7ec7d24a
commit bb808d11ac
4 changed files with 7 additions and 203 deletions

View file

@ -27,46 +27,13 @@ var padcookie = require('/pad_cookie').padcookie;
var chat = (function()
{
var isStuck = false;
var sDuration = 500;
var hDuration = 750;
var chatMentions = 0;
var title = document.title;
if (browser.mobile){
sDuration = hDuration = 0;
}
var self = {
show: function ()
{
$("#chaticon").hide("slide", {
direction: "down"
}, hDuration, function ()
{
$("#chatbox").show("slide", {
direction: "down"
}, sDuration, self.scrollDown);
$("#chatbox").resizable(
{
handles: 'nw',
minHeight: 40,
minWidth: 80,
start: function (event, ui)
{
$("#focusprotector").show();
},
stop: function (event, ui)
{
$("#focusprotector").hide();
if(browser.mobile) {
$("#chatbox").css({right: "0px", bottom: "32px", left: "", top: ""});
} else {
$("#chatbox").css({right: "20px", bottom: "0px", left: "", top: ""});
}
self.scrollDown();
}
});
});
$("#chaticon").hide();
$("#chatbox").show();
chatMentions = 0;
document.title = title;
},
@ -90,10 +57,8 @@ var chat = (function()
hide: function ()
{
$("#chatcounter").text("0");
$("#chatbox").hide("slide", { direction: "down" }, sDuration, function()
{
$("#chaticon").show("slide", { direction: "down" }, hDuration);
});
$("#chaticon").show();
$("#chatbox").hide();
},
scrollDown: function()
{
@ -156,15 +121,13 @@ var chat = (function()
if (chatMentions == 0){
title = document.title;
}
$('#chatthrob').html("<b>"+authorName+"</b>" + ": " + text);
$('#chatthrob').effect("pulsate", {times:1,mode:"hide"},4000);
$('#chatthrob').html("<b>"+authorName+"</b>" + ": " + text).show().delay(4000).hide(400);
chatMentions++;
document.title = "("+chatMentions+") " + title;
}
else
{
$('#chatthrob').html("<b>"+authorName+"</b>" + ": " + text);
$('#chatthrob').effect("pulsate", {times:1,mode:"hide"},2000);
$('#chatthrob').html("<b>"+authorName+"</b>" + ": " + text).show().delay(2000).hide(400);
}
}