update main.js dayOfWeek

This commit is contained in:
hehh
2024-08-26 09:35:25 +08:00
parent c2c47298f8
commit fe684b92a5

View File

@@ -45,7 +45,7 @@ $(document).ready(function () {
var index = sessionStorage.getItem("index"); var index = sessionStorage.getItem("index");
var $panel = $('#panel'); var $panel = $('#panel');
var date = new Date(); var date = new Date();
var dayOfWeek = date.getDay() + 1; var dayOfWeek = date.getDay();
if (imgUrls == null) { if (imgUrls == null) {
imgUrls = new Array(); imgUrls = new Array();
index = 0; index = 0;