Skip to content

Commit

Permalink
First real comit
Browse files Browse the repository at this point in the history
First beta version, works for displaying a list but no UI is present
  • Loading branch information
Lila2048 authored Nov 19, 2024
1 parent 9ac85eb commit 32f5508
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
45 changes: 45 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?php

// CSS styles

$style = "";

echo($style);

// List

$json = file_get_contents("./list.json");
$list = json_decode($json, true);

$index = 0;
$param = 0;

foreach($list as $level) {
$index = $index + 1;
echo("<h1>#" . $index . "</h1>");
foreach($level as $key) {
switch($param) {
case 0:
echo("<h2>Name:" . $key . "<br></h2>");
$param = $param + 1;
break;

case 1:
echo("<h2>ID:" . $key . "<br></h2>");
$param = $param + 1;
break;

case 2:
echo("<h2>Creator:" . $key . "<br></h2>");
$param = $param + 1;
break;

case 3:
echo("<h2>Verifier:" . $key . "<br></h2>");
$param = 0;
break;
}
}
}

?>
14 changes: 14 additions & 0 deletions list.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"1": {
"name": "test",
"id": 69,
"creator": "test",
"verifier": "a verifier"
},
"2": {
"name": "test",
"id": 70,
"creator": "test",
"verifier": "a verifier"
}
}

0 comments on commit 32f5508

Please sign in to comment.