Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <head>
- <style>
- .showAtDate { display: none; }
- </style>
- //Modify the following and check it:
- <table id="itemsTable" class="showAtDate" data-limit="' . date("Y/m/d H:i:s", strtotime("+1 week")) . '">
- //Added to the bottom
- <script type="text/javascript">
- $(function() {
- var currentDate = Date.now();
- $("table.showAtDate").each(function() {
- var specifiedDateLimit = $(this).data(\'limit\');
- var date = Date.parse(specifiedDateLimit);
- if(!isNaN(date) && currentDate - date < 0) {
- $(this).show();
- }
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement