add some alerts
This commit is contained in:
parent
355176cee8
commit
e4004f0f85
|
@ -47,7 +47,7 @@
|
|||
alert(xmlhttp.responseText); */
|
||||
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
|
||||
var seaonobj = YAML.parse(xmlhttp.responseText);
|
||||
alert(seaonobj.time.alloc);
|
||||
alert(seaonobj.time.alloc.PSMD);
|
||||
var statobj = new Object();
|
||||
statobj.total = { alloc: 0, sold: 0, hold: 0, todo: 0 };
|
||||
for (var task in seasonobj.time.alloc) {
|
||||
|
@ -81,7 +81,7 @@
|
|||
statobj[task].todo = this.todosum(seasonobj.todo[task]);
|
||||
statobj.total.todo = statobj.total.todo + statobj[task].todo;
|
||||
}
|
||||
|
||||
alert(YAML.dump(statobj));
|
||||
const tbl = document.createElement("table");
|
||||
const tblBody = document.createElement("tbody");
|
||||
const row = document.createElement("tr");
|
||||
|
|
Loading…
Reference in New Issue