Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#content > div').first().css({'min-height': '100vh', 'position': 'relative'});
- $('tbody').css('display','none');
- $('table').next().css('display','none');
- var i = 0;
- $('#content > div').after('<div style="bottom:0"><input type="button" id="previousButton" value="Hide last"/><input type="button" id="nextButton" value="Show Next"/></div>');
- $('#nextButton').click(function() {
- $($("tbody").get(i)).css('display','');
- i++;
- window.scrollTo(0,document.body.scrollHeight);
- });
- $('#previousButton').click(function() {
- $($("tbody").get(i-1)).css('display','none');
- i--;
- window.scrollTo(0,document.body.scrollHeight);
- });
- .h-odd td {
- background: #2b2b2b;
- }
- tbody > tr.info > td {
- background-color: #ce5a0c;
- }
- body {
- background-color: #1c1c1c;
- color: white;
- }
- .table>thead>tr>th, .table>tbody>tr>th, .table>tfoot>tr>th, .table>thead>tr>td, .table>tbody>tr>td, .table>tfoot>tr>td {
- border: 0px;
- }
- .table>tbody+tbody {
- border: 0px;
- }
- #nextButton, #previousButton {
- color: black;
- }
- ::-webkit-scrollbar {
- width: 0px;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement