projects
/
xynt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updated some notes
[xynt.git]
/
xynt-link.js
diff --git
a/xynt-link.js
b/xynt-link.js
index
da15cbe
..
12ae9c1
100644
(file)
--- a/
xynt-link.js
+++ b/
xynt-link.js
@@
-1,12
+1,17
@@
-function tasks_link(
o,
anc, a, b, type) {
+function tasks_link(anc, a, b, type) {
var cur;
var cur;
- this.o = o;
this.anc = anc;
this.anc = anc;
+ this.o = document.createElement("div");
+ this.o.style.top = "0px";
+ this.o.style.left = "0px";
+ this.o.style.position = "absolute";
+ this.o.style.visibility = "hidden";
this.beg = document.createElement("div");
this.end = document.createElement("div");
this.arr = document.createElement("img");
this.arr.style.position = "absolute";
this.beg = document.createElement("div");
this.end = document.createElement("div");
this.arr = document.createElement("img");
this.arr.style.position = "absolute";
- o.appendChild(this.arr);
+ this.o.appendChild(this.arr);
+ this.anc.appendChild(this.o);
for (var i = 0 ; i < 2 ; i++) {
cur = i == 0 ? this.beg : this.end;
cur.style.width = '5px';
for (var i = 0 ; i < 2 ; i++) {
cur = i == 0 ? this.beg : this.end;
cur.style.width = '5px';
@@
-15,7
+20,7
@@
function tasks_link(o, anc, a, b, type) {
cur.style.visibility = 'inherit';
cur.style.zIndex = 20;
cur.style.position = 'absolute';
cur.style.visibility = 'inherit';
cur.style.zIndex = 20;
cur.style.position = 'absolute';
- o.appendChild(cur);
+
this.
o.appendChild(cur);
// alert("gugu");
}
// alert("gugu");
}
@@
-33,7
+38,7
@@
function tasks_link(o, anc, a, b, type) {
cur = (i == 0 ? a : b);
cur.connected[cur.connected.length++] = this;
for( ; cur.parentNode != null && cur.parentNode != anc ; cur = cur.parentNode) {
cur = (i == 0 ? a : b);
cur.connected[cur.connected.length++] = this;
for( ; cur.parentNode != null && cur.parentNode != anc ; cur = cur.parentNode) {
- cur.
parentNode.connected[cur.parentNode.connected.length++] = this
;
+ cur.
connect(this)
;
}
}
this.update()
}
}
this.update()