Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Commit

Permalink
Added support for "s" + "i" type
Browse files Browse the repository at this point in the history
  • Loading branch information
higoka committed Jun 13, 2017
1 parent 3291fba commit d036e00
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
7 changes: 5 additions & 2 deletions js/main.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
$(document).ready(function () {
$('select').niceSelect();
$('select').on('change', function () {
$('#content').load('template/' + $(this).val() + '.tpl').hide().fadeIn();
$('#button').fadeIn();
$('#content').load('template/' + $(this).val() + '.tpl').hide(function () {
$('select').niceSelect();
}).fadeIn(function () {
$('#button').fadeIn();
});
});
});

Expand Down
2 changes: 1 addition & 1 deletion js/main.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions template/arcturus.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@
<p>Height</p>
<input type="number" name="height" min="0" value="0">
</div>
<div class="grid_4">
<p>Type</p>
<select name="type">
<option value="s" selected>s</option>
<option value="i">i</option>
</select>
</div>


<div class="grid_12">
Expand Down
7 changes: 7 additions & 0 deletions template/plus.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@
<p>Height</p>
<input type="number" name="height" min="0" value="0">
</div>
<div class="grid_4">
<p>Type</p>
<select name="type">
<option value="s" selected>s</option>
<option value="i">i</option>
</select>
</div>


<div class="grid_12">
Expand Down

0 comments on commit d036e00

Please sign in to comment.