feat: Add CDNDania downloader, enhance mobile responsiveness for anime request templates, and refine Ohli24 episode numbering.
This commit is contained in:
@@ -149,19 +149,26 @@
|
||||
str += '<div class="episode-list-container">';
|
||||
for (let i in data.episode) {
|
||||
let epThumbSrc = data.episode[i].thumbnail || '';
|
||||
let epTitle = data.episode[i].title || '';
|
||||
|
||||
// 에피소드 번호 추출 (title에서 "N화" 패턴 찾기)
|
||||
let epNumMatch = epTitle.match(/(\d+)화/);
|
||||
let epNumText = epNumMatch ? epNumMatch[1] + '화' : (parseInt(i) + 1) + '화';
|
||||
|
||||
str += '<div class="episode-card">';
|
||||
str += '<div class="episode-thumb">';
|
||||
if (epThumbSrc) {
|
||||
str += '<img src="' + epThumbSrc + '" loading="lazy" onerror="this.style.display=\'none\'">';
|
||||
}
|
||||
str += '<span class="episode-num">' + (parseInt(i) + 1) + '화</span>';
|
||||
str += '<span class="episode-num">' + epNumText + '</span>';
|
||||
str += '</div>';
|
||||
str += '<div class="episode-info">';
|
||||
str += '<div class="episode-title">' + data.episode[i].title + '</div>';
|
||||
str += '<div class="episode-info-row">';
|
||||
str += '<div class="episode-title">' + epTitle + '</div>';
|
||||
if (data.episode[i].date) {
|
||||
str += '<div class="episode-date">' + data.episode[i].date + '</div>';
|
||||
}
|
||||
str += '</div>';
|
||||
str += '<div class="episode-actions">';
|
||||
str += '<input id="checkbox_' + i + '" name="checkbox_' + i + '" type="checkbox" checked data-toggle="toggle" data-on="선택" data-off="-" data-onstyle="success" data-offstyle="secondary" data-size="small">';
|
||||
str += m_button('add_queue_btn', '다운로드', [{'key': 'idx', 'value': i}]);
|
||||
@@ -465,19 +472,22 @@
|
||||
border-color: rgba(var(--bs-light-rgb), var(--bs-border-opacity)) !important;
|
||||
}
|
||||
|
||||
/* 에피소드 목록 컨테이너 */
|
||||
/* 에피소드 목록 컨테이너 - 반응형 그리드 */
|
||||
.episode-list-container {
|
||||
margin-top: 20px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
||||
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
||||
gap: 10px;
|
||||
padding: 0 5px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* 에피소드 카드 */
|
||||
.episode-card {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
gap: 8px 12px;
|
||||
padding: 10px 12px;
|
||||
background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.85) 100%);
|
||||
border-radius: 8px;
|
||||
@@ -524,15 +534,25 @@
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
/* 에피소드 정보 */
|
||||
/* 에피소드 정보 - 2줄 레이아웃 */
|
||||
.episode-info {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 4px 10px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
/* 제목과 날짜를 담는 첫번째 줄 */
|
||||
.episode-info-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.episode-title {
|
||||
color: #e2e8f0;
|
||||
font-weight: 500;
|
||||
@@ -541,19 +561,28 @@
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.episode-date {
|
||||
color: #64748b;
|
||||
font-size: 11px;
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* 에피소드 액션 버튼 */
|
||||
/* 에피소드 액션 버튼 - 선택 좌측, 다운로드 우측 */
|
||||
.episode-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
margin-top: 4px;
|
||||
flex-wrap: wrap;
|
||||
width: 100%;
|
||||
margin-top: 2px;
|
||||
padding-top: 6px;
|
||||
border-top: 1px solid rgba(148, 163, 184, 0.1);
|
||||
}
|
||||
|
||||
.episode-actions .btn {
|
||||
@@ -566,10 +595,261 @@
|
||||
transform: scale(0.85);
|
||||
}
|
||||
|
||||
/* 반응형 */
|
||||
/* 모바일 반응형 - Bootstrap 모든 레이아웃 강제 덮어쓰기 */
|
||||
@media (max-width: 768px) {
|
||||
/* 전체 페이지 기본 설정 */
|
||||
body {
|
||||
overflow-x: hidden !important;
|
||||
padding: 0 !important;
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
/* 모든 컨테이너/row 폭 100% 강제 */
|
||||
.container, .container-fluid, .container-sm, .container-md, .container-lg,
|
||||
.row, form, #program_list, #program_auto_form, #episode_list {
|
||||
width: 100% !important;
|
||||
max-width: 100% !important;
|
||||
padding-left: 10px !important;
|
||||
padding-right: 10px !important;
|
||||
margin-left: 0 !important;
|
||||
margin-right: 0 !important;
|
||||
box-sizing: border-box !important;
|
||||
}
|
||||
|
||||
/* form-group 및 모든 col 클래스 */
|
||||
.form-group, .form-inline,
|
||||
[class*="col-"] {
|
||||
flex: 0 0 100% !important;
|
||||
max-width: 100% !important;
|
||||
width: 100% !important;
|
||||
padding-left: 0 !important;
|
||||
padding-right: 0 !important;
|
||||
}
|
||||
|
||||
/* row 마진 제거 */
|
||||
.row {
|
||||
margin-left: 0 !important;
|
||||
margin-right: 0 !important;
|
||||
}
|
||||
|
||||
/* 입력 폼 스타일 */
|
||||
#program_list .form-group {
|
||||
display: flex !important;
|
||||
flex-direction: column !important;
|
||||
gap: 8px !important;
|
||||
}
|
||||
|
||||
#program_list input.form-control {
|
||||
width: 100% !important;
|
||||
box-sizing: border-box !important;
|
||||
}
|
||||
|
||||
#program_list .btn {
|
||||
width: auto !important;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* 버튼 그룹 */
|
||||
.form-inline {
|
||||
display: flex !important;
|
||||
flex-wrap: wrap !important;
|
||||
gap: 6px !important;
|
||||
margin-bottom: 10px !important;
|
||||
}
|
||||
|
||||
.form-inline .btn {
|
||||
font-size: 11px;
|
||||
padding: 6px 10px;
|
||||
}
|
||||
|
||||
/* ===== 상단 정보 카드 ===== */
|
||||
.card.p-lg-5, .card.border-light {
|
||||
width: calc(100% - 20px) !important;
|
||||
max-width: 100% !important;
|
||||
padding: 15px !important;
|
||||
margin: 10px !important;
|
||||
border-radius: 12px !important;
|
||||
box-sizing: border-box !important;
|
||||
}
|
||||
|
||||
.card.p-lg-5 > .row {
|
||||
display: flex !important;
|
||||
flex-direction: column !important;
|
||||
width: 100% !important;
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
/* 메인 썸네일 - 중앙 정렬 */
|
||||
.card.p-lg-5 > .row > [class*="col-"]:first-child {
|
||||
flex: 0 0 100% !important;
|
||||
max-width: 100% !important;
|
||||
text-align: center !important;
|
||||
margin-bottom: 15px !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
.card.p-lg-5 > .row > [class*="col-"]:first-child img {
|
||||
width: 70% !important;
|
||||
max-width: 220px !important;
|
||||
height: auto !important;
|
||||
border-radius: 10px !important;
|
||||
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
|
||||
}
|
||||
|
||||
/* 정보 컬럼 - 전체 폭 */
|
||||
.card.p-lg-5 > .row > [class*="col-"]:last-child {
|
||||
flex: 0 0 100% !important;
|
||||
max-width: 100% !important;
|
||||
width: 100% !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
/* 정보 테이블 각 행 - 카드 스타일 */
|
||||
.card.p-lg-5 .row .row {
|
||||
display: flex !important;
|
||||
flex-direction: row !important;
|
||||
flex-wrap: nowrap !important;
|
||||
align-items: flex-start !important;
|
||||
width: 100% !important;
|
||||
max-width: 100% !important;
|
||||
margin: 0 0 6px 0 !important;
|
||||
padding: 10px 12px !important;
|
||||
background: rgba(255, 255, 255, 0.06) !important;
|
||||
border-radius: 8px !important;
|
||||
box-sizing: border-box !important;
|
||||
}
|
||||
|
||||
/* 정보 라벨 (제목, 원제 등) */
|
||||
.card.p-lg-5 .row .row > [class*="col-"]:first-child {
|
||||
flex: 0 0 60px !important;
|
||||
max-width: 60px !important;
|
||||
min-width: 60px !important;
|
||||
font-size: 11px !important;
|
||||
font-weight: 600 !important;
|
||||
color: #94a3b8 !important;
|
||||
text-align: left !important;
|
||||
padding: 0 5px 0 0 !important;
|
||||
}
|
||||
|
||||
/* 정보 값 */
|
||||
.card.p-lg-5 .row .row > [class*="col-"]:last-child {
|
||||
flex: 1 1 auto !important;
|
||||
max-width: none !important;
|
||||
font-size: 12px !important;
|
||||
color: #e2e8f0 !important;
|
||||
word-break: break-word !important;
|
||||
text-align: left !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
/* ===== 에피소드 목록 ===== */
|
||||
.episode-list-container {
|
||||
grid-template-columns: 1fr;
|
||||
display: flex !important;
|
||||
flex-direction: column !important;
|
||||
gap: 8px !important;
|
||||
width: 100% !important;
|
||||
max-width: 100% !important;
|
||||
padding: 0 !important;
|
||||
margin: 15px 0 !important;
|
||||
box-sizing: border-box !important;
|
||||
}
|
||||
|
||||
.episode-card {
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
width: 100% !important;
|
||||
max-width: 100% !important;
|
||||
padding: 10px 12px !important;
|
||||
gap: 10px !important;
|
||||
margin: 0 !important;
|
||||
box-sizing: border-box !important;
|
||||
}
|
||||
|
||||
.episode-thumb {
|
||||
width: 55px !important;
|
||||
min-width: 55px !important;
|
||||
height: 42px !important;
|
||||
flex-shrink: 0 !important;
|
||||
}
|
||||
|
||||
.episode-info {
|
||||
flex: 1 !important;
|
||||
min-width: 0 !important;
|
||||
flex-direction: row !important;
|
||||
align-items: center !important;
|
||||
justify-content: space-between !important;
|
||||
}
|
||||
|
||||
.episode-title {
|
||||
font-size: 12px !important;
|
||||
white-space: nowrap !important;
|
||||
overflow: hidden !important;
|
||||
text-overflow: ellipsis !important;
|
||||
line-height: 1.3 !important;
|
||||
flex: 1 !important;
|
||||
min-width: 0 !important;
|
||||
}
|
||||
|
||||
.episode-date {
|
||||
font-size: 10px !important;
|
||||
color: #64748b !important;
|
||||
flex-shrink: 0 !important;
|
||||
margin-left: 8px !important;
|
||||
}
|
||||
|
||||
.episode-actions {
|
||||
display: flex !important;
|
||||
flex-wrap: wrap !important;
|
||||
gap: 6px !important;
|
||||
margin-top: 5px !important;
|
||||
}
|
||||
|
||||
.episode-actions .btn {
|
||||
font-size: 10px !important;
|
||||
padding: 4px 10px !important;
|
||||
}
|
||||
|
||||
.episode-actions .toggle {
|
||||
transform: scale(0.85) !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* 더 작은 화면 (400px 이하) */
|
||||
@media (max-width: 400px) {
|
||||
.card.p-lg-5 > .row > [class*="col-"]:first-child img {
|
||||
width: 60% !important;
|
||||
max-width: 180px !important;
|
||||
}
|
||||
|
||||
.card.p-lg-5 .row .row > [class*="col-"]:first-child {
|
||||
flex: 0 0 50px !important;
|
||||
max-width: 50px !important;
|
||||
min-width: 50px !important;
|
||||
font-size: 10px !important;
|
||||
}
|
||||
|
||||
.card.p-lg-5 .row .row > [class*="col-"]:last-child {
|
||||
font-size: 11px !important;
|
||||
}
|
||||
|
||||
.episode-thumb {
|
||||
width: 45px !important;
|
||||
min-width: 45px !important;
|
||||
height: 34px !important;
|
||||
}
|
||||
|
||||
.episode-num {
|
||||
font-size: 8px !important;
|
||||
padding: 1px 3px !important;
|
||||
}
|
||||
|
||||
.episode-title {
|
||||
font-size: 12px !important;
|
||||
}
|
||||
|
||||
.episode-actions .btn {
|
||||
font-size: 9px !important;
|
||||
padding: 3px 8px !important;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user