fix: duplicate _a function removed, markdown rendering restored

This commit is contained in:
Ubuntu
2026-06-14 13:31:59 +08:00
parent 1ec5bc5c5d
commit ed544bea7a

4
app.py
View File

@ -275,10 +275,6 @@ function _md(s){
s=s.replace(/\n/g,'<br>');
return '<p>'+s+'</p>';
}
function _a(r,t){var d=document.createElement("div");d.className="msg "+r;
var b=document.createElement("div");b.className="bb";b.textContent=t;
d.appendChild(b);document.getElementById("cht").appendChild(d);
document.getElementById("cht").scrollTop=document.getElementById("cht").scrollHeight;}
function _e(s){return s.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");}
function _lc(){var x=new XMLHttpRequest();x.open("GET","/convs",true);
x.onload=function(){if(x.status!=200)return;var d=JSON.parse(x.responseText),h="";