(增加气泡内容,删除项目描述。) |
m (解决JavaScript不能使用逻辑与的问题。) |
||
Line 393: | Line 393: | ||
let chatWindow; | let chatWindow; | ||
document.onscroll=function () { | document.onscroll=function () { | ||
− | if(document.getElementById("chat")==null | + | if(document.getElementById("chat")==null) |
− | + | if(isShow(document.getElementById("chatBubbles"))) | |
− | + | { | |
− | + | let chat=document.createElement("div"); | |
− | + | chat.setAttribute("id","chat"); | |
− | + | document.getElementById("chatBubbles").appendChild(chat); | |
− | + | chatWindow = new Bubbles(document.getElementById("chat"), "chatWindow"); | |
− | + | chatWindow.talk(conversation); | |
+ | } | ||
}; | }; | ||
</script> | </script> |
Revision as of 13:13, 18 September 2018