diff options
author | Daniel Friesel <derf@finalrewind.org> | 2013-02-09 23:29:14 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2013-02-09 23:29:14 +0100 |
commit | 4411d419f3db93f4d805779bb092ed8bd57756c4 (patch) | |
tree | 7f6f7eaeec22da5188e79e7fb0f3cca099f7c1d9 /cgi/templates | |
parent | 6b7f19880ba5bbcc0632b457404f102c9deac462 (diff) |
Use javascript marquee by remysharp for information lines
Diffstat (limited to 'cgi/templates')
-rw-r--r-- | cgi/templates/layouts/default.html.ep | 5 | ||||
-rw-r--r-- | cgi/templates/multi.html.ep | 2 | ||||
-rw-r--r-- | cgi/templates/single.html.ep | 2 |
3 files changed, 9 insertions, 0 deletions
diff --git a/cgi/templates/layouts/default.html.ep b/cgi/templates/layouts/default.html.ep index 8d4db7c..3ab805b 100644 --- a/cgi/templates/layouts/default.html.ep +++ b/cgi/templates/layouts/default.html.ep @@ -180,6 +180,11 @@ } </style> + %= javascript 'jquery-1.9.1.min.js' + %= javascript 'marquee.js' + %= javascript begin + $(function () { $('marquee').marquee() }); + % end </head> <body> diff --git a/cgi/templates/multi.html.ep b/cgi/templates/multi.html.ep index 530de01..8201867 100644 --- a/cgi/templates/multi.html.ep +++ b/cgi/templates/multi.html.ep @@ -33,7 +33,9 @@ % if ($departure->{info}) { <div class="info"> +<marquee behaviour="scroll" scrollamount="1" direction="left"> %= $departure->{info} +</marquee> </div> % } diff --git a/cgi/templates/single.html.ep b/cgi/templates/single.html.ep index 916c5b5..413ffeb 100644 --- a/cgi/templates/single.html.ep +++ b/cgi/templates/single.html.ep @@ -26,7 +26,9 @@ </div> % if ($departure->{info}) { <div class="s_info"> +<marquee behaviour="scroll" scrollamount="1" direction="left"> %= $departure->{info} +</marquee> </div> % } </div> <!-- s_display --> |