disable preview on index page
This commit is contained in:
parent
f2360c322a
commit
a523c3db8e
2 changed files with 4 additions and 4 deletions
|
@ -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>Ü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>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
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);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue