diff --git a/board-search.php b/board-search.php index 5d51134b..7df27f4f 100644 --- a/board-search.php +++ b/board-search.php @@ -168,14 +168,10 @@ foreach ($response['boards'] as $boardUri => &$board) { $board['active'] = (int) $boardActivity['active'][ $boardUri ]; } if (isset($boardActivity['average'][ $boardUri ])) { - $precision = 4 - strlen( $boardActivity['average'][ $boardUri ] ); + $precision = 1; - if( $precision < 0 ) { - $precision = 0; - } - - $board['pph'] = round( $boardActivity['average'][ $boardUri ], 2 ); - $board['ppd'] = round( $boardActivity['today'][ $boardUri ], 2 ); + $board['pph'] = round( $boardActivity['average'][ $boardUri ], $precision ); + $board['ppd'] = round( $boardActivity['today'][ $boardUri ], $precision ); unset( $precision ); } diff --git a/boards.php b/boards.php index 72d1ea33..2ca61816 100644 --- a/boards.php +++ b/boards.php @@ -46,6 +46,8 @@ $tagQueryGet['tags'] = $tagQueryTags; $tag_query = "?" . http_build_query( $tagQueryGet ) . ($tagQueryTags != "" ? "+" : ""); /* Create and distribute page */ +// buildJavascript(); + $boardsHTML = Element("8chan/boards-table.html", array( "config" => $config, "boards" => $boards, @@ -87,6 +89,7 @@ $searchHTML = Element("8chan/boards-search.html", array( ); $pageHTML = Element("page.html", array( + "title" => _("Boardlist"), "config" => $config, "body" => $searchHTML ) @@ -101,9 +104,6 @@ if (php_sapi_name() == 'cli') { file_write("boards.html", $pageHTML); file_write("boards.json", json_encode($nonAssociativeBoardList)); file_write("boards-top20.json", json_encode(array_splice($nonAssociativeBoardList, 0, 48))); - - echo "The board directories have regenerated."; - exit; } echo $pageHTML; \ No newline at end of file diff --git a/stylesheets/dark.css b/stylesheets/dark.css index 0287959e..0cf4c4f4 100644 --- a/stylesheets/dark.css +++ b/stylesheets/dark.css @@ -198,3 +198,34 @@ div.report { .modlog tr:nth-child(even), .modlog th { background-color: #282A2E; } + + + +.box { + background: #333333; + border-color: #555555; + color: #C5C8C6; + border-radius: 10px; +} +.box-title { + background: transparent; + color: #32DD72; +} + +table thead th { + background: #333333; + border-color: #555555; + color: #C5C8C6; + border-radius: 4px; +} +table tbody tr:nth-of-type( even ) { + background-color: #333333; +} + +table.board-list-table .board-uri .board-sfw { + color: #446655; +} +tbody.board-list-omitted td { + background: #333333; + border-color: #555555; +} \ No newline at end of file diff --git a/stylesheets/photon.css b/stylesheets/photon.css index a487e4dd..4d876ea0 100644 --- a/stylesheets/photon.css +++ b/stylesheets/photon.css @@ -329,3 +329,31 @@ form table tr td div { .desktop-style div.boardlist:not(.bottom) { background-color: #DDDDDD; } + + + +.box { + background: #DDDDDD; + border-color: #CCCCCC; + color: #333333; + border-radius: 7px; +} +.box-title { + border-radius: 7px; +} + +table thead th { + background: transparent; + border: none; +} +table tbody tr:nth-of-type( even ) { + background-color: #DDDDDD; +} + +table.board-list-table .board-uri .board-sfw { + color: #333333; +} +tbody.board-list-omitted td { + background: transparent; + border: none; +} \ No newline at end of file diff --git a/stylesheets/redchanit.css b/stylesheets/redchanit.css index 9577730f..78456f31 100644 --- a/stylesheets/redchanit.css +++ b/stylesheets/redchanit.css @@ -57,4 +57,33 @@ p.intro a.email span.name { a { color: #8020FF; +} + + + +.box { + background: #343C4E; + border: none; + color: #FFF; +} +.box-title { + background: #7F8CA8; + color: #0F0C5D; +} + +table thead th { + background: #343C4E; + border: none; + color: #FFF; +} +table tbody tr:nth-of-type( even ) { + background-color: #343C4E; +} + +table.board-list-table .board-uri .board-sfw { + color: #D00; +} +tbody.board-list-omitted td { + background: #343C4E; + border: none; } \ No newline at end of file diff --git a/stylesheets/style.css b/stylesheets/style.css index c77bfd0f..4e0846e4 100644 --- a/stylesheets/style.css +++ b/stylesheets/style.css @@ -86,6 +86,10 @@ table.mod.config-editor input[type="text"] { width: 100%; } +#post-form-inner .post-table tr { + background-color: transparent; +} + .post-table th, .post-table-options th { width: 85px; } @@ -363,6 +367,7 @@ p.intro a { color: maroon; } +p.body-line, div.post p { display: block; margin: 0; diff --git a/stylesheets/tomorrow.css b/stylesheets/tomorrow.css index 04860284..17b95957 100644 --- a/stylesheets/tomorrow.css +++ b/stylesheets/tomorrow.css @@ -156,3 +156,32 @@ div#watchlist a:hover,a.watchThread:hover { .modlog tr:nth-child(even), .modlog th { background-color: #282A2E; } + + + +.box { + background: #282a2e; + border-color: #111; + color: #C5C8C6; +} +.box-title { + background: #282a2e; + color: #C5C8C6; +} + +table thead th { + background: #282a2e; + border-color: #111; + color: #C5C8C6; +} +table tbody tr:nth-of-type( even ) { + background-color: #282a2e; +} + +table.board-list-table .board-uri .board-sfw { + color: #C5C8C6; +} +tbody.board-list-omitted td { + background: #282a2e; + border-color: #111; +} \ No newline at end of file diff --git a/stylesheets/yotsuba.css b/stylesheets/yotsuba.css index 8997b696..34e4d079 100644 --- a/stylesheets/yotsuba.css +++ b/stylesheets/yotsuba.css @@ -3,10 +3,10 @@ body { color: #800000; } a:link, a:visited, p.intro a.email span.name { - color: #0000ff; + color: #800; } a:link:hover { - color: #d00; + color: #e00; } a.post_no { color: #800000; @@ -66,3 +66,32 @@ table.modlog tr th { .desktop-style div.boardlist:nth-child(1) { background-color: #F0E0D6; } + + + +.box { + background: #fff; + border-color: #800; + color: #000; +} +.box-title { + background: #fca; + color: #800; +} + +table thead th { + border-color: #800; + background: #fca; + color: #800; +} +table tbody tr:nth-of-type( even ) { + background-color: #ede2d4; +} + +table.board-list-table .board-uri .board-sfw { + color: #800; +} +tbody.board-list-omitted td { + background: #fca; + border-color: #800; +} \ No newline at end of file