terraria section, make images undraggable

This commit is contained in:
2022-12-28 21:58:43 +01:00
parent 34acf68e91
commit 2f0b1e8307
2 changed files with 16 additions and 3 deletions
+16 -2
View File
@@ -41,11 +41,25 @@
</div>
</section>
<section>
<h2>Minecraft plugins</h2>
<h2>Minecraft projects</h2>
<div class="row" data-plugins>
<noscript>Sorry, but this data is loaded by javascript, which seems to not be enabled!</noscript>
</div>
</section>
<section>
<h2>Terraria projects</h2>
<div class="row">
<a href="https://steamcommunity.com/sharedfiles/filedetails/?id=2897350075" class="hori-card" target="_blank">
<div class="icon">
<img draggable="false" src="https://steamuserimages-a.akamaihd.net/ugc/2006946285968997403/1444B38AE5A967655FD8C780CCD3A46DB08BCC86/?" alt=""/>
</div>
<div class="desc">
<b>YHT Mod</b>
<small>TModLoader mod with a bit of content and quality of life changes</small>
</div>
</a>
</div>
</section>
<footer>
<small>&copy; Paweł "YouHaveTrouble" Michalewski</small>
</footer>
@@ -53,7 +67,7 @@
<template id="iconTemplate">
<a data-link class="hori-card" target="_blank">
<div class="icon">
<img data-iconimage loading="lazy">
<img draggable="false" data-iconimage loading="lazy" alt="">
</div>
<div class="desc">
<b data-name></b>
-1
View File
@@ -12,7 +12,6 @@ async function getPlugins() {
for (const plugin in json) {
const pluginData = json[plugin];
if (pluginData.client_side !== "unsupported") continue;
const clonedTemplate = template.content.cloneNode(true);
const projectType = pluginData.project_type;
const slug = pluginData.slug;