You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1007 B
34 lines
1007 B
$(document).ready(function () { |
|
|
|
|
|
//Content Fade |
|
|
|
|
|
$('.cdiv_1,.cdiv_2').mouseenter(function test2() { |
|
$(this).stop(true,true).fadeTo(280 , 1); |
|
}); |
|
$('.cdiv_1,.cdiv_2').mouseleave(function test3(){ |
|
$(this).stop(true,true).fadeTo(600,0.6); |
|
}); |
|
|
|
|
|
//Change View Mode |
|
|
|
$('input.vms').click(function test1() { |
|
$('#container>div#here').stop(true, true).fadeTo(500,0); |
|
setTimeout(cdivclass,510); |
|
setTimeout(c_fadein,550); |
|
$(this).toggleClass('vms'); |
|
$(this).toggleClass('vmshl'); |
|
$('#viewmode-switch').css('margin', 'auto'); |
|
}); |
|
|
|
function cdivclass() { |
|
$('#container>div#here').toggleClass('cdiv_1'); |
|
$('#container>div#here').toggleClass('cdiv_2'); |
|
}; |
|
|
|
function c_fadein() { |
|
$('#container>div#here').stop(true,true).fadeTo(500,0.5); |
|
} |
|
}); |