Advertisement
SpaceEngineersAddict

Untitled

Apr 23rd, 2016
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.49 KB | None | 0 0
  1. <?php/*
  2. Template Name: Leaderboard
  3. */?>
  4. <?php get_header(); ?>
  5.  
  6. <div id="content" class="cf">
  7.     <?php do_action('ast_hook_before_content'); ?>
  8.  
  9.     <div class="single-wrap sitemap-template cf">
  10.     <script>       
  11. $(document).ready(function() {
  12.     $('#example').DataTable( {
  13.         "ajax":{
  14.         "url":"http://www.hardyakkagaming.com:8888/getPlayersGlobalStats",
  15.         "cache": true,
  16.         "dataSrc": "players",},
  17.         "searching":false,
  18.         "paging":false,
  19.         "aaSorting": [[1,'desc'], [2,'asc']],
  20.         "responsive":true,
  21.         "bAutoWidth":false,
  22.     columns: [
  23.         { data: "playerName","width": "20%"},
  24.         { data: "kills" },     
  25.         { data: "players" },
  26.         { data: "sleepers" },
  27.         { data: "drowning" },
  28.         { data: "fall" },
  29.         { data: "bear" },
  30.         { data: "wolf" },
  31.         { data: "thirst" },
  32.         {data:  "cold"}
  33.     ]
  34.     });});
  35. </script>
  36.  
  37. <table id="example" class="display" width="relative">
  38.  
  39. <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>
  40. </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>
  41. <th>Thirst</th><th>Cold</th></tr></tfoot>
  42.  
  43. </table>
  44. <p> Made by <a href="http://steamcommunity.com/id/Gypsyum/">Hazard</a></p>
  45.     <?php the_post(); the_content(); ?>
  46.     </div>
  47.     <?php do_action('ast_hook_after_content'); ?>
  48. </div>
  49.  
  50. <?php get_sidebar(); ?>
  51. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement