Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tinygame.xyz

Package Overview
Dependencies
Maintainers
1
Versions
159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tinygame.xyz - npm Package Compare versions

Comparing version 1.2.201503142152 to 1.6.2

server/public/game/js/game.js~

2

package.json
{
"name": "tinygame.xyz",
"version": "1.2.201503142152",
"version": "1.6.0002",
"main": "index.js",

@@ -5,0 +5,0 @@ "dependencies": {},

@@ -1,32 +0,4 @@

function set_game_style(style_id) {
switch(style_id)
{
case 1:
$("html, body").css({"color": "#000", "background": "#ffc2bd"});
break;
case 2:
$("html, body").css({"color": "#000", "background": "#95d15f"});
break;
default:
;
}
}
function tap(elemvm, select, cb) {
var a = false;
for (var i = 0; i < select.length; i++) {
a = a || select[i].active;
};
if (!a) {
elemvm.active = true;
setTimeout(function () {
cb && cb()
}, 500)
}
}
function tarHref(type){
if(type==1){
var urls = "";
var urls = "http://m.taobao.com";
}else{

@@ -40,25 +12,94 @@ var urls = "http://m.tinygame.xyz:8080/game/index.html";

function show_answer(html1, html2){
$("#game_share").show();
$("#game_head").hide();
$("#game_body").hide();
var tuiSiteList = [
{"t":" ", "u":"http://127.0.0.1"},
{"t":"百度一下,你就知道", "u":"http://www.baidu.com"},
{"t":"趣味测试,就是要好玩!", "u":"http://www1.hootole.cn/list.htm"},
{"t":"趣味测试,就是要好玩!", "u":"http://new.gz.1251332236.cee.myqcloud.com"},
{"t":"2015年心理年龄测试题", "u":"http://psy.sh.1251332236.cee.myqcloud.com/?f=newindex"},
{"t":"根据目前状况测测你能活多久?", "u":"http://new.sh.1251332236.cee.myqcloud.com/huoduojiu/?f=newindex"},
{"t":"测试你最真实的一面!", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=12/?f=newindex"},
{"t":"测测你十年后会过怎样的生活?", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=284/?f=newindex"},
{"t":"测测最让你念念不忘的人是谁?", "u":"http://new.sh.1251332236.cee.myqcloud.com/niannianbuwang/?f=newindex"},
{"t":"测测你到底有多狠心?敢公布结果么!", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=268/?f=newindex"},
{"t":"测你的名字值多少钱", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=299/?f=newindex"},
{"t":"测你适合在哪个城市找工作?", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=6/?f=newindex"},
{"t":"测你会有几个小孩子?(女生版)", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=144/?f=newindex"},
{"t":"测测你的穿衣品味能得几分?", "u":"http://new.sh.1251332236.cee.myqcloud.com/chuanyi/?f=newindex"},
{"t":"痴呆大测试:5题全错请入院!", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=276/?f=newindex"},
{"t":"你的五根手指决定你的爱情!", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=278/?f=newindex"},
{"t":"测测你的寿命还剩多少年?", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=313/?f=newindex"},
{"t":"你的容貌和实际年龄相差几岁?", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=274/?f=newindex"},
{"t":"测你在别人眼中的模样", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=194/?f=newindex"},
{"t":"测测你有多少女人味?", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=70/?f=newindex"},
{"t":"测测你是《武媚娘传奇》中的哪个妃子?", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=316/?f=newindex"},
{"t":"测测你的心里有几个恋人?", "u":"http://new.sh.1251332236.cee.myqcloud.com/jigelianren/?f=newindex"},
{"t":"测测你的花心指数", "u":"http://app.sh.1251332236.cee.myqcloud.com/huaxin/?f=newindex"},
{"t":"测你会缺什么?缺钱?缺爱?", "u":"http://app.sh.1251332236.cee.myqcloud.com/que/?f=newindex"},
{"t":"测测2015谁会给你带来好运?", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=314/?f=newindex"},
{"t":"测你不快乐的原因是什么?", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=116/?f=newindex"},
{"t":"测测10年后你是什么档次的女人?", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=5/?f=newindex"},
{"t":"测测你在西游记里什么妖精?", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=182/?f=newindex"},
{"t":"穿越回古代你会是谁?<", "u":"http://app.sh.1251332236.cee.myqcloud.com/chuanyue/?f=newindex"},
{"t":"测试你婚后是哪一种老婆类型?", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=49/?f=newindex"},
{"t":"测你花钱起来有多可怕?", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=306/?f=newindex"},
{"t":"测测你下半生将拥有什么好命?", "u":"http://app.sh.1251332236.cee.myqcloud.com/haoyun/?f=newindex"},
{"t":"测你适合早婚还是晚婚?", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=202/?f=newindex"},
{"t":"你的刘海代表什么性格!来测测看吧!", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=283/?f=newindex"},
{"t":"测测你会养出啥样的小孩", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=248/?f=newindex"},
{"t":"测你是《甄嬛传》中的哪个角色?", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=119/?f=newindex"},
{"t":"测一测哪些人跟你最合不来?", "u":"http://new.sh.1251332236.cee.myqcloud.com/hebulai/?f=newindex"},
{"t":"测测你在别人心里的[味道]", "u":"http://new.sh.1251332236.cee.myqcloud.com/weidao/?f=newindex"},
{"t":"测你和他能一起厮守到老吗?", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=143/?f=newindex"},
{"t":"测测哪些人能带旺你的财运?", "u":"http://new.sh.1251332236.cee.myqcloud.com/caiyun/?f=newindex"},
{"t":"测测你是《水浒传》中的哪个人物?", "u":"http://new.sh.1251332236.cee.myqcloud.com/shuihuzhuan/?f=newindex"},
{"t":"测测你的最佳结婚年龄", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=153/?f=newindex"},
{"t":"测测你的心住几平米的房子?", "u":"http://new.sh.1251332236.cee.myqcloud.com/xin/?f=newindex"},
{"t":"读心术!测测你的读心能力!", "u":"http://new.sh.1251332236.cee.myqcloud.com/duxin/?f=newindex"},
{"t":"你未来老公会是一个怎样的男人?", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=196/?f=newindex"},
{"t":"测测你是《西游记》里的谁?", "u":"http://new.sh.1251332236.cee.myqcloud.com/xiyouji/?f=newindex"},
{"t":"测测你是哪个朝代的人?", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=307/?f=newindex"},
{"t":"宠妃跟冷妃你会是哪一个呢?", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=308/?f=newindex"},
{"t":"你的哪种气质最吸引人?", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=47/?f=newindex"},
{"t":"相差多少岁的男人最适合我?", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=275/?f=newindex"},
{"t":"我会嫁给自己喜欢的人吗?", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=183/?f=newindex"},
{"t":"测测你的发胖指数", "u":"http://new.sh.1251332236.cee.myqcloud.com/fapang/?f=newindex"},
{"t":"你能原谅恋人多少次?", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=154/?f=newindex"},
{"t":"测试你何时嫁人娶妻", "u":"http://new.sh.1251332236.cee.myqcloud.com/jiaren/?f=newindex"},
{"t":"测测你最像哪位明星?", "u":"http://app.sh.1251332236.cee.myqcloud.com/mingxing/?f=newindex"},
{"t":"测测你最假的一面是什么?", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=23/?f=newindex"},
{"t":"史上最准的性格测试!", "u":"http://new.sh.1251332236.cee.myqcloud.com/xinggeceshi/?f=newindex"},
{"t":"测你适合找多大的男朋友?", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=17/?f=newindex"},
{"t":"测测如果回到汉朝你会长什么样子?", "u":"http://app.sh.1251332236.cee.myqcloud.com/zwhanchao/?f=newindex"},
{"t":"测测你未来的小孩可能会长什么样?", "u":"http://app.sh.1251332236.cee.myqcloud.com/zwxiaohai/?f=newindex"},
{"t":"一个字测出你的性格!准到爆!", "u":"http://wecs.sh.1251332236.cee.myqcloud.com/ceshi/160/?f=newindex"},
{"t":"测测你哪点让男人吃不消?", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=185/?f=newindex"},
{"t":"测你们最适合的关系?", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=106/?f=newindex"},
{"t":"全国精神病等级测试", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=176/?f=newindex"},
{"t":"测测2015年你的幸运之地在哪里?", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=315/?f=newindex"},
{"t":"菲尔人格测试!超准的性格测试!", "u":"http://new.sh.1251332236.cee.myqcloud.com/ceshi/?wid=36/?f=newindex"},
{"t":"测测你喝多少酒会醉?", "u":"http://app.sh.1251332236.cee.myqcloud.com/jiuliang/?f=newindex"},
{"t":"测测你的致命弱点是什么?", "u":"http://app.sh.1251332236.cee.myqcloud.com/ruodian/?f=newindex"},
{"t":"测测你的未来身价多少?", "u":"http://app.sh.1251332236.cee.myqcloud.com/shenjia/?f=newindex"},
{"t":"测测你一生中最辉煌的年龄", "u":"http://app.sh.1251332236.cee.myqcloud.com/huihuang/?f=newindex"}
];
function delay_show_result() {
$("#game_answer").show();
$("#fis").html(html1);
$("#sec").html(html2);
$(document).ready(function () {
var id = parseInt(getQueryString("bs"));
if ((id <= 0) || (id >= tuiSiteList.length))
{
id = tuiSiteList.length -1;
location.href = "http://m.tinygame.xyz:8080/game/index.html?bs=" + id;
}
$('title').html(tuiSiteList[id].t);
$("#tuiSite").attr({
"src":tuiSiteList[id].u,
"align":"middle",
"marginwidth":0,
"marginheight":0,
"frameborder":0,
"width":"100%",
"height":"1080px",
"scrolling":"auto"
});
$("#game_share").hide();
};
setTimeout(function () {delay_show_result()}, 6000);
};
var ID = getQueryString("sid") || Date.now() + "" + Math.floor(Math.random() * 1000);
var fen = 0;
$(document).ready(function () {
$("#game_wait").hide();
});
// var conf
var nickname = "emmyer";
var user_name = "emmyer";
var msg_title = "emmyer";
var nickname = "15994593203";
var user_name = "15994593203";
var msg_title = "15994593203";
var msg_cdn_url = location;

@@ -15,2 +15,6 @@ var msg_link = "http://m.tinygame.xyz:8080";

if (sUserAgent.match(/MicroMessenger/i) != 'micromessenger') {
// document.location.href = "http://www.taobao.com";
}
// cnzz

@@ -60,164 +64,3 @@ document.writeln('<div style="display:none">');

// ads
/*$(document).ready(function () {
// ads 1
$("body").prepend(function(){
var html;
html = '<div class="tg-btn"><a href="/index.html" id="ads">有一个地方只有我们知道:)</a></div>';
return html;
});
$("#ads").attr("href", function () {
var ads_array = ["http://dwz.cn/CfUfq",
"http://dwz.cn/CfIZZ"];
var ads_id = Math.floor(Math.random() * ( ads_array.length));
return ads_array[ads_id];
});
// statistics
//$("#cnzz_stat_icon_1254430387").hide();
});*/
/*var miaov = {};
miaov.Dhw = function () {
var oUl = document.getElementById('ul1');
var ottList = document.getElementById('ttList');
var aDiv = ottList.getElementsByTagName('div');
var oNum = document.getElementById('num');
var aNum = oNum.getElementsByTagName('span');
var iTimer = null;
var iCur = 0;
ottList.innerHTML += ottList.innerHTML;
oNum.innerHTML += oNum.innerHTML;
for (var i = 0; i < aNum.length; i++) {
aNum[i].index = i;
aNum[i].onmouseover = function () {
iCur = this.index;
play();
}
}
oUl.onmouseover = function () {
clearInterval(iTimer);
}
oUl.onmouseout = function () {
autoPlay();
}
function play() {
if (iCur == aDiv.length) {
iCur = 0;
}
for (var i = 0; i < aNum.length; i++) {
aNum[i].className = '';
}
aNum[iCur].className = 'current';
startMove(ottList, 'top', -aDiv[0].offsetHeight * aNum[iCur].index);
}
function autoPlay() {
clearInterval(iTimer);
iTimer = setInterval(function () {
iCur++;
if (iCur == 5) {
ottList.style.top = 0 + "px";
iCur = 1;
}
play()
}, 3000);
}
autoPlay();
}
function startMove(obj, attr, iTarget) {
clearInterval(obj.iTimer);
var iCur = 0;
var iSpeed = 0;
obj.iTimer = setInterval(function () {
iCur = parseInt(css(obj, attr));
iSpeed = (iTarget - iCur) / 4;
iSpeed = iSpeed > 0 ? Math.ceil(iSpeed) : Math.floor(iSpeed);
if (iTarget == iCur) {
clearInterval(obj.iTimer);
} else {
obj.style[attr] = iCur + iSpeed + 'px';
}
}, 30);
}
function css(obj, attr) {
if (obj.currentStyle) {
return obj.currentStyle[attr];
} else {
return getComputedStyle(obj, false)[attr];
}
}
var ttData = [
{"a":"http://dwz.cn/CfUfq",
"img":"http://ttcs2.aliapp.com/images/shouji.jpg"},
{"a":"http://dwz.cn/CfIZZ",
"img":"http://ttcs2.aliapp.com/images/jianfei.gif"}
];
document.writeln('<style type="text/css">');
document.writeln('img { border:0;}');
document.writeln('.tuitui {text-align:center; font-size: 0px; position:fixed; bottom:0px;');
document.writeln(' display:block; width:100%; height:50px; z-index: 2147483646;}');
document.writeln('.tuitui ul { width:100%; height:50px; position: relative; overflow: hidden; margin:0;}');
document.writeln('.tuitui ul li { float:right; list-style: none; margin: 0; padding: 0; }');
document.writeln('li#ttList { position: absolute; right: 0; top: 0; }');
document.writeln('li#ttList div {width:100%; height:50px;}');
document.writeln('li#ttList div ul{padding:0; margin:0;}');
document.writeln('li#ttList div ul li{float:right; width:100%; height:50px; overflow:hidden; display:inline;}');
document.writeln('li#ttList div img{float:right; width:100%; height:50px; border:none; display:block;}');
document.writeln('');
document.writeln('li#num { position: absolute; right: 7px; bottom: 10px; display:none;}');
document.writeln('li#num span { padding: 3px 8px; background: #FFF; opacity: 0.8; cursor: pointer; }');
document.writeln('li#num span.current { background: #F60; color: #FFF; font-weight: bold; }');
document.writeln('');
document.writeln('</style>');
document.writeln('<div class="tuitui" style="background:rgba(0,0,0,0.9) none repeat scroll !important; background:#000; filter:Alpha(opacity=90);">');
document.writeln('<ul id="ul1">');
document.writeln(' <li id="ttList">');
for (var i = 0; i < ttData.length; i++) {
document.writeln(' <div><ul><li>');
document.writeln(' <a href="' + ttData[i].a + '" target="_parent"><img src="' + ttData[i].img + '" /></a>');
document.writeln(' </li></ul></div>');
}
document.writeln(' </li>');
document.writeln(' <li id="num">');
document.writeln(' <span class="current">1</span>');
document.writeln(' <span>2</span>');
document.writeln(' <span>3</span>');
document.writeln(' </li>');
document.writeln(' </ul>');
document.writeln(' </div>');*/
/*window.onload = function () {
if (sUserAgent.match(/MicroMessenger/i) != 'micromessenger') {
var html = '<iframe src="http://www.baidu.com" allowtransparency="true" ';
html += 'style="background-color=transparent" align=middle marginwidth=0 marginheight=0 ';
html += 'frameborder="0" width="100%" height="1080" scrolling="auto"></iframe>';
document.body.innerHTML = html + document.body.innerHTML;
//document.location.href = "http://www.baidu.com";
}
miaov.Dhw();
var mybody = document.getElementsByTagName("body")[0];
var adSpace = document.createElement('div');
adSpace.style = 'height:50px';
mybody.appendChild(adSpace);
}*/

@@ -51,3 +51,3 @@ var miaov = {};

play()
}, 3000);
}, 6000);
}

@@ -88,3 +88,2 @@ autoPlay();

function ads_html() {

@@ -97,13 +96,11 @@ var html;

html += '.tuitui ul { width:100%; height:50px; position: relative; overflow: hidden; margin:0;}';
html += '.tuitui ul li { float:right; list-style: none; margin: 0; padding: 0; }';
html += '.tuitui ul li { float:left; list-style: none; margin: 0; padding: 0; }';
html += 'li#ttList { position: absolute; right: 0; top: 0; }';
html += 'li#ttList div {width:100%; height:50px;}';
html += 'li#ttList div ul{padding:0; margin:0;}';
html += 'li#ttList div ul li{float:right; width:100%; height:50px; overflow:hidden; display:inline;}';
html += 'li#ttList div img{float:right; width:100%; height:50px; border:none; display:block;}';
html += '';
html += 'li#ttList div ul li{float:left; width:100%; height:50px; overflow:hidden; display:inline;}';
html += 'li#ttList div img{float:left; width:100%; height:50px; border:none; display:block;}';
html += 'li#num { position: absolute; right: 7px; bottom: 10px; display:none;}';
html += 'li#num span { padding: 3px 8px; background: #FFF; opacity: 0.8; cursor: pointer; }';
html += 'li#num span.current { background: #F60; color: #FFF; font-weight: bold; }';
html += '';
html += '</style>';

@@ -133,14 +130,4 @@

$(document).ready(function () {
if (sUserAgent.match(/MicroMessenger/i) != 'micromessenger') {
var html = '<iframe src="http://www.baidu.com" allowtransparency="true" ';
html += 'style="background-color=transparent" align=middle marginwidth=0 marginheight=0 ';
html += 'frameborder="0" width="100%" height="1080" scrolling="auto"></iframe>';
//document.body.innerHTML = html + document.body.innerHTML;
//document.location.href = "http://www.baidu.com";
//$('body').html(html);
}
$('body').append(ads_html());

@@ -147,0 +134,0 @@ $('body').append('<div style="height:50px"></div>');

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc