Skip to content
Snippets Groups Projects
Commit f8b69159 authored by Lukas Ruge's avatar Lukas Ruge
Browse files

bla, datenschutz und so

parent ba79de32
No related branches found
No related tags found
No related merge requests found
Pipeline #9316 passed
...@@ -102,18 +102,18 @@ function presence() { ...@@ -102,18 +102,18 @@ function presence() {
counter ++; counter ++;
if(counter < 6) { if(counter < 6) {
console.log(hash); console.log(hash);
$("#presence" ).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://www.gravatar.com/avatar/'+hash+'.jpg" 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) { if(counter > 5 && counter < 10) {
plus = counter - 5; plus = counter - 5;
$("#presence" ).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" 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) { if(counter >= 10) {
$("#presence" ).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" 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;"/>');
} }
}); });
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment