Skip to content

Commit b1d8367

Browse files
committed
Misc changes and preparation
- Added download button icon on index page page depending on browser user agent, thanks to @valters-tomsons - Added BH30N, thanks to abdullahcfix/cfix - Added Verbatim 43888, thanks to mickspad - Starting some CSS cleanup and readability improvements
1 parent 1d6abd0 commit b1d8367

9 files changed

Lines changed: 1613 additions & 1162 deletions

File tree

public_html/index.php

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,31 @@
8484
<div class="build-btn-button">
8585
<div class="build-ico-button">
8686
<div class="build-ico-os">
87-
<img alt="Windows" src="img/icons/list/os-windows-11.png" style='height: 100%; width: 100%; object-fit: contain'/>
88-
<img alt="Linux" src="img/icons/list/os-linux-na.png" style='height: 100%; width: 100%; object-fit: contain; display:none;'/>
89-
<img alt="macOS" src="img/icons/list/os-macos.png" style='height: 100%; width: 100%; object-fit: contain; display:none;'/>
90-
<img alt="FreeBSD" src="img/icons/list/os-bsd.png" style='height: 100%; width: 100%; object-fit: contain; display:none;'/>
87+
<?php
88+
89+
$os_icons = [
90+
'Windows' => 'img/icons/list/os-windows-11.png',
91+
'Linux' => 'img/icons/list/os-linux-na.png',
92+
'macOS' => 'img/icons/list/os-macos.png',
93+
'FreeBSD' => 'img/icons/list/os-bsd.png',
94+
];
95+
96+
$os_name = $os_icon = null;
97+
$ua = $_SERVER['HTTP_USER_AGENT'] ?? '';
98+
99+
if (str_contains($ua, 'FreeBSD')) { $os_name = 'FreeBSD'; $os_icon = $os_icons['FreeBSD']; }
100+
elseif (str_contains($ua, 'Windows')) { $os_name = 'Windows'; $os_icon = $os_icons['Windows']; }
101+
elseif (str_contains($ua, 'Mac OS X')) { $os_name = 'macOS'; $os_icon = $os_icons['macOS']; }
102+
elseif (str_contains($ua, 'Linux') && !str_contains($ua, 'Android')) { $os_name = 'Linux'; $os_icon = $os_icons['Linux']; }
103+
?>
104+
105+
<?php if ($os_icon !== null): ?>
106+
<img alt="<?= $os_name ?>" src="<?= $os_icon ?>" style='height: 100%; width: 100%; object-fit: contain'/>
107+
<?php else: ?>
108+
<?php $first = true; foreach ($os_icons as $name => $icon): ?>
109+
<img alt="<?= $name ?>" src="<?= $icon ?>" style='height: 100%; width: 100%; object-fit: contain<?= $first ? '' : '; display:none' ?>'/>
110+
<?php $first = false; endforeach; ?>
111+
<?php endif; ?>
91112
</div>
92113
</div>
93114
<a href="/download">
@@ -125,7 +146,7 @@
125146
</a>
126147
</div>
127148
<form action='/compatibility' method='get'>
128-
<input class="database-search darkmode-txt darkmode-search-bg" name="g" placeholder="Game Title / Game ID">
149+
<input class="database-search darkmode-txt darkmode-search-bg" name="g" placeholder="Game Title / Game ID...">
129150
</form>
130151
</div>
131152
</div>

public_html/lib/css/anim.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@
434434
.bounceInUp {
435435
animation-name:bounceInUp;
436436
}
437-
/*----------------------------------------------------------------------------*/
437+
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
438438
@keyframes bounceOut {
439439
20% {
440440
transform:scale3d(.9,.9,.9);
@@ -451,7 +451,7 @@
451451
.bounceOut {
452452
animation-name:bounceOut;
453453
}
454-
/*----------------------------------------------------------------------------*/
454+
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
455455
@keyframes bounceOutDown {
456456
20% {
457457
transform:translate3d(0,10px,0);
@@ -468,7 +468,7 @@
468468
.bounceOutDown {
469469
animation-name:bounceOutDown;
470470
}
471-
/*----------------------------------------------------------------------------*/
471+
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
472472
@keyframes bounceOutLeft {
473473
20% {
474474
transform:translate3d(20px,0,0);
@@ -482,7 +482,7 @@
482482
.bounceOutLeft {
483483
animation-name:bounceOutLeft;
484484
}
485-
/*----------------------------------------------------------------------------*/
485+
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
486486
@keyframes bounceOutRight {
487487
20% {
488488
transform:translate3d(-20px,0,0);
@@ -496,7 +496,7 @@
496496
.bounceOutRight {
497497
animation-name:bounceOutRight;
498498
}
499-
/*----------------------------------------------------------------------------*/
499+
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
500500
@keyframes bounceOutUp {
501501
20% {
502502
transform:translate3d(0,-10px,0);
@@ -1319,7 +1319,7 @@
13191319
.slideOutUp {
13201320
animation-name: slideOutUp;
13211321
}
1322-
/*----------------------------------------------------------------------------*/
1322+
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
13231323
@keyframes pulsate {
13241324
0% {
13251325
transform:scale(.01,.01);
@@ -1333,7 +1333,7 @@
13331333
opacity: 0;
13341334
}
13351335
}
1336-
/*----------------------------------------------------------------------------*/
1336+
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
13371337
@keyframes bobbing {
13381338
0% {
13391339
transform:translate(0px,0px);

public_html/lib/css/darkmode.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
@charset "utf-8";
2+
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
3+
/* Dark mode CSS overrides */
4+
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
25
@media screen and (max-width:800px) {
36
.dm-menu-ico-logo {
47
background:url(/img/icons/menu/logo-wide-dark.png) center center/36px no-repeat!important;

0 commit comments

Comments
 (0)