mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-23 15:04:20 +00:00
Deploying to gh-pages from @ Farama-Foundation/Gymnasium@e68593c8f3 🚀
This commit is contained in:
@@ -815,7 +815,39 @@ This object is created with <cite>create_shared_memory</cite>.</p></li>
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
(() => {
|
||||
if (!localStorage.getItem("shownCookieAlert")) {
|
||||
const boxElem = document.createElement("div");
|
||||
boxElem.classList.add("cookie-alert");
|
||||
const containerElem = document.createElement("div");
|
||||
containerElem.classList.add("cookie-alert__container");
|
||||
const textElem = document.createElement("p");
|
||||
textElem.innerHTML = `This page uses <a href="https://analytics.google.com/">
|
||||
Google Analytics</a> to collect statistics. You can disable it by blocking
|
||||
the JavaScript coming from www.google-analytics.com.`;
|
||||
containerElem.appendChild(textElem);
|
||||
const closeBtn = document.createElement("button");
|
||||
closeBtn.innerHTML = `<?xml version="1.0" ?><svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><defs><style>.cls-1{fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px;}</style></defs><title/><g id="cross"><line class="cls-1" x1="7" x2="25" y1="7" y2="25"/><line class="cls-1" x1="7" x2="25" y1="25" y2="7"/></g></svg>`
|
||||
closeBtn.onclick = () => {
|
||||
localStorage.setItem("shownCookieAlert", "true");
|
||||
boxElem.style.display = "none";
|
||||
}
|
||||
containerElem.appendChild(closeBtn);
|
||||
boxElem.appendChild(containerElem);
|
||||
document.body.appendChild(boxElem);
|
||||
}
|
||||
})()
|
||||
</script>
|
||||
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-6H9C8TWXZ8"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'G-6H9C8TWXZ8');
|
||||
</script>
|
||||
|
||||
<script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script>
|
||||
<script src="../../../_static/jquery.js"></script>
|
||||
|
Reference in New Issue
Block a user