generated from metroidhq/mhqthon-2020-layouts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout.html
93 lines (79 loc) · 3.78 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
90
91
92
93
<!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">
<img id="social-background" src="images/samus.png" />
</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>
<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="aux-one" class="aux-box"></div>
<div id="aux-two" class="aux-box"></div>
<div id="aux-three" class="aux-box"></div>
<div id="aux-four" class="aux-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="commentators-box" class="info-box">
<span class="label">Commentating</span>
<div id="commentators"></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/CE59A1D8FEF31BEC37ED" width="0" height="0"></iframe>
<iframe id="alerts" src="https://streamlabs.com/alert-box/v3/CE59A1D8FEF31BEC37ED?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('nocomms')) document.getElementById('commentators-box').classList.add('skip');
if (params.has('nonext')) document.getElementById('next-game-box').classList.add('skip');
if (params.has('spreadinfo')) {
document.getElementById('info-boxes').classList.add('spread');
} else {
startDataSlideshow();
}
getLatestDonation();
setTimeout(adjustInfoLength, 5000);
</script>
</body>
</html>