From: Matteo Nastasi Date: Sun, 13 Sep 2026 15:14:54 +0000 (+0200) Subject: add a custom.js sample file and add custom.js to .gitignore file X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=c92a20509868cc0af283e502f7cba594a25ba954;p=brisk.git add a custom.js sample file and add custom.js to .gitignore file --- diff --git a/.gitignore b/.gitignore index cf9f65b..4af0db1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ TAGS doc/relict_output.txt +web/custom.js web/briskin5/players-corr.php + diff --git a/web/custom.js.sample b/web/custom.js.sample new file mode 100644 index 0000000..cfafa4d --- /dev/null +++ b/web/custom.js.sample @@ -0,0 +1,29 @@ +function custom_bedge(username, name, flags) { + var supersfx = ''; + var ret = {}; + + // console.log('custom_bedge: begin [' + flags + ']'); + if ((flags & 0x06) == 0x00) { + return null; + } + + if (username.toUpperCase() != 'BEGO' && username.toUpperCase() != 'PAOLO' && username.toUpperCase() != 'A') { + return null; + } + // console.log('pass test'); + if (name != "") { + supersfx = "_side"; + } + ret['supername'] = 'img/coppa_cometa' + supersfx + '.png'; + var socio = 'Adelina'; + if (username.toUpperCase() == 'BEGO') { + socio = 'Paolo'; + } + else if (username.toUpperCase() == 'PAOLO') { + socio = 'Bego'; + } + ret['supertit'] = 'Primo classificato con ' + socio + ' al 2° Torneo a Coppie - Insieme per ... gioco'; + return (ret); +} + +