From 6876084ffc4a01c1eca6a609dec8c176efc59aae Mon Sep 17 00:00:00 2001
From: zhang <zc857179121@qq.com>
Date: 星期四, 22 一月 2026 15:16:45 +0800
Subject: [PATCH] 1

---
 zy-acs-cv/src/main/webapp/views/news.html |   19 +++++++++++++------
 1 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/zy-acs-cv/src/main/webapp/views/news.html b/zy-acs-cv/src/main/webapp/views/news.html
index e548501..7f9083a 100644
--- a/zy-acs-cv/src/main/webapp/views/news.html
+++ b/zy-acs-cv/src/main/webapp/views/news.html
@@ -12,6 +12,7 @@
             height: 100%;
             width: 100%;
         }
+
         /*=============== SCROLL UP ===============*/
         .scrollup {
             text-decoration: none;
@@ -21,7 +22,7 @@
             position: fixed;
             right: 1rem;
             bottom: -55%;
-            background-color: rgb(108,167,168);
+            background-color: rgb(108, 167, 168);
             box-shadow: 0 8px 12px hsla(228, 66%, 45%, .1);
             display: inline-flex;
             padding: .35rem;
@@ -31,9 +32,11 @@
             transition: .3s;
             font-size: 8px;
         }
+
         .scrollup:hover {
             transform: translateY(-.25rem);
         }
+
         /* Show Scroll Up*/
         .show-scroll {
             bottom: 5%;
@@ -42,12 +45,15 @@
         .news-desc {
             font-size: 14px;
         }
+
         .level-1 {
             color: #333333;
         }
+
         .level-2 {
             color: #0087ec;
         }
+
         .level-3 {
             color: red;
         }
@@ -67,22 +73,23 @@
 <script>
     var autoScroll = true;
 
-    function scrollUp(){
+    function scrollUp() {
         const scrollUp = document.getElementById('scroll-up');
-        if(this.scrollY >= 100) scrollUp.classList.add('show-scroll'); else scrollUp.classList.remove('show-scroll')
+        if (this.scrollY >= 100) scrollUp.classList.add('show-scroll'); else scrollUp.classList.remove('show-scroll')
     }
+
     window.addEventListener('scroll', scrollUp)
 
-    $(document).on('click ','#scroll-up', function () {
+    $(document).on('click ', '#scroll-up', function () {
         window.scrollTo(0, 0);
         autoScroll = false;
     })
 
-    $(document).on('click ','body', function () {
+    $(document).on('click ', 'body', function () {
         autoScroll = false;
     })
 
-    setInterval(()=>{
+    setInterval(() => {
         $.ajax({
             url: baseUrl + "/news/print",
             // headers: {'token': localStorage.getItem('token')},

--
Gitblit v1.9.1