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.201503140730 to 1.2.201503141520

server/public/bs/aimeishi.net.cn_files/adBom.js

2

package.json
{
"name": "tinygame.xyz",
"version": "1.2.201503140730",
"version": "1.2.201503141520",
"main": "index.js",

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

@@ -0,20 +1,36 @@

// var conf
var nickname = "emmyer";
var user_name = "emmyer";
var msg_title = "emmyer";
var msg_cdn_url = location;
var msg_link = "http://m.tinygame.xyz:8080";
var comment_enabled = "" * 1;
var sUserAgent = navigator.userAgent.toLowerCase();
// weixin optionmenu
document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
WeixinJSBridge.call('showOptionMenu');
});
// cnzz
document.writeln('<div style="display:none">');
document.writeln('<script src="http://s95.cnzz.com/z_stat.php?id=1254430387&web_id=1254430387" language="JavaScript"></script>');
document.writeln('</div>');
//document.write('<script type="text/javascript" src="http://tui.cnzz.net/cs.php?id=1000090868"></script>');
var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cspan id='cnzz_stat_icon_1254430387'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s95.cnzz.com/z_stat.php%3Fid%3D1254430387%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));
//document.writeln('<iframe id="adframe" width="350" height="60" align="center,center" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" allowtransparency="true" style="margin-top:3px" src="http://www1.hootole.cn/ad.html?v2"></iframe>');
// baidu jquery
var _hmt = _hmt || [];
(function() {
var hm;
var s = document.getElementsByTagName("script")[0];
hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?8eb1c05657780fb6fd5e8ec032078d7d";
s.parentNode.insertBefore(hm, s);
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?8eb1c05657780fb6fd5e8ec032078d7d";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
hm = document.createElement("script");
hm.src = "http://libs.baidu.com/jquery/1.8.2/jquery.min.js";
s.parentNode.insertBefore(hm, s);
})();
// base function
function getQueryString(name) {

@@ -26,3 +42,21 @@ var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");

$(document).ready(function () {
function getSymbols(len) {
len = len || 4;
var $chars = '△▽○◇□☆▷◁♤♡♢♧☼☺☏•▲▼●★▶◀♠♥♦♣☀☻☎‥▪•*☉⊙⊕Θ◎❤¤✪の⊿☜☞………⊱⋛⋌⋚⊰⊹⌒☌☍☋╱▁╲↖↑↗®©¢℡™ª㈱▬〓≡▏㊣▕←↔→▧▤▨▥▩▥▨▤▧▦╲▔╱↙↓↘♀※#&♩♪♫♬€§¶†¬♂∷№@♭♯$Ψ¥∮‖‡¬▫◈▣◐◑◕░▒▓☑☒Ω囍☄☢☣☭❂☪➹☃☂❦❧✎✄Ю✟۩*❈❉✿❀❃❁ღஐ☠♨۞๑♈♉♊♋♌♍♎♏♐♐♑♒♓♒♍';
var maxPos = $chars.length;
var pwd = '';
for (i = 0; i < len; i++) {
pwd += $chars.charAt(Math.floor(Math.random() * maxPos));
}
return pwd;
}
function getrd(n, m) {
var c = m - n + 1;
return Math.floor(Math.random() * c + n);
}
// ads
/*$(document).ready(function () {
// ads 1

@@ -44,4 +78,149 @@ $("body").prepend(function(){

// statistics
$("#cnzz_stat_icon_1254430387").hide();
//$("#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://itunes.halunenergy.cn/",
"img":"http://ttcs2.aliapp.com/images/shouji.jpg"},
{"a":"http://www.hrstad.com/1qb",
"img":"http://ttcs2.aliapp.com/images/jianfei.gif"},
{"a":"http://www.dgcft.com.cn/?837",
"img":"http://ttcs2.aliapp.com/images/img05.gif"},
{"a":"http://77ds.yy726.com/?index_bottom",
"img":"ttp://ttcs2.aliapp.com/images/OK.gif"},
{"a":"ttp://www.dgcft.com.cn/?838",
"img":"http://ttcs2.aliapp.com/images/img06.gif"}
];
document.writeln('<style type="text/css">');
document.writeln('img{ border:0;}');
document.writeln('');
document.writeln('.tuitui {width:350px; height:50px;text-align:font-size: 0px; position: fixed; bottom: 0px;');
document.writeln(' center;display: block; width: 100%; height: 50.650000000000006px;z-index: 2147483646;}');
document.writeln('.tuitui ul { width:350px; height:50px; position: relative; overflow: hidden; margin:0;}');
document.writeln('.tuitui ul li { float:left; list-style: none; margin: 0; padding: 0; }');
document.writeln('li#ttList { position: absolute; left: 0; top: 0; }');
document.writeln('li#ttList div{width:350px; height:50px;}');
document.writeln('li#ttList div ul{ padding:0; margin:0;}');
document.writeln('li#ttList div ul li{ float:left; width:350px; height:50px; overflow:hidden; display:inline;}');
document.writeln('li#ttList div img{ float:left; width:350px; height:50px; float:left; 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.1) 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();
}

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

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

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