-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathvmix.html
More file actions
57 lines (56 loc) · 1.47 KB
/
Copy pathvmix.html
File metadata and controls
57 lines (56 loc) · 1.47 KB
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
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
<meta content="utf-8" http-equiv="encoding" />
<meta name="copyright" content="© 2020 Steve Seguin" />
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
<link rel="shortcut icon" href="favicon.svg" />
<title>Caption Overlay Window for vMix</title>
<meta name="title" content="CAPTION.Ninja: vMix Overlay" />
<meta name="description" content="vMix-friendly Caption Ninja overlay shortcut with transparent caption backing by default." />
<meta name="author" content="Steve Seguin" />
<style>
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
background: transparent;
overflow: hidden;
}
</style>
</head>
<body>
<script>
(function () {
var params = new URLSearchParams(window.location.search);
var backgroundParams = [
"nobg",
"no-bg",
"nobox",
"nohighlight",
"no-highlight",
"transparentbg",
"transparent-bg",
"bg",
"background",
"captionbg",
"captionbackground",
"highlight",
"highlightcolor",
"boxcolor"
];
var hasBackgroundChoice = backgroundParams.some(function (param) {
return params.has(param);
});
if (!hasBackgroundChoice) {
params.set("nobg", "1");
}
var target = "overlay.html";
var query = params.toString();
window.location.replace(target + (query ? "?" + query : ""));
})();
</script>
</body>
</html>