-
Notifications
You must be signed in to change notification settings - Fork 0
/
StreamPreview.html
41 lines (38 loc) · 2.42 KB
/
StreamPreview.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta property="og:locale" content="en-US">
<title>Stream Preview | CreaterDashboardPopups</title>
<link type="text/css" rel="stylesheet" href="./style.css">
<link rel="icon" href="https://cdn.amazingca.dev/assets/media/favicon.ico">
<meta property="og:type" content="website">
<meta property="og:title" content="Stream Preview">
<meta property="og:site_name" content="CreatorDashboardPopups">
<meta property="og:url" content="https://amazingca.github.io/CreatorDashboardPopups">
<meta property="og:image" content="https://cdn.amazingca.dev/assets/media/background.png">
<meta property="twitter:image" content="https://cdn.amazingca.dev/assets/media/background.png">
<meta name="theme-color" content="#ffffff">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:description" content="A relatively simple Twitch popup to control your stream.">
</head>
<body style="margin: 0;">
<img src="https://cdn.amazingca.dev/assets/media/background.png" style="z-index: -1; object-fit: cover; position: fixed; width: 100%; height: 100vh;">
<canvas style="background: black; height: 100vh; top: 0vh; bottom: 100vh; left: 47vw; position: fixed; opacity: 50%; border-top-left-radius: 30px 30px; border-bottom-left-radius: 30px 30px;"></canvas>
<div style="top: 40vh; left: 50vw; position: absolute;">
<form action="#">
<h3 style="font-family: sans-serif; color: white; line-height: 30px;" for="fname">To activate the popup, we need some details about your channel:</h3><br>
<input style="border-top-left-radius: 10px; border-top-right-radius: 10px; border-width: 1px; border-color: black; width: 250px; height: 3vh; font-size: 15; line-height: 30px;" type="text" name="name" placeholder="Channel Name"><br>
<input style="border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; border-width: 1px; border-color: black; width: 256px; height: 3vh;" type="submit" value="Submit">
</form>
</div>
<script>
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
if (urlParams.get('name') != null) {
window.open(`https://dashboard.twitch.tv/popout/u/${urlParams.get('name')}/stream-manager/stream-preview`, 'new-window', 'width=720,height=600');
window.close();
}
</script>
</body>
</html>