Updated script that can be controled by Nodejs web app
This commit is contained in:
59
public/index.html
Normal file
59
public/index.html
Normal file
@ -0,0 +1,59 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>DCU Update Interface</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="title">
|
||||
<h1>IP DCU UPDATE INTERFACE</h1>
|
||||
</div>
|
||||
<hr style="border: 1px solid #ccc; margin: 0 0;"/>
|
||||
<div class="layout">
|
||||
<div class="container" style="margin-right: 20px; width: fit-content;">
|
||||
<h2 style="margin-bottom: 20px;">INPUT LIST IP DCU, Total: <span id="totalList">0</span></h2>
|
||||
<form id="runScriptForm">
|
||||
<textarea id="ipList" name="ipList" placeholder="Enter IP addresses (comma-separated or line-break separated)" required></textarea>
|
||||
<button type="submit" class="start-button">Start</button>
|
||||
</form>
|
||||
|
||||
<!-- Spinner untuk menunjukkan proses berlangsung -->
|
||||
<div id="loadingIndicator" class="loading-indicator" style="display: none;">Processing...</div>
|
||||
|
||||
<!-- Tampilkan status proses -->
|
||||
<p id="processStatus" style="display: none;"></p>
|
||||
</div>
|
||||
<div class="container">
|
||||
<!-- Tabel hasil proses -->
|
||||
<div class="container" style="height: 100%;">
|
||||
<h2>LIST IP DCU UPDATED</h2>
|
||||
<table id="resultTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>DCU IP</th>
|
||||
<th>DCU ID</th>
|
||||
<th>Updated IP</th>
|
||||
<th>Update Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody></tbody>
|
||||
</table>
|
||||
<div id="pagination"></div>
|
||||
<p id="totalProcessed" style="display: none;">Total Processed: 0</p>
|
||||
</div>
|
||||
<div class="container" style="margin-top: 20px;">
|
||||
<h2 style="margin-bottom: 20px;">LOG PROCESS</h2>
|
||||
<textarea id="logOutput" readonly style="width: 100%; height: 270px; resize: none;"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Include the Socket.io client library -->
|
||||
<script src="/socket.io/socket.io.js"></script>
|
||||
<script src="/script.js"></script>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user