|
@@ -18,9 +18,11 @@
|
18
|
18
|
</div>
|
19
|
19
|
<div class="row">
|
20
|
20
|
<div class="col12">
|
21
|
|
- <div id="the-ticker" class="marquee alert alert-warning fw-bolder w100 opacity-50 text-nowrap" role="alert" style="direction:rtl; font-size:5rem; position:fixed; left:0; bottom:2rem; z-index:23">
|
22
|
|
- <h2 id="ticker-text" class="fw-bolder bg-danger text-white my-2 p-4">
|
23
|
|
- </h2>
|
|
21
|
+ <div id="ticker-wrapper" class="alert alert-danger opacity-75 w-100" role="alert" style="position:fixed; left:0; bottom:3rem; z-index:23">
|
|
22
|
+ <div id="the-ticker" class="w-100 text-nowrap">
|
|
23
|
+ <h1 id="ticker-text" class="fw-bolder text-white py-2" style="direction:rtl; font-size:5rem;">
|
|
24
|
+ </h1>
|
|
25
|
+ </div>
|
24
|
26
|
</div>
|
25
|
27
|
</div>
|
26
|
28
|
</div>
|
|
@@ -31,17 +33,17 @@
|
31
|
33
|
<script src="/static/bootstrap/js/bootstrap.bundle.min.js"></script>
|
32
|
34
|
<script>
|
33
|
35
|
function setTicker(ticker_text) {
|
34
|
|
- $(".marquee").marquee("destroy");
|
|
36
|
+ $("#the-ticker").marquee("destroy");
|
35
|
37
|
if (ticker_text) {
|
36
|
|
- $(".marquee").show();
|
37
|
|
- $(".marquee").text(ticker_text);
|
38
|
|
- $(".marquee").marquee({
|
|
38
|
+ $("#ticker-text").text(ticker_text);
|
|
39
|
+ $("#the-ticker").marquee({
|
39
|
40
|
"direction": "right",
|
40
|
41
|
"duplicated": true,
|
41
|
42
|
"speed": 115
|
42
|
43
|
});
|
|
44
|
+ $("#ticker-wrapper").show();
|
43
|
45
|
} else {
|
44
|
|
- $(".marquee").hide();
|
|
46
|
+ $("#ticker-wrapper").hide();
|
45
|
47
|
}
|
46
|
48
|
}
|
47
|
49
|
window.item_index = 0;
|
|
@@ -81,7 +83,7 @@
|
81
|
83
|
document.getElementById("the-video").style.filter=`blur(${vidblur}px)`;
|
82
|
84
|
document.getElementById("the-ticker").style.filter=`blur(${tickerblur}px)`;
|
83
|
85
|
}
|
84
|
|
- window.update_interval = setInterval(updateDistance, 200);
|
|
86
|
+ window.update_interval = setInterval(updateDistance, 300);
|
85
|
87
|
</script>
|
86
|
88
|
</body>
|
87
|
89
|
</html>
|