123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569 |
-
- <!DOCTYPE html>
- <html>
- <head>
- <title>中秋佳节点花灯</title>
- <div id='wx_pic' style='margin:0 auto;display:none;'>
- <img src='photo.jpg' />
- </div>
- <meta charset="utf-8"/>
- <meta name="viewport" content="initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0, width=device-width,target-densitydpi=device-dpi"/>
- <script type="text/javascript">
- //var i = new Date().getTime() % 5;
- //if (i < 3) {
- // document.write('<script type="text/javascript" src="game1/tt/scripts/createjs.js"><\/script>');
- //}
- //else {
- // document.write('<script type="text/javascript" src="game1/tt/scripts/createjs.js"><\/script>');
- //}
- var isDesktop = navigator['userAgent'].match(/(ipad|iphone|ipod|android|windows phone)/i) ? false : true;
- var fontunit = isDesktop ? 20 : ((window.innerWidth > window.innerHeight ? window.innerHeight : window.innerWidth) / 320) * 10;
- document.write('<style type="text/css">' +
- 'html,body {font-size:' + (fontunit < 30 ? fontunit : '30') + 'px;}' +
- (isDesktop ? '#welcome,#GameTimeLayer,#GameLayerBG,#GameScoreLayer.SHADE{position: absolute;}' :
- '#welcome,#GameTimeLayer,#GameLayerBG,#GameScoreLayer.SHADE{position:fixed;}@media screen and (orientation:landscape) {#landscape {display: box; display: -webkit-box; display: -moz-box; display: -ms-flexbox;}}') +
- '</style>');
- </script>
- <script type="text/ecmascript" src="scripts/createjs.js"></script>
- <style type="text/css">
- body {font-family: "Helvetica Neue", Helvetica, STHeiTi, sans-serif; margin: 0; padding: 0;}
- .loading {background-image: url("data:image/gif;base64,R0lGODlhJQAlAJECAL3L2AYrTv///wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFCgACACwAAAAAJQAlAAACi5SPqcvtDyGYIFpF690i8xUw3qJBwUlSadmcLqYmGQu6KDIeM13beGzYWWy3DlB4IYaMk+Dso2RWkFCfLPcRvFbZxFLUDTt21BW56TyjRep1e20+i+eYMR145W2eefj+6VFmgTQi+ECVY8iGxcg35phGo/iDFwlTyXWphwlm1imGRdcnuqhHeop6UAAAIfkEBQoAAgAsEAACAAQACwAAAgWMj6nLXAAh+QQFCgACACwVAAUACgALAAACFZQvgRi92dyJcVJlLobUdi8x4bIhBQAh+QQFCgACACwXABEADAADAAACBYyPqcsFACH5BAUKAAIALBUAFQAKAAsAAAITlGKZwWoMHYxqtmplxlNT7ixGAQAh+QQFCgACACwQABgABAALAAACBYyPqctcACH5BAUKAAIALAUAFQAKAAsAAAIVlC+BGL3Z3IlxUmUuhtR2LzHhsiEFACH5BAUKAAIALAEAEQAMAAMAAAIFjI+pywUAIfkEBQoAAgAsBQAFAAoACwAAAhOUYJnAagwdjGq2amXGU1PuLEYBACH5BAUKAAIALBAAAgAEAAsAAAIFhI+py1wAIfkEBQoAAgAsFQAFAAoACwAAAhWUL4AIvdnciXFSZS6G1HYvMeGyIQUAIfkEBQoAAgAsFwARAAwAAwAAAgWEj6nLBQAh+QQFCgACACwVABUACgALAAACE5RgmcBqDB2MarZqZcZTU+4sRgEAIfkEBQoAAgAsEAAYAAQACwAAAgWEj6nLXAAh+QQFCgACACwFABUACgALAAACFZQvgAi92dyJcVJlLobUdi8x4bIhBQAh+QQFCgACACwBABEADAADAAACBYSPqcsFADs=");
- background-repeat: no-repeat;
- background-position: center center;
- background-size: auto 60%;
- }
- .SHADE {top: 0; left:0; width:100%; height: 100%; bottom:0; z-index: 11;}
- .BOX-V {box-orient: vertical;-webkit-box-orient: vertical; -moz-box-orient: vertical;-ms-flex-direction:column;}
- .BOX-D {box-align: end; box-pack: center -webkit-box-align: end; -webkit-box-pack: center; -ms-flex-align:end; -ms-flex-pack:center;}
- .BOX-M {box-align: center;box-pack: center; -webkit-box-align: center; -webkit-box-pack: center; -ms-flex-align:center; -ms-flex-pack:center;}
- .BOX-S {display:block; box-flex:1; -webkit-box-flex:1; -moz-box-flex:1;-ms-flex:1;}
- .BOX ,.BOX-V,.BOX-D,.BOX-M, .FOOTER{display: box; display: -webkit-box; display: -moz-box; display: -ms-flexbox;}
- .BBOX ,.BOX,.APP-STAGE,.INSET-STAGE,.STAGE,.PAGE-STAGE,.PAGE,.PAGE-BOX,.INSET-PAGE,.FOOTER{box-sizing:border-box; -webkit-box-sizing:border-box; -moz-box-sizing:border-box;}
- #welcome { background-color:rgba(0,0,0,.8); text-align: center; font-weight: bold;overflow: hidden;}
- .welcome-bg {position:absolute;top:0;left:0;right:0;bottom:0; background: url(01.jpg) center center no-repeat; background-size:100% 100%; opacity: .4;overflow: hidden;}
- #GameTimeLayer {top:1em; left: 0; width:100%; text-align: center; color:#f00; font-size: 4em; text-shadow:0 0 3px #fff,0 0 3px #fff,0 0 3px #fff;overflow: hidden;}
- #GameLayerBG {top:0;left:0;right:0;bottom:0;overflow:hidden;background:#fff;}
- .GameLayer {position:absolute;bottom:0;left:0;}
- .block {position:absolute;border-top:1px solid #1D70B6; background-repeat: no-repeat; background-position: center;}
- .t1,.t2,.t3,.t4,.t5 { background-size:auto 100%;background-image:url(02.jpg);}
- .tt1,.tt2,.tt3,.tt4,.tt5 { background-size:auto 86%;background-image:url(03.jpg);}
- .bl {border-left:1px solid #1D70B6;}
- @-ms-keyframes flash {
- 0% { opacity: 1; }
- 50% { opacity: 0; }
- 100% { opacity: 1; }
- }
- @-webkit-keyframes flash {
- 0% { opacity: 1; }
- 50% { opacity: 0; }
- 100% { opacity: 1; }
- }
- .flash {-webkit-animation: flash .2s 3;animation: flash .2s 3;}
- .bad {background-color: #f00; -webkit-animation: flash .2s 3;animation: flash .2s 3;}
- * {-webkit-tap-highlight-color: rgba(0,0,0,0);-ms-tap-highlight-color: rgba(0,0,0,0); tap-highlight-color: rgba(0,0,0,0); -ms-user-select: none;}
- #GameScoreLayer { padding-top:3em; font-size:2em; font-weight: bold; color:#fff; text-align: center;overflow: hidden;}
- .bgc1 { background-color: #23378B;}
- .bgc2 { background-color: #009FE3;}
- .bgc3 { background-color: #E42313;}
- .bgc4 { background-color: #FCBD1B;}
- .bgc5 { background-color: #34002A;}
- .share-icon {width:1.7em; background-repeat:no-repeat; background-size: auto 100%;}
- #GameScoreLayer-btn .btn,#GameScoreLayer-share .btn {text-align: center;font-size:1.1em; background-color: rgba(0,0,0,.3); height:2em; line-height:2em;}
- .btn:active {opacity: 0.2;}
- #landscape {display: none;}
- #gameBody {position: relative; width: 640px; margin: 0 auto; height: 100%;}
- #share-wx {
- background: rgba(0,0,0,0.8);
- position: absolute;
- top: 0px;
- left: 0px;
- width: 100%;
- height: 100%;
- z-index: 10000;
- display: none;
- }
- a:link {text-decoration: none; color:#FFF;}
- </style>
- <!-- <script type="text/javascript" src="scripts/stats.js" charset="UTF-8"></script>-->
- </head>
- <body onLoad="init()">
- <script type="text/javascript">
- window.shareData = {
- "imgUrl": "http://www.0550weixin.com/02.jpg",
- "timeLineLink": "http://www.0550weixin.com/",
- "tTitle": "点燃",
- "tContent": "点燃"
- };
- if (isDesktop)
- document.write('<div id="gameBody">');
- var body, blockSize, GameLayer = [], GameLayerBG, touchArea = [], GameTimeLayer;
- var transform, transitionDuration;
- function init(argument) {
- showWelcomeLayer();
- body = document.getElementById('gameBody') || document.body;
- body.style.height = window.innerHeight + 'px';
- transform = typeof (body.style.webkitTransform) != 'undefined' ? 'webkitTransform' : (typeof (body.style.msTransform) != 'undefined' ? 'msTransform' : 'transform');
- transitionDuration = transform.replace(/ransform/g, 'ransitionDuration');
- GameTimeLayer = document.getElementById('GameTimeLayer');
- GameLayer.push(document.getElementById('GameLayer1'));
- GameLayer[0].children = GameLayer[0].querySelectorAll('div');
- GameLayer.push(document.getElementById('GameLayer2'));
- GameLayer[1].children = GameLayer[1].querySelectorAll('div');
- GameLayerBG = document.getElementById('GameLayerBG');
- if (GameLayerBG.ontouchstart === null) {
- GameLayerBG.ontouchstart = gameTapEvent;
- } else {
- GameLayerBG.onmousedown = gameTapEvent;
- document.getElementById('landscape-text').innerHTML = '点我开始点燃';
- document.getElementById('landscape').onclick = winOpen;
- }
- gameInit();
- window.addEventListener('resize', refreshSize, false);
- var rtnMsg = "true";
-
- setTimeout(function(){
- if(rtnMsg == 'false'){
- var btn = document.getElementById('ready-btn');
- btn.className = 'btn';
- btn.innerHTML = '我看好你哟!'
- }else{
- var btn = document.getElementById('ready-btn');
- btn.className = 'btn';
- btn.innerHTML = ' 预备,上!'
- btn.style.backgroundColor = '#F00';
- btn.onclick = function(){
- closeWelcomeLayer();
- }
- }
- }, 500);
- }
- function winOpen() {
- window.open(location.href + '?r=' + Math.random(), 'nWin', 'height=500,width=320,toolbar=no,menubar=no,scrollbars=no');
- var opened = window.open('about:blank', '_self'); opened.opener = null; opened.close();
- }
- var refreshSizeTime;
- function refreshSize() {
- clearTimeout(refreshSizeTime);
- refreshSizeTime = setTimeout(_refreshSize, 200);
- }
- function _refreshSize() {
- countBlockSize();
- for (var i = 0; i < GameLayer.length; i++) {
- var box = GameLayer[i];
- for (var j = 0; j < box.children.length; j++) {
- var r = box.children[j],
- rstyle = r.style;
- rstyle.left = (j % 4) * blockSize + 'px';
- rstyle.bottom = Math.floor(j / 4) * blockSize + 'px';
- rstyle.width = blockSize + 'px';
- rstyle.height = blockSize + 'px';
- }
- }
- var f, a;
- if (GameLayer[0].y > GameLayer[1].y) {
- f = GameLayer[0];
- a = GameLayer[1];
- } else {
- f = GameLayer[1];
- a = GameLayer[0];
- }
- var y = ((_gameBBListIndex) % 10) * blockSize;
- f.y = y;
- f.style[transform] = 'translate3D(0,' + f.y + 'px,0)';
- a.y = -blockSize * Math.floor(f.children.length / 4) + y;
- a.style[transform] = 'translate3D(0,' + a.y + 'px,0)';
- }
- function countBlockSize() {
- blockSize = body.offsetWidth / 4;
- body.style.height = window.innerHeight + 'px';
- GameLayerBG.style.height = window.innerHeight + 'px';
- touchArea[0] = window.innerHeight - blockSize * 0;
- touchArea[1] = window.innerHeight - blockSize * 3;
- }
- var _gameBBList = [], _gameBBListIndex = 0, _gameOver = false, _gameStart = false, _gameTime, _gameTimeNum, _gameScore;
- function gameInit() {
- createjs.Sound.registerSound({ src: "img/err.mp3", id: "err" });
- createjs.Sound.registerSound({ src: "img/end.mp3", id: "end" });
- createjs.Sound.registerSound({ src: "img/tap.mp3", id: "tap" });
- gameRestart();
- }
- function gameRestart() {
- console.log('gameRestart');
- _gameBBList = [];
- _gameBBListIndex = 0;
- _gameScore = 0;
- _gameOver = false;
- _gameStart = false;
- _gameTimeNum = 2000;
- GameTimeLayer.innerHTML = creatTimeText(_gameTimeNum);
- countBlockSize();
- refreshGameLayer(GameLayer[0]);
- refreshGameLayer(GameLayer[1], 1);
- }
- function gameStart() {
- _gameStart = true;
- _gameTime = setInterval(gameTime, 10);
- }
- function gameOver() {
- _gameOver = true;
- clearInterval(_gameTime);
- setTimeout(function () {
- GameLayerBG.className = '';
- showGameScoreLayer();
- }, 1500);
- }
- function gameTime() {
- _gameTimeNum--;
- if (_gameTimeNum <= 0) {
- GameTimeLayer.innerHTML = ' 时间到!';
- gameOver();
- GameLayerBG.className += ' flash';
- createjs.Sound.play("end");
- } else {
- GameTimeLayer.innerHTML = creatTimeText(_gameTimeNum);
- }
- }
- function creatTimeText(n) {
- var text = (100000 + n + '').substr(-4, 4);
- text = ' ' + text.substr(0, 2) + "'" + text.substr(2) + "''"
- return text;
- }
- var _ttreg = / t{1,2}(\d+)/, _clearttClsReg = / t{1,2}\d+| bad/;
- function refreshGameLayer(box, loop, offset) {
- var i = Math.floor(Math.random() * 1000) % 4 + (loop ? 0 : 4);
- for (var j = 0; j < box.children.length; j++) {
- var r = box.children[j],
- rstyle = r.style;
- rstyle.left = (j % 4) * blockSize + 'px';
- rstyle.bottom = Math.floor(j / 4) * blockSize + 'px';
- rstyle.width = blockSize + 'px';
- rstyle.height = blockSize + 'px';
- r.className = r.className.replace(_clearttClsReg, '');
- if (i == j) {
- _gameBBList.push({ cell: i % 4, id: r.id });
- r.className += ' t' + (Math.floor(Math.random() * 1000) % 5 + 1);
- r.notEmpty = true;
- i = (Math.floor(j / 4) + 1) * 4 + Math.floor(Math.random() * 1000) % 4;
- } else {
- r.notEmpty = false;
- }
- }
- if (loop) {
- box.style.webkitTransitionDuration = '0ms';
- box.style.display = 'none';
- box.y = -blockSize * (Math.floor(box.children.length / 4) + (offset || 0)) * loop;
- setTimeout(function () {
- box.style[transform] = 'translate3D(0,' + box.y + 'px,0)';
- setTimeout(function () {
- box.style.display = 'block';
- }, 100);
- }, 200);
- } else {
- box.y = 0;
- box.style[transform] = 'translate3D(0,' + box.y + 'px,0)';
- }
- box.style[transitionDuration] = '150ms';
- }
- function gameLayerMoveNextRow() {
- for (var i = 0; i < GameLayer.length; i++) {
- var g = GameLayer[i];
- g.y += blockSize;
- if (g.y > blockSize * (Math.floor(g.children.length / 4))) {
- refreshGameLayer(g, 1, -1);
- } else {
- g.style[transform] = 'translate3D(0,' + g.y + 'px,0)';
- }
- }
- }
- function gameTapEvent(e) {
- if (_gameOver) {
- return false;
- }
- var tar = e.target;
- var y = e.clientY || e.targetTouches[0].clientY,
- x = (e.clientX || e.targetTouches[0].clientX) - body.offsetLeft,
- p = _gameBBList[_gameBBListIndex];
- if (y > touchArea[0] || y < touchArea[1]) {
- return false;
- }
- if ((p.id == tar.id && tar.notEmpty) || (p.cell == 0 && x < blockSize) || (p.cell == 1 && x > blockSize && x < 2 * blockSize) || (p.cell == 2 && x > 2 * blockSize && x < 3 * blockSize) || (p.cell == 3 && x > 3 * blockSize)) {
- if (!_gameStart) {
- gameStart();
- }
- createjs.Sound.play("tap");
- tar = document.getElementById(p.id);
- tar.className = tar.className.replace(_ttreg, ' tt$1');
- _gameBBListIndex++;
- _gameScore++;
- gameLayerMoveNextRow();
- } else if (_gameStart && !tar.notEmpty) {
- createjs.Sound.play("err");
- gameOver();
- tar.className += ' bad';
- }
- return false;
- }
- function createGameLayer() {
- var html = '<div id="GameLayerBG">';
- for (var i = 1; i <= 2; i++) {
- var id = 'GameLayer' + i;
- html += '<div id="' + id + '" class="GameLayer">';
- for (var j = 0; j < 10; j++) {
- for (var k = 0; k < 4; k++) {
- html += '<div id="' + id + '-' + (k + j * 4) + '" num="' + (k + j * 4) + '" class="block' + (k ? ' bl' : '') + '"></div>';
- }
- }
- html += '</div>';
- }
- html += '</div>';
- html += '<div id="GameTimeLayer"></div>';
- return html;
- }
- function closeWelcomeLayer() {
- var l = document.getElementById('welcome');
- l.style.display = 'none';
- }
- function showWelcomeLayer() {
- var l = document.getElementById('welcome');
- l.style.display = 'block';
- }
- function showGameScoreLayer() {
- var l = document.getElementById('GameScoreLayer');
- var c = document.getElementById(_gameBBList[_gameBBListIndex - 1].id).className.match(_ttreg)[1];
- l.className = l.className.replace(/bgc\d/, 'bgc' + c);
- document.getElementById('GameScoreLayer-text').innerHTML = shareText(_gameScore);
- document.getElementById('GameScoreLayer-score').innerHTML = '得分 ' + _gameScore;
- var bast = cookie('bast-score');
- if (!bast || _gameScore > bast) {
- bast = _gameScore;
- cookie('bast-score', bast, 100);
- }
- document.getElementById('GameScoreLayer-bast').innerHTML = '最佳 ' + bast;
- l.style.display = 'block';
- window.shareData.tTitle =document.title= '中秋佳节,点花灯许心愿,我点燃了' + _gameScore + '盏灯,设定人生小目标!'
- }
- function hideGameScoreLayer() {
- var l = document.getElementById('GameScoreLayer');
- l.style.display = 'none';
- }
- function replayBtn() {
- gameRestart();
- hideGameScoreLayer();
- }
- function backBtn() {
- gameRestart();
- hideGameScoreLayer();
- showWelcomeLayer();
- }
-
- function shareText(score) {
- if (score <= 49)
- return '一共点燃了'+score+'盏花灯!<br/>亲爱的,好厉害!';
- if (score <= 99)
- return '酷!一共点燃了'+score+'盏花灯!<br/>好棒哦!';
- if (score <= 149)
- return '帅呆了!一共点燃了'+score+'盏花灯!!<br/>太正经了!';
- if (score <= 199)
- return '太牛了!一共点燃了'+score+'盏花灯<br/>不是一般人!';
- return '膜拜ing!一共点燃了'+score+'盏花灯!!<br/>亲,我想你不是地球人!再也没人能超越你了!';
- }
- function toStr(obj) {
- if (typeof obj == 'object') {
- return JSON.stringify(obj);
- } else {
- return obj;
- }
- return '';
- }
- function cookie(name, value, time) {
- if (name) {
- if (value) {
- if (time) {
- var date = new Date();
- date.setTime(date.getTime() + 864e5 * time), time = date.toGMTString();
- }
- return document.cookie = name + "=" + escape(toStr(value)) + (time ? "; expires=" + time + (arguments[3] ? "; domain=" + arguments[3] + (arguments[4] ? "; path=" + arguments[4] + (arguments[5] ? "; secure" : "") : "") : "") : ""), !0;
- }
- return value = document.cookie.match("(?:^|;)\\s*" + name.replace(/([-.*+?^${}()|[\]\/\\])/g, "\\$1") + "=([^;]*)"), value = value && "string" == typeof value[1] ? unescape(value[1]) : !1, (/^(\{|\[).+\}|\]$/.test(value) || /^[0-9]+$/g.test(value)) && eval("value=" + value), value;
- }
- var data = {};
- value = document.cookie.replace(/\s/g, "").split(";");
- for (var i = 0; value.length > i; i++) name = value[i].split("="), name[1] && (data[name[0]] = unescape(name[1]));
- return data;
- }
- document.write(createGameLayer());
- function share() {
- document.getElementById('share-wx').style.display = 'block';
- document.getElementById('share-wx').onclick = function () {
- this.style.display = 'none';
- };
- }
- document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
- WeixinJSBridge.on('menu:share:appmessage', function (argv) {
- WeixinJSBridge.invoke('sendAppMessage', {
- "img_url": window.shareData.imgUrl,
- "link": window.shareData.timeLineLink,
- "desc": window.shareData.tContent,
- "title": window.shareData.tTitle
- }, function (res) {
- document.location.href = mebtnopenurl;
- })
- });
- WeixinJSBridge.on('menu:share:timeline', function (argv) {
- WeixinJSBridge.invoke('shareTimeline', {
- "img_url": window.shareData.imgUrl,
- "img_width": "640",
- "img_height": "640",
- "link": window.shareData.timeLineLink,
- "desc": window.shareData.tContent,
- "title": window.shareData.tTitle
- }, function (res) {
- document.location.href = mebtnopenurl;
- });
- });
- }, false);
- </script>
- <div style="display: none">
- <img width="100%" height="100%" src="share.png"
- style="position: fixed; z-index: 9999; top: 0; left: 0;" />
- </div>
- <div id="GameScoreLayer" class="BBOX SHADE bgc1" style="display:none;background:url(img/bg_01.png); ">
- <div style="padding:0 5%;">
- <div id="GameScoreLayer-text"></div>
- <br/>
- <div id="GameScoreLayer-score" style="margin-bottom:1em;">得分</div>
- <div id="GameScoreLayer-bast">最佳</div>
- <br/>
- <div id="GameScoreLayer-btn" class="BOX">
- <div class="btn BOX-S" onClick="replayBtn()">重来</div>
- <div class="btn BOX-S" onClick="share()">分享到朋友圈</div>
- </div>
- <br/>
- <div id="GameScoreLayer-share" class="BOX">
- <div id="mebtn" class="btn BOX-S" ><a href="http://mp.weixin.qq.com/s?__biz=MzI4MjA2MjE0MQ==&mid=246005295&idx=1&sn=490f8141976d607ba079d48f52a3fcd7#rd">点我关注</a></div>
-
- </div>
- <br>
- <div id="GameScoreLayer-share" class="BOX">
-
- </div>
- </div>
- </div>
- <div id="welcome" class="SHADE BOX-M">
- <div class="welcome-bg FILL"></div>
- <div class="FILL BOX-M" style="position:absolute;top:0;left:0;right:0;bottom:0;z-index:5;">
- <div style="margin:0 8% 0 9%;">
- <div style="font-size:2.0em; color:#FEF002;">佳节到,点花灯</div><br/>
- <div style="font-size:1.8em; color:#fff; line-height:1.5em;">从离你最近的花灯开始,<br/>20秒内看你能点燃多少个花灯!<br/><br/></div><br/><br/>
- <div id="ready-btn" class="btn loading" style="display:inline-block; margin:0 auto; width:8em; height:1.7em; line-height:1.7em; font-size:1.9em; color:#fff;"></div>
- <div><img src="img/mei.png" width="60%"></div>
- <br/><br/>
-
-
-
- </div>
- </div>
- </div>
- <div id="landscape" class="SHADE BOX-M" style="background:rgba(0,0,0,.9);">
- <div class="welcome-bg FILL"></div>
- <div id="landscape-text" style="color:#fff;font-size:3em;">请竖屏玩耍</div>
- </div>
- <div id="share-wx"><p style="text-align: right; padding-left: 10px;"><img src="img/2000.png" id="share-wx-img" style="max-width: 280px; padding-right: 25px;"></p></div>
- <script type="text/javascript">
- if (isDesktop)
- document.write('</div>');
- </script>
- <script src="res/js/init.js"></script>
- <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
- <script type="text/javascript">
- /*
- * 开发参考文档见:
- * http://mp.weixin.qq.com/wiki/7/aaa137b55fb2e0456bf8dd9148dd613f.html
- */
- // 分享地址
- var shareurl = 'http://www.0550weixin.com';
- // 分享图标
- var imgUrl = 'http://www.0550weixin.com/02.jpg';
- // 分享标题
- var stitle = "(●—●)装扮地球";
- // 分享内容
- var scontent = "分数越高,即有机会获得西瓜汁以及周边奖品哦";
- wx.config({
- debug: false,
- appId: 'wxe5c0e0e90e6cff12',
- timestamp: '1433229987',
- nonceStr: 'BH5zmFRv9AD0XheV',
- signature: '1a59fc95af172259af3ac9d613f02f3f28db1224',
- jsApiList: [
- // 所有要调用的 API 都要加到这个列表中
- 'checkJsApi',
- 'onMenuShareTimeline',
- 'onMenuShareAppMessage',
- ]
- });
- wx.ready(function () {
- setShare();
- });
- function setShare(){
- wx.onMenuShareTimeline({
- title: stitle, // 分享标题
- link: shareurl, // 分享链接
- imgUrl: imgUrl, // 分享图标
- success: function () {
- // 用户确认分享后执行的回调函数
- },
- cancel: function () {
- // 用户取消分享后执行的回调函数
- }
- });
- wx.onMenuShareAppMessage({
- title: stitle, // 分享标题
- desc: scontent, // 分享描述
- link:shareurl, // 分享链接
- imgUrl: imgUrl, // 分享图标
- type: 'link', // 分享类型,music、video或link,不填默认为link
- dataUrl: '', // 如果type是music或video,则要提供数据链接,默认为空
- success: function () {
- // 用户确认分享后执行的回调函数
- },
- cancel: function () {
- // 用户取消分享后执行的回调函数
- }
- });
- }
- </script>
- <script type="text/javascript" src="http://tajs.qq.com/stats?sId=36313548" charset="UTF-8"></script></body>
- </html>
|