Select Git revision
-
Dean Camera authored
Fixed AVRISP-MKII clone project not correctly issuing SET EXTENDED ADDRESS commands when the extended address boundary is crossed during programming or readback (thanks to Gerard Sexton). Fixed warnings when building the AVRISP-MKII clone project with the ENABLE_XPROG_PROTOCOL compile time option disabled.
Dean Camera authoredFixed AVRISP-MKII clone project not correctly issuing SET EXTENDED ADDRESS commands when the extended address boundary is crossed during programming or readback (thanks to Gerard Sexton). Fixed warnings when building the AVRISP-MKII clone project with the ENABLE_XPROG_PROTOCOL compile time option disabled.
navbar.js 1.41 KiB
/**
* Created by aghassaei on 1/7/15.
*/
function setupNavBar(threeSpace){
var allMenus = $(".navMenu");
var allNavMenuLinks = $(".menuHoverControls");
var allNavDropdownMenus = $(".navDropdown");
var allNavTitles = $(".navbar-nav li a");
allNavMenuLinks.mouseover(function(){
hideAllMenus();
$(this).parent().addClass("open");//highlight
var menuId = "#" + $(this).data("menuId");
$(menuId).show();
});
function hideAllMenus(){
allMenus.hide();
allNavMenuLinks.parent().removeClass("open");//no highlight
allNavDropdownMenus.removeClass("open");//no highlight
allNavTitles.blur();
}
$("#threeContainer").mousedown(function(){
hideAllMenus();
});
$("#mainNavLink").mouseover(function(){
hideAllMenus();
});
allNavDropdownMenus.mouseover(function(){
hideAllMenus();
$(this).addClass("open");
});
//remove nav text coloring on click
allNavTitles.click(function(e){
e.preventDefault();
return false;
});
//clear canvas
$("#clearAll").click(function(){
var children = threeSpace.scene.children;
for (var i=children.length;i>=0;i--){
var object = children[i];
if (object instanceof THREE.Mesh){
threeSpace.scene.remove(object);
}
}
threeSpace.render();
});
}