modified: script.js

This commit is contained in:
IrisVega 2024-07-08 21:42:31 +08:00
parent 7a93eb06b8
commit 326d3f592d
1 changed files with 3 additions and 1 deletions

View File

@ -243,7 +243,9 @@ $(document).ready(function() {
$('#tbody td').click(function() { $('#tbody td').click(function() {
var dateString = $(this).data('date'); var dateString = $(this).data('date');
$('#selectedDate').text(dateString); $('#selectedDate').text(dateString);
window.location.href = 'date.html?date=' + encodeURIComponent(dateString); // window.location.href = 'date.html?date=' + encodeURIComponent(dateString);
var url = 'date.html?date=' + encodeURIComponent(dateString);
window.open(url, '_blank');
}); });
} }