Explorar o código

하나 더 추가

잉여개발기 (SPDV) %!s(int64=2) %!d(string=hai) anos
pai
achega
a77a23f15f
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      route/tool/func_render_namumark.py

+ 3 - 0
route/tool/func_render_namumark.py

@@ -2320,6 +2320,9 @@ class class_do_render_namumark:
             document.querySelectorAll('details').forEach((el) => {
                 new Accordion(el);
             });
+            if(window.location.hash !== '' && document.getElementById(window.location.hash.replace(/^#/, ''))) {
+                document.getElementById(window.location.hash.replace(/^#/, '')).focus();
+            }\n
         '''
 
     def __call__(self):