').insertAfter(rightBar.children()[3]);
//join in a room
let joinRoomObserver = new MutationObserver(function(mutations) {
if(mutations[0].target.textContent.includes('Word guessing')){
Status();
AutoStar();
WordHints();
}else{
Token();
Status();
}
joinRoomObserver.disconnect();
});
joinRoomObserver.observe($('#infotext')[0], {childList: true });
}
//Token
function Token(){
let tokens = [
{val : 'random', text: 'Random'},
{val : 'fa-thumbs-up', text: 'Like'},
{val : 'fa-heart', text: 'Heart'},
{val : 'fa-paint-brush', text: 'Paint Brush'},
{val : 'fa-cocktail', text: 'Cocktail'},
{val : 'fa-hand-peace', text: 'Peace'},
{val : 'fa-feather-alt', text: 'Feather'},
{val : 'fa-trophy', text: 'Trophy'},
{val : 'fa-mug-hot', text: 'Coffee'},
{val : 'fa-gift', text: 'Gift'}
];
$("#assistPanel").append('
');
let tokenSel = $('