사이드뷰 제어 스크립트 추가
This commit is contained in:
1 parent
3730858c48
commit
d051cacf7f
1 file changed
+14
-2
+14
-2
@@ -569,13 +569,25 @@ $(function(){
|
||||
});
|
||||
|
||||
// 사이드뷰
|
||||
var sv_hide = true;
|
||||
$('.sv').click(function() {
|
||||
$('.sv_wrap').hide();
|
||||
$(this).find('.sv_wrap').css("display", "block");
|
||||
$(this).find('.sv_wrap').show();
|
||||
|
||||
});
|
||||
|
||||
$('.sv_wrap').hover(
|
||||
function() {
|
||||
sv_hide = false;
|
||||
},
|
||||
function() {
|
||||
sv_hide = true;
|
||||
}
|
||||
);
|
||||
|
||||
$(document).click(function() {
|
||||
// $('.sv_wrap').hide();
|
||||
if(sv_hide) {
|
||||
$('.sv_wrap').hide();
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user