Front end of the Slack clone application.

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!DOCTYPE HTML>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>WD Tests</title>
  6. <link rel="stylesheet" href="styles/site.css">
  7. </head>
  8. <body>
  9. <div class="test-lr">
  10. Testing livereload thing
  11. <a href="#" class="fun">fun</a>
  12. </div>
  13. <script>document.write('<script src="http://'
  14. + location.host
  15. + '/livereload.js?snipver=1"></'
  16. + 'script>')</script>
  17. <script>
  18. (function() {
  19. window.onload = function() {
  20. var fun = document.querySelector('.fun');
  21. var lr = document.querySelector('.test-lr');
  22. fun.addEventListener('click', function(e) {
  23. e.preventDefault();
  24. var d3 = /d3/.test(lr.className) ? '' : 'd3';
  25. lr.className = 'test-lr ' + d3;
  26. });
  27. };
  28. })();
  29. </script>
  30. </body>
  31. </html>