Skip to content

Commit

Permalink
change avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
tandpfun authored Apr 23, 2024
1 parent 0e486fe commit f26b77b
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
<div class="select-none">
<h1 class="flex items-center">
<img
src="~/assets/img/avatar.png"
src="~/assets/img/redpanda.png"
class="w-10 h-10 rounded-lg inline avatar"
@click="toggleFurry"
/>
<span class="ml-2 font-bold text-lg">thijs.gg</span>
</h1>
Expand All @@ -17,23 +16,3 @@
</div>
</div>
</template>

<script>
export default {
methods: {
toggleFurry() {
const avatars = document.getElementsByClassName('avatar')
for (const a of avatars) {
a.src = a.src.includes('redpanda')
? require('~/assets/img/avatar.png')
: '/redpanda.png'
}
const favicon = document.querySelectorAll('[rel="icon"]')[0]
favicon.href = favicon.href.includes('favicon')
? '/redpanda.png'
: 'favicon.png'
},
},
}
</script>

0 comments on commit f26b77b

Please sign in to comment.