diff --git a/index.html b/index.html index 8efe0e15..b0d62544 100644 --- a/index.html +++ b/index.html @@ -19071,18 +19071,51 @@ Cancer, Landmine, Grenade, Smoke Grenade">? span.style.display = "block"; document.getElementById("langSelectP").style.display = "none"; } + else { + function loadPlaylight() { + if (typeof playlightSDK === "undefined") { + document.getElementById("playlightButton").value = "Loading..."; + document.head.insertAdjacentHTML("beforeend",``); + let script = document.createElement("script"); + script.setAttribute("type","module"); + script.innerHTML = `try { + const module = await import("https://sdk.playlight.dev/playlight-sdk.es.js"); + const playlightSDK = module.default; + await playlightSDK.init({ + button: { + visible: false + }, + exitIntent: { + enabled: false + } + }); + playlightSDK.setDiscovery(true); + document.getElementById("playlightButton").value = "More Games"; + } catch (error) { + console.error("Error loading the Playlight SDK:", error); + document.getElementById("playlightButton").value = "Error..."; + }`; + document.head.appendChild(script); + } + else { + playlightSDK.setDiscovery(true); + } + } + }
Be notified when Sandboxels and other R74n projects are updated, along with ramblings from the developer!

+

Try our NEW GAME: Infinite Chef

Email us at contact@R74n.com for advertising, help, or education!

-

Support development by subscribing on our Patreon! Many benefits!!

+ +