<!DOCTYPE html>
<head>
<link rel="stylesheet" href="assets/templates/main/menu/kuro.menu.css">
<script src=" assets/templates/main/menu/jquery.js"></script>
<script src="assets/templates/main/menu/kuro.menu.js"></script>
</head>
<body>
[[!Wayfinder? &config=`kuro`]]
<script type="text/javascript">
$(document).ready(function() {
function megaHoverOver(){
$(this).find(".sub").stop().fadeTo('fast', 1).show();
//Calculate width of all ul's
(function($) {
jQuery.fn.calcSubWidth = function() {
rowWidth = 0;
noColumns = 3;
//Calculate row
$(this).find("ul").each(function() {
maxWidth = ($(this).width() * noColumns);
rowWidth += $(this).width();
if(rowWidth > maxWidth) {
rowWidth = maxWidth;
}
});
};
})(jQuery);
if ( $(this).find(".row").length > 0 ) { //If row exists...
var biggestRow = 0;
//Calculate each row
$(this).find(".row").each(function() {
$(this).calcSubWidth();
//Find biggest row
if(rowWidth > biggestRow) {
biggestRow = rowWidth;
}
});
//Set width
$(this).find(".sub").css({'width' :biggestRow});
$(this).find(".row:last").css({'margin':'0'});
} else { //If row does not exist...
$(this).calcSubWidth();
//Set Width
$(this).find(".sub").css({'width' : rowWidth});
}
}
function megaHoverOut(){
$(this).find(".sub").stop().fadeTo('fast', 0, function() {
$(this).hide();
});
}
var config = {
sensitivity: 2, // number = sensitivity threshold (must be 1 or higher)
interval: 100, // number = milliseconds for onMouseOver polling interval
over: megaHoverOver, // function = onMouseOver callback (REQUIRED)
timeout: 600, // number = milliseconds delay before onMouseOut
out: megaHoverOut // function = onMouseOut callback (REQUIRED)
};
$("ul#topnav li .sub").css({'opacity':'0'});
$("ul#topnav li").hoverIntent(config);
});
</script>
</body>
</html><?php $startId = 0; $level = 4; $selfClass = ''; $firstClass = ''; $hereClass = 'current'; $lastClass = 'last'; $parentClass = 'parent'; $outerTpl = '@CODE:<ul class="kuro-menu[[+wf.classnames]]">[[+wf.wrapper]]</ul>'; $innerTpl = '@CODE:<ul[[+wf.classes]]>[[+wf.wrapper]]</ul>'; $rowTpl = '@CODE:<li[[+wf.id]][[+wf.classes]]><a href="[[+wf.link]]" [[+wf.attributes]]>[[+wf.linktext]]</a>[[+wf.wrapper]]</li>'; $innerRowTpl = '@CODE:<li[[+wf.id]][[+wf.classes]]><a href="[[+wf.link]]" [[+wf.attributes]]>[[+wf.linktext]]</a>[[+wf.wrapper]]<div class="pullquote"><h2>[[+wf.linktext]]</h2><p>[[+wf.title]]</p></div></li>'; ?>
[[!Wayfinder? &startId=`0` &config=`kuro`]]