index.html 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <!doctype html>
  2. <html class="no-js" lang="">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="x-ua-compatible" content="ie=edge">
  6. <title></title>
  7. <meta name="description" content="">
  8. <meta name="viewport" content="width=device-width, initial-scale=1">
  9. <link rel="manifest" href="site.webmanifest">
  10. <link rel="apple-touch-icon" href="icon.png">
  11. <!-- Place favicon.ico in the root directory -->
  12. <link rel="stylesheet" href="css/normalize.css">
  13. <link rel="stylesheet" href="css/main.css">
  14. <link rel="stylesheet" href="css/styles.css">
  15. </head>
  16. <body>
  17. <!--[if lte IE 9]>
  18. <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
  19. <![endif]-->
  20. <!-- Add your site or application content here -->
  21. <div class="container">
  22. <p>Hello world! This is HTML5 Boilerplate.</p>
  23. <p>Enter your name please:</p>
  24. <form id="helloForm">
  25. <input id="inputName" value="" />
  26. <button type="submit">Say hello again</button>
  27. </form>
  28. </div>
  29. <script src="js/vendor/modernizr-3.5.0.min.js"></script>
  30. <script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
  31. <script>window.jQuery || document.write('<script src="js/vendor/jquery-3.2.1.min.js"><\/script>')</script>
  32. <script src="js/plugins.js"></script>
  33. <script src="js/main.js"></script>
  34. <!-- Google Analytics: change UA-XXXXX-Y to be your site's ID. -->
  35. <script>
  36. window.ga=function(){ga.q.push(arguments)};ga.q=[];ga.l=+new Date;
  37. ga('create','UA-XXXXX-Y','auto');ga('send','pageview')
  38. </script>
  39. <script src="https://www.google-analytics.com/analytics.js" async defer></script>
  40. <script>
  41. var form = document.getElementById('helloForm');
  42. var input = document.getElementById('inputName');
  43. function sayHelloAgain(e) {
  44. e.preventDefault();
  45. alert('Hello ' + input.value);
  46. }
  47. form.onsubmit = sayHelloAgain;
  48. </script>
  49. </body>
  50. </html>