diff --git a/japscan.php b/japscan.php index b1ca207..059f520 100755 --- a/japscan.php +++ b/japscan.php @@ -160,7 +160,7 @@ class JapScan $sUrl = self::getUrl(array(self::READ_PATH, $sShortManga, $sChapter, $sPage)); $sFilePath = self::CACHE_FOLDER.str_replace("&",'\&', str_replace(" ",'\ ', addslashes($sFileName))); - if(!file_exists($sFilePath)) file_put_contents($sFilePath, file_get_contents($sUrl)); + if(!file_exists($sFilePath) || date('dmY', filemtime($sFilePath))!=date('dmY')) file_put_contents($sFilePath, file_get_contents($sUrl)); return file_get_contents($sFilePath); } @@ -380,7 +380,7 @@ function JapScan(asVars) var sShortManga, sLongManga; $.each(self.asMangas, function(iMangaId, asMangaInfo) { - $Mangas.append($('
  • ').append($('', {id:'m_'+asMangaInfo['short'], href:'#'+asMangaInfo['short']}).text(asMangaInfo['long']))); + $Mangas.append($('
  • ').append($('', {id:'m_'+asMangaInfo['short'], 'class':'manga', href:'#'+asMangaInfo['short']}).text(asMangaInfo['long']))); }); } @@ -508,20 +508,21 @@ ul {list-style:none; margin:0; padding-left:0;} body {margin:0; padding:0; font-family: "Open Sans","Droid Sans",Helvetica,Arial,sans-serif; font-size:0.8em;} #container {width:100vw; height:100vh; box-sizing:border-box;} #mangas {width:20vw; height:100vh; float:left; overflow:auto;} -#chapters {width:9vw; height:100vh; float:left; overflow:auto;} -#scan {width:71vw; height:100vh; float:right; overflow:hidden; text-align:center; background:grey 50% 50% no-repeat;} +#chapters {width:12vw; height:100vh; float:left; overflow:auto;} +#scan {width:68vw; height:100vh; float:right; overflow:hidden; text-align:center; background:grey 50% 50% no-repeat;} /* Mangas */ -#mangas ul li a {display: block; margin:0.5vw; padding:0.5vw; background:#4F5B93; color:white; border-radius:0.5vw;} -#mangas ul li a.active {background:#8892BF; color:black;} -#mangas ul li a:visited {font-weight:bold;} +#mangas .manga {display: block; margin:0.5vw; padding:0.5vw; background:#4F5B93; color:white; border-radius:0.5vw;} +#mangas .manga:hover {background:#8892BF;} +#mangas .manga.active {background:#8892BF; color:black;} +#mangas .manga:visited {font-weight:bold;} /* Chapters */ -#chapters .chapter {width:6vw; height:6vw; position: relative; margin:0.5vw; padding:0.5vw; background:#4F5B93; color:white; border-radius:1vw; text-align: center; cursor:pointer;} +#chapters .chapter {width:9vw; height:9vw; margin:0.5vw; padding:0.5vw; background:#4F5B93; color:white; border-radius:1vw; text-align: center; cursor:pointer;} #chapters .chapter:hover {background:#8892BF;} -#chapters .chapter .id {margin-top:25%; font-size:3em;} -#chapters .chapter.active {background:#8892BF; color:black;} -#chapters .chapter.active .prog {margin-top:25%; font-style:italic;} +#chapters .chapter .id {font-size:3em;} +#chapters .chapter.active {background:#8892BF; color:black; height:8vw;} +#chapters .chapter.active .prog {font-style:italic;} #chapters .chapter.active .id {margin-top:0%;} /* Scan */