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.3 KiB

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