no message

This commit is contained in:
a-kizaki
2026-10-14 09:52:49 +09:00
commit 7e5bc1bf12
33 changed files with 10318 additions and 0 deletions

18
js/date.js Normal file
View File

@@ -0,0 +1,18 @@
$(document).ready(function() {
// ページロード時に現在時刻を取得してフォーマット
var now = new Date();
var formattedDate = now.getFullYear() + "-" +
('0' + (now.getMonth() + 1)).slice(-2) + "-" +
('0' + now.getDate()).slice(-2) + " " +
('0' + now.getHours()).slice(-2) + ":" +
('0' + now.getMinutes()).slice(-2) + ":" +
('0' + now.getSeconds()).slice(-2);
// id="date"の要素に現在時刻を挿入
$("#date").text(formattedDate);
// 投稿ボタンクリック時の処理
$("#submitBtn").click(function() {
$("#topicForm").submit(); // フォームをサブミット
});
});