X-Git-Url: https://mop.ddnsfree.com/gitweb/?p=brisk.git;a=blobdiff_plain;f=web%2Fcommons.js;h=762b60075926cc88c1397e9c7b161a9a0fd1a789;hp=8a5b0a66ed93cb12b4ad0d98c8482f3517ecab43;hb=85d33c91dd06d280c8e5732874381975cd33e10d;hpb=4c99758a3cc1b537be9840e2db29b61556b1f572 diff --git a/web/commons.js b/web/commons.js index 8a5b0a6..762b600 100644 --- a/web/commons.js +++ b/web/commons.js @@ -569,7 +569,7 @@ function sleep(st, delay) delay, st); } -function slowimg(img,x1,y1,deltat,free,action,srcend) { +function slowimg(img, x1, y1, deltat, free, action, card_id_end) { 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.srcend = srcend; + this.card_id_end = card_id_end; } slowimg.prototype = { @@ -602,7 +602,7 @@ slowimg.prototype = { deltat: 40, tout: 0, action: null, - srcend: null, + card_id_end: null, setstart: function(x0,y0) { @@ -676,8 +676,8 @@ slowimg.prototype = { this.st.st_loc++; this.st = null; } - if (this.srcend != null) { - this.img.src = this.srcend; + if (this.card_id_end != null) { + this.img.setAttribute('data-card-id', this.card_id_end); } } }