From 407335cd834bb84038a404850ca17b8f83ce2645 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 9 Jul 2013 09:06:00 +0000 Subject: [PATCH] update 0xDB home screen --- static/js/pandora/home.0xdb.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/static/js/pandora/home.0xdb.js b/static/js/pandora/home.0xdb.js index 92dc8746..f5de1c91 100644 --- a/static/js/pandora/home.0xdb.js +++ b/static/js/pandora/home.0xdb.js @@ -14,6 +14,7 @@ pandora.ui.home = function() { zIndex: 1001 }), $reflectionImage = $('') + .addClass('logo') .attr({src: '/static/png/logo.png'}) .css({ position: 'absolute', @@ -30,7 +31,7 @@ pandora.ui.home = function() { }) .appendTo(that), $reflectionGradient = $('
') - .addClass('OxReflection') + .addClass('OxReflection logo') .css({ position: 'absolute', left: 0, @@ -44,6 +45,7 @@ pandora.ui.home = function() { }) .appendTo(that), $logo = $('') + .addClass('logo') .attr({ id: 'logo', src: '/static/png/logo.png' @@ -274,10 +276,16 @@ pandora.ui.home = function() { return that; }; - that.showScreen = function() { + that.showScreen = function(callback) { + var count = 0, $elements = that.find(':not(.logo)'); $logo.css({width: '320px'}); - that.find(':not(#logo)').css({opacity: 1}); that.css({opacity: 1}).appendTo(Ox.UI.$body); + that.find('.logo').css({opacity: 1}); + $elements.animate({opacity: 1}, 500, function() { + if (callback && ++count == $elements.length) { + callback(); + } + }); $findInput.focusInput(true); return that; };