Skip to content

Commit

Permalink
add default any option
Browse files Browse the repository at this point in the history
  • Loading branch information
Fengping Hu committed Nov 13, 2024
1 parent 4068877 commit d5821bf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion binderhub/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ <h4 id="form-header" class='row'>Build and launch a repository</h4>
<div class="form-group col-md-2">
<!label for="qos">CPUs</label>
<div class="input-group">
<input type="number" class="form-control" name="cpu" id="cpu" min=1 max=16 value=1 disabled>
<input type="number" class="form-control" name="cpu" id="cpu" min=1 max=32 value=1 disabled>
</div>
</div>
<div class="form-group col-md-2">
Expand Down Expand Up @@ -546,6 +546,13 @@ <h3 class="text-center">How it works</h3>
option.text = gpus[i]["product"] + "(" +gpus[i]["available"].toString()+"/"+ gpus[i]["count"].toString() + ")";
gpuSelect.add(option);
}
if (gpuSelect.options.length > 0){
var option = document.createElement("option");
option.value = ""
option.text = "Any"
gpuSelect.add(option,gpuSelect.options[0]);
gpuSelect.selectedIndex=0
}
}

function changeSite(site) {
Expand Down

0 comments on commit d5821bf

Please sign in to comment.