59 lines
1.8 KiB
JavaScript
59 lines
1.8 KiB
JavaScript
|
|
//모바일메뉴
|
|||
|
|
//$('#lctmbBtn').click(function(){
|
|||
|
|
// if($(this).is('.on')) {
|
|||
|
|
// $('#lctmMenu').slideUp('fast');
|
|||
|
|
// $(this).removeClass('on');
|
|||
|
|
// $('html, body').removeClass('lock');
|
|||
|
|
// }else {
|
|||
|
|
// $('#lctmMenu').slideDown('fast');
|
|||
|
|
// $(this).addClass('on');
|
|||
|
|
// $('html, body').addClass('lock');
|
|||
|
|
// }
|
|||
|
|
//});
|
|||
|
|
function outcroom(islogout) {
|
|||
|
|
//로그아웃 여기서 강의실 퇴실 기록해야하지 않나?
|
|||
|
|
if (islogout) {
|
|||
|
|
location.href = "/Account/Logout";
|
|||
|
|
} else {
|
|||
|
|
location.href = "/My/Index";
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
$(function () {
|
|||
|
|
$(window).scroll(function () {
|
|||
|
|
if ($(this).scrollTop() > 500) {
|
|||
|
|
$('#mbbTop').fadeIn();
|
|||
|
|
} else {
|
|||
|
|
$('#mbbTop').fadeOut();
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
$("#mbbTop").click(function () {
|
|||
|
|
$('html, body').animate({
|
|||
|
|
scrollTop: 0
|
|||
|
|
}, 400);
|
|||
|
|
return false;
|
|||
|
|
});
|
|||
|
|
//모바일메뉴
|
|||
|
|
$('#lctmbBtn').click(function () {
|
|||
|
|
if ($(this).is('.on')) {
|
|||
|
|
$('#lctmMenu').slideUp('fast');
|
|||
|
|
$(this).removeClass('on');
|
|||
|
|
$('html, body').removeClass('lock');
|
|||
|
|
$("#lctInfo").removeClass("mobilemenuon");
|
|||
|
|
} else {
|
|||
|
|
$('#lctmMenu').slideDown('fast');
|
|||
|
|
$(this).addClass('on');
|
|||
|
|
$('html, body').addClass('lock');
|
|||
|
|
$("#lctInfo").addClass("mobilemenuon");
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
});
|
|||
|
|
$(document).ready(function () {
|
|||
|
|
$('#lctmBtn').click(function () {
|
|||
|
|
capp("/focommon/croompageleftmenu", { on: $("#lctMenu").hasClass("on") ? "" : "on" }, "");
|
|||
|
|
$('#lctMenu').toggleClass('on');
|
|||
|
|
$('#lecture').toggleClass('on');
|
|||
|
|
});
|
|||
|
|
$('html, body, #lecture').css({ 'display': 'block', 'width': '100%', 'height': '100%' });
|
|||
|
|
$('html, body').addClass('lecture');
|
|||
|
|
});
|