Advertisement
Guest User

Untitled

a guest
Aug 12th, 2018
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  2. <h2 id="FindCoreSoftware" style="margin: auto;text-align: center;color: yellow;background: rgba(52, 52, 52, 0.9);border-radius: 20px;">Looking For Core Software</h2>
  3. <button onclick="javasript:StartCoreFinder();">Find</button>
  4. <script>
  5. var FindCore=0;
  6. var FindCoreStage=0;
  7. function CoreSoftwareFinder(){
  8. if(FindCoreStage===0){
  9. document.getElementById("FindCoreSoftware").style.color="yellow";
  10. document.getElementById("FindCoreSoftware").innerHTML="Looking For Core Software";
  11. $.ajax({
  12. url: "http://127.0.0.1:22222",
  13. cache:false,
  14. success: function(output){
  15. ResetCoreFinder();
  16. document.getElementById("FindCoreSoftware").style.color="green";
  17. document.getElementById("FindCoreSoftware").innerHTML=output;
  18. },
  19. error: function(output){
  20. ResetCoreFinder();
  21. document.getElementById("FindCoreSoftware").style.color="red";
  22. document.getElementById("FindCoreSoftware").innerHTML="Can't Find Core Server!";
  23. }
  24. });
  25. FindCoreStage=1;
  26. }else if(FindCoreStage===1){
  27. document.getElementById("FindCoreSoftware").style.color="yellow";
  28. document.getElementById("FindCoreSoftware").innerHTML="Looking For Core Software.";
  29. FindCoreStage=2;
  30. }else if(FindCoreStage===2){
  31. document.getElementById("FindCoreSoftware").style.color="yellow";
  32. document.getElementById("FindCoreSoftware").innerHTML="Looking For Core Software..";
  33. FindCoreStage=3;
  34. }else if(FindCoreStage===3){
  35. document.getElementById("FindCoreSoftware").style.color="yellow";
  36. document.getElementById("FindCoreSoftware").innerHTML="Looking For Core Software...";
  37. FindCoreStage=1;
  38. }
  39. }
  40. function ResetCoreFinder(){
  41. clearInterval(FindCore);
  42. FindCoreStage=0;
  43. FindCore=0;
  44. }
  45. function StartCoreFinder(){
  46. FindCore=setInterval(CoreSoftwareFinder,222);
  47. }
  48. StartCoreFinder();
  49. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement