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

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

parent ce33cbdf
No related branches found
No related tags found
No related merge requests found
Showing
with 8 additions and 8 deletions
File moved
File moved
File moved
......@@ -11,19 +11,19 @@
<?xjs } ?>
<?xjs
function menu(obj, path) {
Object.keys(obj).forEach(function (e) {
if (obj[e].type == 'list') {
subMenu(obj[e], e, (path || '') + e + '/');
function menu(arr, path) {
arr.forEach(function (e) {
if (e.type == 'list') {
subMenu(e, e.title, (path || '') + e.title + '/');
} else {
?>
<li>
<?xjs if (obj[e].type == 'link') { ?>
<a class="dropdown-item" href="./?page=<?xjs write(obj[e].page); ?>" target="_blank">
<?xjs if (e.type == 'link') { ?>
<a class="dropdown-item" href="./?page=<?xjs write(e.page); ?>" target="_blank">
<?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 } ?>
<? write(e); ?>
<? write(e.title); ?>
</a>
</li>
<?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.
Finish editing this message first!
Please register or to comment