index.html 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  1. <html xmlns="http://www.w3.org/1999/xhtml">
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <meta name="viewport" content="initial-scale=1 maximum-scale=1 user-scalable=0" />
  5. <meta name="mobile-web-app-capable" content="yes" />
  6. <meta name="msapplication-tap-highlight" content="no" />
  7. <meta name="application-name" content="Egg" />
  8. <meta name="apple-mobile-web-app-capable" content="yes" />
  9. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  10. <title>抛鸡蛋</title>
  11. <script language="javascript" type="text/javascript"></script>
  12. <style>
  13. html:-moz-full-screen {
  14. background: #000
  15. }
  16. html:-webkit-full-screen {
  17. background: #000
  18. }
  19. html:-ms-fullscreen {
  20. background-color: #000
  21. }
  22. html:fullscreen {
  23. background: #000
  24. }
  25. * {
  26. padding: 0;
  27. margin: 0;
  28. -webkit-touch-callout: none;
  29. -webkit-text-size-adjust: none;
  30. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  31. -webkit-user-select: none
  32. }
  33. body {
  34. background-color: #1d1d1d;
  35. color: #fff;
  36. font-size: 13px;
  37. font-family: 'Helvetica Neue', Helvetica, Arial, serif
  38. }
  39. #container {
  40. width: 320px;
  41. height: 460px;
  42. background-color: #000;
  43. margin: auto;
  44. display: block
  45. }
  46. #game_area {
  47. border: 0;
  48. background-color: #000;
  49. position: absolute;
  50. z-index: 1;
  51. display: none
  52. }
  53. #loader-container {
  54. background-color: #000;
  55. width: 320px;
  56. height: 460px;
  57. text-align: center;
  58. display: block;
  59. position: absolute;
  60. z-index: 2;
  61. overflow: hidden
  62. }
  63. #logo {
  64. height: 24px;
  65. display: block;
  66. margin: auto
  67. }
  68. #logo img {
  69. width: 96%;
  70. max-width: 272px
  71. }
  72. #loader-bar {
  73. width: 128px;
  74. height: 15px;
  75. display: block;
  76. margin: auto
  77. }
  78. #loader-bar img {
  79. width: 100%;
  80. max-width: 128px
  81. }
  82. .loader-text {
  83. font-size: 12px;
  84. padding-top: 10px;
  85. color: #9a9a9a;
  86. cursor: default;
  87. text-transform: uppercase
  88. }
  89. #loader-message-graphics,#loader-message-sfx {
  90. display: none
  91. }
  92. #loader-progress {
  93. display: block
  94. }
  95. #loader-complete {
  96. display: none
  97. }
  98. #loader-tap-to-play {
  99. cursor: pointer;
  100. padding-top: 10px;
  101. padding-bottom: 5px;
  102. background-color: #000;
  103. text-transform: uppercase;
  104. display: block;
  105. overflow: hidden
  106. }
  107. #loader-tap-to-play img {
  108. width: 90%;
  109. max-width: 190px
  110. }
  111. #rotate-device-instruction {
  112. position: fixed;
  113. z-index: 9999;
  114. left: 0;
  115. bottom: 0;
  116. width: 100%;
  117. text-align: center;
  118. display: none
  119. }
  120. input[type=checkbox] {
  121. visibility: hidden
  122. }
  123. #fullscreen-option {
  124. padding-top: 10px;
  125. color: #a3a3a3;
  126. background-color: #000;
  127. width: 130px;
  128. display: block;
  129. margin: auto
  130. }
  131. .squaredThree {
  132. width: 20px;
  133. position: relative;
  134. line-height: 21px
  135. }
  136. .squaredThree label {
  137. cursor: pointer;
  138. position: absolute;
  139. width: 20px;
  140. height: 20px;
  141. top: 0;
  142. border-radius: 4px;
  143. -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.5), 0 1px 0
  144. rgba(255, 255, 255, .4);
  145. -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.5), 0 1px 0
  146. rgba(255, 255, 255, .4);
  147. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.5), 0 1px 0
  148. rgba(255, 255, 255, .4);
  149. background: -webkit-linear-gradient(top, #222 0, #45484d 100%);
  150. background: -moz-linear-gradient(top, #222 0, #45484d 100%);
  151. background: -o-linear-gradient(top, #222 0, #45484d 100%);
  152. background: -ms-linear-gradient(top, #222 0, #45484d 100%);
  153. background: linear-gradient(top, #222 0, #45484d 100%);
  154. filter: progid : DXImageTransform . Microsoft .
  155. gradient(startColorstr = '#222', endColorstr = '#45484d', GradientType =
  156. 0)
  157. }
  158. .squaredThree label:after {
  159. -ms-filter: "alpha(opacity=0)";
  160. filter: alpha(opacity = 0);
  161. opacity: 0;
  162. content: '';
  163. position: absolute;
  164. width: 9px;
  165. height: 5px;
  166. background: transparent;
  167. top: 4px;
  168. left: 4px;
  169. border: 3px solid #fcfff4;
  170. border-top: 0;
  171. border-right: 0;
  172. -webkit-transform: rotate(-45deg);
  173. -moz-transform: rotate(-45deg);
  174. -o-transform: rotate(-45deg);
  175. -ms-transform: rotate(-45deg);
  176. transform: rotate(-45deg)
  177. }
  178. .squaredThree label:hover ::after {
  179. -ms-filter: "alpha(opacity=30)";
  180. filter: alpha(opacity = 30);
  181. opacity: .3
  182. }
  183. .squaredThree input[type=checkbox]:checked+label:after {
  184. -ms-filter: "alpha(opacity=100)";
  185. filter: alpha(opacity = 100);
  186. opacity: 1
  187. }
  188. .small-text {
  189. font-size: 10px;
  190. color: #5e5e5e;
  191. text-transform: lowercase
  192. }
  193. .bt-animation {
  194. -webkit-transition: all 200ms;
  195. -moz-transition: all 200ms;
  196. -ms-transition: all 200ms;
  197. -o-transition: all 200ms;
  198. transition: all 200ms
  199. }
  200. .bt-advertisement,.bt-h-scrren,.bt-v-scrren,.bt-play-logo-adv,.bt-play-share-tip
  201. {
  202. position: absolute;
  203. top: 0;
  204. left: 0;
  205. z-index: 6000;
  206. width: 100%;
  207. height: 100%;
  208. text-align: center;
  209. font-size: 16px;
  210. color: #fff
  211. }
  212. #bt-play-logo-adv {
  213. z-index: 9001
  214. }
  215. #bt-play-logo-adv-lock {
  216. z-index: 9000
  217. }
  218. .bt-play-share-tip {
  219. text-align: right
  220. }
  221. .bt-play-share-tip-img {
  222. margin: 10px 2% 0 0;
  223. width: 60%;
  224. max-width: 180px
  225. }
  226. .bt-h-scrren,.bt-v-scrren {
  227. background: #fff
  228. }
  229. .bt-h-scrren table,.bt-h-scrren tr,.bt-h-scrren td,.bt-v-scrren table,.bt-v-scrren tr,.bt-v-scrren td
  230. {
  231. width: 100%;
  232. height: 100%;
  233. padding: 0;
  234. margin: 0
  235. }
  236. .bt-h-screen-img,.bt-v-screen-img {
  237. margin: 10px 1%;
  238. max-width: 98%
  239. }
  240. .bt-lock-screen {
  241. position: absolute;
  242. top: 0;
  243. left: 0;
  244. z-index: 5000;
  245. width: 100%;
  246. height: 100%;
  247. opacity: 0.4;
  248. background: #000
  249. }
  250. #bt-hide-lock {
  251. z-index: -1
  252. }
  253. .bt-game-loading {
  254. position: fixed;
  255. position: absolute;
  256. top: 0;
  257. left: 0;
  258. width: 100%;
  259. height: 100%;
  260. font-size: 1.6rem;
  261. text-align: center;
  262. color: gray;
  263. background: #fff
  264. }
  265. .bt-game-loading table,.bt-game-loading tr,.bt-game-loading td {
  266. height: 100%;
  267. width: 100%;
  268. padding: 0;
  269. margin: 0
  270. }
  271. .bt-game-loading.bt-img {
  272. width: 452px;
  273. max-width: 70%
  274. }
  275. .bt-game-loading.bt-text {
  276. padding-top: 30px
  277. }
  278. .bt-hide {
  279. overflow: hidden !important;
  280. width: 0 !important;
  281. height: 0 !important;
  282. opacity: 0 !important;
  283. margin: 0 !important;
  284. padding: 0 !important
  285. }
  286. #share-wx {
  287. background: rgba(0, 0, 0, 0.8);
  288. position: absolute;
  289. top: 0px;
  290. left: 0px;
  291. width: 100%;
  292. height: 100%;
  293. z-index: 10000;
  294. display: none;
  295. }
  296. #wx-qr {
  297. background: rgba(0, 0, 0, 0.8);
  298. position: absolute;
  299. top: 0px;
  300. left: 0px;
  301. width: 100%;
  302. height: 100%;
  303. z-index: 10000;
  304. display: none;
  305. }
  306. .lis {
  307. overflow: hidden;
  308. width: 100%;
  309. z-index: 99999;
  310. position: absolute;
  311. top: 0;
  312. }
  313. .lis a {
  314. display: block;
  315. width: 99.9%;
  316. color: #ffffff;
  317. font-size: 14px;
  318. text-decoration: none;
  319. background: #606783;
  320. text-align: center;
  321. opacity: 0.5;
  322. line-height: 30px;
  323. font-weight: bold;
  324. font-family: "微软雅黑"
  325. }
  326. .lis a img {
  327. position: relative;
  328. top: 1px;
  329. }
  330. </style>
  331. <script type="text/javascript" src="js/zepto.min.js"></script>
  332. <script src="js/common.js"></script>
  333. </head>
  334. <body bgcolor="black">
  335. <div id="container">
  336. <div id="loader-container">
  337. <div style="width: 100px; height: 50px; display: block;"></div>
  338. <div id="logo">
  339. </div>
  340. <div style="width: 100px; height: 20px; display: block;"></div>
  341. <div id="loader-progress">
  342. <div id="loader-bar">
  343. <img src="img/loader.gif"/>
  344. </div>
  345. <div id="loader-message" class="loader-text">
  346. Loading (1/3)
  347. <br/>
  348. <span class="small-text">[加载资源中...]</span>
  349. </div>
  350. <div id="loader-message-graphics" class="loader-text">
  351. Loading (2/3)
  352. <br/>
  353. <span class="small-text">[加载资源中...]</span>
  354. </div>
  355. <div id="loader-message-sfx" class="loader-text">
  356. Loading (3/3)
  357. <br/>
  358. <span class="small-text">[加载资源中...]</span>
  359. </div>
  360. </div>
  361. <div id="loader-complete">
  362. <div id="loader-tap-to-play">
  363. <img src="img/tap_to_play.png" width="190"
  364. height="34"/>
  365. </div>
  366. <div id="fullscreen-option">
  367. <div class="squaredThree">
  368. <input type="checkbox" value="None" id="fullscreen-opt"
  369. name="check" checked />
  370. <label for="fullscreen-opt">
  371. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fullscreen
  372. </label>
  373. </div>
  374. </div>
  375. </div>
  376. </div>
  377. <canvas id="game_area" moz-opaque></canvas>
  378. </div>
  379. <div id="rotate-device-instruction">
  380. <img src="img/rotate_device_info.png"
  381. alt="Rotate your device to Landscape for better experience."/>
  382. </div>
  383. <input id="bt-game-id" type="hidden" value="egglabrat"/>
  384. <script src="js/pixi.js" type="text/javascript"></script>
  385. <script src="js/tween.min.js" type="text/javascript"></script>
  386. <script src="js/md5.js" type="text/javascript"></script>
  387. <script src="js/howler.min.js" type="text/javascript"></script>
  388. <script src="js/init.js" type="text/javascript"></script>
  389. <script src="js/main.js" type="text/javascript"></script>
  390. <script language=javascript>
  391. function goHome(){
  392. // Play68.goHome();
  393. }
  394. function clickMore(){
  395. // Play68.goHome();
  396. }
  397. function myMoreGoHome (){
  398. // Play68.goHome();
  399. }
  400. function myScores (){
  401. // Play68.setRankingScoreDesc(window._myscore);
  402. // updateShare(window._myscore);
  403. // play68_submitScore(window._myscore);
  404. }
  405. function dp_Ranking(){
  406. // Play68.goHome();
  407. }
  408. </script>
  409. <div style="display: none;">
  410. <script type="text/javascript">
  411. function onShareComplete(res) {
  412. document.location.href = mebtnopenurl;
  413. }
  414. </script>
  415. </body>
  416. </html>