Visually highlight highlights

with-route-provider
Lorenz H-S 12 years ago
parent 887092eb4b
commit 2cf47c6161
  1. 5
      css/glowingbear.css
  2. 6
      js/models.js

@ -311,3 +311,8 @@ li.notification {
img.embed { img.embed {
max-height: 300px; max-height: 300px;
} }
.highlight {
color: yellow;
font-weight: bold;
}

@ -187,6 +187,12 @@ models.service('models', ['$rootScope', '$filter', function($rootScope, $filter)
var content = weeChat.Protocol.rawText2Rich(message['message']); var content = weeChat.Protocol.rawText2Rich(message['message']);
addClasses(content); addClasses(content);
if (highlight) {
prefix.forEach(function(textEl) {
textEl.classes.push('highlight');
});
}
var rtext = ""; var rtext = "";
if(content[0] != undefined) { if(content[0] != undefined) {
rtext = content[0]['text']; rtext = content[0]['text'];

Loading…
Cancel
Save