You've already forked AstralRinth
forked from didirus/AstralRinth
Merge commit '16c5a5a3a6b7bd5b5770caa847140a6dfe402b69' into feature-clean
This commit is contained in:
@@ -1,75 +1,84 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>Modrinth App Ad</title>
|
<title>Modrinth App Ad</title>
|
||||||
<script
|
<script
|
||||||
type="module"
|
src="https://dn0qt3r0xannq.cloudfront.net/modrinth-7JfmkEIXEp/modrinth-longform/prebid-load.js"
|
||||||
src="//js.rev.iq"
|
async
|
||||||
async
|
></script>
|
||||||
data-domain="modrinth.com"
|
<link rel="preload" href="https://www.googletagservices.com/tag/js/gpt.js" as="script" />
|
||||||
></script>
|
<style>
|
||||||
<style>
|
* {
|
||||||
* {
|
margin: 0;
|
||||||
margin: 0;
|
padding: 0;
|
||||||
padding: 0;
|
overflow: hidden;
|
||||||
overflow: hidden;
|
cursor: pointer;
|
||||||
cursor: pointer;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.ads-container {
|
.ads-container {
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
#plus-link {
|
#plus-link {
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#modrinth-rail-1 {
|
#modrinth-rail-1 {
|
||||||
border-radius: 1rem;
|
border-radius: 1rem;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="ads-container">
|
<div class="ads-container">
|
||||||
<a id="plus-link" href="https://modrinth.com/plus" target="_blank"></a>
|
<a id="plus-link" href="https://modrinth.com/plus" target="_blank"></a>
|
||||||
<div data-ad="project-rail" />
|
<div id="modrinth-rail-1" />
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener(
|
window.tude = window.tude || { cmd: [] };
|
||||||
"message",
|
tude.cmd.push(function () {
|
||||||
(event) => {
|
tude.refreshAdsViaDivMappings([
|
||||||
if (event.data.modrinthOpenUrl && window.__TAURI_INTERNALS__) {
|
{
|
||||||
window.__TAURI_INTERNALS__.invoke("plugin:shell|open", {
|
divId: "modrinth-rail-1",
|
||||||
path: event.data.modrinthOpenUrl,
|
baseDivId: "pb-slot-square-2",
|
||||||
});
|
},
|
||||||
}
|
]);
|
||||||
},
|
});
|
||||||
false,
|
|
||||||
);
|
|
||||||
|
|
||||||
window.addEventListener("mousewheel", (event) => {
|
window.addEventListener(
|
||||||
if (window.__TAURI_INTERNALS__) {
|
"message",
|
||||||
window.__TAURI_INTERNALS__.invoke("plugin:ads|scroll_ads_window", {
|
(event) => {
|
||||||
scroll: event.deltaY,
|
if (event.data.modrinthOpenUrl && window.__TAURI_INTERNALS__) {
|
||||||
});
|
window.__TAURI_INTERNALS__.invoke("plugin:shell|open", {
|
||||||
}
|
path: event.data.modrinthOpenUrl,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
false,
|
||||||
|
);
|
||||||
|
|
||||||
|
window.addEventListener("mousewheel", (event) => {
|
||||||
|
if (window.__TAURI_INTERNALS__) {
|
||||||
|
window.__TAURI_INTERNALS__.invoke("plugin:ads|scroll_ads_window", {
|
||||||
|
scroll: event.deltaY,
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
document.addEventListener("contextmenu", (event) => event.preventDefault());
|
document.addEventListener("contextmenu", (event) => event.preventDefault());
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user