잉여개발기 (SPDV) пре 2 година
родитељ
комит
a77a23f15f
1 измењених фајлова са 3 додато и 0 уклоњено
  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):