X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2FcreateSone.html;h=9666b27a067784e1a1f6074f44a45f1781015239;hb=566a6be137c012ad5319e4d786d9c3a3e26dcdac;hp=c98c2ee797b3a72b9af641e2a852aaf1bb63764b;hpb=d56e5c4f3f730aa6c097a51652d2fe6530104783;p=Sone.git diff --git a/src/main/resources/templates/include/createSone.html b/src/main/resources/templates/include/createSone.html index c98c2ee..9666b27 100644 --- a/src/main/resources/templates/include/createSone.html +++ b/src/main/resources/templates/include/createSone.html @@ -7,6 +7,24 @@ /* hide all the labels. */ $("#sone #create-sone label").hide(); + + /* now hide the “advanced” section. */ + advancedSection = $("#sone #create-sone .advanced"); + advancedSection.hide(); + + /* show a checkbox instead. */ + checkboxSection = $("
"); + checkbox = $("").click(function() { + if (this.checked) { + advancedSection.show(); + $("#sone #create-sone button[name=create-random]").hide(); + } else { + advancedSection.hide(); + $("#sone #create-sone button[name=create-random]").show(); + } + }) + checkboxSection.append(checkbox).append("Show advanced settings"); + advancedSection.before(checkboxSection); }); @@ -23,15 +41,17 @@
- class="error"<%/if>> - - - - class="error"<%/if>> - - - -
- +
+ class="error"<%/if>> + + +
+ class="error"<%/if>> + + +
+
+ +