diff --git a/public/date.html b/public/date.html index c97bc52..9b73edb 100644 --- a/public/date.html +++ b/public/date.html @@ -5,12 +5,12 @@ 选择日期 - +

你选择的日期为:

No date selected
- + diff --git a/public/main.html b/public/main.html index b8bead0..0079859 100644 --- a/public/main.html +++ b/public/main.html @@ -8,6 +8,7 @@ +
50 diff --git a/public/script-main.js b/public/script-main.js index df8d2a1..23e38eb 100644 --- a/public/script-main.js +++ b/public/script-main.js @@ -332,4 +332,9 @@ $(document).ready(function() { } else { console.warn('No date found in the URL.'); } -}); \ No newline at end of file +}); +$(document).ready(function() { + $('#BackButton').click(function() { + window.location.href = '/index.html'; + }); + }); \ No newline at end of file diff --git a/public/styles-main.css b/public/styles-main.css index f0a060a..64ef0cc 100644 --- a/public/styles-main.css +++ b/public/styles-main.css @@ -166,3 +166,17 @@ span { border: 1px solid #ccc; cursor: pointer; } +.BackButton { + background-color: #ff69b4; /* 白色背景 */ + color: #fff; /* 白色文字 */ + border: none; + outline: none; + cursor: pointer; + padding: 5px 10px; + transition: 0.3s; + font-size: 12px; /* 调整字体大小 */ +} + +.BackButton:hover { + background-color: #ff1493; /* 深粉色背景 */ +} \ No newline at end of file