Revision 0a007628
Von Sven Schöling vor etwa 12 Jahren hinzugefügt
templates/webpages/menu/menu.html | ||
---|---|---|
1 |
[%- USE L %] |
|
2 |
[%- USE HTML %] |
|
3 | 1 |
[%- USE JSON %] |
4 | 2 |
<body class="menu"> |
5 |
<div id='html-menu'> |
|
6 |
</div> |
|
3 |
<div id='html-menu'></div> |
|
7 | 4 |
<script type='text/javascript'>$(function(){$([% JSON.json(sections) %]).each(function(i,b){var a=$('<a class="ml">').append($('<span class="mii ms">').append($('<div>').addClass(b.i)),$('<span class="mic">').append(b.l));if(b.h)a.attr('href', b.h);if(b.t)a.attr('target', b.t);$('#html-menu').append($('<div class="mi">').addClass(b.c).addClass(b.s).attr('id','mi'+b.id).append(a));});$('#html-menu div.i, #html-menu div.sm').hide();$('#html-menu div.m').each(function(){$(this).click(function(){$('#html-menu div.mi').not('div.m').not('[id^='+$(this).attr('id')+'_]').hide();$('#html-menu div.mi[id^='+$(this).attr('id')+'_]').toggle()})})})</script> |
8 | 5 |
</body> |
9 | 6 |
</html> |
Auch abrufbar als: Unified diff
template kleiner gemacht.