Advertisement
AEAEAEAEarray

tag

Sep 10th, 2021
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let me = MPP.client.getOwnParticipant();
  2. var hasOtherDiv = false;
  3. var nameDiv = document.createElement("div");
  4. var tagText = typeof me.tag === 'object' ? me.tag.text : me.tag;
  5. if (tagText === 'Æ') nameDiv.title = 'This player is an Anonydiamond.';
  6. hasOtherDiv = true;
  7.                 var tagDiv = document.createElement("div");
  8.                 tagDiv.className = "Æ";
  9.                 tagDiv.textContent = "Æ";
  10.                 tagDiv.style.backgroundColor = 'FDD700';
  11.                 tagDiv.id = me.id;
  12.                 me.nameDiv.appendChild(tagDiv);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement