forked from izzy/stream-chat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenerator.html
207 lines (173 loc) · 4.29 KB
/
generator.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title></title>
<style>
body {
font-family: sans-serif;
background: #41145F;
color: #F0F0FF;
text-shadow: 0px 0px 3px #000;
}
a {
color: #00C8AF;
}
section {
display: block;
margin-bottom: 2rem;
}
input {
margin: 0.5rem;
}
input:not([type="color"]) {
padding: 1rem;
border: none;
background: #41145F;
color: #F0F0FF;
border-bottom: 2px solid;
transition: all 0.4s;
}
input:not([type="color"]):hover {
color: #FAB4FF;
border-image-source: linear-gradient(to right, #FA1ED2, #00C8AF);
border-bottom: 2px solid #00C8AF;
border-image-slice: 1;
transition: all 0.4s;
}
input:not([type="color"]):focus {
outline: none;
color: #BEFAE1;
border-image-source: linear-gradient(to right, #00C8AF, #FA1ED2);
border-bottom: 2px solid #00C8AF;
border-image-slice: 1;
}
input[type="checkbox"] {
accent-color: #FA1ED2;
height: 1.5rem;
width: 1.5rem;
vertical-align: middle;
}
#url {
width: 20rem;
}
.button {
background: #1E69FF;
border-radius: 1rem;
padding: 1rem 1rem 1rem 0.7rem;
color: #fff;
text-decoration: none;
display: inline-block;
width: 12rem;
text-align: center;
cursor: pointer;
}
.button:hover {
background: #0014A5;
}
.button:active {
background: #0014A5;
color: #00C8AF;
}
#copy-toast {
background: #BEFAE1;
position: absolute;
top: 2rem;
width: 15rem;
padding: 1rem;
left: 40%;
color: #41145F;
transition: opacity .4s ease-in-out;
opacity: 0;
text-shadow: none;
}
#chat-frame {
float: left;
}
/* Chat preview iframe */
#preview {
height: 500px;
border-width: 3px;
border-style: solid;
border-image-source: linear-gradient(to left, #BE0078, #FA1ED2);
border-image-slice: 1;
background: white;
padding: 1rem 1rem 1rem 0.5rem;
}
#config>form {
margin-left: 1rem;
float: left;
}
#config>form>span {
width: 100%;
display: block;
padding: 0.4rem 0rem;
}
#config>form>span>label:first-child {
width: 5rem;
display: inline-block;
width: 13rem;
}
.help {
position: relative;
padding: 0.5rem;
border-radius: 2rem;
cursor: help;
}
.help span {
display: none;
}
.help:hover span {
position: absolute;
display: block;
background: #BE0078;
color: white;
padding: 1rem;
width: 15rem;
right: 2rem;
top: 1rem;
border-radius: 1rem;
box-shadow: 0px 0px 4px #700;
z-index: 1;
filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.25));
}
#drag-help {
margin-left: 18rem;
}
</style>
</head>
<body>
<section id="header">
<h1 class="title">Stream Chat Overlay URL generator</h1>
<h2 class="subtitle">based on <a href="https://github.com/izzy/stream-chat" target="_blank"
rel="noreferrer">https://github.com/izzy/stream-chat</a> </h2>
</section>
<section id="url-">
<div>
<div>
<input class="input" type="text" readonly id="url" />
<a id="copy-button" class="button">Copy</a>
<a id="obs-url" class="button">Drag me into OBS</a>
<span id="obs-url-help" class="help">?<span id="drag-help">Drag and drop does not work when OBS is running with Administrator privileges</span></span>
</div>
<div>
</div>
</div>
</section>
<section>
<div id="config">
<div id="chat-frame">
<h2>Preview:</h2>
<div><label class="checkbox"><input type="checkbox" value="debug" checked id="debug" />Disable live preview
mode</label></div>
<iframe src="./chat.html" height="100%" id="preview"></iframe>
</div>
<form id="generator"></form>
</div>
</section>
<div id="copy-toast">Link copied to clipboard!</div>
<script src="./generator.js"></script>
</body>
</html>