index.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Script-Type" content="text/javascript">
  5. <meta http-equiv="Content-Style-Type" content="text/css">
  6. <meta charset="utf-8">
  7. <meta name="keywords" content="iPhone,Android,iPad,game,html5 game,puzzle game,puzzle,Puzzle,flick,card,postman,post,action,Flash,Flash for iPhone,html5,iPod touch,iPad">
  8. <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"/>
  9. <meta name="HandheldFriendly" content="true" />
  10. <meta name="apple-mobile-web-app-capable" content="yes">
  11. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  12. <meta http-equiv="Pragma" content="no-cache">
  13. <meta http-equiv="Cache-Control" content="no-cache">
  14. <meta equiv="Expires" content="0">
  15. <title>你听老师的话吗?好好写字</title>
  16. <link rel="stylesheet" href="./css/18/main.css">
  17. <script type="text/javascript" src="./js/jquery.min.js"></script>
  18. <script type="text/javascript" src="./js/count.js"></script>
  19. <script type="text/javascript" src="./js/18/createjs.js"></script>
  20. <script type="text/javascript">
  21. var _config = {}; _config['isSite'] = './';_config["isCount"] = "./";_config["isSites"] = "http://app.46465.com/";
  22. var _con = {}; _con["num"] = 18;
  23. </script>
  24. <style type="text/css">
  25. /*html{
  26. max-width: 600px;
  27. position: absolute;
  28. max-height: 100%;
  29. }*/
  30. body{
  31. /*max-width: 600px;*/
  32. position: absolute;
  33. width: 100%;
  34. height: 100%;
  35. margin: 0;
  36. -webkit-user-select: none;
  37. /**/
  38. /*background-color: #000;*/
  39. }
  40. .bodybg{
  41. background: url(./vapp/18/home.jpg) center center;
  42. background-size: 100%;
  43. }
  44. img, ul, li, a{
  45. display: block;
  46. }
  47. .start, .game, .result, .wxWindow{
  48. position: absolute;
  49. width: 100%;
  50. min-height: 100%;
  51. /*-webkit-transition: all .6s ease;*/
  52. z-index: 1;
  53. /*background-color: rgba(0,0,0,.6);*/
  54. }
  55. a{
  56. position: absolute;
  57. width: 100%;
  58. height: 100%;
  59. top: 0;
  60. }
  61. .hide {
  62. visibility: hidden;
  63. /*display: none;*/
  64. /*top: 0%;*/
  65. overflow: hidden;
  66. /*width: 0;*/
  67. /*height: 100%;*/
  68. min-height: 100% !important;
  69. max-height: 100% !important;
  70. z-index: 0 !important;
  71. }
  72. .body{
  73. position: relative;
  74. width: 100%;
  75. height: 94.2%;
  76. max-width: 500px;
  77. margin: 0 auto;
  78. }
  79. .bg0 {
  80. background: url(./vapp/18/bg-1.jpg) center bottom;
  81. background-size: 100%;
  82. }
  83. .bg1 {
  84. background: url(./vapp/18/bg-2.jpg) center bottom;
  85. background-size: 100%;
  86. }
  87. .bg2 {
  88. background: url(./vapp/18/bg-3.jpg) center bottom;
  89. background-size: 100%;
  90. }
  91. .bg3 {
  92. background: url(./vapp/18/bg-4.jpg) center bottom;
  93. background-size: 100%;
  94. }
  95. .bg4 {
  96. background: url(./vapp/18/bg-5.jpg) center bottom;
  97. background-size: 100%;
  98. }
  99. .start{
  100. width: 100%;
  101. height: 100%;
  102. background: url(./vapp/18/home.jpg) center center;
  103. background-size: 100%;
  104. }
  105. .help{
  106. position: absolute;
  107. left: 25%;
  108. bottom: 38%;
  109. width: 50%;
  110. }
  111. .help img{
  112. width: 100%;
  113. }
  114. .help .finger{
  115. position: absolute;
  116. left:18%;
  117. bottom: 23%;
  118. height: 100%;
  119. width: 30%;
  120. top: 0;
  121. background: url(./vapp/18/finger.png) center center no-repeat;
  122. background-size: 70% auto;
  123. -webkit-animation: flash 2s infinite linear;
  124. }
  125. @-webkit-keyframes flash {
  126. 0% { -webkit-transform: translate3d(0, -10%, 0); opacity: 1;}
  127. 50% { -webkit-transform: translate3d(100%, -10%, 0); opacity: 0; }
  128. 51% { -webkit-transform: translate3d(0%, 56%, 0); opacity: 1;}
  129. 100% { -webkit-transform: translate3d(100%, 56%, 0); opacity: 0;}
  130. }
  131. .start .btn{
  132. position: absolute;
  133. width: 50%;
  134. left: 25%;
  135. bottom: 15%;
  136. }
  137. .start .btnmore{
  138. position: absolute;
  139. width: 50%;
  140. left: 25%;
  141. bottom: 3%;
  142. }
  143. #game2{
  144. width: 100%;
  145. height: 100%;
  146. /*background: url(./vapp/18/bg-5.jpg) center bottom;
  147. background-size: 100%;*/
  148. }
  149. .game .title{
  150. position: absolute;
  151. top:0;
  152. width: 100%;
  153. }
  154. .game .title .time{
  155. top: 30%;
  156. left: 45%;
  157. width: 20%;
  158. text-align: center;
  159. display: block;
  160. position: absolute;
  161. }
  162. .game .title .score{
  163. top: 30%;
  164. left: 78%;
  165. width: 20%;
  166. text-align: center;
  167. display: block;
  168. position: absolute;
  169. }
  170. .result{
  171. width: 100%;
  172. height: 100%;
  173. /* background: url(./vapp/18/r-bg.png) center top;*/
  174. background-size: 100%;
  175. color: #000000;
  176. /*font-weight: bold;*/
  177. }
  178. .result .btn{
  179. position: absolute;
  180. width: 80%;
  181. top: 63%;
  182. left: 10%;
  183. z-index: 10;
  184. }
  185. .win .btn{}
  186. .lose .btn{
  187. top: 38%;
  188. }
  189. .result .btn>div{
  190. position: absolute;
  191. top: 0;
  192. height: 100%;
  193. width: 47%;
  194. z-index: 10;
  195. }
  196. .result .btn .b1{
  197. left: 0;
  198. }
  199. .result .btn .b2{
  200. right: 0;
  201. }
  202. .result .share-btn{
  203. position: absolute;
  204. width: 90%;
  205. bottom: 8%;
  206. height: auto;
  207. overflow: hidden;
  208. z-index: 10;
  209. /* -webkit-transform: translate3d(-100%, 0, 0); */
  210. /*-webkit-transition: all .6s ease;*/
  211. left: 5%;
  212. }
  213. .result .score{
  214. position: absolute;
  215. width: 100%;
  216. font-size: 2em;
  217. text-align: center;
  218. color: #000000;
  219. top: 24%;
  220. /*background: url(./vapp/18/scorebg.png) center center;*/
  221. /*background-size: auto 100%;*/
  222. }
  223. .result .max-score{
  224. position: absolute;
  225. width: 100%;
  226. font-size: 1.2rem;
  227. text-align: center;
  228. color: #000000;
  229. /* top: 44%; */
  230. /* background: url(./vapp/18/scorebg.png) center center; */
  231. /* background-size: auto 100%; */
  232. }
  233. .result .text{
  234. position: absolute;
  235. width: 85%;
  236. font-size: 1em;
  237. text-align: center;
  238. color: #000000;
  239. left: 10%;
  240. top: 51%;
  241. /*background: url(./vapp/18/scorebg.png) center center;*/
  242. /*background-size: auto 100%;*/
  243. }
  244. .result .text2{
  245. position: absolute;
  246. width: 85%;
  247. font-size: .9em;
  248. text-align: center;
  249. color: #000000;
  250. left: 8%;
  251. bottom: 18%;
  252. /*background: url(./vapp/18/scorebg.png) center center;*/
  253. /*background-size: auto 100%;*/
  254. }
  255. .result .score{
  256. position: absolute;
  257. width: 30%;
  258. left: 35%;
  259. font-size: 2em;
  260. text-align: center;
  261. color: #000000;
  262. top: 22%;
  263. /*background: url(./vapp/18/scorebg.png) center center;*/
  264. /*background-size: auto 100%;*/
  265. }
  266. .result .scorebox{
  267. position: absolute;
  268. top: 0;
  269. width: 100%;
  270. height: 100%;
  271. display: -webkit-box;
  272. -webkit-box-orient: horizontal;
  273. -webkit-box-pack: center;
  274. -webkit-box-align: center;
  275. text-align: center;
  276. }
  277. .result .scorebox .title{
  278. width: 100%;
  279. -webkit-transform: translate3d(-100%, 0, 0);
  280. font-size: 1.2rem;
  281. }
  282. .result .scorebox .s{
  283. width: 100%;
  284. -webkit-transform: translate3d(-100%, 0, 0);
  285. }
  286. .win .share-btn{
  287. }
  288. .lose .share-btn{
  289. top: 48%;
  290. }
  291. .result .share-btn.act{
  292. -webkit-transform: translate3d(0, 0, 0);
  293. }
  294. .result .share-btn .sbtn{
  295. /*padding: 0 6%;*/
  296. display: -webkit-box;
  297. height: 100%;
  298. position: absolute;
  299. top: 0;
  300. width: 100%;
  301. box-sizing: border-box;
  302. z-index: 10;
  303. }
  304. .result .share-btn .b{
  305. -webkit-box-flex: 1;
  306. }
  307. .loading {
  308. width: 15%;
  309. position: absolute;
  310. top: 50%;
  311. left: 42.5%;
  312. -webkit-animation: loading 3s infinite linear;
  313. }
  314. @-webkit-keyframes loading {
  315. from {
  316. -webkit-transform: rotate(0deg);
  317. }
  318. to {
  319. -webkit-transform: rotate(360deg);
  320. }
  321. }
  322. .hidden{
  323. opacity: 0;
  324. }
  325. #share-wx{
  326. background:rgba(0,0,0,0.8);
  327. position:absolute;top:0px;
  328. left:0px;
  329. width:100%;
  330. height:100%;
  331. z-index:10000;
  332. display:none;
  333. }
  334. #wx-qr{
  335. background:rgba(0,0,0,0.8);
  336. position:absolute;top:0px;
  337. left:0px;
  338. width:100%;
  339. height:100%;
  340. z-index:10000;
  341. display:none;
  342. }
  343. .lis{overflow: hidden;width: 100%;z-index: 99999;}
  344. .lis a{display: block;position: relative;width:99.9%;color:#13addf;font-size:18px;text-decoration: none;background:#606783;text-align: center;opacity: 0.8;line-height:30px;font-weight: bold;font-family:"微软雅黑";}
  345. .lis a img{position: relative;top: -1px;display: inline;}
  346. </style>
  347. </head>
  348. <body onload="startCutting();">
  349. <script type="text/javascript" src="./js/code.js"></script>
  350. <!--{-----------------------------------------------}-->
  351. <script type="text/javascript">
  352. var isCount = 0;
  353. if(isCount==1){openCount(18);}
  354. </script>
  355. <div class="loading"><img src="./vapp/18/loading.png" width="100%"></div>
  356. <div class="body hide">
  357. <img src="./vapp/18/001.jpg" style="position:absolute; opacity:0; width:0; height:0;" />
  358. <div class="start">
  359. <div class="help">
  360. <img src="./vapp/18/help.png">
  361. <div class="finger"></div>
  362. </div>
  363. <img src="./vapp/18/homebtn.png" class="btn" onclick="startbtn()">
  364. <img src="./vapp/18/homebtn2.png" class="btnmore" onclick="goHome()">
  365. </div>
  366. <div id="game2" class="game hide">
  367. <div class="title">
  368. <img src="./vapp/18/title.jpg" width="100%">
  369. <span class="time">9'99"</span>
  370. <span class="score">9'99</span>
  371. </div>
  372. </div>
  373. <div class="result hide">
  374. <div class="btn">
  375. <img src="./vapp/18/btn3.png" width="100%;">
  376. <div class="b1 B" onclick="restartbtn()"></div>
  377. <div class="b2 B"><a href="javascript:void(0);" onclick="dp_share();"></a></div>
  378. </div>
  379. <div class="score">
  380. <img src="./vapp/18/scorebg.png" width="100%">
  381. <div class="max-score">最佳:0</div>
  382. <div class="scorebox">
  383. <div class="title">成绩:</div>
  384. <div class="s">0</div>
  385. </div>
  386. </div>
  387. <div class="text"></div>
  388. </div>
  389. </div>
  390. <script type="text/javascript">
  391. var _smq = _smq || [];
  392. _smq.push(['_setAccount', 'c9930ed8', new Date()]);
  393. _smq.push(['pageview']);
  394. var _gaq = _gaq || [];
  395. </script>
  396. <div id="infos" style="display:none"></div>
  397. <script language=javascript>
  398. var mebtnopenurl = './game/';
  399. var gainscore;//记录最近得分
  400. var successflag;//记录结果成功或者失败
  401. function goHome(){
  402. window.location=mebtnopenurl;
  403. }
  404. function dp_submitScore(score){
  405. gainscore=score;
  406. if(score>=15){
  407. $("#infos").html("矮油,恭喜你写字用对了"+score+"次笔!老师很欣慰呢!");
  408. if(confirm("矮油,恭喜你写字用对了"+score+"次笔!老师很欣慰呢!")){
  409. dp_share();
  410. }
  411. }
  412. }
  413. function dp_share(){
  414. document.title = "听老师的话,我正确使用了"+gainscore+"次画笔,老师笑晕在厕所!";
  415. $("#share").show();
  416. $("#infos").html("听老师的话,我正确使用了"+gainscore+"次画笔,老师笑晕在厕所!");
  417. }
  418. function dp_Ranking(){
  419. window.location=mebtnopenurl;
  420. }
  421. </script>
  422. <script src="./js/18/main.js"></script>
  423. <div id="share" style="display: none">
  424. <img width=100% src="./vapp/18/share.png" style="position: absolute;z-index:2; top: 0; left: 0; display: " ontouchstart="document.getElementById('share').style.display='none';">
  425. </div>
  426. <script type="text/javascript">
  427. var dataForWeixin = {
  428. appId: "wx2dcf1c9837b601ae",
  429. TLImg: "http://app.46465.com/html5/daitao/logo.jpg",
  430. url: "http://app.46465.com/html5/daitao/",
  431. title: "滑你妹,你能超越我吗?",
  432. desc: "快去测测吧"
  433. };
  434. var onBridgeReady = function(){
  435. WeixinJSBridge.on('menu:share:appmessage', function(argv){
  436. var infos = $("#infos").text();
  437. if(isCount==1){shareCount(18);}
  438. WeixinJSBridge.invoke('sendAppMessage', {
  439. "appid": dataForWeixin.appId,
  440. "img_url": dataForWeixin.TLImg,
  441. "img_width": "120",
  442. "img_height": "120",
  443. "link": dataForWeixin.url + '?f=wx_hy_bb',
  444. "title": infos + dataForWeixin.title,
  445. "desc": dataForWeixin.desc
  446. });
  447. setTimeout(function () {location.href = mebtnopenurl;}, 1500);
  448. });
  449. WeixinJSBridge.on('menu:share:timeline', function(argv){
  450. var infos = $("#infos").text();
  451. if(isCount==1){shareCount(18);}
  452. WeixinJSBridge.invoke('shareTimeline', {
  453. "appid": dataForWeixin.appId,
  454. "img_url":dataForWeixin.TLImg,
  455. "img_width": "120",
  456. "img_height": "120",
  457. "link": dataForWeixin.url + '?f=wx_pyq_bb',
  458. "title": infos + dataForWeixin.title,
  459. "desc": dataForWeixin.desc
  460. });
  461. setTimeout(function () {location.href = mebtnopenurl;}, 1500);
  462. });
  463. };
  464. if(document.addEventListener){
  465. document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
  466. }else if(document.attachEvent){
  467. document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
  468. document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
  469. }
  470. </script>
  471. <!--{-----------------------------------------------}-->
  472. </div>
  473. </div>
  474. <div class="lis">
  475. <div style=position: absolute;
  476. left: 35%;
  477. bottom: 2%;
  478. width: 50%;""><a style="border-bottom: 0px solid #ffffff;" href="http://mp.weixin.qq.com/s?__biz=MzAwNzQ4NzQyOQ==&mid=207029465&idx=1&sn=7b3e89d22b38e1e1337bf3a98ccdfb46#rd">更多游戏点击关注“空中传媒”</a></div>
  479. </div>
  480. </body>
  481. </html>