Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在线算命 #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions 233.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="wsws.png" rel="shortcut icon" type="image/x-icon" />
<title>微笙无上_在线算命</title>

<script src="jiade.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="jiade.css" />

<!-- <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script> -->
<script src="jqueryjquery.js" type="text/javascript"></script>

</head>
<body>
<div id="wsws">
<a href="http://www.weisheng.cf" target="_blank"><div id="icoico">微笙无上首页<!-- <img style="height:60px" src="wsws.png" alt="微笙无上首页"/> --></div></a>
</div>
<hr />
<div id="shengri">
<span>输入您的生日吧:</span>
<input type="text" id="textboxnian" class="textbox" />
<span>年</span>
<input type="text" id="textboxyue" class="textbox" />
<span>月</span>
<input type="text" id="textboxri" class="textbox" />
<span>日</span>
<input type="button" id="hehehehe" onclick="meiranyong()" value="就这样吧!" />
</div>
<hr />
<div id="pailan">
<div class="pai" id="pai01" onclick="fanpai01()"> </div>
<div class="pai" id="pai02" onclick="fanpai02()"> </div>
<div class="pai" id="pai03" onclick="fanpai03()"> </div>
</div>
<br />
<hr />
<!-- <div id="dibulan">
<a href="http://www.weisheng.cf" target="_blank">微笙官网</a>
<a href=# target="_blank">校园门户</a>
<a href="https://www.weisheng.cf/games/" target="_blank">游戏库</a>
<a href="https://www.weisheng.cf/games/RandQAQ/" target="_blank">抽号鸭</a>
<a href="https://www.weisheng.cf/games/2048/play/" target="_blank">2048</a>
<a href="https://www.bilibili.com/" target="_blank">bilibili</a>
</div> -->
</body>
</html>
5 changes: 5 additions & 0 deletions V0.11.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
V0.11

功能调试而已

ZHkmy
5 changes: 5 additions & 0 deletions V1.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
V1.0



ZHkmy|Rockeey
Binary file added beijing.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
159 changes: 159 additions & 0 deletions jiade.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
body{
font-family: 微软雅黑;
background: url('beijing.jpg') 50% 30% no-repeat black;
background-size: 100% ;
}
/*
a:link { text-decoration: none;color: blue;}

a:active { text-decoration:blink;}
a:hover { text-decoration:underline;color: red;}
a:visited { text-decoration: none;color: gray;}
*/
span{
color: white;
}

#shengri{
background: rgba(255,255,255,0.2);
border-radius: 5px;
}

#hehehehe{
color: #0080ff;
background-color: white;
padding: 4px 12px;
cursor: url('55.ani'),pointer;
border-radius: 5px;
}
.textbox{
width: 50px;
border-radius: 5px;
}

div:hover{
/* background: #66CCFF; */
border:1px;
border-color: white;
}

#icoico{
text-indent: -9999999px;
background: url('wsws.png') no-repeat 50% 50%;
background-size: 50px auto;
height: 52px;
width: 52px;
margin: 10px;
border-radius: 50%;

border:3px;
border-style: solid;
/* border-color: #66FFCC; */
border-color: rgba(102,255,204,0.5);
}
#icoico:hover{
/* background: #66FFCC; */
border:3px;
border-style: solid;
/* border-color: #66CCFF; */
border-color: rgba(102,204,255,0.5);
transition: all .2s ease-in 0ms;
transform:rotate(3deg);
}

div.pai{
background: url('paimiana.jpg') no-repeat 50% 50%;
width: 264px;
height: 436px;
/* float: left; */
border-radius: 5%;
box-shadow: 2px 3px 20px 0px ;
margin: 10px;

display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
justify-content: center;
}


#pailan{
height: 450px;

display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
justify-content: space-between;
}
.pai:hover{

/* position:relative;
left:20px; */

/* background: url('neirong.jpg') no-repeat 50% 50%; */

box-shadow: 6px 8px 30px 0px ;
transition: all .3s ease-in 0ms;

transform: translate(-5px,-5px);
}

#dibulan{
background-color: saddlebrown;
/* display: auto; */
}




.haihai{
background: url('neirong.jpg') no-repeat 50% 50%;
width: 264px;
height: 436px;
/* float: left; */
border-radius: 5%;
box-shadow: 2px 3px 20px 0px ;
margin: 10px;

display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
justify-content: center;
}
.haihai:hover{
box-shadow: 6px 8px 30px 0px ;
transition: all .3s ease-in 0ms;

transform: translate(-5px,-5px);
}



/* .headd{
overflow: hidden;
display:inline;
width: 100px;
height: 23px;
float: left;
background: white;
font-size:18px;
font: 微软雅黑;
border:1px;
border-style: solid;
border-color: #66CCFF;
text-align:center;
} */
/* div.headf{
overflow: hidden;
display:inline;
width: 100%;
height: 20px;
background: rgba(102,204,255,0.5);
border: 1px;
border-style: solid;
border-color: #66CCFF;
margin: 5px;
} */
169 changes: 169 additions & 0 deletions jiade.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@

var future;

function meiranyong(){
// var nian=document.getElementById("pai01");

// var xingyun=Math.floor((Math.random()*100)+1);
// if(xingyun>=90){
// nian.innerHTML="§大吉§";
// }
// else nian.innerHTML="§小吉§"+xingyun;
//
// ji();
// $("#pai01").removeClass("pai");
// $("#pai01").addClass("haihai");

// randd(zpp);
ji();
zuoshi();

//disabled
$("#pailan").css("disabled","none");
}

var jishu;
var daji;
function ji(){
daji=Math.floor((Math.random()*100)+1);
panji();
}
function panji(){
// var yue=document.getElementById("pai02");

if(daji>=90){
future="<p style='color:red;'>§<br/>大吉<br/>§</p>";
}
else if((daji>=70)&&(daji<90)){
future="<p style='color:red;'>§<br/>中吉<br/>§</p>";
}
else if((daji>=50)&&(daji<70)){
future="<p style='color:red'>§<br/>小吉<br/>§</p>";
}
else if((daji>=30)&&(daji<50)){
future="<p>§<br/>中平<br/>§</p>";
}
else if((daji>=10)&&(daji<30)){
future="<p>§<br/> 凶 <br/>§</p>";
}
else if((daji>=0)&&(daji<10)){
future="<p>§<br/>大凶<br/>§</p>";
}

// var yue=document.getElementById("pai02");
// if(daji>=90){
// yue.innerHTML="<p>§大吉§</p>";
// }
// else if((daji>=70)&&(daji<90)){
// yue.innerHTML="<p>§中吉§</p>";
// }
// else if((daji>=50)&&(daji<70)){
// yue.innerHTML="<p>§小吉§</p>";
// }
// else if((daji>=30)&&(daji<50)){
// yue.innerHTML="<p>§中平§</p>";
// }
// else if((daji>=10)&&(daji<30)){
// yue.innerHTML="<p>§ 凶 §</p>";
// }
// else if((daji>=0)&&(daji<10)){
// yue.innerHTML="<p>§大凶§</p>";
// }
}

var
zzp=["翠叶残","上玉钩","挂玉钩","过橘洲","庭院虚","","","","","","","","","","","","",""],
zpp=["度春风","绿波间","忆潇湘","玉笙寒","倚阑干","思悠悠","锁重楼","雨中愁","接天流","恨春残","画堂前","凭朱栏","锦衾寒","入长安","满重湖","不可遮","已无花","鬓先华","楚天长","是归家",""],
pzz=["何限恨","云外信","春色暮","流水淡","闲院宇","晴日暖","香烬落","花淡薄","罗幌卷","","","","","","","",""],
zpz=["共憔悴","君莫怪","窗外雨","映枝转","","","","","","","","","","","","","",""],
zz=["菡萏","细雨","照壁","指点","东风","翠叶","暗想","咫尺","旧书","夜夜",""],
pp=["相思","伤心","山河","姑苏","倾城","韶光","阑干","悠悠","悠悠","芭蕉","征鸿","天涯","今朝","珠帘",""],
pz=["明月","携手","凝睇","回首","青鸟","流水","千载","菱蔓","画堂","青嶂",""],
zp=["玉笙","泪珠","绿波","江山","宫殿","藕花","莲叶","几时",""];

//-----作诗-----
var ifused=[];
var ifcnt=0;

function randd(t){
console.log(t);
var k,cnt = 0;
while(t[cnt] != ""){
cnt=cnt+1;
// console.log(cnt)
}
do{
k = Math.floor((Math.random()*100)+1)% cnt;
console.log(k);
}while(jQuery.inArray( t[k], ifused )!=-1);
ifused[ifcnt]=t[k];
ifcnt=ifcnt+1;
return t[k];
}

function zuoshi() {

var ri=document.getElementById("pai03");
console.log("faqqq");
// ri.innerHTML="摊破·浣溪沙"+"<br/>"+
// randd(zz)+randd(pp)+randd(zzp)+","
// +randd(pp)+randd(pz)+randd(zpp)+"。"+"<br/>"
// +randd(pz)+randd(pp)+randd(zpz)+","
// +randd(zpp)+"。"+"<br/>"
// //----------------
// +randd(zz)+randd(pp)+randd(zzp)+","
// +randd(pp)+randd(pz)+randd(zpp)+"。"+"<br/>"
// +randd(pz)+randd(zp)+randd(pzz)+","
// +randd(zpp)+"。"+"<br/>";

future=future+"摊破·浣溪沙"+"<br/>"+
randd(zz)+randd(pp)+randd(zzp)+","
+randd(pp)+randd(pz)+randd(zpp)+"。"+"<br/>"
+randd(pz)+randd(pp)+randd(zpz)+","
+randd(zpp)+"。"+"<br/>"
//----------------
+randd(zz)+randd(pp)+randd(zzp)+","
+randd(pp)+randd(pz)+randd(zpp)+"。"+"<br/>"
+randd(pz)+randd(zp)+randd(pzz)+","
+randd(zpp)+"。"+"<br/>";


ifused=[""];
}

function fanpai01(){
$("#pai01").removeClass("pai");
$("#pai01").addClass("haihai");
var nian=document.getElementById("pai01");
nian.innerHTML=future;
$("#pailan").css("disabled","disabled");
}
function fanpai02(){
$("#pai02").removeClass("pai");
$("#pai02").addClass("haihai");
var yue=document.getElementById("pai02");
yue.innerHTML=future;
$("#pailan").css("disabled","disabled");
}
function fanpai03(){
$("#pai03").removeClass("pai");
$("#pai03").addClass("haihai");
var ri=document.getElementById("pai03");
ri.innerHTML=future;
$("#pailan").css("disabled","disabled");
}




// $("button").click(function(){
// $("div").animate({background: url('neilong.jpg') no-repeat 50% 50%;});
// });
// $(".pai").click = function(){
// $('.pai').css({background: url('neilong.jpg') no-repeat 50% 50%;});
// };
// $(".pai").onclick = function(){
// $("button").click(function(){
//$('.pai').css({"background": "red"});
// $('#pai01').css("background","url(neilong.jpg)");
// };
Loading