paul.html 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <!-- Author: Matthew Shiel -->
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5. <!-- Required meta tags -->
  6. <meta charset="utf-8">
  7. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  8. <!-- Bootstrap CSS -->
  9. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css"
  10. integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">
  11. <!-- Relatove link to stylesheet -->
  12. <link rel="stylesheet" href="/paul/style.css">
  13. <link href="https://fonts.googleapis.com/css?family=Pacifico" rel="stylesheet">
  14. <link href="https://fonts.googleapis.com/css?family=Quicksand" rel="stylesheet">
  15. <title>{{.Bot}} - Welcome {{.GivenName}}</title>
  16. </head>
  17. <body>
  18. <div class="wrapper">
  19. <div class="container">
  20. <h1>Welcome {{.GivenName}}- I'm {{.Bot}}</h1>
  21. <h3>..... How can I help?</h3>
  22. <br>
  23. </div>
  24. <div class="container">
  25. <!-- Adapted from: https://v4-alpha.getbootstrap.com/components/forms/ -->
  26. <form id="user-input-form">
  27. <div class="form-group">
  28. <ul class="form-control" id="output-area"></ul>
  29. </div>
  30. <div class="form-group">
  31. <input type="text" class="form-control" id="user-input" aria-describedby="user-input" placeholder="Talk to {{.Bot}}">
  32. <input type="hidden" class="form-control" id="bot-name" aria-describedby="bot-name" value="{{.Bot}}">
  33. <input type="hidden" class="form-control" id="session-id" aria-describedby="session-id" value="{{.SessionID}}">
  34. <input type="hidden" class="form-control" id="user-name" aria-describedby="user-name" value="{{.GivenName}}">
  35. </div>
  36. <div class="credits">Based on excellent work of https://github.com/mattshiel/eliza-go</div>
  37. <button type="submit" class="btn btn-primary">Submit</button>
  38. </form>
  39. </div>
  40. </div>
  41. <!-- jQuery first, then Tether, then Bootstrap JS. -->
  42. <script src="https://code.jquery.com/jquery-3.2.1.min.js"
  43. integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
  44. <script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js"
  45. integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb"
  46. crossorigin="anonymous"></script>
  47. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js"
  48. integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn"
  49. crossorigin="anonymous"></script>
  50. <script src="/script.js"></script>
  51. </body>
  52. </html>