Skip to content

Commit

Permalink
Update character.php
Browse files Browse the repository at this point in the history
  • Loading branch information
HerrErde committed Sep 8, 2024
1 parent b3335e4 commit 9923456
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/page/character.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<body>
<header>
<h1>Generate your Boards</h1>
<h1>Generate your Characters</h1>
<p id="title">Fill out the options and generate your customized JSON template code.</p>
<!-- Select All Checkbox -->
<label class="custom-checkbox">
Expand All @@ -32,9 +32,6 @@
$json_data = file_get_contents("https://github.com/HerrErde/subway-source/releases/latest/download/characters_links.json");
$items = json_decode($json_data);

// Add a counter to track default checkboxes
$defaultCounter = 0;

foreach ($items as $item): ?>
<div class="item">
<label class="custom-checkbox">
Expand All @@ -50,13 +47,14 @@
<img src="<?= $item->img_url ?>" alt="<?= $item->name ?>">
</div>
<?php
// Increase default counter if a default checkbox is added
$defaultCounter++;
endforeach;
?>
</fieldset>
<div id="filteredItems"></div>
<input type="button" class="btn btn-success" value="Generate URL" onclick="generateUrlFunction()">
<div class="copy" style="display: inline-block">
<a class="fa fa-pen-to-square fa-2x" style="cursor: pointer;" href="../editor/character-editor.php">
</a>
</div>
<input type="submit" class="btn btn-success" value="Submit">
</form>

<script src="/assets/js/search.js"></script>
Expand Down

0 comments on commit 9923456

Please sign in to comment.