File: element-information.js

package info (click to toggle)
webdeveloper 1.2.5%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,364 kB
  • ctags: 1,608
  • sloc: makefile: 10
file content (22 lines) | stat: -rw-r--r-- 747 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
var WebDeveloper = WebDeveloper || {};

WebDeveloper.Dashboard = WebDeveloper.Dashboard || {};

// Initializes the page
WebDeveloper.Dashboard.initialize = function(elementInformation, 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(elementInformation);

    WebDeveloper.Dashboard.adjustBreadcrumb();
    WebDeveloper.Generated.resizeAncestors(true);
    WebDeveloper.Generated.initializeSyntaxHighlight(theme);

    // Fades in the new content
    content.hide().css("visibility", "visible").fadeIn(WebDeveloper.Generated.animationDuration);
  });
};