complete = true;
if (imageQuery) {
- image = images.filter(i => i.includes(imageQuery));
+ image = images.filter((i) => i.includes(imageQuery));
if (!image[0]) {
- image = "https://www.pngarts.com/files/8/Confused-Anime-Transparent-Image.png";
+ image =
+ "https://www.pngarts.com/files/8/Confused-Anime-Transparent-Image.png";
image = errorImages[Math.floor(Math.random() * errorImages.length)];
} else {
let xhr = new XMLHttpRequest();
imageSize = "Error";
}
}
- }
+ };
xhr.send(null);
}
}
<div class="highlight-image">
<p>
<i>Could not locate that specific image!</i>
- Wanna go <a href={`/language?language=${language}`}>back</a> to language homepage?
+ Wanna go <a href={`/language?language=${language}`}>back</a> to language
+ homepage?
</p>
<a href={image}>
- <img
- src={image}
- alt="Image of a confused anime girl"
- />
+ <img src={image} alt="Image of a confused anime girl" />
</a>
</div>
{:else if image}
<div class="highlight-image">
<p>
- Wanna go <a href={`/language?language=${language}`}>back</a> to language homepage?
+ Wanna go <a href={`/language?language=${language}`}>back</a> to language
+ homepage?
</p>
<a href={image}>
</a>
<p>
- Attributes attributes =
- {<br>
-  direct_link: "<a href={image}>url</a>",<br>
-  size: {imageSize}, /* kb */<br>
-  fetch_time: {fetchTime}, /* ms */<br>
+ Attributes attributes = {<br />
+  direct_link: "<a href={image}>url</a>",<br />
+  size: {imageSize}, /* kb */<br />
+  fetch_time: {fetchTime}, /* ms */<br />
};
</p>
</div>