mirror of
https://github.com/Lolendor/reVCDOS.git
synced 2026-10-10 11:53:11 +08:00
more query params
This commit is contained in:
@@ -130,6 +130,8 @@ python server.py --port 3000 --custom_saves --login admin --password secret123 -
|
||||
|-----------|--------|-------------|
|
||||
| `lang` | `en`, `ru` | Game language |
|
||||
| `cheats` | `1` | Enable cheat menu (F3) |
|
||||
| `request_original_game` | `1` | Request original game files before play |
|
||||
| `fullscreen` | `0` | Disable auto-fullscreen |
|
||||
|
||||
|
||||
**Examples:**
|
||||
|
||||
+33
-1
@@ -122,6 +122,36 @@
|
||||
" \" onchange=\"this.style.backgroundColor = this.checked ? '#8ab4f8' : 'transparent'; this.style.borderColor = this.checked ? '#8ab4f8' : '#9aa0a6';\">\n",
|
||||
" Enable Cheats Menu (F3)\n",
|
||||
" </label>\n",
|
||||
" <label style=\"display: flex; align-items: center; cursor: pointer; color: #e8eaed; font-size: 14px; margin-top: 8px;\">\n",
|
||||
" <input type=\"checkbox\" id=\"req_orig\" style=\"\n",
|
||||
" appearance: none;\n",
|
||||
" width: 18px;\n",
|
||||
" height: 18px;\n",
|
||||
" border: 2px solid #9aa0a6;\n",
|
||||
" border-radius: 2px;\n",
|
||||
" margin-right: 8px;\n",
|
||||
" position: relative;\n",
|
||||
" cursor: pointer;\n",
|
||||
" outline: none;\n",
|
||||
" \" onchange=\"this.style.backgroundColor = this.checked ? '#8ab4f8' : 'transparent'; this.style.borderColor = this.checked ? '#8ab4f8' : '#9aa0a6';\">\n",
|
||||
" Request Original Game Files\n",
|
||||
" </label>\n",
|
||||
" <label style=\"display: flex; align-items: center; cursor: pointer; color: #e8eaed; font-size: 14px; margin-top: 8px;\">\n",
|
||||
" <input type=\"checkbox\" id=\"fullscreen\" checked style=\"\n",
|
||||
" appearance: none;\n",
|
||||
" width: 18px;\n",
|
||||
" height: 18px;\n",
|
||||
" border: 2px solid #9aa0a6;\n",
|
||||
" border-radius: 2px;\n",
|
||||
" margin-right: 8px;\n",
|
||||
" position: relative;\n",
|
||||
" cursor: pointer;\n",
|
||||
" outline: none;\n",
|
||||
" background-color: #8ab4f8;\n",
|
||||
" border-color: #8ab4f8;\n",
|
||||
" \" onchange=\"this.style.backgroundColor = this.checked ? '#8ab4f8' : 'transparent'; this.style.borderColor = this.checked ? '#8ab4f8' : '#9aa0a6';\">\n",
|
||||
" Auto Fullscreen\n",
|
||||
" </label>\n",
|
||||
" </div>\n",
|
||||
" </div>\n",
|
||||
"\n",
|
||||
@@ -158,7 +188,9 @@
|
||||
" function copyAndOpen() {{\n",
|
||||
" const lang = document.getElementById('lang').value;\n",
|
||||
" const cheats = document.getElementById('cheats').checked ? '&cheats=1' : '';\n",
|
||||
" const finalUrl = `{tunnel_url}/?lang=${{lang}}${{cheats}}`;\n",
|
||||
" const reqOrig = document.getElementById('req_orig').checked ? '&request_original_game=1' : '';\n",
|
||||
" const fullscreen = document.getElementById('fullscreen').checked ? '' : '&fullscreen=0';\n",
|
||||
" const finalUrl = `{tunnel_url}/?lang=${{lang}}${{cheats}}${{reqOrig}}${{fullscreen}}`;\n",
|
||||
" \n",
|
||||
" navigator.clipboard.writeText(\"{password}\").then(function() {{\n",
|
||||
" document.getElementById(\"status\").innerHTML = \"✓ Password copied! Opening game...\";\n",
|
||||
|
||||
Vendored
+2
-2
@@ -11,13 +11,13 @@ const params = new URLSearchParams(window.location.search);
|
||||
const replaceFetch = (str) => str.replace("https://cdn.dos.zone/vcsky/", "/vcsky/")
|
||||
const replaceBR = "/vcbr/"
|
||||
|
||||
const autoFullScreen = true;
|
||||
const autoFullScreen = params.get('fullscreen') !== "0";
|
||||
|
||||
// F3 for activation (cheat-menu)
|
||||
const cheatsEnabled = params.get('cheats') === "1"
|
||||
|
||||
// full game access
|
||||
if (true)
|
||||
if (params.get('request_original_game') !== "1")
|
||||
localStorage.setItem('vcsky.haveOriginalGame', 'true');
|
||||
|
||||
const isMobile = /Mobi|Android|iPhone|iPad|iPod/i.test(navigator.userAgent);
|
||||
|
||||
Reference in New Issue
Block a user