Sfoglia il codice sorgente

각주 버그 수정

Surplus_Up (2DU) 7 anni fa
parent
commit
387cf0c848
4 ha cambiato i file con 5 aggiunte e 3 eliminazioni
  1. 1 1
      app.py
  2. 0 0
      route/tool/set_mark/markdown.py
  3. 1 1
      route/tool/set_mark/namu.py
  4. 3 1
      views/main_css/main.js

+ 1 - 1
app.py

@@ -8,7 +8,7 @@ for i_data in os.listdir("route"):
 
         exec("from route." + f_src + " import *")
 
-r_ver = 'v3.1.0-master-02'
+r_ver = 'v3.1.0-master-03'
 c_ver = '400000'
 
 print('Version : ' + r_ver)

+ 0 - 0
route/tool/set_mark/markdown.py


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

@@ -942,7 +942,7 @@ def namu(conn, data, title, main_num):
 
                         footnote_all += [[float(footshort), footshort, 0]]
 
-                        data = re_footnote.sub('<sup><a href="javascript:open_foot(\'fn-' + footshort + '\')" id="rfn-' + footshort + '">(' + footshort + ')</a></sup><span class="foot_plus" id="cfn-' + footshort + '"></span>', data, 1)
+                        data = re_footnote.sub('<sup><a href="javascript:open_foot(\'fn-' + footshort + '\')" id="rfn-' + footshort + '">(' + footnote_name + ')</a></sup><span class="foot_plus" id="cfn-' + footshort + '"></span>', data, 1)
                     else:
                         data = re_footnote.sub('<sup><a href="#">(' + footnote_name + ')</a></sup>', data, 1)
                 else:

+ 3 - 1
views/main_css/main.js

@@ -1,6 +1,8 @@
 function open_foot(name) {
-    var g_data = document.getElementById(name);
     var o_data = document.getElementById('c' + name);
+    
+    name = name.replace(/\.([0-9]+)$/, '');
+    var g_data = document.getElementById(name);
 
     if(o_data.innerHTML === '') {
         o_data.innerHTML += '<sup><a onclick="open_foot(\'' + name + '\')" href="#' + name + '">(Go)</a></sup> ' + g_data.innerHTML;