古诗词小尾巴

let allin = "衣带渐宽终不悔,为伊消得人憔悴"; ChatRoom.send = function (needwb) { var e; var xhr = new XMLHttpRequest(); xhr.open('get', 'https://v1.jinrishici.com/all.txt'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { allin = xhr.responseText; } }; xhr.send(); ChatRoom.isSend || (ChatRoom.isSend = !0, e = ChatRoom.editor.getValue(), $.ajax({ url: Label.servePath + "/chat-room/send", type: "POST", cache: !1, data: JSON.stringify({ content: needwb == 0 || e.trim().startsWith('小冰') || e.trim().startsWith('点歌') ? e : e + '\n\n\n> '+ allin +'' }), beforeSend: function() { $(".form button.red").attr("disabled", "disabled").css("opacity", "0.3") }, success: function(e) { 0 === e.code ? ($("#chatContentTip").removeClass("error succ").html(""), ChatRoom.editor.setValue("")) : $("#chatContentTip").addClass("error").html("<ul><li>" + e.msg + "</li></ul>").html("<img src='https://v1.jinrishici.com/all.svg'>") }, error: function(e) { $("#chatContentTip").addClass("error").html("<ul><li>" + e.statusText + "</li></ul>") }, complete: function(e, t) { ChatRoom.isSend = !1, $(".form button.red").removeAttr("disabled").css("opacity", "1") } })) }; ChatRoom.repeat = function (e) { let t = ""; $.ajax({ url: Label.servePath + "/cr/raw/" + e, method: "get", async: !1, success: function(e) { t = e.replace(/(<!--).*/g, "") } }), ChatRoom.editor.setValue(t), ChatRoom.send(0), $(window).scrollTop(0) }; ChatRoom.plusOne = function () { ChatRoom.editor.setValue(Label.latestMessage), ChatRoom.send(0) };