2024-08-28 21:44:08 -07:00
|
|
|
<!doctype html>
|
|
|
|
|
<html>
|
2024-09-28 03:28:13 +02:00
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
|
|
<title>Modrinth App Ad</title>
|
2024-11-06 13:25:39 -07:00
|
|
|
<script src="/inmobi.js"></script>
|
2025-02-06 10:20:58 -08:00
|
|
|
<script src="https://cadmus.script.ac/d14pdm1b7fi5kh/script.js"></script>
|
2024-11-06 11:27:35 -07:00
|
|
|
<script src="https://dn0qt3r0xannq.cloudfront.net/modrinth-7JfmkEIXEp/modrinth-longform/prebid-load.js"></script>
|
2024-09-28 03:28:13 +02:00
|
|
|
<link rel="preload" href="https://www.googletagservices.com/tag/js/gpt.js" as="script" />
|
|
|
|
|
<style>
|
|
|
|
|
* {
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
2024-08-28 21:44:08 -07:00
|
|
|
|
2024-09-28 03:28:13 +02:00
|
|
|
.ads-container {
|
|
|
|
|
width: 100vw;
|
|
|
|
|
height: 100vh;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
2024-08-28 21:44:08 -07:00
|
|
|
|
2024-09-28 03:28:13 +02:00
|
|
|
#plus-link {
|
|
|
|
|
width: 100vw;
|
|
|
|
|
height: 100vh;
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
z-index: 0;
|
2024-09-13 20:33:51 -07:00
|
|
|
}
|
2024-09-10 00:24:17 -07:00
|
|
|
|
2024-09-28 03:28:13 +02:00
|
|
|
#modrinth-rail-1 {
|
|
|
|
|
border-radius: 1rem;
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 0;
|
|
|
|
|
top: 0;
|
|
|
|
|
z-index: 2;
|
2024-09-05 14:56:17 -07:00
|
|
|
}
|
2024-09-28 03:28:13 +02:00
|
|
|
</style>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<div class="ads-container">
|
2024-09-29 17:51:51 -07:00
|
|
|
<div id="plus-link"></div>
|
2024-10-09 13:54:35 -07:00
|
|
|
<div id="modrinth-rail-1"></div>
|
2024-09-28 03:28:13 +02:00
|
|
|
</div>
|
|
|
|
|
<script>
|
2024-11-03 20:35:04 -07:00
|
|
|
window.tude = window.tude || { cmd: [] };
|
2024-10-09 13:54:35 -07:00
|
|
|
|
2024-11-03 20:35:04 -07:00
|
|
|
window.Raven = window.Raven || { cmd: [] };
|
2024-10-21 12:34:46 -07:00
|
|
|
|
2024-11-03 20:35:04 -07:00
|
|
|
window.Raven.cmd.push(({ config }) => {
|
|
|
|
|
config.setCustom({
|
|
|
|
|
param1: "app",
|
2024-10-21 12:34:46 -07:00
|
|
|
});
|
2024-11-03 20:35:04 -07:00
|
|
|
});
|
2024-10-21 12:34:46 -07:00
|
|
|
|
2024-11-03 20:35:04 -07:00
|
|
|
tude.cmd.push(function () {
|
|
|
|
|
tude.refreshAdsViaDivMappings([
|
|
|
|
|
{
|
|
|
|
|
divId: "modrinth-rail-1",
|
|
|
|
|
baseDivId: "pb-slot-square-2",
|
|
|
|
|
targeting: {
|
|
|
|
|
location: "app",
|
2024-09-29 17:57:16 -07:00
|
|
|
},
|
2024-11-03 20:35:04 -07:00
|
|
|
},
|
|
|
|
|
]);
|
|
|
|
|
});
|
2024-11-06 11:27:35 -07:00
|
|
|
|
2024-11-12 15:17:02 -08:00
|
|
|
// window.addEventListener(
|
|
|
|
|
// "message",
|
|
|
|
|
// (event) => {
|
|
|
|
|
// if (event.data.modrinthAdClick && window.__TAURI_INTERNALS__) {
|
|
|
|
|
// window.__TAURI_INTERNALS__.invoke("plugin:ads|record_ads_click", {});
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// if (event.data.modrinthOpenUrl && window.__TAURI_INTERNALS__) {
|
|
|
|
|
// window.__TAURI_INTERNALS__.invoke("plugin:ads|open_link", {
|
|
|
|
|
// path: event.data.modrinthOpenUrl,
|
|
|
|
|
// origin: event.origin,
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
// false,
|
|
|
|
|
// );
|
2024-08-28 21:44:08 -07:00
|
|
|
|
2024-09-28 03:28:13 +02:00
|
|
|
window.addEventListener("mousewheel", (event) => {
|
|
|
|
|
if (window.__TAURI_INTERNALS__) {
|
|
|
|
|
window.__TAURI_INTERNALS__.invoke("plugin:ads|scroll_ads_window", {
|
|
|
|
|
scroll: event.deltaY,
|
|
|
|
|
});
|
|
|
|
|
}
|
2024-08-28 21:44:08 -07:00
|
|
|
});
|
|
|
|
|
|
2024-09-28 03:28:13 +02:00
|
|
|
document.addEventListener("contextmenu", (event) => event.preventDefault());
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|
2024-08-28 21:44:08 -07:00
|
|
|
</html>
|