<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<div class="classchat">
<div class="chatWindow" data-player-id="Johnny Richael">
<div class="chatTopBar">
<span>Johnny Richael</span>
<button onclick="if(!$(this).parent().parent().hasClass('minimized')){ $(this).html('□'); $(this).parent().parent().addClass('minimized'); } else { $(this).html('-'); $(this).parent().parent().removeClass('minimized'); }">-</button><button onclick="$(this).parent().parent().remove();">x</button>
</div>
<div class="chatConversation">
<!-- conversation here -->
<div class="chatFrom">
Hi Michael, can you tell me how to find the last coin?
</div>
<div class="chatTo">
Sure Johnny, it is at the end of the rainbow.
</div>
<div class="chatFrom">
Hi Michael, can you tell me how to find the last coin?
</div>
<div class="chatTo">
Sure Johnny, it is at the end of the rainbow.
</div>
<div class="chatFrom">
Hi Michael, can you tell me how to find the last coin?
</div>
<div class="chatTo">
Sure Johnny, it is at the end of the rainbow.
</div>
<div class="chatFrom">
Hi Michael, can you tell me how to find the last coin?
</div>
<div class="chatTo">
Sure Johnny, it is at the end of the rainbow.
</div>
</div>
<form class="chatBar" onsubmit="sockets.chatter('playerid',$(this).find(\'.input\').text()); $(this).find(\'.input\').html(''); return false;">
<div class="input" contenteditable="true"></div><button>Send</button>
</form>
</div>
</div>