Merge commit '870f92a94090b4d9aa4e942ec781e31fb8e13f22' into feature-clean

This commit is contained in:
2024-09-04 18:58:13 +03:00
2 changed files with 8 additions and 34 deletions

View File

@@ -13,7 +13,7 @@
<div
class="absolute top-0 flex items-center justify-center overflow-hidden rounded-2xl bg-bg-raised"
>
<div id="modrinth-rail-1" />
<div data-ad="project-rail" />
</div>
</div>
</template>
@@ -23,7 +23,9 @@ import { ChevronRightIcon } from "@modrinth/assets";
useHead({
script: [
{
src: "https://dn0qt3r0xannq.cloudfront.net/modrinth-7JfmkEIXEp/modrinth-longform/prebid-load.js",
type: "module",
src: "//js.rev.iq",
"data-domain": "modrinth.com",
async: true,
},
{
@@ -31,25 +33,6 @@ useHead({
async: true,
},
],
link: [
{
rel: "preload",
as: "script",
href: "https://www.googletagservices.com/tag/js/gpt.js",
},
],
});
onMounted(() => {
window.tude = window.tude || { cmd: [] };
tude.cmd.push(function () {
tude.refreshAdsViaDivMappings([
{
divId: "modrinth-rail-1",
baseDivId: "pb-slot-square-2",
},
]);
});
});
</script>
<style>

View File

@@ -5,10 +5,11 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Modrinth App Ad</title>
<script
src="https://dn0qt3r0xannq.cloudfront.net/modrinth-7JfmkEIXEp/modrinth-longform/prebid-load.js"
type="module"
src="//js.rev.iq"
async
data-domain="modrinth.com"
></script>
<link rel="preload" href="https://www.googletagservices.com/tag/js/gpt.js" as="script" />
<style>
* {
margin: 0;
@@ -45,19 +46,9 @@
<body>
<div class="ads-container">
<a id="plus-link" href="https://modrinth.com/plus" target="_blank"></a>
<div id="modrinth-rail-1" />
<div data-ad="project-rail" />
</div>
<script>
window.tude = window.tude || { cmd: [] };
tude.cmd.push(function () {
tude.refreshAdsViaDivMappings([
{
divId: "modrinth-rail-1",
baseDivId: "pb-slot-square-2",
},
]);
});
window.addEventListener(
"message",
(event) => {