AINovelChat / custom.html
tori29umai's picture
Update custom.html
cee9ec6 verified
raw
history blame
448 Bytes
<script>
function adjustChatbotHeight() {
var chatbot = document.querySelector('#chatbot');
if (chatbot) {
chatbot.style.height = window.innerHeight * 0.4 + 'px';
}
}
// ページ読み込み時と画面サイズ変更時にチャットボットの高さを調整
window.addEventListener('load', adjustChatbotHeight);
window.addEventListener('resize', adjustChatbotHeight);
</script>