default to last 24 hours
authorGeoffrey Allott <geoffrey@allott.email>
Mon, 12 Jun 2023 20:39:16 +0000 (21:39 +0100)
committerGeoffrey Allott <geoffrey@allott.email>
Mon, 12 Jun 2023 20:39:16 +0000 (21:39 +0100)
site/modules/mainmenu.js
site/modules/socket.js

index 605a8e6e7609c91ef6b8a6edfd597d3332f51f64..e13d4b30696b7dd18b3040e13bd0e392a87bea29 100644 (file)
@@ -16,7 +16,7 @@ export class MainMenu {
         texas_hold_em_text.innerText = "Texas Hold 'em";
         texas_hold_em.append(texas_hold_em_img);
         texas_hold_em.append(texas_hold_em_text);
-        texas_hold_em.onclick = () => this.send({type: "JoinLobby", filter: "format: TexasHoldEm and created_in_last: 2:00:00"});
+        texas_hold_em.onclick = () => this.send({type: "JoinLobby", filter: "format: TexasHoldEm and created_in_last: 24:00:00"});
         menu_container.append(texas_hold_em);
 
         const knock_out_whist = document.createElement("div");
@@ -27,7 +27,7 @@ export class MainMenu {
         knock_out_whist_text.innerText = "Knock-Out Whist";
         knock_out_whist.append(knock_out_whist_img);
         knock_out_whist.append(knock_out_whist_text);
-        knock_out_whist.onclick = () => this.send({type: "JoinLobby", filter: "format: KnockOutWhist and created_in_last: 2:00:00"});
+        knock_out_whist.onclick = () => this.send({type: "JoinLobby", filter: "format: KnockOutWhist and created_in_last: 24:00:00"});
         menu_container.append(knock_out_whist);
 
         const cribbage = document.createElement("div");
@@ -38,7 +38,7 @@ export class MainMenu {
         cribbage_text.innerText = "Cribbage";
         cribbage.append(cribbage_img);
         cribbage.append(cribbage_text);
-        cribbage.onclick = () => this.send({type: "JoinLobby", filter: "format: Cribbage and created_in_last: 2:00:00"});
+        cribbage.onclick = () => this.send({type: "JoinLobby", filter: "format: Cribbage and created_in_last: 24:00:00"});
         menu_container.append(cribbage);
 
         const chatroom = document.createElement("div");
@@ -49,7 +49,7 @@ export class MainMenu {
         chatroom_text.innerText = "Chatroom";
         chatroom.append(chatroom_img);
         chatroom.append(chatroom_text);
-        chatroom.onclick = () => this.send({type: "JoinLobby", filter: "format: Chatroom and created_in_last: 2:00:00"});
+        chatroom.onclick = () => this.send({type: "JoinLobby", filter: "format: Chatroom and created_in_last: 24:00:00"});
         menu_container.append(chatroom);
 
         this.container.append(menu_container);
index 83fb3c04440818cfe0de13406f109f0a39c38eaa..8102e3785ea2127e1c850b53d0f58c978ed40d37 100644 (file)
@@ -25,7 +25,7 @@ export class Socket {
         this.socket.onmessage = (msg) => this.onmessage(msg);
         this.socket.onclose = () => this.onclose();
         this.state = "Connecting";
-        this.last_filter = "created_in_last: 2:00:00";
+        this.last_filter = "created_in_last: 24:00:00";
 
         this.scheduled_actions = [];
         this.schedule_timeout = null;