Ver Fonte

TOC로 변경

Surplus_Up (2DU) há 7 anos atrás
pai
commit
aea27ae5f2
2 ficheiros alterados com 3 adições e 2 exclusões
  1. 1 1
      route/tool/set_mark/namu.py
  2. 2 1
      views/main_css/css/main.css

+ 1 - 1
route/tool/set_mark/namu.py

@@ -552,7 +552,7 @@ def namu(conn, data, title, main_num):
     toc_top_stack = 6
     toc_stack = [0, 0, 0, 0, 0, 0]
     edit_number = 0
-    toc_data = '<div id="toc"><span style="font-size: 18px;">toc</span>\n\n'
+    toc_data = '<div id="toc"><span id="toc_title">TOC</span>\n\n'
     while 1:
         toc = re.search('\n(={1,6}) ?((?:(?!\n).)+) ?\n', data)
         if toc:

+ 2 - 1
views/main_css/css/main.css

@@ -34,4 +34,5 @@ s:hover, strike:hover, del:hover { color: gray; background-color: gainsboro; tex
 body { word-break: break-all; overflow: auto; }
 hr.main_hr { border: none; }
 #include_link { display: none; }
-.foot_plus { background: gainsboro; }
+.foot_plus { background: gainsboro; }
+#toc_title { font-size: 18px; }