|
|
|
|
function adjust_height(){
|
|
|
|
|
var win_height = $(window).height();
|
|
|
|
|
$('div#left, div#right').css('height', (win_height- (win_height/100)) );
|
|
|
|
|
console.log(win_height);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
adjust_height()
|
|
|
|
|
|
|
|
|
|
/* hidden Manual, Git links until manual as uploaded and git dir are ready */
|
|
|
|
|
// $('div.links > a:contains("Manual")').css('display', 'none');
|
|
|
|
|
// $('div.links > a:contains("Git")').css('display', 'none');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Img of module on mouseenter
|
|
|
|
|
|
|
|
|
|
$('div.moduleimg img').mouseenter(function(){
|
|
|
|
|
var modulo_photo = $(this).attr('src').replace('img/pcb_', 'img/mimgphoto_').replace('.png','.jpg');
|
|
|
|
|
$(this).attr('src', modulo_photo);
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
$('div.moduleimg img').mouseleave(function(){
|
|
|
|
|
var modulo_pcb = $(this).attr('src').replace('img/mimgphoto_', 'img/pcb_').replace('.jpg','.png');
|
|
|
|
|
$(this).attr('src', modulo_pcb);
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
$(window).resize(function(){
|
|
|
|
|
adjust_height();
|
|
|
|
|
})
|