projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move all 'src' assign to 'data-card-id' logic
[brisk.git]
/
web
/
commons.js
diff --git
a/web/commons.js
b/web/commons.js
index
8a5b0a6
..
762b600
100644
(file)
--- a/
web/commons.js
+++ b/
web/commons.js
@@
-569,7
+569,7
@@
function sleep(st, delay)
delay, st);
}
delay, st);
}
-function slowimg(img,
x1,y1,deltat,free,action,src
end) {
+function slowimg(img,
x1, y1, deltat, free, action, card_id_
end) {
this.img = img;
// this.x0 = parseInt(document.defaultView.getComputedStyle(this.img, "").getPropertyValue("left"));
this.img = img;
// this.x0 = parseInt(document.defaultView.getComputedStyle(this.img, "").getPropertyValue("left"));
@@
-582,7
+582,7
@@
function slowimg(img,x1,y1,deltat,free,action,srcend) {
this.deltat = deltat;
this.free = free;
this.action = action;
this.deltat = deltat;
this.free = free;
this.action = action;
- this.
srcend = src
end;
+ this.
card_id_end = card_id_
end;
}
slowimg.prototype = {
}
slowimg.prototype = {
@@
-602,7
+602,7
@@
slowimg.prototype = {
deltat: 40,
tout: 0,
action: null,
deltat: 40,
tout: 0,
action: null,
-
src
end: null,
+
card_id_
end: null,
setstart: function(x0,y0)
{
setstart: function(x0,y0)
{
@@
-676,8
+676,8
@@
slowimg.prototype = {
this.st.st_loc++;
this.st = null;
}
this.st.st_loc++;
this.st = null;
}
- if (this.
src
end != null) {
- this.img.s
rc = this.srcend
;
+ if (this.
card_id_
end != null) {
+ this.img.s
etAttribute('data-card-id', this.card_id_end)
;
}
}
}
}
}
}