Browse Source

Don't start marquee while hidden (d'Oh)

master
The Dod 1 month ago
parent
commit
9d1fee1f6e
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      templates/index.html

+ 1
- 1
templates/index.html View File

35
   function setTicker(ticker_text) {
35
   function setTicker(ticker_text) {
36
     $("#the-ticker").marquee("destroy");
36
     $("#the-ticker").marquee("destroy");
37
     if (ticker_text) {
37
     if (ticker_text) {
38
+      $("#ticker-wrapper").show();
38
       $("#ticker-text").text(ticker_text);
39
       $("#ticker-text").text(ticker_text);
39
       $("#the-ticker").marquee({
40
       $("#the-ticker").marquee({
40
         "direction": "right",
41
         "direction": "right",
41
         "duplicated": true,
42
         "duplicated": true,
42
         "speed": 115
43
         "speed": 115
43
       });
44
       });
44
-      $("#ticker-wrapper").show();
45
     } else {
45
     } else {
46
         $("#ticker-wrapper").hide();
46
         $("#ticker-wrapper").hide();
47
     }
47
     }

Loading…
Cancel
Save