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 <div
class="absolute top-0 flex items-center justify-center overflow-hidden rounded-2xl bg-bg-raised" 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>
</div> </div>
</template> </template>
@@ -23,7 +23,9 @@ import { ChevronRightIcon } from "@modrinth/assets";
useHead({ useHead({
script: [ 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, async: true,
}, },
{ {
@@ -31,25 +33,6 @@ useHead({
async: true, 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> </script>
<style> <style>

View File

@@ -5,10 +5,11 @@
<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
src="https://dn0qt3r0xannq.cloudfront.net/modrinth-7JfmkEIXEp/modrinth-longform/prebid-load.js" type="module"
src="//js.rev.iq"
async async
data-domain="modrinth.com"
></script> ></script>
<link rel="preload" href="https://www.googletagservices.com/tag/js/gpt.js" as="script" />
<style> <style>
* { * {
margin: 0; margin: 0;
@@ -45,19 +46,9 @@
<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 id="modrinth-rail-1" /> <div data-ad="project-rail" />
</div> </div>
<script> <script>
window.tude = window.tude || { cmd: [] };
tude.cmd.push(function () {
tude.refreshAdsViaDivMappings([
{
divId: "modrinth-rail-1",
baseDivId: "pb-slot-square-2",
},
]);
});
window.addEventListener( window.addEventListener(
"message", "message",
(event) => { (event) => {