modified: public/date.html

modified:   public/main.html
	modified:   public/script-main.js
	modified:   public/styles-main.css
This commit is contained in:
IrisVega 2024-07-13 15:35:19 +08:00
parent f693b62f41
commit 33a46bddf2
4 changed files with 23 additions and 3 deletions

View File

@ -5,12 +5,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>选择日期</title> <title>选择日期</title>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<link rel="stylesheet" href="styles.css"> <link rel="stylesheet" href="styles-main.css">
</head> </head>
<body background="./bg.png" style="background-size:100% 100%; background-attachment: fixed;"> <body background="./bg.png" style="background-size:100% 100%; background-attachment: fixed;">
<button class="closeButton2" id="closeButton">x</button> <button class="closeButton2" id="closeButton">x</button>
<h3>你选择的日期为:</h3> <h3>你选择的日期为:</h3>
<div id="selectedDate">No date selected</div> <div id="selectedDate">No date selected</div>
<script src="script.js"></script> <script src="script-main.js"></script>
</body> </body>
</html> </html>

View File

@ -8,6 +8,7 @@
<link rel="stylesheet" href="styles-main.css"> <link rel="stylesheet" href="styles-main.css">
</head> </head>
<body background="./bg.png" style="background-size:100% 100%; background-attachment: fixed;"> <body background="./bg.png" style="background-size:100% 100%; background-attachment: fixed;">
<button class="BackButton" id="BackButton">退出登录</button>
<div class="slider-container"> <div class="slider-container">
<input type="range" id="mySlider" min="0" max="100" value="50"> <input type="range" id="mySlider" min="0" max="100" value="50">
<span id="sliderValue">50</span> <span id="sliderValue">50</span>

View File

@ -333,3 +333,8 @@ $(document).ready(function() {
console.warn('No date found in the URL.'); console.warn('No date found in the URL.');
} }
}); });
$(document).ready(function() {
$('#BackButton').click(function() {
window.location.href = '/index.html';
});
});

View File

@ -166,3 +166,17 @@ span {
border: 1px solid #ccc; border: 1px solid #ccc;
cursor: pointer; 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; /* 深粉色背景 */
}