Skip to content
Snippets Groups Projects
Commit a523c3db authored by jonasled's avatar jonasled
Browse files

disable preview on index page

parent f2360c32
Branches
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ if (strpos($_SERVER['HTTP_HOST'], '.onion') !== false) {
getHeader("Jonas Leder", "home");
?>
<div class="center">
<img id="homeImage" src="img/bildHome.webp">
<img id="homeImage" src="img/bildHome.webp" data-noPreview="true">
<h2>&Uuml;ber mich</h2>
<p class="left block">Hallo, mein Name ist Jonas Leder. Ich bin aktuell Student an der Dualen Hochschule Baden-Württemberg in Mannheim Fachrichtung Angewandte Informatik.</p>
<p><a href="about.php"><button>Mehr</button></a></p>
......@@ -53,8 +53,8 @@ getHeader("Jonas Leder", "home");
</div>
<div id="banner">
<h2>Banner</h2>
<a target="_blank" href="https://ipv6.he.net"><img src="<?php echo($heIMG); ?>"></a>
<a target="_blank" href="https://www.abuseipdb.com/user/45130"><img style="width: 391px;background: #35c246 linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.3) 50%, rgba(0,0,0,.2) 51%, rgba(0,0,0,0));padding: 5px;" src="<?php echo($abuseIPIMG); ?>" style="width: 401px;"></a>
<a target="_blank" href="https://ipv6.he.net"><img src="<?php echo($heIMG); ?>" data-noPreview="true">></a>
<a target="_blank" href="https://www.abuseipdb.com/user/45130"><img style="width: 391px;background: #35c246 linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.3) 50%, rgba(0,0,0,.2) 51%, rgba(0,0,0,0));padding: 5px;" src="<?php echo($abuseIPIMG); ?>" style="width: 401px;" data-noPreview="true">></a>
</div>
<br>
<br>
......
let images:HTMLCollectionOf<HTMLImageElement> = <HTMLCollectionOf<HTMLImageElement>> document.getElementsByTagName("img");
for(let i = 0; i < images.length; i++){
let element:HTMLImageElement = images[i];
if(element.getAttribute("data-noPreview") === "true") {
if(!(element.getAttribute("data-noPreview") === "true")) {
element.onclick = () => createDialogImage(element.src);
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment