diff --git a/_includes/nav-header.html b/_includes/nav-header.html index 1a32a7adbef728bcf860397c903baacc3b9d3984..266da15b2e96009647d2497b14c003a34348c6cc 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;"/>'); } }); }