diff --git a/view/atlasmaker/src/atlasmaker-paint.js b/view/atlasmaker/src/atlasmaker-paint.js
index 5c9818ea004ebb0c17c80c79ecba98f866a30503..9ebd5db194c6d7d750c08ec1c21a3fa911fb1c2e 100644
--- a/view/atlasmaker/src/atlasmaker-paint.js
+++ b/view/atlasmaker/src/atlasmaker-paint.js
@@ -1,6 +1,8 @@
/* global AtlasMakerWidget $ */
/*! AtlasMaker: Painting commands */
+import showIcon from "./svg/show.svg";
+
/**
* @page AtlasMaker: Painting commands
*/
@@ -28,13 +30,15 @@ export var AtlasMakerPaint = {
break;
case 'm':
if(!usr.pointer) {
- usr.pointer = $([
- '
',
- '

',
- ((usr.username === 'Anonymous')?u:usr.username),
- '
'
- ].join(''));
- $("#resizable").append(usr.pointer);
+ const div = document.createElement("div");
+ const icon = new Image();
+ icon.src = showIcon;
+ icon.style.cssText = "height:100%";
+ div.appendChild(icon);
+ div.style.cssText = "display:inline-block;height:20px;margin-left:-10px;margin-top:-10px;position:absolute;color:white";
+ div.innerHTML += ((usr.username === 'Anonymous')?u:usr.username);
+ usr.pointer = $(div);
+ $("#resizable").append(usr.pointer); // document.getElementById("resizable").appendChild(div);
}
usr.pointer.css({left:x*$("#resizable").width()/me.brain_W, top:y*$("#resizable").height()/me.brain_H});
break;
@@ -80,13 +84,23 @@ export var AtlasMakerPaint = {
}
} else {
if(!usr.pointer) {
- usr.pointer = $([
- '',
- '

',
- ((usr.username === 'Anonymous')?u:usr.username),
- '
'
- ].join(''));
- $("#resizable").append(usr.pointer);
+ const div = document.createElement("div");
+ const icon = new Image();
+ icon.src = showIcon;
+ icon.style.cssText = "height:100%";
+ div.appendChild(icon);
+ div.style.cssText = "display:inline-block;height:20px;margin-left:-10px;margin-top:-10px;position:absolute;color:white";
+ div.innerHTML += ((usr.username === 'Anonymous')?u:usr.username);
+ usr.pointer = $(div);
+ $("#resizable").append(usr.pointer); // document.getElementById("resizable").appendChild(div);
+
+ // usr.pointer = $([
+ // '',
+ // '

',
+ // ((usr.username === 'Anonymous')?u:usr.username),
+ // '
'
+ // ].join(''));
+ // $("#resizable").append(usr.pointer);
}
usr.pointer.css({left:x*$("#resizable").width()/me.brain_W, top:y*$("#resizable").height()/me.brain_H});
}
diff --git a/view/atlasmaker/src/html/toolsLight.html b/view/atlasmaker/src/html/toolsLight.html
index e5405e588e65d376e10110b6e71f05e211508e9f..c690033ae311deb7b786483421099b24beca16c5 100644
--- a/view/atlasmaker/src/html/toolsLight.html
+++ b/view/atlasmaker/src/html/toolsLight.html
@@ -1,7 +1,7 @@