Advertisement
Dutchj

Horaro stuff

May 27th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. $('#content > div').first().css({'min-height': '100vh', 'position': 'relative'});
  2.  
  3. $('tbody').css('display','none');
  4.  
  5. $('table').next().css('display','none');
  6.  
  7. var i = 0;
  8.  
  9. $('#content > div').after('<div style="bottom:0"><input type="button" id="previousButton" value="Hide last"/><input type="button" id="nextButton" value="Show Next"/></div>');
  10.  
  11. $('#nextButton').click(function() {
  12. $($("tbody").get(i)).css('display','');
  13. i++;
  14. window.scrollTo(0,document.body.scrollHeight);
  15. });
  16.  
  17. $('#previousButton').click(function() {
  18. $($("tbody").get(i-1)).css('display','none');
  19. i--;
  20. window.scrollTo(0,document.body.scrollHeight);
  21. });
  22.  
  23.  
  24.  
  25.  
  26. .h-odd td {
  27. background: #2b2b2b;
  28. }
  29.  
  30. tbody > tr.info > td {
  31. background-color: #ce5a0c;
  32. }
  33.  
  34. body {
  35. background-color: #1c1c1c;
  36. color: white;
  37. }
  38.  
  39. .table>thead>tr>th, .table>tbody>tr>th, .table>tfoot>tr>th, .table>thead>tr>td, .table>tbody>tr>td, .table>tfoot>tr>td {
  40. border: 0px;
  41. }
  42.  
  43. .table>tbody+tbody {
  44. border: 0px;
  45. }
  46.  
  47. #nextButton, #previousButton {
  48. color: black;
  49. }
  50.  
  51. ::-webkit-scrollbar {
  52. width: 0px;
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement