genHexString default length=6
This commit is contained in:
parent
74d1e6d0fb
commit
a56b5e11a0
@ -9,17 +9,11 @@ $(document).ready(async function() {
|
||||
await loadServerOptions();
|
||||
});
|
||||
|
||||
// $('#serverTabs [data-bs-toggle="tab"]').on("show.bs.tab", function(event) {
|
||||
// const activeTab = $(event.target);
|
||||
// $(".tab-pane-buttons .tab-pane-buttons-item").hide();
|
||||
// $(`.tab-pane-buttons .tab-pane-buttons-item[data-tab="${activeTab.attr("id")}"]`).show();
|
||||
// });
|
||||
|
||||
$(document).on("selectedServerChange", function() {
|
||||
$("#subscriptionsTab").click();
|
||||
});
|
||||
|
||||
function genHexString(len) {
|
||||
function genHexString(len=6) {
|
||||
let output = '';
|
||||
for (let i = 0; i < len; ++i) {
|
||||
output += (Math.floor(Math.random() * 16)).toString(16);
|
||||
|
Loading…
x
Reference in New Issue
Block a user