ep_cursortrace
Advanced tools
Comparing version 3.0.4 to 3.0.5
{ | ||
"name": "ep_cursortrace", | ||
"description": "Show cursor/caret movements of other users in real time", | ||
"version": "3.0.4", | ||
"version": "3.0.5", | ||
"author": "RedHog (Egil Moeller) <egil.moller@freecode.no>", | ||
@@ -6,0 +6,0 @@ "repository":"git@github.com:redhog/ep_cursortrace.git", |
@@ -109,5 +109,5 @@ var initiated = false; | ||
var authorName = decodeURI(escape(context.payload.authorName)); | ||
var authorName = context.payload.authorName; | ||
if(authorName == "null"){ | ||
var authorName = "☹" // If the users username isn't set then display a smiley face | ||
var authorName = "😊" // If the users username isn't set then display a smiley face | ||
} | ||
@@ -237,3 +237,4 @@ var y = context.payload.locationY + 1; // +1 as Etherpad line numbers start at 1 | ||
// Create a new Div for this author | ||
var $indicator = $("<div class='caretindicator "+ location+ " caret-"+authorClass+"' style='height:16px;left:"+left+"px;top:"+top +"px;background-color:"+color+"' title="+authorName+"><p class='stickp "+location+"'></p></div>"); | ||
var $indicator = $("<div class='caretindicator "+ location+ " caret-"+authorClass+"' style='height:16px;left:"+left+"px;top:"+top +"px;background-color:"+color+"'><p class='stickp "+location+"'></p></div>"); | ||
$indicator.attr("title", authorName); | ||
$indicator.find("p").text(authorName); | ||
@@ -240,0 +241,0 @@ $(outBody).append($indicator); |
18759
453