";
return output;
}
//
function note_refresh_new() {
let objNotes = document.querySelectorAll("note");
let arrSentInfo = new Array();
for (const iterator of objNotes) {
let id = iterator.id;
if (id == null || id == "") {
id = com_guid();
iterator.id = id;
let info = iterator.getAttributeNode("info").value;
if (info && info != "") {
arrSentInfo.push({ id: id, data: info });
}
}
{
let setting = new Object();
setting.lang = "";
setting.channal = _channal;
$.post(
"../term/note.php",
{
setting: JSON.stringify(setting),
data: JSON.stringify(arrSentInfo),
},
function (data, status) {
if (status == "success") {
try {
let arrData = JSON.parse(data);
for (const iterator of arrData) {
let id = iterator.id;
let strHtml = note_json_html(iterator);
$("#" + id).html(strHtml);
}
note_ref_init();
term_get_dict();
note_channal_list();
} catch (e) {
console.error(e);
}
}
}
);
}
}
}
function note_channal_list() {
let objNotes = document.querySelectorAll("note");
let arrSentInfo = new Array();
for (const iterator of objNotes) {
{
let info = iterator.getAttributeNode("info").value;
if (info && info != "") {
arrSentInfo.push({ id: "", data: info });
}
}
{
$.post(
"../term/channal_list.php",
{
setting: "",
data: JSON.stringify(arrSentInfo),
},
function (data, status) {
if (status == "success") {
try {
let arrData = JSON.parse(data);
let strHtml = "";
for (const iterator of arrData) {
strHtml = render_channal_list(iterator);
}
$("#channal_list").html(strHtml);
} catch (e) {
console.error(e);
}
}
}
);
}
}
}
function render_channal_list(channalinfo) {
let output = "";
output += "