diff --git a/out/artifacts/TeamWebProject_exploded/messageBoard.html b/out/artifacts/TeamWebProject_exploded/messageBoard.html index 90c0fb9..edf759e 100644 --- a/out/artifacts/TeamWebProject_exploded/messageBoard.html +++ b/out/artifacts/TeamWebProject_exploded/messageBoard.html @@ -74,6 +74,21 @@ +
+
+ Simplicity is prerequisite for reliability. + ---2022年06月14日 14:21:56 +
+
+ + Edsger-Dijkstra + +
+
+ +
+
+ @@ -195,7 +210,8 @@ url: "GuestMessageServlet", type: "post", dataType: "text", - data: {"method":"load"}, + // data: {method:"load",messageNum:$(".box").length.toString()}, + data: {method:"load"}, success: function (result) { if(result!=null){ // alert("得到服务器的数据为:"+result+"类型为"+typeof result); diff --git a/src/com/hongxi/web/GuestMessageServlet.java b/src/com/hongxi/web/GuestMessageServlet.java index 0b15cbc..ab1198e 100644 --- a/src/com/hongxi/web/GuestMessageServlet.java +++ b/src/com/hongxi/web/GuestMessageServlet.java @@ -44,11 +44,16 @@ public class GuestMessageServlet extends HttpServlet { req.setCharacterEncoding("UTF-8"); // 解决响应中文乱码 resp.setContentType("text/html; charset=UTF-8"); - PrintWriter writer = resp.getWriter(); //为了防止刷新页面导致页面信息丢失 if ("load".equals(req.getParameter("method"))){ +// /*设置现有留言个数*/ +// System.out.println("method为"+req.getParameter("method")); +// System.out.println("messageNum为"+req.getParameter("messageNum")); +// Integer messageNum = new Integer(req.getParameter("messageNum")); +// System.out.println("载入页面,得到的messageNum为"+messageNum); +// GuestMessage.setMessageNum(messageNum); if (guestMessageArrayList!=null){ //List转json字符串 String s = gson.toJson(guestMessageArrayList); diff --git a/web/css/style.css b/web/css/style.css index 52ea38d..308233d 100644 --- a/web/css/style.css +++ b/web/css/style.css @@ -470,7 +470,8 @@ color: #a4a4a4} /* unvisited link */ height: auto; /* background-color: rgba(255,255,255,.5); */ border-radius: 15px; - color: rgb(167, 255, 243); + color: rgb(249, 81, 81); + font-size: 18px; text-align: center; padding: 10px; } @@ -481,20 +482,20 @@ color: #a4a4a4} /* unvisited link */ float: right; right: 0; bottom: 0; - color: #1ec8e9; + color: #ffffff; margin-top: 10px; } /* 页面范围内偶数的匹配元素 */ .box:nth-child(even) .left{ - background-color: rgb(120, 120, 244); + background-color: rgb(43, 43, 44); box-shadow: rgba(0, 0, 0,.3); } /* 页面范围内奇数的匹配元素 */ .box:nth-child(odd) .right{ - background-color: rgb(120, 120, 244); + background-color: rgb(43, 43, 44); box-shadow: rgba(0, 0, 0,.3); } diff --git a/web/img/SceneryTestImg/imgFour/1.jpg b/web/img/SceneryTestImg/imgFour/1.jpg index e70b75b..39b1c97 100644 Binary files a/web/img/SceneryTestImg/imgFour/1.jpg and b/web/img/SceneryTestImg/imgFour/1.jpg differ diff --git a/web/img/SceneryTestImg/imgFour/2.jpg b/web/img/SceneryTestImg/imgFour/2.jpg index 7a2ce19..8091f02 100644 Binary files a/web/img/SceneryTestImg/imgFour/2.jpg and b/web/img/SceneryTestImg/imgFour/2.jpg differ diff --git a/web/img/SceneryTestImg/imgOne/1.jpg b/web/img/SceneryTestImg/imgOne/1.jpg index c29a737..3b55960 100644 Binary files a/web/img/SceneryTestImg/imgOne/1.jpg and b/web/img/SceneryTestImg/imgOne/1.jpg differ diff --git a/web/img/SceneryTestImg/imgOne/2.jpg b/web/img/SceneryTestImg/imgOne/2.jpg index 08c879f..94e4592 100644 Binary files a/web/img/SceneryTestImg/imgOne/2.jpg and b/web/img/SceneryTestImg/imgOne/2.jpg differ diff --git a/web/img/SceneryTestImg/imgThree/1.jpg b/web/img/SceneryTestImg/imgThree/1.jpg index 884562d..8bfafb7 100644 Binary files a/web/img/SceneryTestImg/imgThree/1.jpg and b/web/img/SceneryTestImg/imgThree/1.jpg differ diff --git a/web/img/SceneryTestImg/imgThree/2.jpg b/web/img/SceneryTestImg/imgThree/2.jpg index 113908b..6800bb2 100644 Binary files a/web/img/SceneryTestImg/imgThree/2.jpg and b/web/img/SceneryTestImg/imgThree/2.jpg differ diff --git a/web/img/SceneryTestImg/imgTwo/1.jpg b/web/img/SceneryTestImg/imgTwo/1.jpg index 95689a5..7968da5 100644 Binary files a/web/img/SceneryTestImg/imgTwo/1.jpg and b/web/img/SceneryTestImg/imgTwo/1.jpg differ diff --git a/web/img/SceneryTestImg/imgTwo/2.jpg b/web/img/SceneryTestImg/imgTwo/2.jpg index 4f8ba90..fb5419b 100644 Binary files a/web/img/SceneryTestImg/imgTwo/2.jpg and b/web/img/SceneryTestImg/imgTwo/2.jpg differ diff --git a/web/img/leidian.webp b/web/img/leidian.webp deleted file mode 100644 index eb64a33..0000000 Binary files a/web/img/leidian.webp and /dev/null differ diff --git a/web/img/zerotwo_header.png b/web/img/zerotwo_header.png deleted file mode 100644 index 2d65c48..0000000 Binary files a/web/img/zerotwo_header.png and /dev/null differ diff --git a/web/img/zerotwo_header_small.jpg b/web/img/zerotwo_header_small.jpg deleted file mode 100644 index ed1c7c5..0000000 Binary files a/web/img/zerotwo_header_small.jpg and /dev/null differ diff --git a/web/messageBoard.html b/web/messageBoard.html index 90c0fb9..edf759e 100644 --- a/web/messageBoard.html +++ b/web/messageBoard.html @@ -74,6 +74,21 @@ +
+
+ Simplicity is prerequisite for reliability. + ---2022年06月14日 14:21:56 +
+
+ + Edsger-Dijkstra + +
+
+ +
+
+ @@ -195,7 +210,8 @@ url: "GuestMessageServlet", type: "post", dataType: "text", - data: {"method":"load"}, + // data: {method:"load",messageNum:$(".box").length.toString()}, + data: {method:"load"}, success: function (result) { if(result!=null){ // alert("得到服务器的数据为:"+result+"类型为"+typeof result);