]> mop.ddnsfree.com - git repositories - brisk.git/commitdiff
add a custom.js sample file and add custom.js to .gitignore file
authorMatteo Nastasi <nastasi@alternativeoutput.it>
Sun, 13 Sep 2026 15:14:54 +0000 (17:14 +0200)
committerMatteo Nastasi <nastasi@alternativeoutput.it>
Sun, 13 Sep 2026 15:14:54 +0000 (17:14 +0200)
.gitignore
web/custom.js.sample [new file with mode: 0644]

index cf9f65bd39b322d15d29bd1b4ca88ee3d03e89a1..4af0db1b98205b61e25bb38cbe8b8662c935a728 100644 (file)
@@ -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 (file)
index 0000000..cfafa4d
--- /dev/null
@@ -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);
+}
+
+