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.

64 lines
1.8 KiB

8 years ago
8 years ago
8 years ago
8 years ago
  1. <?php $this->layout('layout', ['title' => $title]); ?>
  2. <div class="ui middle aligned center aligned grid">
  3. <div class="column">
  4. <h1>X-Ray</h1>
  5. <div class="ui top attached tabular menu">
  6. <a class="item active" data-tab="url">URL</a>
  7. <a class="item" data-tab="html">HTML</a>
  8. </div>
  9. <div class="ui bottom attached tab segment active" data-tab="url">
  10. <form class="ui large form" action="/parse" method="get">
  11. <div class="field">
  12. <div class="ui left icon input">
  13. <i class="linkify icon"></i>
  14. <input type="url" name="url" placeholder="http://example.com">
  15. </div>
  16. </div>
  17. <button class="ui fluid large teal submit button">Go</button>
  18. </form>
  19. </div>
  20. <div class="ui bottom attached tab segment" data-tab="html">
  21. <form class="ui large form" action="/parse" method="post">
  22. <div class="field">
  23. <div class="ui left icon input">
  24. <textarea name="html" placeholder="HTML"></textarea>
  25. </div>
  26. </div>
  27. <div class="field">
  28. <div class="ui left icon input">
  29. <i class="linkify icon"></i>
  30. <input type="url" name="url" placeholder="http://example.com">
  31. </div>
  32. </div>
  33. <button class="ui fluid large teal submit button">Go</button>
  34. </form>
  35. </div>
  36. <p><a href="https://github.com/aaronpk/XRay">Read Me</a>. Please <a href="https://github.com/aaronpk/XRay/issues">file an issue</a> if you encounter any issues.</p>
  37. </div>
  38. </div>
  39. <style type="text/css">
  40. body {
  41. background-color: #e9e9e9;
  42. }
  43. body > .grid {
  44. height: 100%;
  45. }
  46. .image {
  47. margin-top: -100px;
  48. }
  49. .column {
  50. max-width: 450px;
  51. }
  52. </style>
  53. <script>
  54. $(function(){
  55. $('.menu .item').tab();
  56. ;
  57. });
  58. </script>