index.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <link rel="shortcut icon" href="icon.png">
  5. <link rel="icon" href="icon.png">
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  7. <script language="javascript" type="text/javascript">
  8. window.onload = function (){
  9. // updateShare(0,0);
  10. };
  11. </script>
  12. <meta charset="utf-8">
  13. <title>青蛙闯关</title>
  14. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
  15. <meta name="format-detection" content="telephone=no">
  16. <meta name="apple-mobile-web-app-capable" content="yes">
  17. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  18. <link rel="apple-touch-icon-precomposed" sizes="57x57" href="icon.ico">
  19. <link rel="apple-touch-icon-precomposed" sizes="72x72" href="icon.ico">
  20. <link rel="apple-touch-icon-precomposed" sizes="114x114" href="icon.ico">
  21. <link rel="apple-touch-icon-precomposed" sizes="144x144" href="icon.ico">
  22. <link rel="icon" href="icon.ico">
  23. <style>
  24. BODY, HTML {
  25. text-align: center;
  26. -webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */
  27. -webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */
  28. -webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */
  29. -webkit-tap-highlight-color: transparent;
  30. margin: 0;
  31. padding: 0;
  32. font-family: Arial, Verdana, sans-serif;
  33. font-size: 12px;
  34. font-weight: normal;
  35. color: #ccc;
  36. background-color: #FFFFFF;
  37. background: black;
  38. overflow: hidden;
  39. height: 100%;
  40. width: 100%;
  41. bottom: 0;
  42. }
  43. #content {
  44. position: absolute;
  45. height: 100%;
  46. width: 100%;
  47. margin: inherit;
  48. box-shadow: none;
  49. bottom: 0;
  50. }
  51. .no-mobile {
  52. display: none;
  53. }
  54. .portraitLock {
  55. width: 100%;
  56. height: 100%;
  57. background-color: #000000;
  58. }
  59. .rotatePhoneIcon {
  60. width: 60%;
  61. margin: 30px auto;
  62. display: block;
  63. }
  64. </style>
  65. <style>#sg-loadscrn{
  66. position:fixed; top:0;left:0;width:100%; height:100%; background-color:#fff; z-index:9999;
  67. }
  68. #sg-spinner{
  69. position: absolute; width: 150px; height: 50px; top:50%; left:50%; margin-top:-25px; margin-left:-75px;
  70. background-image: url('./assets/sg-loader.gif');
  71. }
  72. #sg-spinner.no-img{
  73. background: #ffffff;
  74. }
  75. #sg-loadtext{
  76. position:absolute;
  77. font-family: sans-serif;
  78. top:50%; left:50%;
  79. width: 250px;
  80. margin-left:-125px;
  81. margin-top:-125px;
  82. text-align:center;
  83. line-height:150%;
  84. font-size:16px;
  85. }</style>
  86. <script type="text/javascript">
  87. window.gameLangs = ['en', 'de', 'es', 'fr', 'it', 'pt', 'ru', 'tr'];
  88. window.gameJS = ['softgames_game.js'];
  89. window.gameOnLoadScript = "startGame()";
  90. </script>
  91. <script type="text/javascript" src="./assets/softgames-1.1.js"></script>
  92. <script type="text/javascript" src="./assets/sg.hooks.js"></script><script>
  93. function enableWarning() {
  94. document.getElementById("content").style.display = 'none';
  95. document.getElementById("content").style.height = '0';
  96. document.getElementById("portraitLock").style.display = '';
  97. }
  98. function disableWarning() {
  99. document.getElementById("content").style.height = '100%';
  100. document.getElementById("content").style.display = '';
  101. document.getElementById("portraitLock").style.display = 'none';
  102. }
  103. function level(l) {
  104. }
  105. function clickMoreGames() {
  106. // Play68.goHome();
  107. }
  108. var isMobile = {
  109. Android: function () {
  110. return navigator.userAgent.match(/Android/i) ? true : false;
  111. },
  112. BlackBerry: function () {
  113. return navigator.userAgent.match(/BlackBerry/i) ? true : false;
  114. },
  115. iOS: function () {
  116. return navigator.userAgent.match(/iPhone|iPad|iPod/i) ? true : false;
  117. },
  118. Opera: function () {
  119. return navigator.userAgent.match(/Opera Mini/i) ? true : false;
  120. },
  121. Windows: function () {
  122. return navigator.userAgent.match(/IEMobile/i) ? true : false;
  123. },
  124. any: function () {
  125. return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());
  126. }
  127. };
  128. function startGame() {
  129. if (isMobile.iOS()) {
  130. document.getElementById("content").style.position = "relative";
  131. document.getElementById("content").style.overflow = "hidden";
  132. document.getElementById("portraitLock").style.position = "relative";
  133. }
  134. flambe.embed(["targets/main-html.js"], "content");
  135. }
  136. </script>
  137. </head>
  138. <body>
  139. <div id="portraitLock" class="portraitLock" style="display:none;position: absolute;">
  140. <img class="rotatePhoneIcon" src="rotate-phone.png">
  141. </div>
  142. <div id="content" style="position: absolute;"></div>
  143. <script>
  144. if (isMobile.Android()) {
  145. flambe.embed(["targets/main-html.js"], "content");
  146. }
  147. </script>
  148. </body>
  149. </html>