PlottingUI.js
1.63 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//var isWinRT = (typeof Windows === "undefined") ? false : true;
{
inputLink("colorpicker/css/colorpicker.css");
inputLink("colorpicker/css/layout.css");
inputLink("jquery-easyui-1.4.4/css/easyui.css");
inputLink("zTree/css/zTreeStyle.css");
inputScript("jquery-easyui-1.4.4/jquery.min.js");
inputScript("jquery-easyui-1.4.4/jquery-ui.js");
inputScript("jquery-easyui-1.4.4/jquery.easyui.min.js");
inputScript("colorpicker/js/colorpicker.js");
inputScript("colorpicker/js/colorpickerEditor.js");
inputScript("colorpicker/js/eye.js");
inputScript("colorpicker/js/utils.js");
inputScript("colorpicker/js/layout.js");
inputScript("zTree/jquery.ztree.core.js");
inputScript("./PlotPanel.js");
inputScript("./StylePanel.js");
// inputScript("TreePanel.js");
}
function inputLink(inc){
//if (!isWinRT) {
var link = '<' + 'link rel="stylesheet" type="text/css" media="screen,projection" href="js/plotPanelControl/' + inc + '"' + '><' + '/>';
document.writeln(link);
//} else {
// var link = document.createElement("link");
// link.href = "../PlottingPanel/zTree/" + inc;
// document.getElementsByTagName("HEAD")[0].appendChild(link);
//}
}
function inputScript(inc){
//if (!isWinRT) {
var script = '<' + 'script type="text/javascript" src="js/plotPanelControl/' + inc + '"' + '><' + '/script>';
document.writeln(script);
//} else {
// var script = document.createElement("script");
// script.src = "../PlottingPanel/zTree/" + inc;
// document.getElementsByTagName("HEAD")[0].appendChild(script);
//}
}