瀏覽代碼

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

master
The Dod 3 月之前
父節點
當前提交
9d1fee1f6e
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      templates/index.html

+ 1
- 1
templates/index.html 查看文件

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…
取消
儲存