PageSourceSearch

https://www.rockchurch.com/_resources/addons/LiveStream/js/live-stream.js

js rockchurch.com collected 2026-10-01 12:40:52 UTC 1,492 bytes, 54 lines download raw bytes

1
2// var isLive = 0;
3
4var _second = 1000;
5var _minute = _second * 60;
6var _hour = _minute * 60;
7var _day = _hour * 24;
8var timer;
9
10function showRemaining() {
11  
12  var countdownTop = document.getElementById('countdownHeader'),
13      countdownPage = document.getElementById('countdownPage'),
14      nextStreamSeconds = nextStreamTime * _second,
15      
16      now = luxon.DateTime.local().setZone('America/Los_Angeles'),
17      end = luxon.DateTime.fromMillis(nextStreamSeconds).setZone('America/Los_Angeles'),
18
19      distance = end - now;
20
21  var days = Math.floor(distance / _day),
22      hours = Math.floor((distance % _day) / _hour),
23      minutes = Math.floor((distance % _hour) / _minute),
24      seconds = Math.floor((distance % _minute) / _second);
25
26      // console.log( days );
27
28  var full_days = (days > 0) ? `${days}d` : '',
29      full_hours = `${hours}h`,
30      full_minutes = `${minutes}m`,
31      full_seconds = `${seconds}s`;
32
33      // console.log( full_days );
34  
35
36    if (countdownTop) {
37        if ( now < end ) {
38            countdownTop.innerHTML = `${full_days} ${full_hours} ${full_minutes} ${full_seconds}`;
39        } else {
40            countdownTop.innerHTML = `0d 0h 0m 0s`;
41        }
42    }
43
44    if (countdownPage) {
45        if ( now < end ) {
46            countdownPage.innerHTML = `${full_days} ${full_hours} ${full_minutes} ${full_seconds}`;
47        } else {
48            countdownTop.innerHTML = `0d 0h 0m 0s`;
49        }
50    }
51  
52}
53
54timer = setInterval(showRemaining, 1000);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.