<?php
$emoj = json_decode(file_get_contents("blahaj.json"), true);

?>

<!doctype html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://tilde.team/~ben/gruvbox/gruvbox.css">
  <title>my page</title>
</head>

<body>
<main>
    <h1>page</h1>
    <form method="GET" action="https://tilde.team/~hazel/blahaj/">
        <select name="emoji">
        <?php foreach ($emoj["emojis"] as $emoji => $filename) { ?>
            <option value="<?=$emoji?>"><?=$emoji?></option>
        <?php } ?>
        </select>

<!--        <select name="animations">
        <?php foreach ($emoj["animations"] as $animation => $filename) { ?>
            <option value="<?=$animation?>"><?=$animation?></option>
        <?php } ?>
        </select>
-->

        <select name="music">
        <?php foreach ($emoj["music"] as $music => $filename) { ?>
            <option value="<?=$music?>"><?=$music?></option>
        <?php } ?>
        </select>

        <input type="submit" />
    </form>

</main>
</body>
</html>

