projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tickbut: add classes
[brisk.git]
/
web
/
ticker.js
diff --git
a/web/ticker.js
b/web/ticker.js
index
e4362ff
..
c2c8808
100644
(file)
--- a/
web/ticker.js
+++ b/
web/ticker.js
@@
-49,20
+49,26
@@
train.prototype = {
box: null,
notebox: null,
width: 0,
box: null,
notebox: null,
width: 0,
- deltat:
10
0,
- deltas:
5
,
+ deltat:
25
0,
+ deltas:
12
,
xend: 0,
timout: null,
clickable: true,
show: function()
{
xend: 0,
timout: null,
clickable: true,
show: function()
{
+ $('tickbut').style.visibility = "hidden";
+ $('tickbut').style.width = "0px";
+
this.clickable = true;
this.box.style.visibility = "visible";
},
hide: function()
{
this.clickable = true;
this.box.style.visibility = "visible";
},
hide: function()
{
+ $('tickbut').style.visibility = "visible";
+ $('tickbut').style.width = "20px";
+
this.clickable = false;
for (cur = this.first ; cur != null ; cur = cur.next) {
if (cur.notebox != null) {
this.clickable = false;
for (cur = this.first ; cur != null ; cur = cur.next) {
if (cur.notebox != null) {
@@
-197,7
+203,7
@@
train.prototype = {
wag.box.innerHTML = "";
wag.shut_step = 2;
}
wag.box.innerHTML = "";
wag.shut_step = 2;
}
- curw = wag.widthbox_get() -
4
;
+ curw = wag.widthbox_get() -
10
;
wag.w = curw + 2; // 2 for border pixels
if (curw <= 0) {
obj.box.removeChild(wag.box);
wag.w = curw + 2; // 2 for border pixels
if (curw <= 0) {
obj.box.removeChild(wag.box);
@@
-211,7
+217,7
@@
train.prototype = {
}
}
this.redraw();
}
}
this.redraw();
- setTimeout(function(){ arguments[0][0].shut_wagon(arguments[0]); },
10
0, [ obj, wag ]);
+ setTimeout(function(){ arguments[0][0].shut_wagon(arguments[0]); },
25
0, [ obj, wag ]);
},
redraw: function()
},
redraw: function()