Zbee

Untitled

Mar 4th, 2014
101
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript">var ip="69.197.162.18:25586";var xhr=new XMLHttpRequest;xhr.open("GET","http://minecraft-api.com/v1/query/?server="+ip,true);xhr.onreadystatechange=function(){if(xhr.readyState==4){data=JSON.parse(xhr.responseText);if(data.status){var e=data.players.online;var t=data.players.max;var n=data.players.max;var r=e+"/"+n+"Players";var i=e/t*100;if(e<11){t=1;i=100}document.getElementById("sid1").innerHTML="Hub 1";document.getElementById("sid2").innerHTML=data.motd;document.getElementById("sid4").innerHTML="Version: "+data.version;document.getElementById("sid5").innerHTML="<span style='background:#3c763d;color:white;font-weight:bold;padding:1px;margin:2px;border-radius:2px;font-size:12px;'>Online</span>";document.getElementById("sid6").innerHTML='<div class="progress"><div class="progress-bar" role="progressbar" aria-valuenow="'+i+'" aria-valuemin="0" aria-valuemax="100" style="width: '+i+'%;"><span>'+r+"</span></div></div>";document.getElementById("sid7").innerHTML=data.players.list;if(e===0){document.getElementById("q").style.display="none"}var s="";for(var o=0;o<data.players.list.length;o++){s=s+'<img src="http://minecraft-api.com/v1/avatar/?player='+data.players.list[o]+'&helmet=true&size=25" alt="'+data.players.list[o]+'" title="'+data.players.list[o]+'"> '}document.getElementById("sid7").innerHTML=s}else{document.getElementById("sid1").innerHTML="<span style='background:#763d3c;color:white;font-weight:bold;padding:1px;margin:2px;border-radius:2px;font-size:12px;'>Offline</span>";document.getElementById("t").style.display="none";document.getElementById("w").style.display="none";document.getElementById("q").style.display="none"}}};xhr.send()</script>
  2.  
  3.  
  4. <div class="well well-lg col-lg-6 col-md-6 col-sm-6">
  5. <div class="row" id="t">
  6. <!--MOTD--><strong><div class="col-lg-6 col-md-6 col-sm-6 text-center" id="sid2">&nbsp;</div></strong>
  7. <!--Status--><div class="col-lg-6 col-md-6 col-sm-6 text-center" id="sid5">&nbsp;</div>
  8. </div>
  9. <br>
  10. <div class="row" id="r">
  11. <!--IP--><div class="col-lg-6 col-md-6 col-sm-6 text-center" id="sid1">&nbsp;</div>
  12. <!--Version--><div class="col-lg-6 col-md-6 col-sm-6 text-center" id="sid4">&nbsp;</div>
  13. </div>
  14. <br>
  15. <div class="row" id="w">
  16. <!--Progress Bar--><div class="col-lg-12 col-md-12 col-sm-12 text-center" id="sid6">&nbsp;</div>
  17. </div>
  18. <div class="row" id="q">
  19. <!--Players--><div class="col-lg-12 col-md-12 col-sm-12 text-center" id="sid7">&nbsp;</div>
  20. <br><br>
  21. </div>
  22. </div>
RAW Paste Data