summaryrefslogtreecommitdiff
path: root/template/default/timeline.js
diff options
context:
space:
mode:
Diffstat (limited to 'template/default/timeline.js')
-rw-r--r--template/default/timeline.js14
1 files changed, 9 insertions, 5 deletions
diff --git a/template/default/timeline.js b/template/default/timeline.js
index 4cd9e29..a4a7750 100644
--- a/template/default/timeline.js
+++ b/template/default/timeline.js
@@ -78,13 +78,17 @@ function TimeLine(_req_sec, _now_url, _px_per_min, _end_min)
{
this.table_w = this.innerWidth - 8;
}
- this.px_per_min = _px_per_min;
+// this.px_per_min = _px_per_min;
+
+ this.table_w10 = Div(this.table_w, 10);
+ my_min = this.table_w10 < 100 ? 100 : this.table_w10;
+ this.px_per_min = Div((this.table_w - my_min), _end_min);
- this.end_min = Div(this.table_w - this.name_w, this.px_per_min);
- if (this.end_min > _end_min)
- {
+// this.end_min = Div(this.table_w - this.name_w, this.px_per_min);
+// if (this.end_min > _end_min)
+// {
this.end_min = _end_min;
- }
+// }
this.end_min -= this.end_min % 30;
this.event_w = this.end_min * this.px_per_min;
this.name_w = this.table_w - this.event_w;