관리자에서 모바일 플레이어 접근 시 height 계산 로직 변경
This commit is contained in:
parent
04b28bcb4a
commit
525f0e7c7a
|
|
@ -66,29 +66,30 @@
|
|||
</div><!-- player -->
|
||||
<div id="loading" style="display: none;position: fixed; top: 20%; left: 10%; right: 10%; border-radius: 10px; text-align: center; font-size: 20px; z-index: 2998; padding: 50px 0px; background-color: #333; opacity: 0.8; color: #fff;">콘텐츠를 로딩중입니다.</div>
|
||||
<script type="text/javascript">
|
||||
//$('html, body').css({'display':'block', 'height':'100%'});
|
||||
//$("#ifr1").load(function () {
|
||||
//
|
||||
//});
|
||||
|
||||
// 관리자에세 url 매개변수로 ismobile=1 을 함께 보낸다. 이에 대한 처리가 되어 있지 않음
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const adminMobile = urlParams.get('ismobile') || '0';
|
||||
|
||||
|
||||
$('html, body').addClass('player')
|
||||
function plymClose (){
|
||||
$('#plyHbg').removeClass('on');
|
||||
$('.plyMenu').animate({ left: '-200px' }, 300);
|
||||
//if (!ismobile()) {
|
||||
// $('.plyWrap').animate({ marginLeft: '0px' }, 300);
|
||||
//}
|
||||
};
|
||||
$('.plyMenu').animate({ left: '-200px' }, 300);
|
||||
};
|
||||
|
||||
|
||||
|
||||
$('#plyHbg').click(function(){
|
||||
if($(this).is('.on')) {
|
||||
plymClose();
|
||||
}else {
|
||||
}
|
||||
else {
|
||||
$(this).addClass('on');
|
||||
$('.plyMenu').animate({ left: '0px' }, 300);
|
||||
//if (!ismobile()) {
|
||||
// $('.plyWrap').animate({ marginLeft: '200px' }, 300);
|
||||
//}
|
||||
$('.plyMenu').animate({ left: '0px' }, 300);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$('#plymClose').click(function(){
|
||||
plymClose();
|
||||
});
|
||||
|
|
@ -181,16 +182,29 @@
|
|||
msg("콘텐츠를 학습할 수 없는 상태입니다. 운영자에게 문의해주세요.", null, null, null, "goclose()");
|
||||
}
|
||||
});
|
||||
if (ismobile()) {
|
||||
//$("#layermessage2 div").first().html("사용 중인 요금제에 따라 데이터 요금이 발생할 수 있습니다.");
|
||||
//_isload = true;
|
||||
//confirmtoggle(true, "사용 중인 요금제에 따라 데이터 요금이 발생할 수 있습니다.", "_isload=false;fncontents();", "_passunload = true;self.close();");
|
||||
//$("#layermessage2,#bglayer2").show();
|
||||
if ($("#ifr1").length > 0) {
|
||||
$("#ifr1").addClass("mobileiframe");
|
||||
$("#ifr1")[0].height = ($(window).height() - 180) + 'px';
|
||||
|
||||
if (ismobile() || adminMobile == '1') {
|
||||
//if ($("#ifr1").length > 0) {
|
||||
// $("#ifr1").addClass("mobileiframe");
|
||||
// $("#ifr1")[0].height = ($(window).height() - 180) + 'px';
|
||||
//}
|
||||
|
||||
var iframe = $("#ifr1");
|
||||
|
||||
if (iframe.length > 0) {
|
||||
var headerHeight = $('#header').outerHeight() || 180;
|
||||
var newHeight = $(window).height() - headerHeight;
|
||||
|
||||
iframe.css({
|
||||
'width': '100%',
|
||||
'height': newHeight + 'px'
|
||||
});
|
||||
}
|
||||
else {
|
||||
console.error("ifr1 요소를 찾지 못함!");
|
||||
}
|
||||
}
|
||||
|
||||
if (@Model.istaste == 1) {
|
||||
srcchange();
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue