diff options
| author | Ada Isopods <me@bathynomus.xyz> | 2024-12-05 20:26:58 -0700 |
|---|---|---|
| committer | Ada Isopods <me@bathynomus.xyz> | 2026-10-21 23:30:20 -0600 |
| commit | e0406f8c60a05887c2670d633d1d8eb58c7332c1 (patch) | |
| tree | 77fd790ff67921e35f5c0f10a1c1e375a5b4d566 /noises/index.php | |
| parent | b58b9832183c5dec8af2dfd580abf3d5d9bdc086 (diff) | |
overhauled the entire site basically
Diffstat (limited to 'noises/index.php')
| -rw-r--r-- | noises/index.php | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/noises/index.php b/noises/index.php deleted file mode 100644 index f9fc8e3..0000000 --- a/noises/index.php +++ /dev/null @@ -1,58 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="UTF-8"> - <meta name="viewport" content="width=device-width, initial-scale=1.0"> - <link rel="icon" type="image/x-icon" href="../favicon.ico"> - <title>deep twisty - noises</title> - <link href="../style.css" rel="stylesheet" type="text/css" media="all"> - <link href="../subpage.css" rel="stylesheet" type="text/css" media="all"> - <style> - article { - padding: 1rem; - max-width: 25rem; - margin: auto; - } - h2 { - margin-bottom: 0.45rem; - font-size: medium; - } - article p { - margin-top: 0.1rem; - } - audio { - border-radius: 2rem; - box-shadow: 2px 2px 8px black; - } - </style> - </head> - <body> - - <main> - <h1 id="header"><span id="headerblue">no</span><span id="headergreen">is</span><span id="headeryellow">es</span></h1> - <p><a class="white-color" style="text-decoration: none; font-size: 1.4em; font-family: var(--hfont);" href="../">home</a></p><hr> - <div id="songs"> - <?php - // Code to automatically populate the page with every mp3 file in the directory. - // Should display filename - and date of creation and id3 comment if possible. - - function test_audio($name) { // Returns true if a file is an mp3, false otherwise - return (strpos($name, ".mp3") > 0); - } - - $files = array_filter(scandir("."), "test_audio"); - - usort($files, function($a, $b) { // Sort files by modification date of the files - return filemtime("$b") - filemtime("$a"); - }); - - foreach($files as $fi) { - echo "<article><h2>$fi</h2><audio controls><source src='$fi' type='audio/mpeg'>your browser does not support embedded audio.</audio></article>"; - } - ?> - </div> - </main> - - </body> - -</html> |
