Files
anime_downloader/templates/anime_downloader_ohli24_list.html

689 lines
31 KiB
HTML

{% extends "base.html" %}
{% block content %}
<link rel="stylesheet" href="{{ url_for('.static', filename='css/mobile_custom.css') }}"/>
<link rel="stylesheet" href="{{ url_for('.static', filename='css/' ~ arg['sub'] ~ '.css') }}"/>
<div id="ohli24_list_wrapper" class="ohli24-common-wrapper container-fluid mt-4 content-cloak ohli24-list-page">
<div class="glass-card p-4">
<div class="ohli24-header">
<div class="ohli24-header-left">
<div class="ohli24-icon-box">
<i class="bi bi-collection-play-fill text-primary" style="font-size: 1.5rem;"></i>
</div>
<div>
<h3 class="ohli24-header-title">다운로드 목록</h3>
<span class="ohli24-header-subtitle">성공적으로 완료된 에피소드 라이브러리</span>
</div>
</div>
</div>
<hr style="border-color: rgba(255,255,255,0.05); margin-bottom: 25px;">
<form id="form_search" class="form-inline mb-4" style="text-align:left; width:100%;">
<div class="search-container">
<div class="search-group-left">
<select id="order" name="order" class="form-control custom-select">
<option value="desc">최근순</option>
<option value="asc">오래된 순</option>
</select>
<select id="option" name="option" class="form-control custom-select">
<option value="all">전체</option>
<option value="completed">완료</option>
</select>
</div>
<div class="search-group-right">
<input id="search_word" name="search_word" class="form-control custom-input" type="text" placeholder="검색어를 입력하세요..." aria-label="Search">
<button id="search" class="btn custom-btn btn-search"><i class="fa fa-search"></i></button>
<button id="reset_btn" class="btn custom-btn btn-reset"><i class="fa fa-refresh"></i></button>
</div>
</div>
</form>
<div id='page1' class="mb-3"></div>
<div id="list_div"></div>
<div id='page2' class="mt-3"></div>
</div>
</div>
<!-- Custom Confirmation Modal -->
<div class="modal fade" id="confirmModal" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content animate__animated animate__zoomIn" style="background: #1e293b; border: 1px solid rgba(59, 130, 246, 0.3); border-radius: 20px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);">
<div class="modal-body text-center" style="padding: 40px 30px;">
<div style="width: 70px; height: 70px; background: rgba(239, 68, 68, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px;">
<i class="fa fa-trash animate__animated animate__shakeX animate__infinite" style="color: #ef4444; font-size: 30px;"></i>
</div>
<h4 style="color: #f1f5f9; font-weight: 700; margin-bottom: 12px;">정말 삭제하시겠습니까?</h4>
<p style="color: #94a3b8; font-size: 15px; margin-bottom: 32px;">한 번 삭제된 기록은 다시 복구할 수 없습니다.</p>
<div style="display: flex; gap: 12px; justify-content: center;">
<button type="button" class="custom-btn btn-reset" data-dismiss="modal" style="width: 120px;">취소</button>
<button type="button" id="confirmDeleteBtn" class="custom-btn" style="width: 120px; background: #ef4444; color: white;">삭제하기</button>
</div>
</div>
</div>
</div>
</div>
<!-- Animate.css & Video.js -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>
<link href="https://vjs.zencdn.net/8.10.0/video-js.css" rel="stylesheet" />
<script src="https://vjs.zencdn.net/8.10.0/video.min.js"></script>
<!-- Video Player Modal -->
<div class="modal fade" id="videoModal" tabindex="-1" role="dialog" aria-labelledby="videoModalLabel" aria-hidden="true">
<div class="modal-dialog modal-xl" role="document">
<div class="modal-content" style="background: #0f172a; border-radius: 12px;">
<div class="modal-header" style="border-bottom: 1px solid rgba(255,255,255,0.1);">
<h5 class="modal-title" id="videoModalLabel" style="color: #f1f5f9;">비디오 플레이어</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close" style="color: #f1f5f9;">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body" style="padding: 0;">
<div class="video-container" style="position: relative; overflow: hidden; background: #000;">
<video id="video-player" class="video-js vjs-big-play-centered vjs-theme-fantasy" controls preload="auto" playsinline webkit-playsinline style="width: 100%; height: auto; max-height: 80vh;">
<p class="vjs-no-js">JavaScript가 필요합니다.</p>
</video>
<!-- 화면 꽉 채우기 토글 버튼 (모바일용) -->
<button id="btn-video-zoom" class="video-zoom-btn" title="화면 비율 조절">
<i class="fa fa-expand"></i>
</button>
</div>
<!-- 플레이리스트 컨트롤 UI -->
<div class="playlist-controls">
<!-- 현재 재생 정보 + 버튼 -->
<div class="playlist-header">
<button id="btn-prev-ep" class="nav-btn" style="display: none;" title="이전 에피소드">
<i class="fa fa-chevron-left"></i>
</button>
<div class="playing-info">
<div id="current-video-title" class="video-title"></div>
<div id="playlist-progress" class="progress-text"></div>
</div>
<button id="btn-next-ep" class="nav-btn" style="display: none;" title="다음 에피소드">
<i class="fa fa-chevron-right"></i>
</button>
<div class="control-group">
<button id="btn-toggle-playlist" class="action-btn" title="목록 토글">
<i class="fa fa-list-ul"></i>
</button>
</div>
</div>
<!-- 에피소드 목록 -->
<div id="playlist-list-container" class="playlist-drawer">
<div id="playlist-list" class="playlist-grid"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="{{ url_for('.static', filename='js/sjva_global1.js') }}"></script>
<script src="{{ url_for('.static', filename='js/sjva_ui14.js') }}"></script>
<script type="text/javascript">
var package_name = "{{arg['package_name']}}";
var sub = "{{arg['sub']}}";
var current_data = null;
$(document).ready(function () {
// Force parent container to be fluid to allow full width
$("#main_container").removeClass("container").addClass("container-fluid");
// Smooth Load Trigger
setTimeout(function() {
$('.content-cloak, #menu_module_div, #menu_page_div').addClass('visible');
}, 100);
global_sub_request_search('1');
});
function global_sub_request_search(page, move_top = true) {
// console.log('........................')
var formData = get_formdata('#form_search')
formData += '&page=' + page;
$.ajax({
url: '/' + package_name + '/ajax/' + sub + '/web_list3',
type: "POST",
cache: false,
data: formData,
dataType: "json",
success: function (data) {
// console.log(data)
current_data = data;
if (move_top) {
window.scrollTo(0,0);
}
make_list(data.list);
make_page_html(data.paging);
}
});
}
$("#search").click(function (e) {
e.preventDefault();
global_sub_request_search('1');
});
$("body").on('click', '#page', function (e) {
e.preventDefault();
global_sub_request_search($(this).data('page'));
});
$("#reset_btn").click(function (e) {
e.preventDefault();
document.getElementById("order").value = 'desc';
document.getElementById("option").value = 'all';
document.getElementById("search_word").value = '';
global_sub_request_search('1')
});
$("body").on('click', '#json_btn', function (e) {
e.preventDefault();
var id = $(this).data('id');
for (i in current_data.list) {
if (current_data.list[i].id == id) {
m_modal(current_data.list[i])
}
}
});
$("body").on('click', '#self_search_btn', function (e) {
e.preventDefault();
var search_word = $(this).data('title');
document.getElementById("search_word").value = search_word;
global_sub_request_search('1')
});
var targetDeleteId = null;
$("body").on('click', '.btn-remove', function (e) {
e.preventDefault();
targetDeleteId = $(this).data('id');
$('#confirmModal').modal('show');
});
$('#confirmDeleteBtn').click(function() {
if (!targetDeleteId) return;
$.ajax({
url: '/' + package_name + '/ajax/' + sub + '/db_remove',
type: "POST",
cache: false,
data: {id: targetDeleteId},
dataType: "json",
success: function (data) {
$('#confirmModal').modal('hide');
if (data) {
$.notify('<strong>성공적으로 삭제되었습니다.</strong>', {
type: 'success'
});
global_sub_request_search(current_data.paging.current_page, false)
} else {
$.notify('<strong>삭제 실패</strong>', {
type: 'warning'
});
}
}
});
});
$("body").on('click', '.btn-request', function (e) {
e.preventDefault();
var content_code = $(this).data('content_code');
$(location).attr('href', '/' + package_name + '/' + sub + '/request?content_code=' + content_code)
});
$("body").on('click', '.btn-json', function (e) {
e.preventDefault();
var id = $(this).data('id');
for (i in current_data.list) {
if (current_data.list[i].id == id) {
m_modal(current_data.list[i])
}
}
});
$("body").on('click', '.btn-self-search', function (e) {
e.preventDefault();
var search_word = $(this).data('title');
document.getElementById("search_word").value = search_word;
global_sub_request_search('1')
});
// 비디오 보기 버튼 클릭 핸들러 (플레이리스트 지원)
var videoPlayer = null;
var playlist = [];
var currentPlaylistIndex = 0;
function playVideoAtIndex(index) {
if (index < 0 || index >= playlist.length) return;
currentPlaylistIndex = index;
var item = playlist[index];
var streamUrl = '/' + package_name + '/ajax/' + sub + '/stream_video?path=' + encodeURIComponent(item.path);
if (videoPlayer) {
videoPlayer.src({ type: 'video/mp4', src: streamUrl });
videoPlayer.play();
}
// 플레이리스트 UI 업데이트 (현재 파일명, 버튼 상태, 목록 표시)
updatePlaylistUI();
}
$("body").on('click', '.btn-watch', function (e) {
e.preventDefault();
var filePath = $(this).data('path');
// 플레이리스트 API 호출
$.ajax({
url: '/' + package_name + '/ajax/' + sub + '/get_playlist?path=' + encodeURIComponent(filePath),
type: 'GET',
dataType: 'json',
success: function(data) {
playlist = data.playlist || [];
currentPlaylistIndex = data.current_index || 0;
currentPlayingPath = filePath; // 실시간 갱신용 경로 저장
var streamUrl = '/' + package_name + '/ajax/' + sub + '/stream_video?path=' + encodeURIComponent(filePath);
// Video.js 초기화
if (!videoPlayer) {
videoPlayer = videojs('video-player', {
controls: true,
autoplay: false,
preload: 'auto',
fluid: true,
playbackRates: [0.5, 1, 1.5, 2],
controlBar: {
skipButtons: { forward: 10, backward: 10 }
}
});
// 비디오 종료 시 다음 에피소드 자동 재생
videoPlayer.on('ended', function() {
if (currentPlaylistIndex < playlist.length - 1) {
currentPlaylistIndex++;
playVideoAtIndex(currentPlaylistIndex);
}
});
}
videoPlayer.src({ type: 'video/mp4', src: streamUrl });
// 플레이리스트 UI 업데이트
updatePlaylistUI();
// 모달 열기
$('#videoModal').modal('show');
},
error: function() {
// 에러 시 기본 동작
var streamUrl = '/' + package_name + '/ajax/' + sub + '/stream_video?path=' + encodeURIComponent(filePath);
if (!videoPlayer) {
videoPlayer = videojs('video-player', { controls: true, fluid: true });
}
videoPlayer.src({ type: 'video/mp4', src: streamUrl });
$('#videoModal').modal('show');
}
});
});
// 플레이리스트 UI 업데이트 함수
function updatePlaylistUI() {
if (!playlist || playlist.length === 0) return;
var currentFile = playlist[currentPlaylistIndex];
$('#current-video-title').text(currentFile ? currentFile.name : '');
$('#playlist-progress').text((currentPlaylistIndex + 1) + ' / ' + playlist.length + ' 에피소드');
// 이전/다음 버튼 표시
if (currentPlaylistIndex > 0) {
$('#btn-prev-ep').show();
} else {
$('#btn-prev-ep').hide();
}
if (currentPlaylistIndex < playlist.length - 1) {
$('#btn-next-ep').show();
} else {
$('#btn-next-ep').hide();
}
// 에피소드 목록 렌더링
var listHtml = '';
for (var i = 0; i < playlist.length; i++) {
var isActive = (i === currentPlaylistIndex) ? 'active' : '';
listHtml += '<div class="playlist-item ' + isActive + '" data-index="' + i + '">';
listHtml += '<span class="ep-num">E' + (i + 1) + '</span>';
listHtml += '<span>' + playlist[i].name + '</span>';
listHtml += '</div>';
}
$('#playlist-list').html(listHtml);
}
// 이전 에피소드 버튼
$('#btn-prev-ep').click(function() {
if (currentPlaylistIndex > 0) {
currentPlaylistIndex--;
playVideoAtIndex(currentPlaylistIndex);
}
});
// 다음 에피소드 버튼
$('#btn-next-ep').click(function() {
if (currentPlaylistIndex < playlist.length - 1) {
currentPlaylistIndex++;
playVideoAtIndex(currentPlaylistIndex);
}
});
// 목록 토글 버튼
$('#btn-toggle-playlist').click(function() {
$(this).toggleClass('active');
$('#playlist-list-container').slideToggle(200);
});
// 목록 아이템 클릭
$(document).on('click', '.playlist-item', function() {
var index = parseInt($(this).data('index'));
if (index !== currentPlaylistIndex) {
currentPlaylistIndex = index;
playVideoAtIndex(index);
}
});
// 비디오 줌/확장 처리 (모바일 Fullscreen 꽉 차게)
var isVideoZoomed = false;
$('#btn-video-zoom').click(function() {
isVideoZoomed = !isVideoZoomed;
const $video = $('#video-player_html5_api'); // Video.js 내부 태그
if (isVideoZoomed) {
$video.css({
'object-fit': 'cover',
'height': '100%'
});
$(this).addClass('active').find('i').removeClass('fa-expand').addClass('fa-compress');
$.notify('<strong>화면을 꽉 채웠습니다 (일부 잘릴 수 있음)</strong>', {type: 'info', delay: 1000});
} else {
$video.css({
'object-fit': 'contain',
'height': 'auto'
});
$(this).removeClass('active').find('i').removeClass('fa-compress').addClass('fa-expand');
$.notify('<strong>원래 비율로 복원되었습니다</strong>', {type: 'info', delay: 1000});
}
});
// 모달 닫을 때 비디오 정지 + 포커스 해제 (aria-hidden 경고 방지)
var playlistRefreshInterval = null;
var currentPlayingPath = null; // 현재 재생 중인 파일 경로 저장
function startPlaylistRefresh() {
if (playlistRefreshInterval) return;
playlistRefreshInterval = setInterval(function() {
if (!currentPlayingPath) return;
$.ajax({
url: '/' + package_name + '/ajax/' + sub + '/get_playlist?path=' + encodeURIComponent(currentPlayingPath),
type: 'GET',
dataType: 'json',
success: function(data) {
var newPlaylist = data.playlist || [];
// 새 에피소드 추가됐는지 확인
if (newPlaylist.length > playlist.length) {
var addedCount = newPlaylist.length - playlist.length;
playlist = newPlaylist;
updatePlaylistUI();
// 알림 표시
$.notify('<i class="fa fa-download"></i> ' + addedCount + '개 에피소드 추가됨!', {type: 'success'});
}
}
});
}, 10000); // 10초마다 체크
}
function stopPlaylistRefresh() {
if (playlistRefreshInterval) {
clearInterval(playlistRefreshInterval);
playlistRefreshInterval = null;
}
}
$('#videoModal').on('show.bs.modal', function() {
startPlaylistRefresh();
});
$('#videoModal').on('hide.bs.modal', function () {
stopPlaylistRefresh();
// 포커스된 요소에서 포커스 해제 (aria-hidden 경고 방지)
document.activeElement.blur();
// 목록 닫기
$('#playlist-list-container').hide();
$('#btn-toggle-playlist').removeClass('active');
});
$('#videoModal').on('hidden.bs.modal', function () {
if (videoPlayer) {
videoPlayer.pause();
}
currentPlayingPath = null;
});
function make_list(data) {
let str = '';
for (let i in data) {
const item = data[i];
const statusClass = (item.status == 'completed') ? 'status-completed' :
(item.status == 'downloading') ? 'status-downloading' :
(item.status == 'failed') ? 'status-failed' : 'status-wait';
const statusText = (item.status == 'completed') ? 'COMPLETED' :
(item.status == 'downloading') ? 'DOWNLOADING' :
(item.status == 'failed') ? 'FAIL' : 'WAITING';
// Thumbnail
let imgHtml = '';
let badgeHtml = '';
if (item.episode_no) {
badgeHtml = `<div class="episode-badge">${item.episode_no}화</div>`;
}
if (item.thumbnail) {
imgHtml = `${badgeHtml}<img src="${item.thumbnail}" onerror="this.src='https://via.placeholder.com/60x80?text=No+Img'">`;
} else {
imgHtml = `${badgeHtml}<img src="https://via.placeholder.com/60x80?text=No+Img">`;
}
// Date
let createdDate = item.created_time ? item.created_time.split(' ')[0] : '';
let completedDate = item.completed_time ? item.completed_time.split(' ')[0] : '';
let dateHtml = `<div class="date-tag date-tag-req" title="요청일: ${item.created_time}">
<i class="fa fa-clock-o"></i> <span>시작: ${createdDate}</span>
</div>`;
if (completedDate) {
dateHtml += `<div class="date-tag date-tag-done" title="완료일: ${item.completed_time}">
<i class="fa fa-check-circle"></i> <span>완료: ${completedDate}</span>
</div>`;
}
// Subtitle Line
let subtitleHtml = '';
if (item.episode_title) {
subtitleHtml = `<div class="episode-subtitle text-muted">${item.episode_title}</div>`;
}
str += `
<div class="episode-card">
<div class="episode-card-body">
<!-- Left: Thumb -->
<div class="episode-thumb">${imgHtml}</div>
<!-- Center: Main Info -->
<div class="episode-main-info">
<div class="episode-title" title="${item.title}">${item.title}</div>
${subtitleHtml}
<div class="episode-meta">
<span class="status-badge ${statusClass}">${statusText}</span>
<span class="meta-tag">S${item.season}</span>
<span class="meta-tag">E${item.episode_no}</span>
</div>
<div class="file-path" title="${item.savepath}/${item.filename}">
<i class="fa fa-folder-open-o"></i> ${item.filename}
</div>
</div>
<!-- Right: Date & Actions -->
<div class="episode-right-col">
<div class="date-info">${dateHtml}</div>
<div class="episode-actions">
<button data-content_code="${item.content_code}" class="btn-minimal btn-request">
<i class="fa fa-search"></i> 작품보기
</button>
<button data-title="${item.title}" class="btn-minimal btn-self-search">
<i class="fa fa-list"></i> 목록검색
</button>
<button data-id="${item.id}" class="btn-minimal btn-json">
<i class="fa fa-code"></i> JSON
</button>
<button data-id="${item.id}" class="btn-minimal btn-remove btn-remove-alt">
<i class="fa fa-trash"></i> 삭제
</button>
${item.status == 'completed' ? `<button data-path="${item.savepath}/${item.filename}" class="btn-minimal btn-watch btn-watch-primary"><i class="fa fa-play"></i> 보기</button>` : ''}
</div>
</div>
</div>
</div>
`;
}
document.getElementById("list_div").innerHTML = str;
}
</script>
<style>
/* Pagination & Modal Fixes */
.btn-toolbar { justify-content: center; margin: 20px 0; }
#page1 .btn-group .btn, #page2 .btn-group .btn {
background: rgba(30, 41, 59, 0.6);
border: 1px solid rgba(255, 255, 255, 0.1);
color: #94a3b8; padding: 6px 14px; margin: 0 2px; border-radius: 6px;
}
#page1 .btn-group .btn[disabled], #page2 .btn-group .btn[disabled] {
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); color: white; border-color: transparent;
}
.modal-dialog { max-width: 95% !important; width: 900px !important; margin: 10px auto; }
.modal-body pre { background: #000 !important; color: #4ade80 !important; padding: 15px !important; border-radius: 8px !important; max-height: 70vh !important; font-size: 12px !important; }
/* Video Player Enhancements */
.playlist-controls {
padding: 16px;
background: linear-gradient(to bottom, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 1));
border-top: 1px solid rgba(255, 255, 255, 0.08);
border-bottom-left-radius: 12px;
border-bottom-right-radius: 12px;
}
.playlist-header {
display: flex;
align-items: center;
gap: 15px;
}
.playing-info { flex: 1; min-width: 0; }
.video-title {
color: #fbbf24; font-weight: 700; font-size: 15px;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.progress-text { color: #94a3b8; font-size: 12px; margin-top: 2px; }
.nav-btn, .action-btn {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
color: #fff;
width: 36px; height: 36px;
border-radius: 10px;
display: flex; align-items: center; justify-content: center;
transition: all 0.2s;
cursor: pointer;
}
.nav-btn:hover, .action-btn:hover { background: rgba(59, 130, 246, 0.2); border-color: #3b82f6; }
.action-btn.active { background: #3b82f6; box-shadow: 0 0 15px rgba(59, 130, 246, 0.4); }
.playlist-drawer {
display: none;
margin-top: 15px;
background: rgba(0, 0, 0, 0.3);
border-radius: 10px;
padding: 10px;
max-height: 250px;
overflow-y: auto;
}
.playlist-grid { display: flex; flex-direction: column; gap: 4px; }
.playlist-item {
padding: 10px 15px;
background: rgba(255, 255, 255, 0.03);
border-radius: 8px;
display: flex; align-items: center; gap: 12px;
cursor: pointer; transition: all 0.2s;
font-size: 13px; color: #cbd5e1;
}
.playlist-item:hover { background: rgba(255, 255, 255, 0.08); transform: translateX(5px); }
.playlist-item.active { background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.3); color: #60a5fa; }
.playlist-item .ep-num { font-weight: 800; color: #fbbf24; min-width: 30px; }
/* Zoom Button overlay */
.video-zoom-btn {
position: absolute;
top: 15px;
right: 15px;
z-index: 10;
background: rgba(15, 23, 42, 0.6);
backdrop-filter: blur(8px);
border: 1px solid rgba(255, 255, 255, 0.15);
color: white;
width: 38px; height: 38px;
border-radius: 10px;
opacity: 0; transition: opacity 0.3s;
display: flex; align-items: center; justify-content: center;
}
.video-container:hover .video-zoom-btn { opacity: 1; }
.video-zoom-btn.active { background: #3b82f6; border-color: transparent; }
/* Video.js skin overrides */
.video-js.vjs-theme-fantasy .vjs-big-play-button {
background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.9) 100%) !important;
border: none !important;
width: 90px !important; height: 90px !important;
line-height: 90px !important;
border-radius: 50% !important;
box-shadow: 0 0 30px rgba(37, 99, 235, 0.6) !important;
transition: all 0.3s ease !important;
}
.video-js.vjs-theme-fantasy .vjs-big-play-button .vjs-icon-placeholder:before {
font-size: 60px !important;
line-height: 90px !important;
}
.video-js .vjs-control-bar { background: rgba(15, 23, 42, 0.8) !important; backdrop-filter: blur(10px) !important; }
@media (max-width: 768px) {
#videoModal .modal-dialog { width: 100% !important; margin: 0 !important; }
#videoModal .modal-content { border-radius: 0 !important; height: 100vh; display: flex; flex-direction: column; }
#video-player { max-height: 100vh !important; height: 100% !important; }
.video-container { flex: 1; display: flex; align-items: center; }
.playlist-controls { padding-bottom: 25px; } /* Mobile safe area */
.video-zoom-btn { opacity: 0.8; top: 10px; right: 10px; }
}
@media (max-width: 768px) {
#videoModal .modal-dialog { width: 100% !important; margin: 5px !important; }
.episode-actions { grid-template-columns: repeat(2, 1fr); gap: 6px; }
.episode-card { padding: 10px; }
.episode-thumb { width: 50px; height: 70px; }
}
</style>
{% endblock %}