Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
NEKODESUDX authored Nov 18, 2024
1 parent ae43cd3 commit 482c0b4
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<!DOCTYPE html>
<html lang="ja">
<head>
Expand All @@ -18,17 +19,6 @@
body, h1, p, label, a, button {
color: white;
}
#status {
width: 100%;
height: 150px;
margin-top: 20px;
padding: 10px;
border: 1px solid #ccc;
background-color: #333;
color: white;
overflow-y: scroll;
white-space: pre-wrap;
}
</style>
</head>
<body>
Expand Down Expand Up @@ -82,17 +72,17 @@ <h1>Mass Group Manager</h1>

<p id="status">ステータス: 準備完了</p>

<div id="status">エラーログ:</div>
<div id="errorLog">エラーログ:</div>

<script src="script.js"></script>
<script>
function logError(message) {
const errorLog = document.getElementById('errorLog');
errorLog.textContent += message + '\\n';
errorLog.textContent += message + '\n';
}

window.onerror = function(message, source, lineno, colno, error) {
logError(\`[Error] \${message} at \${source}:\${lineno}:\${colno}\`);
logError(`[Error] ${message} at ${source}:${lineno}:${colno}`);
};
</script>
</body>
Expand Down

0 comments on commit 482c0b4

Please sign in to comment.