finish env template
This commit is contained in:
17
SuperScriptViewer/static/env.css
Normal file
17
SuperScriptViewer/static/env.css
Normal file
@ -0,0 +1,17 @@
|
||||
table.envOutput {
|
||||
border: 1px solid black;
|
||||
}
|
||||
|
||||
table.envOutput tr:nth-child(odd) {
|
||||
background:gray;
|
||||
}
|
||||
|
||||
table.envOutput tr:nth-child(2n) {
|
||||
background:white;
|
||||
}
|
||||
|
||||
table.envOutput tr:nth-child(1) td {
|
||||
background: blue;
|
||||
color: white;
|
||||
border: 1px solid black;
|
||||
}
|
3
SuperScriptViewer/static/env.js
Normal file
3
SuperScriptViewer/static/env.js
Normal file
@ -0,0 +1,3 @@
|
||||
function doQuery(fieldIndex, queryTag) {
|
||||
;
|
||||
}
|
@ -117,35 +117,3 @@ function queryInfo(obj) {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function sidePanelSwitcher(target) {
|
||||
// 0->property; 1->display; 2->tools
|
||||
//disable all
|
||||
$("#sidepanel-properties").hide();
|
||||
$("#sidepanel-display").hide();
|
||||
$("#sidepanel-tools").hide();
|
||||
$(".tabitem").each(function () {
|
||||
$(this).removeClass("tabitem-activated").addClass("tabitem-deactivated");
|
||||
});
|
||||
|
||||
switch (target) {
|
||||
case 0:
|
||||
$("#sidepanel-properties").show();
|
||||
$(".tabitem1").each(function () {
|
||||
$(this).removeClass("tabitem-deactivated").addClass("tabitem-activated");
|
||||
});
|
||||
break;
|
||||
case 1:
|
||||
$("#sidepanel-display").show();
|
||||
$(".tabitem2").each(function () {
|
||||
$(this).removeClass("tabitem-deactivated").addClass("tabitem-activated");
|
||||
});
|
||||
break;
|
||||
case 2:
|
||||
$("#sidepanel-tools").show();
|
||||
$(".tabitem3").each(function () {
|
||||
$(this).removeClass("tabitem-deactivated").addClass("tabitem-activated");
|
||||
});
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user