Skip to content

Commit

Permalink
phone, phone -low and megaphone added
Browse files Browse the repository at this point in the history
  • Loading branch information
ulasbayraktar committed Jun 20, 2024
1 parent a73c3ab commit c2d8317
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/chatlog-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,16 @@ $(document).ready(function() {
formattedText.toLowerCase().indexOf("*") >= 0 && $(this).addClass("me");

formattedText.toLowerCase().indexOf(" says:") >= 0 && $(this).addClass("white");
formattedText.toLowerCase().indexOf(" says [low]:") >= 0 && $(this).addClass("grey");
formattedText.toLowerCase().indexOf(" [low]:") >= 0 && $(this).addClass("grey");

formattedText.toLowerCase().indexOf(", $") >= 0 && $(this).addClass("grey");
formattedText.toLowerCase().indexOf("you have received $") >= 0 && $(this).addClass("grey");

formattedText.toLowerCase().indexOf(" whispers:") >= 0 && $(this).addClass("whisper");
formattedText.toLowerCase().indexOf(" whispers:") >= 0 && formattedText.toLowerCase().indexOf("(car)") >= 0 && $(this).addClass("carwhisper");
formattedText.toLowerCase().indexOf(" (cellphone)") >= 0 && $(this).addClass("whisper");
formattedText.toLowerCase().indexOf(" (phone)") >= 0 && $(this).addClass("whisper");
formattedText.toLowerCase().indexOf(":o<") >= 0 && $(this).addClass("whisper");
formattedText.toLowerCase().indexOf(" (phone - low)") >= 0 && $(this).addClass("whisper");

$(this).html(formattedText);

Expand Down

0 comments on commit c2d8317

Please sign in to comment.