Line 3: | Line 3: | ||
$('.wide').height($(window).height()-$('#menu').height() - 30) | $('.wide').height($(window).height()-$('#menu').height() - 30) | ||
$('#leftnav').height($(window).height() - $('#menu').height() - 100) | $('#leftnav').height($(window).height() - $('#menu').height() - 100) | ||
+ | |||
+ | $('.ui.menu a.item') | ||
+ | .on('click', function() { | ||
+ | $(this) | ||
+ | .addClass('active') | ||
+ | .siblings() | ||
+ | .removeClass('active') | ||
+ | ; | ||
+ | }) | ||
+ | ; | ||
}) | }) |
Revision as of 07:48, 14 October 2018
$(document).ready(function () {
$('.container').height($(window).height()-$('#menu').height() - 12) $('.wide').height($(window).height()-$('#menu').height() - 30) $('#leftnav').height($(window).height() - $('#menu').height() - 100)
$('.ui.menu a.item')
.on('click', function() { $(this) .addClass('active') .siblings() .removeClass('active') ; }) ; })