PageRenderTime 82ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/index.html

https://gitlab.com/stanjanssen/homepage
HTML | 66 lines | 63 code | 3 blank | 0 comment | 0 complexity | d72de99e47566b8ff3b4d8072902e34c MD5 | raw file
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta name="viewport" content="width=device-width">
  5. <title>Home</title>
  6. <link href='https://fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css'>
  7. <link href="https://fonts.googleapis.com/css?family=Jaldi" rel="stylesheet">
  8. <link rel="icon" type="image/x-icon" href="favicon.ico" />
  9. <link rel="stylesheet" href="style.css" type="text/css" />
  10. <script src="csi.min.js" type="text/javascript"></script>
  11. </head>
  12. <body>
  13. <div id="container">
  14. <div class="row">
  15. <form method="GET" action="https://duckduckgo.com/">
  16. <input type="text" name="q" placeholder="Search DuckDuckGo..." id="duck" />
  17. </form>
  18. </div>
  19. <div class="row">
  20. <div class="column">
  21. <div class="row">
  22. <ul class="column">
  23. <li><a href="https://reddit.com">Reddit</a></li>
  24. <li><a href="https://tweakers.net">Tweakers</a></li>
  25. <li><a href="http://encide.com">Encide</a></li>
  26. <li><a href="https://gmail.com">Gmail</a></li>
  27. <li><a href="https://calendar.google.com">Google Calendar</a></li>
  28. </ul>
  29. <ul class="column">
  30. <li><a href="https://bitbucket.org/chronophobe/">BitBucket</a></li>
  31. <li><a href="https://github.com/chronophobe">GitHub</a></li>
  32. <li><a href="https://gitlab.com/u/stanjanssen">GitLab</a></li>
  33. </ul>
  34. </div>
  35. </div>
  36. <div class="column">
  37. <ul>
  38. <li>ReviewBot: <span data-include="review-bot.html">Unable to retrieve status.</span></li>
  39. </ul>
  40. </div>
  41. </div>
  42. <div class="row">
  43. <div class="column" id="scratchpad" contenteditable=true>
  44. Write some notes...
  45. </div>
  46. </div>
  47. </div>
  48. <script type="text/javascript">
  49. var search = document.getElementById('duck');
  50. search.focus();
  51. var scratch = document.getElementById('scratchpad');
  52. scratch.addEventListener('keyup', function() {
  53. var content = scratch.innerHTML.trim();
  54. localStorage.setItem('scratchpad', content);
  55. });
  56. var content = localStorage.getItem('scratchpad');
  57. if(content == '' || content == null) {
  58. content = 'Write some notes here...';
  59. }
  60. scratch.innerHTML = content;
  61. </script>
  62. </body>
  63. </html>