ep_cursortrace
Advanced tools
Comparing version
{ | ||
"name": "ep_cursortrace", | ||
"description": "Show cursor/caret movements of other users in real time", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"author": "RedHog (Egil Moeller) <egil.moller@freecode.no>", | ||
@@ -12,3 +12,3 @@ "contributors": [{ | ||
"dependencies": {}, | ||
"engines": { "node": ">= 0.4.1 < 0.7.0" } | ||
"engines": { "node": "*" } | ||
} |
@@ -17,2 +17,3 @@ var initiated = false; | ||
{ | ||
if(!author) return; | ||
return "ep_cursortrace-" + author.replace(/[^a-y0-9]/g, function(c) | ||
@@ -174,2 +175,9 @@ { | ||
// Also add any margin on the div; | ||
var divMargin = $(div).css("margin-left") | ||
if(divMargin){ | ||
divMargin = divMargin.replace("px", ""); | ||
left = left + parseInt(divMargin); | ||
} | ||
// Remove the element | ||
@@ -176,0 +184,0 @@ $('iframe[name="ace_outer"]').contents().find('#outerdocbody').contents().remove("#" + authorWorker); |
16962
2.93%11
10%423
1.68%