/public/index.html

https://github.com/baspete/Split-Flap · HTML · 136 lines · 112 code · 8 blank · 16 comment · 0 complexity · eb5b077da790dd1302aa24d5cd634e00 MD5 · raw file

  1. <html>
  2. <head>
  3. <link rel="stylesheet" href="css/base.css" />
  4. <!-- ============================================ -->
  5. <!-- CUSTOM CSS FOR THIS BOARD -->
  6. <link rel="stylesheet" href="plugins/arrivals/custom.css" />
  7. </head>
  8. <body>
  9. <!-- ============================================ -->
  10. <!-- CONTAINER -->
  11. <div id="board" class="chartContainer splitflap">
  12. <h1>Arrivals</h1>
  13. <!-- Header: 30px/char, 15px/separator, 120px/logo -->
  14. <div class="header" style="width:120px;margin-left:0px;">Airline</div>
  15. <div class="header" style="width:120px;margin-left:30px;">Flight</div>
  16. <div class="header" style="width:360px;margin-left:30px;text-align:left;">
  17. City
  18. </div>
  19. <div class="header" style="width:90px;margin-left:30px;">Gate</div>
  20. <div class="header" style="width:135px;margin-left:30px;">Scheduled</div>
  21. <div class="header" style="width:270px;margin-left:30px;text-align:left;">
  22. Remarks
  23. </div>
  24. <!-- rows will be placed here dynamically from #row_template -->
  25. </div>
  26. <!-- END CONTAINER -->
  27. <!-- ============================================ -->
  28. <!-- ============================================ -->
  29. <!-- ROW TEMPLATE -->
  30. <script type="text/template" id="row_template">
  31. <div class="row">
  32. <div class="group airline"> <!-- airline -->
  33. <div class="image"><span></span></div>
  34. </div>
  35. <div class="group flight"> <!-- flight number -->
  36. <div class="number"><span></span></div>
  37. <div class="number"><span></span></div>
  38. <div class="number"><span></span></div>
  39. <div class="number"><span></span></div>
  40. </div>
  41. <div class="group city"> <!-- city -->
  42. <div class="character"><span></span></div>
  43. <div class="character"><span></span></div>
  44. <div class="character"><span></span></div>
  45. <div class="character"><span></span></div>
  46. <div class="character"><span></span></div>
  47. <div class="character"><span></span></div>
  48. <div class="character"><span></span></div>
  49. <div class="character"><span></span></div>
  50. <div class="character"><span></span></div>
  51. <div class="character"><span></span></div>
  52. <div class="character"><span></span></div>
  53. <div class="character"><span></span></div>
  54. </div>
  55. <div class="group gate"> <!-- gate -->
  56. <div class="character"><span></span></div>
  57. <div class="number"><span></span></div>
  58. <div class="number"><span></span></div>
  59. </div>
  60. <div class="group scheduled"> <!-- scheduled -->
  61. <div class="number"><span></span></div>
  62. <div class="number"><span></span></div>
  63. <div class="separator">:</div>
  64. <div class="number"><span></span></div>
  65. <div class="number"><span></span></div>
  66. </div>
  67. <div class="group remarks"> <!-- remarks -->
  68. <div class="full"><span></span></div>
  69. <div class="full"><span></span></div>
  70. <div class="full"><span></span></div>
  71. <div class="full"><span></span></div>
  72. <div class="full"><span></span></div>
  73. <div class="full"><span></span></div>
  74. <div class="full"><span></span></div>
  75. <div class="full"><span></span></div>
  76. <div class="full"><span></span></div>
  77. <div class="full"><span></span></div>
  78. <div class="full"><span></span></div>
  79. </div>
  80. <div class="group status"> <!-- lights -->
  81. <div class="sA"></div>
  82. <div class="sB"></div>
  83. </div>
  84. </div>
  85. </script>
  86. <!-- END ROW TEMPLATE -->
  87. <!-- ============================================ -->
  88. <!-- ============================================ -->
  89. <!-- JS LIBRARIES -->
  90. <script
  91. type="text/javascript"
  92. src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js"
  93. ></script>
  94. <script
  95. type="text/javascript"
  96. src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.9.1/underscore-min.js"
  97. ></script>
  98. <script
  99. type="text/javascript"
  100. src="https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.3.3/backbone-min.js"
  101. ></script>
  102. <script type="text/javascript" src="js/split-flap.js"></script>
  103. <!-- ============================================ -->
  104. <!-- CUSTOM JS FOR THIS BOARD -->
  105. <script type="text/javascript" src="plugins/arrivals/custom.js"></script>
  106. <script type="text/javascript">
  107. // CUSTOMIZATION OPTIONS
  108. sf.options = {
  109. // REQUIRED
  110. plugin: 'arrivals', // Plugin to load
  111. container: $('#board'), // Where in the DOM to put the board
  112. template: $('#row_template'), // Where in the DOM to find the row template
  113. numRows: 12, // number of rows
  114. // OPTIONAL
  115. sort: 'scheduled', // the column to sort by
  116. order: 'asc', // the order to sort by
  117. maxResults: 24, // number of items to retrieve from service
  118. pageInterval: 30000, // delay between pages (ms)
  119. stagger: 2000 // delay between loading rows (ms)
  120. };
  121. $(document).ready(function() {
  122. sf.board.init(sf.options);
  123. sf.items.init(sf.options);
  124. sf.items.load(sf.options);
  125. });
  126. </script>
  127. </body>
  128. </html>