From f8b6915931f95c144db1a83394b8341c4e896540 Mon Sep 17 00:00:00 2001 From: tvluke <tvluke@chaotikum.org> Date: Sat, 10 Jun 2023 16:05:26 +0200 Subject: [PATCH] bla, datenschutz und so --- _includes/nav-header.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/_includes/nav-header.html b/_includes/nav-header.html index 1a32a7ad..266da15b 100644 --- a/_includes/nav-header.html +++ b/_includes/nav-header.html @@ -102,18 +102,18 @@ function presence() { counter ++; if(counter < 6) { console.log(hash); - $("#presence" ).append('<img class="gravatar" src="https://www.gravatar.com/avatar/'+hash+'.jpg" style="margin-left: -5px;"/>'); - $("#presence_mobile" ).append('<img class="gravatar" src="https://www.gravatar.com/avatar/'+hash+'.jpg" style="margin-left: -5px;"/>'); + $("#presence" ).append('<img class="gravatar" src="https://chaotikum.org/images/avatar/'+hash+'.jpg" onerror="this.src=\'https://chaotikum.org/images/avatar/default.png\';" width="80px" height="80px" style="margin-left: -5px;"/>'); + $("#presence_mobile" ).append('<img class="gravatar" src="https://chaotikum.org/images/avatar/'+hash+'.jpg" onerror="this.src=\'https://chaotikum.org/images/avatar/default.png\';" width="80px" height="80px" style="margin-left: -5px;"/>'); } } if(counter > 5 && counter < 10) { plus = counter - 5; - $("#presence" ).append('<img class="gravatar" src="https://chaotikum.org/assets/presence/plus'+plus+'.png" style="margin-left: -5px;"/>'); - $("#presence_mobile" ).append('<img class="gravatar" src="https://chaotikum.org/assets/presence/plus'+plus+'.png" style="margin-left: -5px;"/>'); + $("#presence" ).append('<img class="gravatar" src="https://chaotikum.org/assets/presence/plus'+plus+'.png" width="80px" height="80px" style="margin-left: -5px;"/>'); + $("#presence_mobile" ).append('<img class="gravatar" src="https://chaotikum.org/assets/presence/plus'+plus+'.png" width="80px" height="80px" style="margin-left: -5px;"/>'); } if(counter >= 10) { - $("#presence" ).append('<img class="gravatar" src="https://chaotikum.org/assets/presence/plusplus.png" style="margin-left: -5px;"/>'); - $("#presence_mobile" ).append('<img class="gravatar" src="https://chaotikum.org/assets/presence/plusplus.png" style="margin-left: -5px;"/>'); + $("#presence" ).append('<img class="gravatar" src="https://chaotikum.org/assets/presence/plusplus.png" width="80px" height="80px" style="margin-left: -5px;"/>'); + $("#presence_mobile" ).append('<img class="gravatar" src="https://chaotikum.org/assets/presence/plusplus.png" width="80px" height="80px" style="margin-left: -5px;"/>'); } }); } -- GitLab