-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathindex.html
271 lines (270 loc) · 12.4 KB
/
index.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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
<html>
<head>
<title>OBS - Lower Thirds</title>
<meta
name="viewport"
content="minimum-scale=1, initial-scale=1, width=device-width"
/>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:regular,bold,italic,thin,light,bolditalic,black,medium&lang=en">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.indigo-pink.min.css">
<script defer src="https://code.getmdl.io/1.3.0/material.min.js"></script>
<link rel="stylesheet" href="./css/site.css">
<!--getmdl-select-->
<link rel="stylesheet" href="./css/getmdl-select/getmdl-select.min.css">
<script defer src="./js/getmdl-select/getmdl-select.min.js"></script>
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-31032890-10"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-31032890-10');
</script>
</head>
<body>
<!-- Colored FAB button with ripple -->
<button onclick="clickToScrollTop()" class="mdl-button mdl-js-button mdl-button--fab mdl-js-ripple-effect mdl-button--colored float-button">
<i class="material-icons">expand_less</i>
</button>
<!-- Always shows a header, even in smaller screens. -->
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
<header class="mdl-layout__header">
<div class="mdl-layout__header-row">
<!-- Title -->
<span class="mdl-layout-title">Lower Thirds for OBS Studio</span>
<!-- Add spacer, to align navigation to the right -->
<div class="mdl-layout-spacer"></div>
<!-- Navigation. We hide it in small screens. -->
<nav class="mdl-navigation">
<a class="mdl-navigation__link" href="#info">Info</a>
<a class="mdl-navigation__link" href="#options">Options</a>
<a class="mdl-navigation__link" href="#use">Use</a>
<a class="mdl-navigation__link" href="#customize">Customize</a>
</nav>
</div>
</header>
<main class="mdl-layout__content">
<div class="page-content site-max-width">
<section id="info">
<h2>Info</h2>
<div>
<p>Lower thirds for OBS Studio using HTML, Javascript and CSS.</p>
<p>This project is based on After Effects template by Amaksi <a href="http://videohive.net/item/lower-thirds/10338608">http://videohive.net/item/lower-thirds/10338608</a>, and Matt Chestnut <a href="https://codepen.io/mattchestnut/pen/dMrONe">https://codepen.io/mattchestnut/pen/dMrONe</a>.</p>
<p>Can customize the lower thirds on url via parameters. For example: https://obs.infor-r.com/lower?id=3&line1=OBS&color1=ffffff&line2=Studio&color2=cf4c4e</p>
<p><img src="./img/example.gif"></p>
<p><small>Note: Source code on <a href="https://github.com/vjccruz/lower-thirds-obs">Github</a> page.</small></p>
</div>
</section>
<section id="options">
<h2>Options</h2>
<div>
<h4>Parameters available</h4>
<ul class="demo-list-two mdl-list">
<li class="mdl-list__item mdl-list__item--two-line">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon">arrow_forward_ios</i>
<span>id</span>
<span class="mdl-list__item-sub-title">template number</span>
</span>
</li>
<li class="mdl-list__item mdl-list__item--two-line">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon">arrow_forward_ios</i>
<span>line1</span>
<span class="mdl-list__item-sub-title">text for first line</span>
</span>
</li>
<li class="mdl-list__item mdl-list__item--two-line">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon">arrow_forward_ios</i>
<span>line2</span>
<span class="mdl-list__item-sub-title">text for second line</span>
</span>
</li>
<li class="mdl-list__item mdl-list__item--two-line">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon">arrow_forward_ios</i>
<span>color1</span>
<span class="mdl-list__item-sub-title">first hex color code</span>
</span>
</li>
<li class="mdl-list__item mdl-list__item--two-line">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon">arrow_forward_ios</i>
<span>color2</span>
<span class="mdl-list__item-sub-title">second hex color code</span>
</span>
</li>
</ul>
<h4>Templates available</h4>
<ul class="demo-list-two mdl-list templates">
<li class="mdl-list__item mdl-list__item--two-line">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon">arrow_forward_ios</i>
<span>Type 1</span>
<span class="mdl-list__item-sub-title">
<b>color1:</b> all text; <b>color2:</b> symbol /
<img src="./img/1.gif">
</span>
</span>
</li>
<li class="mdl-list__item mdl-list__item--two-line">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon">arrow_forward_ios</i>
<span>Type 2</span>
<span class="mdl-list__item-sub-title">
<b>color1:</b> second line; <b>color2:</b> first line
<img src="./img/2.gif">
</span>
</span>
</li>
<li class="mdl-list__item mdl-list__item--two-line">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon">arrow_forward_ios</i>
<span>Type 3</span>
<span class="mdl-list__item-sub-title">
<b>color1:</b> first part of text; <b>color2:</b> second part of text
<img src="./img/3.gif">
</span>
</span>
</li>
<li class="mdl-list__item mdl-list__item--two-line">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon">arrow_forward_ios</i>
<span>Type 4</span>
<span class="mdl-list__item-sub-title">
<b>color1:</b> all text; <b>color2:</b> symbol |
<img src="./img/4.gif">
</span>
</span>
</li>
<li class="mdl-list__item mdl-list__item--two-line">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon">arrow_forward_ios</i>
<span>Type 5</span>
<span class="mdl-list__item-sub-title">
<b>color1:</b> all text; <b>color2:</b> all lines
<img src="./img/5.gif">
</span>
</span>
</li>
</ul>
</div>
</section>
<section id="use">
<h2>Use</h2>
<div>
<ul>
<li>Open OBS Studio</li>
<li>Add new source of type Browser</li>
<li>URL<br /><img src="./img/browser-1.png" />
<ul>
<li>Use <a href="#customize">Customize</a> to generate the URL</li>
<li>Click in preview</li>
<li>Click on generated URL to copy to clipboard</li>
</ul>
</li>
<li>Select "Shutdown source when not visible"<br /><img src="./img/browser-2.png" /></li>
<li>Select "Refresh browser when scene becomes active"</li>
<li>Example:<br /><img src="./img/browser-3.png" style="width:100%;" /></li>
</ul>
<small>Note: desactivate and active the source to get the lower third animation.</small>
</div>
</section>
<section id="customize">
<h2>Customize</h2>
<div class="mdl-grid">
<div class="mdl-cell mdl-cell--12-col">
<div class="mdl-textfield mdl-textfield-full-width mdl-js-textfield mdl-textfield--floating-label getmdl-select getmdl-select__fix-height">
<input type="text" value="" class="mdl-textfield__input" id="idtype" readonly>
<input type="hidden" value="" name="idtype">
<i class="mdl-icon-toggle__label material-icons">keyboard_arrow_down</i>
<label for="idtype" class="mdl-textfield__label">Type</label>
<ul for="idtype" class="mdl-menu mdl-menu--bottom-left mdl-js-menu">
<li class="mdl-menu__item" data-val="1" data-selected="true">1 <img src="./img/1.gif" /></li>
<li class="mdl-menu__item" data-val="2">2 <img src="./img/2.gif" /></li>
<li class="mdl-menu__item" data-val="3">3 <img src="./img/3.gif" /></li>
<li class="mdl-menu__item" data-val="4">4 <img src="./img/4.gif" /></li>
<li class="mdl-menu__item" data-val="5">5 <img src="./img/5.gif" /></li>
</ul>
</div>
</div>
</div>
<div class="mdl-grid">
<div class="mdl-cell mdl-cell--6-col">
<div class="mdl-textfield mdl-textfield-full-width mdl-js-textfield mdl-textfield--floating-label">
<input class="mdl-textfield__input" type="text" id="line1">
<label class="mdl-textfield__label" for="line1">Line 1</label>
</div>
</div>
<div class="mdl-cell mdl-cell--6-col">
<div class="mdl-textfield mdl-textfield-full-width mdl-js-textfield mdl-textfield--floating-label">
<input class="mdl-textfield__input" type="text" id="line2">
<label class="mdl-textfield__label" for="line2">Line 2</label>
</div>
</div>
</div>
<div class="mdl-grid">
<div class="mdl-cell mdl-cell--6-col">
<div class="mdl-textfield mdl-textfield-color mdl-js-textfield mdl-textfield--floating-label">
<input onkeyup="changeColorPicker(this, 'colorpicker1')" class="mdl-textfield__input" type="text" value="#ffffff" id="color1">
<label class="mdl-textfield__label" for="color1">Color for first element</label>
</div>
<input type="color" value="#ffffff" class="mdl-colorpicker" id="colorpicker1" onchange="changeColorPicker(this, 'color1')">
</div>
<div class="mdl-cell mdl-cell--6-col">
<div class="mdl-textfield mdl-textfield-color mdl-js-textfield mdl-textfield--floating-label">
<input onkeyup="changeColorPicker(this, 'colorpicker1')" class="mdl-textfield__input" type="text" value="#cf4c4e" id="color2">
<label class="mdl-textfield__label" for="color2">Color for second element</label>
</div>
<input type="color" value="#cf4c4e" class="mdl-colorpicker" id="colorpicker2" onchange="changeColorPicker(this, 'color2')">
</div>
</div>
<div class="mdl-grid">
<div class="mdl-cell mdl-cell--6-col">
<button onclick="preview()" class="btn-preview mdl-button mdl-js-button mdl-button--raised mdl-button--colored">
Preview
</button>
</div>
</div>
<div class="mdl-grid">
<div class="mdl-cell mdl-cell--12-col url-container">
<div class="label">
URL
</div>
<!-- mdl-textfield--floating-label is-dirty mdl-textfield__label -->
<div onclick="clickToCopy(this)" id="url">https://obs.infor-r.com/lower</div>
<div id="urlTooltip" class="mdl-tooltip" data-mdl-for="url">
click to copy
</div>
<input type="text" style="position:absolute;top:-200px;" id="hiddenURL" value="https://obs.infor-r.com/lower">
</div>
</div>
<div class="iframe">
<iframe src="/lower?id=1"></iframe>
</div>
</section>
</div>
<footer class="mdl-mini-footer">
<div class="mdl-mini-footer__left-section">
<div class="mdl-logo">
<p>by Vasco Cruz</p>
<p>Based on After Effects template by Amaksi <a href="http://videohive.net/item/lower-thirds/10338608">http://videohive.net/item/lower-thirds/10338608</a></p>
<p>And Matt Chestnut <a href="https://codepen.io/mattchestnut/pen/dMrONe">https://codepen.io/mattchestnut/pen/dMrONe</a></p>
</div>
</div>
<div class="mdl-mini-footer__right-section">
<ul class="mdl-mini-footer__link-list">
<li>
<a href="https://github.com/vjccruz/lower-thirds-obs" class="social-btn social-btn__github" role="button" title="GitHub"></a>
</li>
</ul>
</div>
</footer>
</main>
</div>
<script src="./js/site.js"></script>
</body>
</html>