diff --git a/web/cw.js b/web/cw.js index 6c9f98e..bc3b31f 100644 --- a/web/cw.js +++ b/web/cw.js @@ -3052,6 +3052,7 @@ ${my_id_div} } } + // Initializes the custom movement-notes panel used during training. function cumoves() { const notes = getSettings('cuMovesNote') || ''; const p = `

Заметки:

`; @@ -3062,6 +3063,7 @@ ${my_id_div} }); } + // Adds the in-game shortcut that opens the userscript settings view. function sett() { $('head').append(``); const pattern = globals.css_cp_pattern ? 'url(https://i.imgur.com/V4TX5Cv.png), ' : ''; @@ -4130,10 +4132,12 @@ Y: [cat123] [123] return maskStr.replace(/%ID%/g, catID); } + // Converts a whitespace-separated ID list into masked display labels. function toMaskedArr(str, maskStr) { // '123 456', '[catID] [ID]' => [cat123] [123], [cat456] [456] str = str.replace(/\n/g, ' '); let tmp_arr = []; @@ -4155,11 +4159,13 @@ Y: dt = {year: yyyy, month: MM, day: dd, shortYear: YY} if (datestr) { let dt = {};