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.

72 lines
2.4 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <script async src="https://stats.kicker.dev/script.js" data-website-id="295db5f5-27a1-42e8-9783-1e410896a596"></script>
  2. <script data-goatcounter="https://altstats.kicker.dev/count" async src="//altstats.kicker.dev/count.js"></script>
  3. <meta name="google-site-verification" content="B4hZCJh4Uz6qdaXiH65DRXUpjVTHBcblzZaXZjUo7AE" />
  4. <div class="row">
  5. <div class="two columns" style="max-width: 50px">
  6. <h1 class="mt-2 mode">
  7. <div onclick=setDarkMode(true) id="darkBtn"><%= theme.switch_dark %></div>
  8. <div onclick=setDarkMode(false) id="lightBtn" class=hidden><%= theme.switch_light %></div>
  9. <script >
  10. if (localStorage.getItem('preferredTheme') == 'dark') {
  11. setDarkMode(true)
  12. }
  13. function setDarkMode(isDark) {
  14. var darkBtn = document.getElementById('darkBtn')
  15. var lightBtn = document.getElementById('lightBtn')
  16. if (isDark) {
  17. lightBtn.style.display = "block"
  18. darkBtn.style.display = "none"
  19. localStorage.setItem('preferredTheme', 'dark');
  20. } else {
  21. lightBtn.style.display = "none"
  22. darkBtn.style.display = "block"
  23. localStorage.removeItem('preferredTheme');
  24. }
  25. document.body.classList.toggle("darkmode");
  26. }
  27. </script>
  28. </h1>
  29. </div>
  30. <div class="six columns ml-1">
  31. <h1 class="mt-2">
  32. <div onclick=navigateHome()>Hello World.</div>
  33. <script >
  34. function navigateHome() {
  35. window.location.replace('https://tim.kicker.dev');
  36. }
  37. </script>
  38. </h1>
  39. </div>
  40. <!--
  41. <div class="six columns ml-1">
  42. <h1 class="mt-2">
  43. <a class="mt-2" href="<%= config.root %>">Hello World.</a>
  44. </h1>
  45. </div>
  46. -->
  47. <div class="twelve columns">
  48. <div class="row">
  49. <div class="nine columns left">
  50. <a href="<%= config.root %>">Home</a>
  51. <% for (name in theme.menu) { %>
  52. <% if (theme.menu[name]) { %>
  53. <a href="<%- url_for(theme.menu[name]) %>" class="ml"><%- name %></a>
  54. <% } %>
  55. <% } %>
  56. <% if (theme.email) { %>
  57. <% if (typeof obfuscate === "function") { %>
  58. <a href="mailto:<%- obfuscate(theme.email) %>" target="_blank" class="ml">Email</a>
  59. <% } else { %>
  60. <a href="mailto:<%= theme.email %>" target="_blank" class="ml">Email</a>
  61. <% } %>
  62. <% } %>
  63. </div>
  64. </div>
  65. <hr style="margin-bottom: 2.6rem">
  66. </div>
  67. </div>