Learn: section actions on the title row, scrollable tables, copy code

This commit is contained in:
2026-09-17 20:16:35 +03:00
parent 65b94f11cb
commit 6b1213f4cf
7 changed files with 189 additions and 67 deletions

View File

@@ -12,6 +12,7 @@
<script th:src="@{/js/highlight.min.js}" defer></script>
<script th:src="@{/js/tablekit.js}" defer></script>
<script th:src="@{/js/ui-state.js}" defer></script>
<script th:src="@{/js/md-content.js}" defer></script>
<script>
(function(){
var t = localStorage.getItem('lms-theme') || 'light';
@@ -34,6 +35,12 @@
function closeModal(id){ var d=document.getElementById(id); if(d) d.close(); }
function openModalData(btn){ openModal(btn.dataset.modal); }
function closeModalData(btn){ closeModal(btn.dataset.modal); }
function toggleSection(btn){
var acc = btn.closest('.sub-acc');
if (!acc) return;
var collapsed = acc.classList.toggle('collapsed');
btn.setAttribute('aria-expanded', collapsed ? 'false' : 'true');
}
</script>
</head>
<body>