-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
79 lines (75 loc) · 3.17 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>URL Generator</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<style>
.footer-text {
margin-top: 40px;
padding: 20px;
background-color: #f8f9fa;
border-radius: 5px;
text-align: center;
}
.footer-text a {
color: #007bff;
text-decoration: none;
}
.footer-text a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="container mt-4">
<h2>Kick.com BRB Clips Player</h2>
<div class="form-group">
<label for="streamerName">Streamer Name:</label>
<input type="text" id="streamerName" class="form-control">
</div>
<div class="form-group">
<label for="timeframe">Timeframe:</label>
<select id="timeframe" class="form-control">
<option value="day">Day</option>
<option value="week" selected>Week</option>
<option value="month">Month</option>
<option value="all">All</option>
</select>
</div>
<button id="generateBtn" class="btn btn-primary">Generate URL</button>
<div id="outputSection" class="mt-3">
<p>Copy and paste this as a browser source in OBS:</p>
<div id="generatedUrl" class="alert alert-success"></div>
<button id="copyBtn" class="btn btn-secondary">Copy to Clipboard</button>
</div>
<div class="footer-text">
<p class="font-weight-bold">Created by: <a href="https://IRLhosting.com">IRLhosting.com</a> | <a href="https://IRLtools.com">IRLtools.com</a> <br><i>We take streamers and their viewers outside.</i></p>
</div>
<div class="mt-3">
<p>Where to paste in OBS (take note of the other settings as well):</p>
<img src="chrome_aPS9ce0SCy.png" alt="Instructional Image" style="max-width:100%;height:auto;">
</div>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script>
$(document).ready(function() {
$('#generateBtn').click(function() {
var streamerName = $('#streamerName').val();
var timeframe = $('#timeframe').val();
var baseUrl = 'https://irltools.github.io/KickBRBClipsPlayer/clips.html?';
var generatedUrl = baseUrl + 'streamerName=' + encodeURIComponent(streamerName) + '&duration=' + encodeURIComponent(timeframe);
$('#generatedUrl').text(generatedUrl);
$('#outputSection').show();
});
$('#copyBtn').click(function() {
var urlText = $('#generatedUrl').text();
navigator.clipboard.writeText(urlText);
alert('URL copied to clipboard!');
});
// Initially hide the output section
$('#outputSection').hide();
});
</script>
</body>
</html>