diff --git a/index.html b/index.html index 5edab3c..7d46333 100644 --- a/index.html +++ b/index.html @@ -41,7 +41,7 @@ gtag('config', 'AW-16572194743'); - +

DEV MODE - Run in your browser

@@ -49,7 +49,7 @@

DEV MODE - Run in your browser For best experience use Google Chrome or Chromium-based browser

- +

@@ -68,15 +68,17 @@

+

WIM uri

Run

Args

+

- +

@@ -91,7 +93,7 @@

Args

@@ -113,6 +115,7 @@

© Borg Queen, LLC 2024

uriIn.value = urlParams.get('url'); runIn.value = urlParams.get('run'); argsIn.value = urlParams.get('args'); + const NETWORK = new URLSearchParams(window.location.search).get('interlink'); const run = document.getElementById('run'); run.onclick = function () { @@ -136,10 +139,16 @@

© Borg Queen, LLC 2024

run.disabled = nodes.length === 0; if (!run.disabled) run.title = ''; - if (nodes.length > 0) + if (nodes.length > 0) { document.body.classList.remove('no-nodes'); + if (NETWORK && NETWORK.startsWith('CES-')) { + document.getElementById('launch-config').remove(); + document.getElementById('stream').muted = true; + run.click(); + } + } } - + async function shareUrlClipboard(url) { try { await navigator.clipboard.writeText(url); @@ -157,7 +166,9 @@

© Borg Queen, LLC 2024

const uri = encodeURIComponent(uriIn.value); const run = encodeURIComponent(runIn.value); const args = encodeURIComponent(argsIn.value); - const url = window.location.origin + window.location.pathname + '?url=' + uri + '&run=' + run + '&args=' + args; + let url = window.location.origin + window.location.pathname + '?url=' + uri + '&run=' + run + '&args=' + args; + if (NETWORK) + url += '&interlink=' + NETWORK; if (navigator.share) { navigator.share({