修正
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html lang="ja">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
@@ -6,7 +6,7 @@
|
||||
<title>試算表</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: 'MS Gothic', 'Meiryo', sans-serif;
|
||||
font-family: "MS Gothic", "Meiryo", sans-serif;
|
||||
margin: 24px auto;
|
||||
font-size: 15px;
|
||||
max-width: 1400px;
|
||||
@@ -39,7 +39,7 @@
|
||||
.search-form button {
|
||||
padding: 6px 20px;
|
||||
margin: 0 5px;
|
||||
background: #4CAF50;
|
||||
background: #4caf50;
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 3px;
|
||||
@@ -50,7 +50,7 @@
|
||||
background: #45a049;
|
||||
}
|
||||
.search-form button.secondary {
|
||||
background: #2196F3;
|
||||
background: #2196f3;
|
||||
}
|
||||
.search-form button.secondary:hover {
|
||||
background: #0b7dda;
|
||||
@@ -96,22 +96,45 @@
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<button
|
||||
onclick="location.href = 'index.html'"
|
||||
class="back-button"
|
||||
style="
|
||||
margin: 0 0 20px 0;
|
||||
padding: 8px 16px;
|
||||
background: #007bff;
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
"
|
||||
>
|
||||
← 首ページに戻る
|
||||
</button>
|
||||
<h2>残高試算表(貸借・損益)</h2>
|
||||
|
||||
|
||||
<div
|
||||
id="loadingStatus"
|
||||
style="display: none; color: #666; font-size: 12px; margin: 10px 0"
|
||||
>
|
||||
読み込み中...
|
||||
</div>
|
||||
|
||||
<div class="search-form">
|
||||
<label for="dateFrom">開始年月日:</label>
|
||||
<input type="date" id="dateFrom" min="1900-01-01" max="2099-12-31" />
|
||||
|
||||
|
||||
<label for="dateTo">終了年月日:</label>
|
||||
<input type="date" id="dateTo" min="1900-01-01" max="2099-12-31" />
|
||||
|
||||
|
||||
<button id="btnSearch">検索</button>
|
||||
<button id="btnFullYear" class="secondary">全年度表示</button>
|
||||
</div>
|
||||
|
||||
<div class="period-info">
|
||||
<span id="periodInfo">令和7年 1月 1日 ~ 令和7年 12月31日</span>
|
||||
<span style="margin-left: 20px;">単位: 円</span>
|
||||
<span style="margin-left: 20px">単位: 円</span>
|
||||
</div>
|
||||
|
||||
<table id="trialBalanceTable">
|
||||
@@ -142,8 +165,29 @@
|
||||
</table>
|
||||
|
||||
<script src="js/trial-balance.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<!-- 立即初始化脚本:iOS Safari 的外部脚本加载问题的备选方案 -->
|
||||
<script>
|
||||
// 确保脚本被加载和执行
|
||||
console.log("trial-balance.html inline script 执行中...");
|
||||
|
||||
if (typeof initTrialBalance === "function") {
|
||||
console.log("initTrialBalance 函数が見つかりました, 実行します");
|
||||
initTrialBalance();
|
||||
} else {
|
||||
console.warn(
|
||||
"initTrialBalance 関数が見つかりません。js/trial-balance.js が読み込まれていない可能性があります",
|
||||
);
|
||||
// タイムアウトで再度チェック
|
||||
setTimeout(() => {
|
||||
if (typeof initTrialBalance === "function") {
|
||||
console.log("遅延実行: initTrialBalance を実行します");
|
||||
initTrialBalance();
|
||||
} else {
|
||||
console.error("js/trial-balance.js が読み込まれていません!");
|
||||
}
|
||||
}, 500);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user