diff --git a/README.md b/README.md index b43b3a1..4b3a037 100644 --- a/README.md +++ b/README.md @@ -115,6 +115,9 @@ V1.0.1: - git: implement .gitignore to ignore www/participants, otherwise you can't do torsocks git pull without having to do a git stash - py: since .gitignore makes it so that www/participants doesnt exist, automatically create the directory structure from www/.official_participants - git: figured out how to have an automatically updated lantern instance via gitignore+cronjob + +V1.0.2: +- php+css : make the css styling not ugly on mobile ``` Future Versions: diff --git a/www/header.php b/www/header.php index 3df70e9..d560fea 100644 --- a/www/header.php +++ b/www/header.php @@ -60,13 +60,13 @@ if (!preg_match("~^(?:f|ht)tps?://~i", $data[3])) { if ($oldcatname != $data[1]){ //echo ""; // skip a row if new category //echo ""; // skip a row if new category - echo "

" . $data[1] . '

'; // display the category as its the first row with this new category + echo '

' . $data[1] . '

'; // display the category as its the first row with this new category $oldcatname=$data[1]; }else{ echo "

" . '

'; // category is already displayed so skip it (empty cell in category column) } - echo "" ; // begin the table cell + echo '

' ; // begin the table cell of link title if($data[4] == "YES"){ echo ' '; // display the link echo $urllink . '"> '; // display the link - echo $data[2] . ' '; // display the link title and close the a href and first cell, open the second cell + echo $data[2] . '

'; // display the link title and close the a href and first cell, open the second cell echo $data[5] . " "; // OPTIONAL: display the description column echo $data[7] . " "; // display the score and close the second cell, open the third cell if($data[6] == "YES"){ @@ -196,8 +196,7 @@ if (($handle = fopen($csvfile, "r")) !== FALSE) {
- -

+

Update Frequency: every 3 hours


diff --git a/www/index.php b/www/index.php index 756e189..8f738d3 100644 --- a/www/index.php +++ b/www/index.php @@ -8,10 +8,10 @@ -
- +
+

Search query must be between '.$min_length . " and ".$max_length . " characters.

"; + echo '

Search query must be between '.$min_length . " and ".$max_length . " characters.

"; // TODO list the available categories } ?> +
diff --git a/www/style.css b/www/style.css index 496f3fa..4aec48e 100644 --- a/www/style.css +++ b/www/style.css @@ -9,6 +9,15 @@ font-family: 'Source Code Pro', monospace; } +.width-class{ + width: 100%; + object-fit: contain; +} + +.projectbanner{ + max-width: 100%; +} + .banner{ width: 260px; @@ -30,6 +39,8 @@ color: #fc6e02; } + + .imgRz{ width: 100%; height: 50%; @@ -137,7 +148,7 @@ body{ width: 100% } -.column-container{ +.column-contaianer{ width: 100%; height: 100vh; display: flex; @@ -207,7 +218,17 @@ h1,h2,h3,p,td{ } .description{ - max-width: 500px; + max-width: 100%; + min-width: 50px; +} + +.category{ + max-width: 80px; + word-wrap: break-word; +} +.linktitle{ + max-width: 150px; + word-wrap: break-word; } h3,h2{ @@ -222,6 +243,7 @@ border: 3px solid #2f1c44; padding-bottom: 10px; }*/ table { + max-width: 100%; /*border: 1px solid #ff0000;*/ border-collapse: collapse; @@ -239,6 +261,7 @@ table { } a{ + word-wrap: break-word; text-decoration: none; display: inline-block; color: #747ff7;