-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdebug.js
More file actions
31 lines (26 loc) · 761 Bytes
/
debug.js
File metadata and controls
31 lines (26 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
(function()
{
var lang = null;
if (typeof ($mx_language) === "undefined")
{
lang = (navigator.language || navigator.userLanguage).toString().toLowerCase();
}
else
{
lang = $mx_language;
}
var scripts = document.getElementsByTagName("script");
var src = scripts[scripts.length - 1].src;
var srcPath = src.substr(0, src.lastIndexOf("/mx/") + 1);
function include(p_src)
{
document.write("<script type='text/javascript' src='" + srcPath + p_src + "'></script>");
}
if (typeof (jQuery) === "undefined")
{
include("lib/jquery/jquery.js");
}
include("mx/javascript-extensions.js");
include("mx/framework-base.js");
include("mx/framework-core.js");
})();