Skip to content
Snippets Groups Projects
Commit 11d23dc1 authored by echicken's avatar echicken :chicken:
Browse files

Getting rid of the .examples directories (work in progress).

parent 1f9b418c
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Showing
with 8 additions and 8 deletions
File moved
File moved
File moved
...@@ -11,19 +11,19 @@ ...@@ -11,19 +11,19 @@
<?xjs } ?> <?xjs } ?>
<?xjs <?xjs
function menu(obj, path) { function menu(arr, path) {
Object.keys(obj).forEach(function (e) { arr.forEach(function (e) {
if (obj[e].type == 'list') { if (e.type == 'list') {
subMenu(obj[e], e, (path || '') + e + '/'); subMenu(e, e.title, (path || '') + e.title + '/');
} else { } else {
?> ?>
<li> <li>
<?xjs if (obj[e].type == 'link') { ?> <?xjs if (e.type == 'link') { ?>
<a class="dropdown-item" href="./?page=<?xjs write(obj[e].page); ?>" target="_blank"> <a class="dropdown-item" href="./?page=<?xjs write(e.page); ?>" target="_blank">
<?xjs } else { ?> <?xjs } else { ?>
<a class="dropdown-item" href="./?page=<?xjs write((path || '') + obj[e].page); ?>"> <a class="dropdown-item" href="./?page=<?xjs write((path || '') + e.page); ?>">
<?xjs } ?> <?xjs } ?>
<? write(e); ?> <? write(e.title); ?>
</a> </a>
</li> </li>
<?xjs <?xjs
......
File moved
File moved
File moved
File moved
File moved
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment