Browse Source

tweak more

root 2 years ago
parent
commit
60d478cdc8
4 changed files with 7 additions and 6 deletions
  1. 2 1
      log/index.html
  2. 1 1
      minecraft/index.html
  3. 2 2
      minecraft/minify.py
  4. 2 2
      score/index.html

+ 2 - 1
log/index.html

@@ -125,6 +125,7 @@
                 });
             })
             dat = new Date();
+            dat.setHours(dat.getHours() + 8)
             $('#new').text(dat.toISOString().split('T')[0].replace(/-/g, '.'))
         })
         function upload(str, small) {
@@ -157,7 +158,7 @@
     <a class="btn btn-info" href="/"><span class="glyphicon glyphicon-home" aria-hidden="true"></span>&nbsp;返回</a>
     <div class="page-header">
         <h1>网站日志
-            <button class="btn btn-default noshadow" onclick="$('.add').toggle()"><span
+            <button class="btn btn-default noshadow" onclick="$('.add').toggle();$(this).children().toggleClass('glyphicon-arrow-down')"><span
                     class="glyphicon glyphicon-plus"></span></button>
         </h1>
     </div>

+ 1 - 1
minecraft/index.html

@@ -71,7 +71,7 @@
                 "2021-09-18_21.15.04.png,9.18",
                 "2021-09-18_21.15.23.png",
                 "2021-09-18_21.16.26.png,,再见了,出生点小屋",
-                "2021-09-20_09.14.41.png,9.20,空置域完成咯",
+                "2021-09-20_09.14.41.png,9.20,炸了五天,空置域完成咯",
                 "2021-09-28_23.55.51.png,9.28,基地欣欣向荣",
                 "2021-09-28_23.56.08.png,,某人设计的很漂亮的景观",
                 "2021-09-29_00.00.03.png,9.29,小武家,真美",

+ 2 - 2
minecraft/minify.py

@@ -3,14 +3,14 @@ import glob
 from PIL import Image
     
 def thumbnail_pic(path):
-    a=glob.glob(r'image/*.png')
+    a=glob.glob(r'about/stamp.png')
     print(a)
     for x in a:
         name=os.path.join(path,x)
         im=Image.open(name)
         im.thumbnail((400,400))
         print(im.format,im.size,im.mode)
-        im.save('./img/'+name.split('/')[2])
+        im.save('about/'+name.split('/')[2])
         print('done!')
     
 if __name__=='__main__':

+ 2 - 2
score/index.html

@@ -144,7 +144,7 @@
         <input id="Input" type="text" class="form-control" autocomplete="off" placeholder="20222001 或 小明">
         <span class="input-group-btn">
             <button type="button" class="btn btn-success" onclick="fetchMe($('#Input').val())"
-                id="fetchBtn">FETCH</button>
+                id="fetchBtn"><span class="glyphicon glyphicon-hand-right" aria-hidden="true"></span> FETCH</button>
         </span>
     </div>
     <div style="text-align: center;" class="hidable">
@@ -184,7 +184,7 @@
         <ul class="nav nav-tabs">
             <li class="active"><a href="#chart" data-toggle="tab" onclick="resizeChart()">图表</a></li>
             <li><a href="#data" data-toggle="tab">数据</a></li>
-            <li><a href="#single" data-toggle="tab" onclick="getSe(curSe,1)">单科</a></li>
+            <li><a href="#single" data-toggle="tab" onclick="getSe(curSe,1)">答题卡</a></li>
             <li><a href="#other" data-toggle="tab">谁问你了</a></li>
         </ul>
         <div class="tab-content well well-sm">