From 2baaf56e140a06eed8fe0b1d28d744d34a537d49 Mon Sep 17 00:00:00 2001
From: raylu
+
foreign_titles)):
$str = 'Foreign titles:';
for ($i = 0; $i < count($anime->foreign_titles); $i++) {
@@ -44,12 +44,13 @@ Genres: genres); $i++) {
if ($i > 0) $str .= ',';
- $str .= ' ' . $anime->genres[$i] . '';
+ $str .= ' ' . $anime->genres[$i] . '';
} ?>= $str ?>
-
Duration: = $anime->episode_duration ?>
Rating: = $anime->rated ?>
Related: = $related ?>
-
= $anime->synopsis ?>
-+Cast ↓ +
++ = $char->character ?> + | +||
+ | = $actor->name ?> | += $actor->language ?> | +
+Cast ↑ +
+= $anime->synopsis ?>
diff --git a/webroot/css/view.css b/webroot/css/view.css index c973201..4b0a9a1 100644 --- a/webroot/css/view.css +++ b/webroot/css/view.css @@ -6,11 +6,38 @@ aside#img { width: 225px; } -section { +section#info { float: left; width: 470px; } +section#cast { + float: left; + width: 620px; +} +section#cast p { + margin: 0; +} +section#cast table { + table-layout: fixed; + display: none; +} +section#cast td { + padding: 3px; +} +section#cast td:nth-child(1) { + width: 60px; +} +section#cast td:nth-child(2) { + width: 250px; +} +section#cast td:nth-child(3) { + width: 200px; +} +section#cast #castlink { + display: none; +} + aside#malstats { float: right; width: 150px; diff --git a/webroot/js/functions.js b/webroot/js/functions.js index 510b0cf..86f3f3c 100644 --- a/webroot/js/functions.js +++ b/webroot/js/functions.js @@ -10,8 +10,22 @@ jQuery(document).ready(function($) { $('form [title]').tipsy({fade: true, trigger: 'focus', gravity: 'w'}); setTimeout(function() { - $(".flash-message").fadeOut("slow", function () { - $(".flash-message").remove(); + $('.flash-message').fadeOut('slow', function () { + $('.flash-message').remove(); }); }, 2000); }); + +function toggleCast() { + var table = $('#cast table'); + if (table.css('display') == 'inline') { + table.css('display', 'none'); + $('#cast > p > a').text('Cast ↓'); + $('#castlink').css('display', 'none'); + } else { + table.css('display', 'inline'); + $('#cast > p > a').text('Cast ↑'); + $('#castlink').css('display', 'inline'); + } + return false; +} -- cgit v1.2.3