-
Notifications
You must be signed in to change notification settings - Fork 0
/
layout.html
89 lines (75 loc) · 3.57 KB
/
layout.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!DOCTYPE html>
<html>
<head>
<title>Layout Overlay</title>
<link rel="stylesheet" type="text/css" href="styles/main.css" />
<link rel="stylesheet" type="text/css" href="styles/layout.css" />
<script type="text/javascript" src="scripts/functions.js"></script>
<script type="text/javascript" src="scripts/numeral.min.js"></script>
<script type="text/javascript" src="scripts/countdown.min.js"></script>
</head>
<body>
<div id="container">
<div id="background"></div>
<div id="title-container">
<span id="game-prefix"></span>
<span id="game-title"></span>
</div>
<div id="stand-by-box">
<div id="stand-by-logo"></div>
<div id="stand-by-overlay"></div>
<div id="stand-by-text">
<div id="stand-by-title"></div>
<div id="stand-by-subtitle"></div>
</div>
<!-- <div id="stand-by-radio">
<img id="radio-art" src="https://radiohyrule.com/albumart/cover320/default.png" height="108" width="108" />
<div id="radio-info">
<div id="radio-label" class="label">Radio Hyrule</div>
<div id="radio-title">Loading ...</div>
<div id="radio-artist">radiohyrule.com</div>
</div>
</div> -->
</div>
<div id="host-one" class="host-box"></div>
<div id="host-two" class="host-box"></div>
<div id="host-three" class="host-box"></div>
<div id="host-four" class="host-box"></div>
<div id="info-boxes">
<div id="latest-donation-box" class="info-box active">
<span class="label">Latest Donation</span>
<div id="latest-donation">TBD</div>
</div>
<div id="next-game-box" class="info-box">
<span class="label">Next Game</span>
<div id="next-game"></div>
</div>
</div>
<iframe id="chat" src="https://streamlabs.com/widgets/chat-box/v1/7FAFB0340A48A4B6B3A6" width="0" height="0"></iframe>
<iframe id="alerts" src="https://streamlabs.com/alert-box/v3/7FAFB0340A48A4B6B3A6?tiltifydonations=1&mute=1" width="0" height="0"></iframe>
</div>
<script type="text/javascript">
var params = new URLSearchParams(window.location.search);
var customStyle = document.createElement('link');
customStyle.setAttribute('id', 'custom-css');
customStyle.setAttribute('rel', 'stylesheet');
customStyle.setAttribute('type', 'text/css');
customStyle.setAttribute('href', 'styles/layouts/' + (params.get('layout') || 'default') + '.css');
document.getElementsByTagName('head')[0].appendChild(customStyle);
if (params.has('countdown')) insertCountdown();
if (params.has('standbytitle')) document.getElementById('stand-by-title').textContent = params.get('standbytitle');
if (params.has('standbysubtitle')) document.getElementById('stand-by-subtitle').textContent = params.get('standbysubtitle');
if (params.has('gameprefix')) document.getElementById('game-prefix').textContent = params.get('gameprefix');
if (params.has('gametitle')) document.getElementById('game-title').textContent = params.get('gametitle');
if (params.has('nextgame')) document.getElementById('next-game').textContent = params.get('nextgame');
if (params.has('player')) document.getElementById('host-one').textContent = params.get('player');
if (params.has('spreadinfo')) {
document.getElementById('info-boxes').classList.add('spread');
} else {
startDataSlideshow();
}
getLatestDonation();
setTimeout(adjustInfoLength, 5000);
</script>
</body>
</html>