Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php/*
- Template Name: Leaderboard
- */?>
- <?php get_header(); ?>
- <div id="content" class="cf">
- <?php do_action('ast_hook_before_content'); ?>
- <div class="single-wrap sitemap-template cf">
- <script>
- $(document).ready(function() {
- $('#example').DataTable( {
- "ajax":{
- "url":"http://www.hardyakkagaming.com:8888/getPlayersGlobalStats",
- "cache": true,
- "dataSrc": "players",},
- "searching":false,
- "paging":false,
- "aaSorting": [[1,'desc'], [2,'asc']],
- "responsive":true,
- "bAutoWidth":false,
- columns: [
- { data: "playerName","width": "20%"},
- { data: "kills" },
- { data: "players" },
- { data: "sleepers" },
- { data: "drowning" },
- { data: "fall" },
- { data: "bear" },
- { data: "wolf" },
- { data: "thirst" },
- {data: "cold"}
- ]
- });});
- </script>
- <table id="example" class="display" width="relative">
- <thead><tr><th>Name</th><th>Kills</th><th>Deaths</th><th>Sleepers</th><th>Drowned</th><th>Falling</th><th>Bear</th><th>Wolf</th><th>Thirst</th><th>Cold</th>
- </tr></thead><tbody></tbody><tfoot><tr><th>Name</th><th>Kills</th><th>Deaths</th><th>Sleepers</th><th>Drowned</th><th>Falling</th><th>Bear</th><th>Wolf</th>
- <th>Thirst</th><th>Cold</th></tr></tfoot>
- </table>
- <p> Made by <a href="http://steamcommunity.com/id/Gypsyum/">Hazard</a></p>
- <?php the_post(); the_content(); ?>
- </div>
- <?php do_action('ast_hook_after_content'); ?>
- </div>
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement