Skip to content

Commit

Permalink
Merge pull request #120 from Gaurav0/gaurav/feat/move_licenses_into_c…
Browse files Browse the repository at this point in the history
…ustomize

Gaurav/feat/move licenses into customize
  • Loading branch information
Gaurav0 authored Jan 26, 2025
2 parents be7925d + d985409 commit 1558c01
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 67 deletions.
69 changes: 37 additions & 32 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,40 +88,42 @@ <h1>Universal LPC Spritesheet Generator</h1>
<input type="search" id="searchbox" name="" placeholder="Search" />
<output id="matches"></output>
</div>
<div>
<label class="control-label">Licenses:</label>
<ul>
<li>
<input class="licenseCheckBox" type="checkbox" value="CC0" checked>
<label>CC0</label>
<a href="https://creativecommons.org/public-domain/cc0/">Show license</a>
</li>
<li>
<input class="licenseCheckBox" type="checkbox" value="CC-BY-SA 3.0, CC-BY-SA 4.0" checked>
<label>CC-BY-SA</label>
<a href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Show license (4.0)</a>
</li>
<li>
<input class="licenseCheckBox" type="checkbox" value="CC-BY 3.0+, CC-BY 3.0, CC-BY 4.0, CC-BY" checked>
<label>CC-BY</label>
<a href="https://creativecommons.org/licenses/by/4.0/">Show license (4.0)</a>
</li>
<li>
<input class="licenseCheckBox" type="checkbox" value="OGA-BY 3.0, OGA-BY 3.0+, OGA-BY 4.0" checked>
<label">OGA-BY</label>
<a href="https://static.opengameart.org/OGA-BY-3.0.txt">Show license (3.0)</a>
</li>
<li>
<input class="licenseCheckBox" type="checkbox" value="GPL 2.0, GPL 3.0" checked>
<label>GPL</label>
<a href="https://www.gnu.org/licenses/gpl-3.0.en.html#license-text">Show license (3.0)</a>
</li>
</ul>
<button type="button" class="removeIncompatibleWithLicenses">Remove Assets Incompatible With Selected Licenses</button>
</div>
</section>
<section id="chooser">
<h3>Body</h3>
<h3>Filters</h3>
<ul>
<li>
<span class="condensed">Licenses:</span>
<ul>
<li>
<input class="licenseCheckBox" type="checkbox" value="CC0" checked>
<label>CC0</label>
<a href="https://creativecommons.org/public-domain/cc0/">Show license</a>
</li>
<li>
<input class="licenseCheckBox" type="checkbox" value="CC-BY-SA 3.0, CC-BY-SA 4.0" checked>
<label>CC-BY-SA</label>
<a href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Show license (4.0)</a>
</li>
<li>
<input class="licenseCheckBox" type="checkbox" value="CC-BY 3.0+, CC-BY 3.0, CC-BY 4.0, CC-BY" checked>
<label>CC-BY</label>
<a href="https://creativecommons.org/licenses/by/4.0/">Show license (4.0)</a>
</li>
<li>
<input class="licenseCheckBox" type="checkbox" value="OGA-BY 3.0, OGA-BY 3.0+, OGA-BY 4.0" checked>
<label">OGA-BY</label>
<a href="https://static.opengameart.org/OGA-BY-3.0.txt">Show license (3.0)</a>
</li>
<li>
<input class="licenseCheckBox" type="checkbox" value="GPL 2.0, GPL 3.0" checked>
<label>GPL</label>
<a href="https://www.gnu.org/licenses/gpl-3.0.en.html#license-text">Show license (3.0)</a>
</li>
</ul>
<button type="button" class="removeIncompatibleWithLicenses">Remove Assets Incompatible With Selected Licenses</button>
</li>
</ul>
<ul>
<li>
<!-- Supported Animation -->
Expand Down Expand Up @@ -198,6 +200,9 @@ <h3>Body</h3>
</ul>
<button type="button" class="removeUnsupported">Remove Assets Not Supported By Selected Animations</button>
</li>
</ul>
<h3>Body</h3>
<ul>
<li>
<!-- Body types -->
<span class="expanded">Body type</span>
Expand Down
11 changes: 8 additions & 3 deletions sources/chargen.css
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ input[type=button], input[type=reset] {
z-index: 2;
margin-left: 15px;
order: -1;
height: 60px;
}

#chooser {
Expand Down Expand Up @@ -173,7 +174,7 @@ input[type=button], input[type=reset] {
}

#preview {
margin-top: 20%;
margin-top: 180px;
max-height: none;
}

Expand Down Expand Up @@ -203,7 +204,7 @@ input[type=button], input[type=reset] {
#preview-animations {
margin-left: 15px;
position: relative;
top: 240px;
top: 150px;
z-index: 2;
opacity: 1;
background-color: white;
Expand All @@ -230,7 +231,11 @@ input[type=button], input[type=reset] {
#preview-animations {
position: absolute;
z-index: 0;
top: 450px;
top: 350px;
}

#preview {
margin-top: 260px;
}
}

Expand Down
69 changes: 37 additions & 32 deletions sources/source_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,40 +87,42 @@ <h1>Universal LPC Spritesheet Generator</h1>
<input type="search" id="searchbox" name="" placeholder="Search" />
<output id="matches"></output>
</div>
<div>
<label class="control-label">Licenses:</label>
<ul>
<li>
<input class="licenseCheckBox" type="checkbox" value="CC0" checked>
<label>CC0</label>
<a href="https://creativecommons.org/public-domain/cc0/">Show license</a>
</li>
<li>
<input class="licenseCheckBox" type="checkbox" value="CC-BY-SA 3.0, CC-BY-SA 4.0" checked>
<label>CC-BY-SA</label>
<a href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Show license (4.0)</a>
</li>
<li>
<input class="licenseCheckBox" type="checkbox" value="CC-BY 3.0+, CC-BY 3.0, CC-BY 4.0, CC-BY" checked>
<label>CC-BY</label>
<a href="https://creativecommons.org/licenses/by/4.0/">Show license (4.0)</a>
</li>
<li>
<input class="licenseCheckBox" type="checkbox" value="OGA-BY 3.0, OGA-BY 3.0+, OGA-BY 4.0" checked>
<label">OGA-BY</label>
<a href="https://static.opengameart.org/OGA-BY-3.0.txt">Show license (3.0)</a>
</li>
<li>
<input class="licenseCheckBox" type="checkbox" value="GPL 2.0, GPL 3.0" checked>
<label>GPL</label>
<a href="https://www.gnu.org/licenses/gpl-3.0.en.html#license-text">Show license (3.0)</a>
</li>
</ul>
<button type="button" class="removeIncompatibleWithLicenses">Remove Assets Incompatible With Selected Licenses</button>
</div>
</section>
<section id="chooser">
<h3>Body</h3>
<h3>Filters</h3>
<ul>
<li>
<span class="condensed">Licenses:</span>
<ul>
<li>
<input class="licenseCheckBox" type="checkbox" value="CC0" checked>
<label>CC0</label>
<a href="https://creativecommons.org/public-domain/cc0/">Show license</a>
</li>
<li>
<input class="licenseCheckBox" type="checkbox" value="CC-BY-SA 3.0, CC-BY-SA 4.0" checked>
<label>CC-BY-SA</label>
<a href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Show license (4.0)</a>
</li>
<li>
<input class="licenseCheckBox" type="checkbox" value="CC-BY 3.0+, CC-BY 3.0, CC-BY 4.0, CC-BY" checked>
<label>CC-BY</label>
<a href="https://creativecommons.org/licenses/by/4.0/">Show license (4.0)</a>
</li>
<li>
<input class="licenseCheckBox" type="checkbox" value="OGA-BY 3.0, OGA-BY 3.0+, OGA-BY 4.0" checked>
<label">OGA-BY</label>
<a href="https://static.opengameart.org/OGA-BY-3.0.txt">Show license (3.0)</a>
</li>
<li>
<input class="licenseCheckBox" type="checkbox" value="GPL 2.0, GPL 3.0" checked>
<label>GPL</label>
<a href="https://www.gnu.org/licenses/gpl-3.0.en.html#license-text">Show license (3.0)</a>
</li>
</ul>
<button type="button" class="removeIncompatibleWithLicenses">Remove Assets Incompatible With Selected Licenses</button>
</li>
</ul>
<ul>
<li>
<!-- Supported Animation -->
Expand Down Expand Up @@ -197,6 +199,9 @@ <h3>Body</h3>
</ul>
<button type="button" class="removeUnsupported">Remove Assets Not Supported By Selected Animations</button>
</li>
</ul>
<h3>Body</h3>
<ul>
<li>
<!-- Body types -->
<span class="expanded">Body type</span>
Expand Down

0 comments on commit 1558c01

Please sign in to comment.