1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
var WebDeveloper = WebDeveloper || {};
WebDeveloper.Dashboard = WebDeveloper.Dashboard || {};
// Initializes the page
WebDeveloper.Dashboard.initialize = function(styleInformation, theme)
{
var content = $("#content");
// Fades out the previous content before updating
content.fadeOut(WebDeveloper.Generated.animationDuration, function()
{
content.css("visibility", "hidden").show().empty().get(0).appendChild(styleInformation);
WebDeveloper.Dashboard.adjustBreadcrumb();
WebDeveloper.Generated.resizeAncestors(true);
WebDeveloper.Generated.initializeCommonElements();
WebDeveloper.Generated.initializeSyntaxHighlight(theme);
// Fades in the new content
content.hide().css("visibility", "visible").fadeIn(WebDeveloper.Generated.animationDuration);
});
};
|