64 lines
3.4 KiB
Plaintext
64 lines
3.4 KiB
Plaintext
<br><br><br>
|
|
<br><br><br><br>
|
|
|
|
<div class="card" id="primary-card">
|
|
<div class="card-header ui-sortable-handle" style="cursor: move">
|
|
<h1 class="card-title" style="font-size: 2.5rem;"></h1>
|
|
<div class="card-tools">
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
<table id="Ultimate_console_command_list">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
Command
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="command_table_body">
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
|
function Commandbutton(text,urlstring,METHODTYPE='POST'){
|
|
return `<tr> <td><center><button class="btn-block btn-lg" onclick="POSTDataAndShowModalResponse('${urlstring}','${METHODTYPE}')">${text}</button></center></td> </tr>`;
|
|
}
|
|
|
|
function POSTDataAndShowModalResponse(urlstring,METHODTYPE='POST',data={}){
|
|
function responseModal(response,METHODTYPE='POST'){
|
|
|
|
ModalQuickDismiss('',response,modalid='',modaltohide='',functiontodo='',conditiontrue=true);
|
|
}
|
|
AjaxDo(urlstring, data, responseModal, false, METHODTYPE, caching = false);
|
|
}
|
|
|
|
function LoadConsole(){
|
|
$(document).ready(function() {
|
|
// Your jQuery code here
|
|
$('#command_table_body').append(Commandbutton('Update List of Winners','?Winners/CheckBlank','GET'));
|
|
$('#command_table_body').append(Commandbutton('Update Draw from Online','?draw/update/today/from/online','GET'));
|
|
$('#command_table_body').append(`<tr> <td><center><button class="btn-block btn-lg" onclick="showNotification('Hello!', {body: 'This is a test notification.',icon: 'https://mm.t677u.com/assets/drawlottery.png',tag: 'test-notification'});">Test Notification</button></center></td> </tr>`);
|
|
$('#command_table_body').append(`<tr> <td><center><button class="btn-block btn-lg" onclick="ModalQuickDismiss('',Notification.permission);">Notification Status</button></center></td> </tr>`);
|
|
$('#command_table_body').append(`<tr> <td><center><button class="btn-block btn-lg" onclick="Notification.requestPermission(function(result) {if (result === 'granted') {navigator.serviceWorker.ready.then(function(registration) {registration.showNotification('adf');});}});">Notification Test 2</button></center></td> </tr>`);
|
|
$('#command_table_body').append(`<tr> <td><center><button class="btn-block btn-lg" id="notiftest3button" onclick="sNotif();">Notification Test 3</button></center></td> </tr>`);
|
|
$('#command_table_body').append(`<tr> <td><center><button class="btn-block btn-lg" id="notiftest4button" style="" onclick="Notification.requestPermission(function(result) {if (result === 'granted') {navigator.serviceWorker.ready.then(function(registration) {registration.showNotification('currentnotificationtitle', {body: 'This is a test notification.',icon: 'https://mm.t677u.com/assets/drawlottery.png',tag: 'test-notification'});});}});">Notification Test 4</button></center></td> </tr>`);
|
|
$('#command_table_body').append(`<tr> <td><center><button class="btn-block btn-lg" id="notiftest5button" style="" onclick="SetNotif('HELLO BI','this bod','https://mm.t677u.com/assets/drawlottery.png');">Notification Test 5</button></center></td> </tr>`);
|
|
$('#command_table_body').append(Commandbutton('Delete SQL Logs','?adm/delete/ldoos','GET'));
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
LoadConsole();
|
|
|
|
</script> |