fail.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title></title>
  6. <link rel="stylesheet" href="css/over.css">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. </head>
  9. <body>
  10. <section class="end-box full" id="endBox">
  11. <div class="end" id="fail"><img src="img/fail.png" alt=""></div>
  12. <a href="http://gjnh.100t.com/gjnh/index.php/Index/" class="btn"><img src="img/btn.png"></a>
  13. </section>
  14. </body>
  15. </html>
  16. <script src="js/jquery.js"></script>
  17. <script src="js/jquery.transit.min.js"></script>
  18. <script>
  19. function getQueryString(name) {
  20. var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
  21. var r = decodeURI(window.location.search.substr(1)).match(reg);
  22. if (r != null) return unescape(r[2]);
  23. return null;
  24. }
  25. var baseUrl = "gj.100t.com";
  26. var logoutUrl = "http://" + baseUrl + "/api/quepass/logout";
  27. var uid = getQueryString('uid');
  28. window.οnbefοreunlοad = function(ev) {
  29. $.post(logoutUrl,JSON.stringify({uid:uid}))
  30. return true;
  31. };
  32. var num = 0
  33. $.post(logoutUrl,JSON.stringify({uid:uid}),function(res){
  34. num += 1
  35. })
  36. // var timer = window.setInterval(function(){
  37. // if(num>3){
  38. // window.clearInterval(timer)
  39. // return
  40. // }
  41. // $.post(logoutUrl,JSON.stringify({uid:uid}),function(res){
  42. // num += 1
  43. // })
  44. // })
  45. </script>