TheDesk Usamin (18.3.1)

This commit is contained in:
Cutls
2019-04-22 23:16:57 +09:00
parent 4fb37525d5
commit 823fae5eac
35 changed files with 161 additions and 131 deletions

View File

@@ -190,7 +190,7 @@ function verck(ver) {
}
}
if(show){
Materialize.toast(obj.Text+toot+'<span class="sml grey-text">(スライドして消去)</span>', 86400);
Materialize.toast(escapeHTML(obj.Text)+toot+'<span class="sml grey-text">(スライドして消去)</span>', 86400);
}
}
@@ -211,9 +211,6 @@ function infowebsocket(){
console.log(JSON.parse(mess.data));
var obj=JSON.parse(mess.data);
if(obj.type!="counter"){
if(obj.id*1<=localStorage.getItem("last-notice-id")){
}else{
localStorage.setItem("last-notice-id",obj.id)
var show=true;
if(obj.toot!=""){
@@ -242,9 +239,8 @@ function infowebsocket(){
}
}
if(show){
Materialize.toast(obj.text+toot+'<span class="sml grey-text">(スライドして消去)</span>', 86400);
Materialize.toast(escapeHTML(obj.Text)+toot+'<span class="sml grey-text">(スライドして消去)</span>', 86400);
}
}
}else{
$("#persons").text(obj.text);
}