Compare commits

...

9 Commits

Author SHA1 Message Date
olebeck
83fcbbe08f make devtoollist properly center itself 2022-10-10 02:41:11 +02:00
Li
32e8c5816b fix language 2022-10-10 13:27:35 +13:00
Li
563f7fd900 Indent 2022-10-10 13:24:53 +13:00
Li
79f3121985 Fix sdk doc names 2022-10-10 13:23:47 +13:00
Li
fa4b445e50 Update gitignore 2022-10-10 13:22:44 +13:00
Li
d35725081b update devtools.php 2022-10-10 13:22:15 +13:00
Li
8a0632b298 fix downloads 2022-09-22 23:45:19 +00:00
Li
5c768e7a03 YES 2022-09-21 22:16:57 +00:00
Li
17a328dc94 Merge pull request 'redesign some stuff and made html in php better' (#1) from olebeck/psmreborn:master into master
Reviewed-on: SilicaAndPina/psmreborn#1
2022-09-21 21:23:27 +00:00
4 changed files with 732 additions and 700 deletions

1
.gitignore vendored
View File

@ -14,6 +14,7 @@ psm-psdp/*
psm-offical-keys/* psm-offical-keys/*
psm-mono-src/* psm-mono-src/*
psm-games-src/* psm-games-src/*
psm-sdk-doc/*
psm-drivers/* psm-drivers/*
psm-docs/* psm-docs/*
psm-dev/* psm-dev/*

View File

@ -324,17 +324,46 @@ function getIcon(string $file)
</a> </a>
<?php <?php
} }
elseif($type == "psm-sdk-doc")
{
?>
<a href="/psm-sdk-doc/en" class="devtool" id="sdkdocen">
<img src="/img/docs.png" width="128" height="128" class="bubble">
<span id="textContent">
English Docs
</span>
</a>
<a href="/psm-sdk-doc/ja" class="devtool" id="sdkdocjp">
<img src="/img/docs.png" width="128" height="128" class="bubble">
<span id="textContent">
Japanese Docs
</span>
</a>
<?php
}
else else
{ {
$dirlist = glob($type.'/*'); $dirlist = glob($type.'/*');
foreach ($dirlist as &$path) { ?> foreach ($dirlist as &$path) { ?>
<a href="'.$path.'" class="devtool" title="<?php echo basename($path) ?>"> <a href="<?php echo $path ?>" class="devtool" title="<?php echo basename($path) ?>">
<img src="<?php echo getIcon($path) ?>" width="128" height="128" class="bubble"> <img src="<?php echo getIcon($path) ?>" width="128" height="128" class="bubble">
<span id="textContent"> <span id="textContent">
<?php echo getName(pathinfo(basename($path), PATHINFO_FILENAME)) ?> <?php echo getName(pathinfo(basename($path), PATHINFO_FILENAME)) ?>
</span> </span>
</a> </a>
<?php } <?php }
if($type == "psm-docs"){ // append psm-sdk-doc to result
?>
<a href="?type=psm-sdk-doc" class="devtool" id="sdkdoc">
<img src="/img/docs.png" width="128" height="128" class="bubble">
<span id="textContent">
SDK Docs
</span>
</a>
<?php
}
} }
?> ?>
</div> </div>

View File

@ -343,7 +343,7 @@ include("header.php");
</tbody> </tbody>
</table> </table>
<object> <object>
<a class="white" href="<?php echo $website ?>"><?php echo $websitePretty ?></a> <marquee><a class="white" href="<?php echo $website ?>"><?php echo $websitePretty ?></a></marquee>
</object> </object>
</div> </div>
</a> </a>

View File

@ -318,7 +318,9 @@
*/ */
.devtoollist{ .devtoollist{
position: inherit; margin-left: auto;
margin-right: auto;
position: relative;
margin-left: 15%; margin-left: 15%;
margin-right: 15%; margin-right: 15%;
text-align:center; text-align:center;