102 lines
4.8 KiB
HTML
102 lines
4.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="ja">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>渡辺橋のJSON → TOON 変換ツール</title>
|
|
<link href="css/bootstrap.min.css" rel="stylesheet">
|
|
<style>
|
|
.io-box {
|
|
height: 400px;
|
|
overflow-y: auto;
|
|
}
|
|
</style>
|
|
</head>て
|
|
<body>
|
|
|
|
<div class="container mt-4">
|
|
<div class="row">
|
|
<div class="col-md-10 mx-auto">
|
|
<h1 class="mb-4">渡辺橋のJSON → TOON 変換ツール</h1>
|
|
|
|
<div class="alert alert-info" role="alert">
|
|
入力内容はブラウザ内で変換され、サーバーには一切送信されません。
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<button id="convertBtn" class="btn btn-primary">変換</button>
|
|
<button id="clearBtn" class="btn btn-secondary">クリア</button>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<h3>JSON入力エリア</h3>
|
|
<textarea id="jsonIn" class="form-control io-box" placeholder="ここにJSONを入力してください"></textarea>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="position-relative">
|
|
<h3 class="d-inline-block">TOON出力エリア</h3>
|
|
<button id="copyBtn" class="btn btn-sm btn-outline-secondary position-absolute top-0 end-0" style="margin-top: 0.5rem;">コピー</button>
|
|
<textarea id="toonOut" class="form-control io-box" readonly></textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="mt-4 text-center">
|
|
<h5 class="mb-3">気に入っていただけたらぜひシェアお願いします!!</h5>
|
|
<a id="shareTwitter" href="#" class="btn btn-dark" target="_blank" rel="noopener noreferrer">X(Twitter)</a>
|
|
<a id="shareFacebook" href="#" class="btn btn-primary" target="_blank" rel="noopener noreferrer">Facebook</a>
|
|
<a id="shareLine" href="#" class="btn text-white" style="background-color: #06C755; border-color: #06C755;" target="_blank" rel="noopener noreferrer">LINE</a>
|
|
</div>
|
|
|
|
<div class="mt-5">
|
|
<p>
|
|
<a class="btn btn-outline-secondary" data-bs-toggle="collapse" href="#futureFeatures" role="button" aria-expanded="false" aria-controls="futureFeatures">
|
|
開発予定の機能
|
|
</a>
|
|
</p>
|
|
<div class="collapse" id="futureFeatures">
|
|
<div class="card card-body">
|
|
<ul class="mb-0">
|
|
<li>TOON形式からJSON形式への逆変換</li>
|
|
<li>入力されたJSON/TOONの構文ハイライト</li>
|
|
<li>CSV等の形式への対応</li>
|
|
<li>節約トークン数の表示</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<footer class="footer mt-5 py-3 bg-light border-top">
|
|
<div class="container text-center">
|
|
<span class="text-muted"><a href="https://git.watanabebashi.net/Watanabebashi/WB-TOONTools">source code</a> | <a href="https://policy.watanabebashi.net/privacy.html">privacy policy</a></span>
|
|
<br>
|
|
<span class="text-muted">Proudly running on <a href="https://yodogawa.watanabebashi.net">yodogawa</a></span>
|
|
<br>
|
|
<span class="text-muted">© 2025 Watanabebashi Alpha, Licensed under AGPLv3</span>
|
|
</div>
|
|
</footer>
|
|
|
|
<script type="module" src="app.js"></script>
|
|
<script src="js/bootstrap.bundle.min.js"></script>
|
|
<script>
|
|
document.addEventListener('DOMContentLoaded', function () {
|
|
const pageUrl = encodeURIComponent(window.location.href);
|
|
const pageTitle = encodeURIComponent(document.title);
|
|
|
|
const twitterShare = document.getElementById('shareTwitter');
|
|
twitterShare.href = `https://x.com/intent/post?url=${pageUrl}&text=${pageTitle}`;
|
|
|
|
const facebookShare = document.getElementById('shareFacebook');
|
|
facebookShare.href = `https://www.facebook.com/sharer/sharer.php?u=${pageUrl}`;
|
|
|
|
const lineShare = document.getElementById('shareLine');
|
|
lineShare.href = `https://social-plugins.line.me/lineit/share?url=${pageUrl}`;
|
|
});
|
|
</script>
|
|
|
|
</body>
|
|
</html> |