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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

23 lines
922 B

5 years ago
5 years ago
5 years ago
  1. <p class="h-card vcard" style="display:none;">
  2. <img class="u-photo" src="/images/profile.jpg" />
  3. <a class="u-url p-author p-name url" href="https://jk.nipponalba.scot" rel="me">J K 🇯🇵🏴󠁧󠁢󠁳󠁣󠁴󠁿</a>
  4. <a class="u-email" rel="me" href="mailto:jk@nipponalba.scot">jk</a>
  5. </p>
  6. <script>
  7. // This code is only used to remember theme selection between page loads
  8. const themeSwitch = document.querySelector('.theme-switch');
  9. themeSwitch.checked = localStorage.getItem('switchedTheme') === 'true';
  10. themeSwitch.addEventListener('change', function(e) {
  11. if (e.currentTarget.checked === true) {
  12. // Add item to localstorage
  13. localStorage.setItem('switchedTheme', 'true');
  14. } else {
  15. // Remove item if theme is switched back to normal
  16. localStorage.removeItem('switchedTheme');
  17. }
  18. });
  19. </script>
  20. </body>
  21. </html>