jk.nipponalba.scot website
https://jk.nipponalba.scot
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
884 B
23 lines
884 B
<p class="h-card vcard" style="display:none;">
|
|
<img class="u-photo" src="/images/profile.jpg" />
|
|
<a class="u-url p-author p-name url" href="https://jk.nipponalba.scot" rel="me">JK</a>
|
|
<a class="u-email" rel="me" href="mailto:jk@nipponalba.scot">jk</a>
|
|
</p>
|
|
|
|
<script>
|
|
// This code is only used to remember theme selection between page loads
|
|
const themeSwitch = document.querySelector('.theme-switch');
|
|
themeSwitch.checked = localStorage.getItem('switchedTheme') === 'true';
|
|
|
|
themeSwitch.addEventListener('change', function(e) {
|
|
if (e.currentTarget.checked === true) {
|
|
// Add item to localstorage
|
|
localStorage.setItem('switchedTheme', 'true');
|
|
} else {
|
|
// Remove item if theme is switched back to normal
|
|
localStorage.removeItem('switchedTheme');
|
|
}
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|