2020-06-24 21:34:53 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<link rel=stylesheet href=style.css />
|
2020-09-11 06:43:53 +00:00
|
|
|
<title><%= it.streamerName %>'s Learn Request Queue</title>
|
2020-08-08 04:32:06 +00:00
|
|
|
<script>window.loggedIn = <%= it.loggedIn %></script>
|
2020-07-04 06:22:28 +00:00
|
|
|
<script src="main.js" defer></script>
|
2020-06-24 21:34:53 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2020-07-05 00:51:24 +00:00
|
|
|
<div id="topbar">
|
2020-09-13 17:13:01 +00:00
|
|
|
<div id="nav-streamerpic"><img src="<%= it.streamerProfilePicture %>" /></div>
|
|
|
|
<div id="nav-title"><%= it.streamerName %>'s Learn Request Queue</div>
|
2020-07-05 00:51:24 +00:00
|
|
|
<div id="nav-requests"><a href="/">Requests</a></div>
|
2020-08-08 04:32:06 +00:00
|
|
|
<%- if (it.loggedIn) { -%>
|
2020-07-05 22:20:22 +00:00
|
|
|
<div id="nav-addrequest"><a href="#" onclick="openAddRequestModal()">Add Request</a></div>
|
2020-07-05 21:15:30 +00:00
|
|
|
<div id="nav-userpic"><img src="<%= it.userProfilePicture %>" /></div>
|
|
|
|
<div id="nav-username"><%= it.userName %></div>
|
|
|
|
<div id="nav-logout"><a href="/logout">Logout</a></div>
|
|
|
|
<%- } else { // Not logged in -%>
|
2020-07-07 05:02:19 +00:00
|
|
|
<div id="nav-login"><a href="https://id.twitch.tv/oauth2/authorize?client_id=<%=it.clientId%>&redirect_uri=<%=it.urlPrefix%>/callback&response_type=code">Login</a></div>
|
2020-07-05 21:15:30 +00:00
|
|
|
<%- } %>
|
2020-07-05 00:51:24 +00:00
|
|
|
</div>
|
|
|
|
<div id="main">
|
|
|
|
<div id="requests"></div><br>
|
|
|
|
Count:
|
|
|
|
<select id="count" value="10" onchange="updateTable()">
|
|
|
|
<option>5</option>
|
|
|
|
<option selected="selected">10</option>
|
|
|
|
<option>25</option>
|
|
|
|
<option>50</option>
|
|
|
|
<option>100</option>
|
|
|
|
</select>
|
|
|
|
<input type="checkbox" id="allRequests" onchange="updateTable()">View requests in any state</input>
|
|
|
|
</div>
|
2020-07-07 04:24:04 +00:00
|
|
|
<div id="modalBackground">
|
|
|
|
<div class="modal" id="messageModal">
|
|
|
|
<div class="modalClose"><a href="#" onclick="closeMessageModal()">×</a></div>
|
|
|
|
<span id="messageModalText"></span>
|
|
|
|
</div>
|
|
|
|
<div class="modal" id="addRequestModal">
|
|
|
|
<div class="modalClose"><a href="#" onclick="closeAddRequestModal()">×</a></div>
|
2020-07-05 22:20:22 +00:00
|
|
|
<h1>Add Request</h1>
|
2020-07-07 04:24:04 +00:00
|
|
|
<div class="error" id="addRequestError"></div>
|
2020-07-06 03:16:41 +00:00
|
|
|
<span id="addRequestInputContainer">
|
|
|
|
URL: <input id="addRequestUrl" placeholder="https://www.youtube.com/watch?v=dQw4w9WgXcQ"></input>
|
|
|
|
<button onclick="validateAndSubmitRequest()">Request</button><br>
|
|
|
|
</span>
|
2020-07-05 22:20:22 +00:00
|
|
|
Currently, only Youtube links are accepted.
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-06-24 21:34:53 +00:00
|
|
|
</body>
|
|
|
|
</html>
|