parent
b479cd2948
commit
68faec1ae8
7 changed files with 207 additions and 16 deletions
|
@ -3,7 +3,11 @@
|
|||
<head>
|
||||
<link rel=stylesheet href=style.css />
|
||||
<title><%= it.streamerName %>'s Learn Request Queue</title>
|
||||
<script>window.loggedIn = <%= it.loggedIn %></script>
|
||||
<script>
|
||||
window.loggedIn = <%= it.loggedIn %>;
|
||||
window.validStates = <%~ it.validStates %>;
|
||||
window.isStreamer = <%= it.isStreamer %>;
|
||||
</script>
|
||||
<script src="main.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
|
@ -32,7 +36,7 @@
|
|||
</select>
|
||||
<input type="checkbox" id="allRequests" onchange="updateTable()">View requests in any state</input>
|
||||
</div>
|
||||
<div id="modalBackground">
|
||||
<div id="modalBackground">
|
||||
<div class="modal" id="messageModal">
|
||||
<div class="modalClose"><a href="#" onclick="closeMessageModal()">×</a></div>
|
||||
<span id="messageModalText"></span>
|
||||
|
@ -47,6 +51,55 @@
|
|||
</span>
|
||||
Currently, only Youtube links are accepted.
|
||||
</div>
|
||||
<div class="modal" id="updateRequestModal">
|
||||
<div class="modalClose"><a href="#" onclick="closeAddRequestModal()">×</a></div>
|
||||
<h2>Update Request</h2>
|
||||
<div class="error" id="updateRequestError"></div>
|
||||
<br>
|
||||
<a id="updateRequestUrl"></a>
|
||||
<br>
|
||||
Current Score: <span id="updateRequestModalCurrentScore"></span>
|
||||
<hr>
|
||||
<div>
|
||||
State:
|
||||
<select id="updateRequestStateSelect" onchange="updateRequestState(
|
||||
document.getElementById('updateRequestUrl').innerText,
|
||||
this.value)">Submit</button>
|
||||
)"></select>
|
||||
</div>
|
||||
<br>
|
||||
<div>
|
||||
Modify Score:
|
||||
<input type="number" id="scoreModifierInput"></input>
|
||||
<button onclick="updateRequestScoreModifier(
|
||||
document.getElementById('updateRequestUrl').innerText,
|
||||
document.getElementById('scoreModifierInput').value)">Submit</button>
|
||||
<br>
|
||||
<span id="scoreModifierHelp">
|
||||
Enter a number to add to (or negative to subtract from) the score of
|
||||
a request. Use this for things like donations and channel points
|
||||
redemptions.
|
||||
</span>
|
||||
</div>
|
||||
<br>
|
||||
<div>
|
||||
<a id="deleteRequestLink" href="#" onclick="openDeleteRequestModal(
|
||||
document.getElementById('updateRequestUrl').innerText
|
||||
)">Delete Request</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal" id="deleteRequestModal">
|
||||
<div class="modalClose"><a href="#" onclick="closeDeleteRequestModal()">×</a></div>
|
||||
<h2>Delete Request</h2>
|
||||
<span style="color: #f00">WARNING:</span>
|
||||
Deleting a request will remove the request and all votes for it from the
|
||||
database. This action is irreversible. It will NOT prevent the request
|
||||
from being made again - use the Rejected state for that. Are you sure
|
||||
you want to delete this request?
|
||||
<br><br>
|
||||
<button onclick="closeDeleteRequestModal()">No</button>
|
||||
<button onclick="deleteRequest(document.getElementById('updateRequestUrl').innerText)">Yes</button>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue