From f031cab0fd7db4ad11ea5b448fa2b4ecdf20ada7 Mon Sep 17 00:00:00 2001 From: tim b Date: Fri, 13 Aug 2010 12:33:53 -0700 Subject: initial fullscreen image thing --- static/js/fullscreen.js | 62 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 static/js/fullscreen.js (limited to 'static/js/fullscreen.js') diff --git a/static/js/fullscreen.js b/static/js/fullscreen.js new file mode 100644 index 0000000..78ef904 --- /dev/null +++ b/static/js/fullscreen.js @@ -0,0 +1,62 @@ +function initFullscreen(){ + Room = "dumpfm"; + refresh() + ImageCache = [] + SeenImages = {} +} + +function scanMessagesForImages(messages){ + for(var m=0; m Date: Fri, 13 Aug 2010 12:44:10 -0700 Subject: try to fix busted gifs --- static/js/fullscreen.js | 2 +- template/fullscreen.st | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'static/js/fullscreen.js') diff --git a/static/js/fullscreen.js b/static/js/fullscreen.js index 78ef904..2de2d76 100644 --- a/static/js/fullscreen.js +++ b/static/js/fullscreen.js @@ -17,7 +17,7 @@ function scanMessagesForImages(messages){ } function displayImage(){ - $("#big-image").attr("src", this.src) + $("#big-image").html('') } function refresh() { diff --git a/template/fullscreen.st b/template/fullscreen.st index ccda851..906cbe6 100644 --- a/template/fullscreen.st +++ b/template/fullscreen.st @@ -6,11 +6,11 @@ - +