From 1ce392d19fed4b9bb022e4a881c0c385cea2bcdc Mon Sep 17 00:00:00 2001 From: BlueRaja Date: Sun, 2 Jun 2013 18:16:45 -0500 Subject: Added fade in to spoilers --- pages/chat.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pages/chat.php b/pages/chat.php index 0c88990..4a14a8d 100644 --- a/pages/chat.php +++ b/pages/chat.php @@ -260,7 +260,7 @@ function sendChat() { } function spoil(obj) { - $(obj).removeClass("spoiler"); + $(obj).removeClass("spoiler").hide().fadeIn(600); $(obj).children().removeAttr('onclick'); } @@ -289,7 +289,6 @@ function doNothingWhenClickingLinks() return false; } - //Code for checking if the window is currently visible or not //Adapted from http://stackoverflow.com/a/1060034/238419 $(function() { -- cgit v1.2.3