浏览代码

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

master
The Dod 22 小时前
父节点
当前提交
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
     }

正在加载...
取消
保存