Add files via upload
This commit is contained in:
parent
074b96ed78
commit
1584723c30
|
|
@ -418,7 +418,7 @@
|
||||||
document.getElementById('y').textContent = new Date().getFullYear();
|
document.getElementById('y').textContent = new Date().getFullYear();
|
||||||
|
|
||||||
// === CONFIG (same API + servers as your current page) ===
|
// === CONFIG (same API + servers as your current page) ===
|
||||||
const API = 'http://10.1.10.64:5317/api/status';
|
const API = 'https://api.oblistudios.com/api/status';
|
||||||
|
|
||||||
const SERVERS = [
|
const SERVERS = [
|
||||||
{ name: 'The Island (PvP)', host: '10.1.10.64', port: 27015 },
|
{ name: 'The Island (PvP)', host: '10.1.10.64', port: 27015 },
|
||||||
|
|
|
||||||
|
|
@ -724,7 +724,7 @@
|
||||||
let remaining = 12;
|
let remaining = 12;
|
||||||
async function refreshRemaining() {
|
async function refreshRemaining() {
|
||||||
try {
|
try {
|
||||||
const r = await fetch('/api/inventory'); const j = await r.json();
|
const r = await fetch('http://10.1.10.195:3000/api/inventory', { credentials: 'include' }); const j = await r.json();
|
||||||
remaining = j.remaining;
|
remaining = j.remaining;
|
||||||
document.querySelectorAll('[data-remaining] .remN').forEach(s => s.textContent = remaining);
|
document.querySelectorAll('[data-remaining] .remN').forEach(s => s.textContent = remaining);
|
||||||
// Disable all three server buttons if none left:
|
// Disable all three server buttons if none left:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue