+function get_chosen_category() {
+ if (window.location.hash === '#pulls') {
+ return 'pulls';
+ } else {
+ return 'general';
+ }
+}
+
+function write_main_menu(chosen_category) {
+ let elems = [];
+ if (chosen_category === 'general') {
+ elems.push(document.createTextNode('General'));
+ } else {
+ let a = document.createElement('a');
+ a.appendChild(document.createTextNode('General'));
+ a.setAttribute('href', '#general');
+ elems.push(a);
+ }
+ elems.push(document.createTextNode(' | '));
+ if (chosen_category === 'pulls') {
+ elems.push(document.createTextNode('Pulls'));
+ } else {
+ let a = document.createElement('a');
+ a.appendChild(document.createTextNode('Pulls'));
+ a.setAttribute('href', '#pulls');
+ elems.push(a);
+ }
+ document.getElementById('mainmenu').replaceChildren(...elems);
+}
+
+function make_table_general(players) {
+ let rows = [];