mirror of
https://github.com/Anvilcraft/jensmemes
synced 2024-11-13 21:41:27 +01:00
some minor design fixes
This commit is contained in:
parent
208c61826c
commit
71d642d8f8
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ $random = rand(0, count($files) - 1);
|
|||
$file = $files[$random];
|
||||
$ext = strtolower(pathinfo($file, PATHINFO_EXTENSION));
|
||||
if ($ext == "mp4") {
|
||||
echo '<a href="' . $file . '"><video src=' . $file . ' controls ></video></a>';
|
||||
echo "<a href='$file'><video src='$file' controls ></video></a>";
|
||||
} else {
|
||||
echo "<a href='$file'><img src='$file' /></a>";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue