Advertisement
Guest User

Untitled

a guest
Jan 20th, 2020
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.33 KB | None | 0 0
  1. <div class="header-menu" id="mobile-hide">
  2. <div class="navigation_bar">
  3. <a class="srv-text" href="/">Acedia Network</a>
  4. <div class="container">
  5. <ul class="nav-bar">
  6. <li><a class="nav-link buzz-hover" href="/home"><i class="fa fa-home" style="color: var(--main-color)"></i> Home</a></li>
  7. </ul></div></div>
  8.  
  9.  
  10. <div class="discord">
  11. <div class="container">
  12. <div class="left">
  13. <i class="fas fa-globe"></i>
  14. <div class="text-large players icons-enabled"><span id="players"></span> Players Online</div>
  15. <small class="ipCopy" data-clipboard-text="play.acedianetwork.com" style="background: transparent;border: transparent; cursor: pointer; " onclick="serverjoin()">Click to join the fun.</small>
  16. </div>
  17. <div class="right">
  18. <i class="fab fa-discord"></i>
  19. <div class="text-large players icons-enabled"><span id="count"></span> Players Online</div>
  20. <small><a href="https://discord.gg/83zVMz" target="blank">Join Our Discord</a></small>
  21. </div></div></div></div>
  22.  
  23. <div class="header">
  24. <div class="logo" id="mobile-logo">
  25. <a href="/"><img class="pulse infinite animated" height="{{ store.logoHeight }}" width="{{ store.logoWidth }}" src="{{ store.logo_url }}"></a>
  26. </div>
  27. </div>
  28.  
  29.  
  30. <script>
  31. $( document ).ready(function() {
  32. getPlayer();
  33. setInterval(function () {
  34. getPlayer();
  35. }, 60*1000);
  36. });
  37.  
  38. function getPlayer () {
  39. $.getJSON( "https://api.mcsrvstat.us/1/play.acedianetwork.com", function( data ) {
  40. $("#ping").html(data.ping);
  41. $("#ip").html(data.hostname);
  42. $("#players").html(data.players.online);
  43. });
  44. }
  45. </script>
  46.  
  47. <script class="text/javascript">
  48.  
  49. function serverjoin()
  50. {
  51. swal({
  52. title: "IP has been copied!",
  53. text: "You can join the server by adding the IP to your server list!",
  54. icon: "success",
  55. button: "Join Now",
  56. });
  57. }
  58.  
  59. </script>
  60.  
  61. <script>var clipboard = new ClipboardJS('.ipCopy');</script>
  62.  
  63. <script>
  64. var guild_id = "518775732059766795";
  65. axios.get(`https://discordapp.com/api/guilds/${guild_id}/widget.json`).then(response => {
  66. document.getElementById("count").innerHTML = response.data.members.length + " " });
  67. <!-- *** Credits for script to discordbothosting.com -->
  68. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement