企鹅号是能如何更改微信登录密码的方式吗?

连连看经典小游戏js代码_js特效_中国素材天下
下载次数:904
需要积分:0
下载地址:
下载说明:
1、同时下载多个文件,容易出现无法解压等情况。请大家下载完成一个文件后再下载另一个。
2、部分素材需要解压密码,请输入:niutuku 。
3、为节约资源,有部分PSD文件已关闭全部图层,下载后请使用Photoshop打开图层眼睛即可。
4、登录后可获得更多便利功能,如未注册,请先注册。
5、日历,台历,挂历等方面的素材请仔细核对后再使用,我们无法保证每个素材的日期时间都是正确的。请慎重!!!!
6、特别说明:本站"设计素材"栏目内的所有资源(包括素材、软件、资料等)仅供学习与参考,请勿用于商业用途。三国杀连连看游戏js代码
作者/代码整理:&&(转载请附加本文地址,带有“懒人原生”字样的谢绝转载) 发布日期:
js版三国杀版连连看网页游戏代码是一款连连看游戏,头像为三国杀中的人物。
猜你喜欢...先贴出效果图:这里我们解释下js:test() :作为数据源函数并调用d3画图
drawApply() :画图函数,负责画图
具体解释看代码,如下:&html&
&title&&/title&
&meta http-equiv="Content-Type" content="text/ charset=utf-8"&
&div id="metrics"&&/div&
&script src="http://d3js.org/d3.v3.min.js" charset="utf-8"&&/script&
&script type="text/javascript"&
function test(){
var appStatus = {
lineageSatus:1,
impactStatus:1,
sameServerAppStatus:1,
sameRackAppStatus:0.1,
appDbStatus:1,
appRedisStatus:1,
appMqStatus:1,
appHaproxyStatus:1
var dymicInfo = {
switchPercent : 1,
machineRoomPercent : 1
var basicInfo ={
appName : 'test',
departmentName : 'test',
businessName : 'test',
connectPerson : 'test',
appLevel : 'test',
serviceNum : 'test',
machineRoomNum : 'test',
machineNum : 'test'
drawApply(basicInfo, dymicInfo,appStatus);
function drawApply(basicInfo, dymicInfo,appStatus){
var maxdepth=3;
var width = 420,height = 420;
var margin = {top: 10, right: 50, bottom: 10, left: 50}
var cluster = d3.layout.cluster()
.size([height, width/2]);
var maxScaleX = 0;
appStatus =eval(appStatus);
var newnode
svg.append("rect")
.attr("width", "500px")
.attr("height", "500px")
.attr("fill", "#ffffff")
.attr("stroke", "#0000ff")
.attr("stroke-width", "2px")
.attr("stroke-opacity", "0.1");*/
var nodePositionDictionary = {};
var root = {children:[], name:"a","pos":"mid"};
var rootLeft = {children:[], name:"a","pos":"mid"};
var rootRight = {children:[], name:"a","pos":"mid"};
dymicInfo = eval(dymicInfo);
newnode = {"name":"血缘","value":appStatus.lineageSatus};
rootRight.children.push(newnode);
root.children.push(newnode);
newnode = {"name":"影响","value":appStatus.impactStatus};
rootRight.children.push(newnode);
root.children.push(newnode);
newnode = {"name":"同服务器","value":appStatus.sameServerAppStatus};
rootRight.children.push(newnode);
root.children.push(newnode);
newnode = {"name":"同机柜","value":appStatus.sameRackAppStatus};
rootRight.children.push(newnode);
root.children.push(newnode);
newnode = {"name":"数据库","value":appStatus.appDbStatus};
rootRight.children.push(newnode);
root.children.push(newnode);
newnode = {"name":"Redis","value":appStatus.appRedisStatus};
rootRight.children.push(newnode);
root.children.push(newnode);
newnode = {"name":"MQ","value":appStatus.appMqStatus};
rootRight.children.push(newnode);
root.children.push(newnode);
newnode = {"name":"Haproxy","value":appStatus.appHaproxyStatus};
rootRight.children.push(newnode);
root.children.push(newnode);
var nodesRight = cluster.nodes(rootRight);
maxScaleX = d3.max(nodesRight,function(d){return d.x;});
for (var j = 0; j & nodesRight. j++) {
var node = nodesRight[j];
node.right =
nodePositionDictionary[node.name + (node.parent?node.parent.name:"") + node.pos] =
newnode = {"name":"RT","value":dymicInfo.rt};
rootLeft.children.push(newnode);
root.children.push(newnode);
newnode = {"name":"TPS","value":dymicInfo.tps};
rootLeft.children.push(newnode);
root.children.push(newnode);
var cpu =Math.floor(dymicInfo.cpu*100)
newnode = {"name":"CPU","value":cpu+"%"};
rootLeft.children.push(newnode);
root.children.push(newnode);
var mem =Math.floor(dymicInfo.mem*100)
newnode = {"name":"MEM","value":mem+"%"};
rootLeft.children.push(newnode);
root.children.push(newnode);
newnode = {"name":"LOAD","value":"10"};
rootLeft.children.push(newnode);
root.children.push(newnode);
newnode = {"name":"硬盘","value":dymicInfo.disk+"%"};
rootLeft.children.push(newnode);
root.children.push(newnode);
var switchPercent =Math.floor(dymicInfo.switchPercent*100)
newnode = {"name":"机柜","value":switchPercent+"%"};
rootLeft.children.push(newnode);
root.children.push(newnode);
var machineRoomPercent =Math.floor(dymicInfo.machineRoomPercent*100)
newnode = {"name":"机房","value":machineRoomPercent+"%"};
rootLeft.children.push(newnode);
root.children.push(newnode);
var nodesLeft = cluster.nodes(rootLeft);
var maxLeft = d3.max(nodesLeft,function(d){return d.x;});
console.log(maxLeft);
if(maxLeft&maxScaleX)
maxScaleX = maxL
for (var j = 0; j & nodesLeft. j++) {
var node = nodesLeft[j];
node.right =
nodePositionDictionary[node.name + (node.parent?node.parent.name:"")
+ node.pos] =
var svg = d3.select("#metrics").append("svg")
.attr("width", width+margin.left+margin.right)
.attr("height", height+margin.top+margin.bottom)
.append("g")
.attr("transform", "translate(" + margin.left + ",0)");
addSymbol(svg);
basicInfo = eval(basicInfo);
var basicInfoJson = [];
newnode = {"name":"英文名","value":basicInfo.appName};
basicInfoJson.push(newnode);
newnode = {"name":"部门","value":basicInfo.departmentName};
basicInfoJson.push(newnode);
newnode = {"name":"业务域","value":basicInfo.businessName};
basicInfoJson.push(newnode);
newnode = {"name":"负责人","value":basicInfo.connectPerson};
basicInfoJson.push(newnode);
newnode = {"name":"等 级","value":basicInfo.appLevel+"级"};
basicInfoJson.push(newnode);
newnode = {"name":"服务数","value":basicInfo.serviceNum};
basicInfoJson.push(newnode);
newnode = {"name":"机房数","value":basicInfo.machineRoomNum};
basicInfoJson.push(newnode);
newnode = {"name":"机器数","value":basicInfo.machineNum};
basicInfoJson.push(newnode);
// manually create nodes with their positions instead of doing cluster.nodes because
// i want them to be drawn left and right
var nodes = [];
updateNodePositions(root);
var diagonalRight = d3.svg.diagonal().projection(function(d) { return [d.y, d.x]; });
var diagonalLeft = d3.svg.diagonal().projection(function(d) { return [-d.y, d.x]; });
var links = cluster.links(nodes);
var link = svg.append("g")
.attr("transform", "translate(" + width/2+ "," + 0+ ")")
.selectAll(".link")
.data(links)
.enter().append("path")
.attr("stroke",function(d){return d.target.})
.attr("stroke-width", 2)
.attr("fill", "none")
.attr("d", function(d){
return d.target.right || d.source.right?diagonalRight(d):diagonalLeft(d);
var nodeEnter =svg.append("g")
.attr("transform", "translate(" + width/2+ "," + 0+ ")")
.selectAll(".node")
.data(nodes)
console.log(nodeEnter);
var node = nodeEnter.append("circle")
.attr("class", "node")
.attr("r", 25)
.attr("cx",function(d) {
if((d.right==null)||(d.right)){
return d.y;
return -d.y;
.attr("cy",function(d) { return d.x;})
.style("display", function(d) {
if (d.pos == 'mid') {
return 'none';
.style("fill", function(d) {
if(d.right==true){
if(d.value=="1"){
//return "#FF0000"; //右边颜色
return "red";
// 报警颜色
return "green"; // 正常颜色
if(d.name=="TPS" ||
d.name=="RT"){
return "#E6E6E6";
}else if(d.name=="CPU" ||
d.name=="MEM"){
return "#E6E6E6";
}else if(d.name=="入带宽" ||
d.name=="出带宽"){
return "#E6E6E6";
return "#E6E6E6";
.on("click", function(d){
showDetailInfo(d);
var textn1 = nodeEnter.append("text")
.attr("x",function(d) { if((d.right==null)||(d.right)){
return d.y;
return -d.y;
.attr("y",function(d) {
if(d.right==false){
return d.x-4;
return d.x+10
.text(function(d) {
return d.})
.style("display", function(d) {
if (d.pos == 'mid') {
return 'none';
.style('cursor', 'pointer')
.attr("text-anchor", function(d) {
return "middle";
.on("click", function(d){
showDetailInfo(d);
var textn2 = nodeEnter.append("text")
.attr("x",function(d) { if((d.right==null)||(d.right)){
return d.y;
return -d.y;
.attr("y",function(d) {
if(d.right==false){
return d.x+14;
return d.x+10
.text(function(d) {
console.log(d);
if(d.right==true){
return "";
.style("display", function(d) {
if (d.pos == 'mid') {
return 'none';
.attr("text-anchor", function(d) {
return "middle";
var centerN
for(var i=0;i&nodes.i++){
var nodet=nodes[i];
if(nodet.pos=='mid'){
centerNode =
svg.append("use")
.attr("xlink:href", "#tableSymbol")
.attr("x",centerNode.y+width/2-110)
.attr("y",centerNode.x-112.5);
svg.append("text")
.attr("x",centerNode.y+width/2)
.attr("y",centerNode.x-112.5+17)
.attr("text-anchor","middle")
.text(basicInfo.appChnName);
for(var i=0;i&basicInfoJson.i++){
svg.append("use")
.attr("xlink:href", "#columnSymbol")
.attr("x",centerNode.y+width/2-110)
.attr("y",centerNode.x-(112.5-(i+1)*25));
svg.append("text")
.attr("x",centerNode.y+width/2-110)
.attr("y",centerNode.x-(112.5-(i+1)*25)+17)
.attr("text-anchor","left")
.text("  "+basicInfoJson[i].name+" : "+basicInfoJson[i].value);
svg.append("use")
.attr("xlink:href", "#columnSymbol")
.attr("x",centerNode.y+width/2-110)
.attr("y",centerNode.x-(112.5-(i+1)*25));
svg.append("text")
.attr("x",centerNode.y+width/2-110)
.attr("y",centerNode.x-(112.5-(i+1)*25)+17)
.attr("text-anchor","left")
.text("  "+basicInfoJson[i].value);
// 删除不显示的图例
var us = svg.selectAll("use");
us[0].forEach(function(o) {
if (o.style['display'] == 'none') {
o.remove();
function updateNodePositions(n){
var nodePosition = nodePositionDictionary[n.name + (n.parent?n.parent.name:"") + n.pos];
if(nodePosition){
n.x = nodePosition.x;
n.y = nodePosition.y;
n.depth = nodePosition.
nodes.push(n);
for(var i=0; i& n.children.i++)
var node = n.children[i];
node.parent =
nodes.push(node);
var childNodePosition = nodePositionDictionary[node.name + (node.parent?node.parent.name:"") + node.pos];
if(childNodePosition){
node.x = childNodePosition.x;
node.y = childNodePosition.y;
node.depth = childNodePosition.
node.right = childNodePosition.
if(node.name=="TPS" ||
node.name=="RT"){
node.fillcolor="#E6E6E6";
}else if(node.name=="CPU" ||
node.name=="MEM"){
node.fillcolor="#E6E6E6";
}else if(node.name=="入带宽" ||
node.name=="出带宽"){
node.fillcolor="#E6E6E6";
node.fillcolor="#E6E6E6";
if(node.children){
updateNodePositions(node);
function showDetailInfo(d) {
console.log(d);
if (d.name == '影响') {
window.open(getContextPath() +'/smAllImpact/app/'+ appId);
} else if (d.name == '血缘') {
window.open(getContextPath() +'/smAllLineage/app/'+ appId);
} else if (d.name == '同服务器') {
window.open(getContextPath() +'/server/index?sapp='+ appId);
} else if (d.name == '同机柜') {
window.open(getContextPath() +'/rack/index?sapp='+ appId);
} else if (d.name == '数据库') {
window.open(getContextPath() +'/db/index?sapp='+ appId);
} else if (d.name == 'Redis') {
window.open(getContextPath() +'/redis/index?sapp='+ appId);
} else if (d.name == 'MQ') {
window.open(getContextPath() +'/mq/index?sapp='+ appId);
} else if (d.name == 'Haproxy') {
window.open(getContextPath() +'/haproxy/index');
function addSymbol(svg) {
var tableSymbol = svg.append("symbol").attr('id', 'tableSymbol');
tableSymbol.append("rect")
.attr('x', 0)
.attr('y', 0)
.attr('width', '220')
.attr('height', '25')
.attr("fill", "#eeeeee")
.attr("fill-opacity", 1)
.attr("stroke-width", 0.2)
.attr("stroke", "#000000");
svg.append("defs").append("filter")
.attr("id", "clippy")
.attr("x", "0")
.attr("y", "1")
.attr("height", "18")
.attr("width","202")
.append("feColorMatrix")
.attr("type", "identity");
var columnSymbol = svg.append("symbol").attr('id', 'columnSymbol');
columnSymbol.append("rect")
.attr('x', 0)
.attr('y', 0)
.attr('width', '220')
.attr('height', '25')
.attr("fill", "#ffffff")
.attr("fill-opacity", 1)
.attr("stroke-width", 0.2)
.attr("stroke", "#000000");
这里可以参考对应d3js的Concept network browser第一个js游戏,本来想要做得漂漂亮亮的,可是到后来已经昏头昏脑了,先就这样吧,代码不多,直接贴上来好了,
jquery请自行下载
&!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&
&title& 连连看 &/title&
&meta name="Generator" content="EditPlus"&
&meta name="Author" content=""&
&meta name="Keywords" content=""&
&meta name="Description" content=""&
&style type="text/css"&
#board{width:<span style="background-color: #f5f5f5; color: #px; height:<span style="background-color: #f5f5f5; color: #px; margin: 30px auto 0px; overflow: hidden; position: relative; background-color: #999999;}
#board span{display: block; position: absolute; width: 30px; height: 30px; }
&div id="board" &
&script type="text/javascript" src="jquery-1.10.2.js"&&/script&
type="text/javascript" &
$(function(){
var cont=$("#board");
var colors=["#ff0000","#00ff00","#0000ff","#ffcc33","#000000","#00ffcc","#ffffff"];
var pos=[];
var click=0;
var firstS
var arr=[];
arr=[0,0,0,0,0,0,0,0];
pos.push(arr);
for(var i=0;i&8;i++){
new creSpan(i,cont,0,i*40,colors[6],0);
for(var i=1;i&=6;i++){
m=new creSpan(i,cont,i*40,0,"#ffffff");
for(var j=0;j&6;j++){
var color=Math.floor(Math.random()*6);
new creSpan(i,cont,i*40,(j+1)*40,colors[color],(color+1));
arr.push(1);
m=new creSpan(i,cont,i*40,(j+1)*40,"#ffffff",0);
arr.push(0);
pos.push(arr);
for(var i=0;i&8;i++){
m=new creSpan(i,cont,7*40,i*40,"#ffffff",0);
arr=[0,0,0,0,0,0,0,0];
pos.push(arr);
function clear(c1,c2,x,y){
if(c1!=null)c1.style.background="#ffffff";
if(c2!=null){
c2.style.background="#ffffff";
pos[x-1][y-1]=0;
pos[fx-1][fy-1]=0;
$.each($("#board span"),function(index,mSpan){
$(this).click(function(){
var x=Math.floor(index/8);
var y=Math.floor(index%8);
if(click==0){
firstSpan=mS
if(firstSpan.id!=mSpan.id||(x==fx&&fy==y)){
clear(null,null,0,0);
var col=6;
var row=6;
for(var i=0;i&row+2;i++){
var step=i-x&0?1:-1;
var count=0;
for(var j=x;j!=i;j+=step){
count+=pos[j][y];
step=y&fy?-1:1;
for(j=y;j!=j+=step){
count+=pos[i][j];
step=i&fx?-1:1;
for(j=i;j!=j+=step){
count+=pos[j][fy];
if(count==1){
clear(firstSpan,mSpan,x,y);
for(i=0;i&col+2;i++){
step=i-y&0?1:-1;
for(j=y;j!=i;j+=step){
count+=pos[x][j];
step=x&fx?-1:1;
for(j=x;j!=j+=step){
count+=pos[i][j];
step=i&fy?1:-1;
for(j=i;j!=j+=step){
count+=pos[fx][j];
if(count==1){
clear(firstSpan,mSpan,x,y);
clear(null,null,0,0);
function creSpan(n,cont,mtop,mleft,mcolor,idstr){
mSpan=document.createElement("span");
cont[0].appendChild(mSpan);
with(mSpan.style){
top=mtop+"px";
left=mleft+"px";
background=
阅读(...) 评论()

我要回帖

更多关于 怎么更改微信登录密码 的文章

 

随机推荐