-
Notifications
You must be signed in to change notification settings - Fork 0
/
jielong.html
209 lines (176 loc) · 5.58 KB
/
jielong.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
<!DOCTYPE html>
<html>
<head>
<title>中华成语宝库-成语接龙</title>
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="all" />
<!-- js -->
<script src="js/jquery.min.js"></script>
<!-- //js -->
<!-- for-mobile-apps -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="成语" content="成语" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false);
function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- //for-mobile-apps -->
<!-- start-smoth-scrolling -->
<script type="text/javascript" src="js/move-top.js"></script>
<script type="text/javascript" src="js/easing.js"></script>
<script type="text/javascript">
function getUrlParam(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
var r = decodeURI(window.location.search).substr(1).match(reg); //匹配目标参数
if (r != null) return unescape(r[2]); return null; //返回参数值
}
jQuery(document).ready(function($) {
$(".scroll").click(function(event){
event.preventDefault();
$('html,body').animate({scrollTop:$(this.hash).offset().top},1000);
});
$("#jielongtitle").hide();
$("#jielongsubmit").on("click",function(){
$.ajax({
url:"jielong.php?start="+$("#longtou").val(),
method: 'GET',
success:function(data,status){
$("#jielongp").html(data);
},
beforeSend:function(){
$("#jielongtitle").show();
$("#jielongp").html("正在生成,请等待片刻");
}
});
return false;
});
var cy_query=getUrlParam('query');
if(cy_query!=null){
$("#longtou").val(cy_query);
$("#jielongsubmit").click();
}
});
</script>
<!-- start-smoth-scrolling -->
</head>
<body>
<!-- header -->
<div class="header">
<div class="container">
<div class="header-info">
<div class="logo">
<a href="index.html"><img src="images/logo.png" alt=" " /></a>
</div>
<div class="logo-right">
<span class="menu"><img src="images/menu.png" alt=" "/></span>
<ul class="nav1">
<li ><a href="index.html">首页</a></li>
<li class="cap"><a href="jielong.html">成语接龙</a></li>
<li><a href="chengyu.html">成语释义</a></li>
<li ><a href="about.html">关于本站</a></li>
<li><a href="lucky.php">试试手气</a></li>
</ul>
</div>
<div class="clearfix"> </div>
<!-- script for menu -->
<script>
$( "span.menu" ).click(function() {
$( "ul.nav1" ).slideToggle( 300, function() {
// Animation complete.
});
});
</script>
<!-- //script for menu -->
</div>
</div>
</div>
<!-- header -->
<!-- articles -->
<div class="content" >
<div class="container">
<div class="content-text">
<div class="contact-left1" style="width:100%" >
<h3>成语接龙<span>采用顺接规则,下一个词的第一个字是当前词的最后一个字<span/></h3>
<div class="in-left">
<form>
<input type="text" placeholder="在此输入第一个成语,提交后请稍等片刻" required=" " id="longtou">
</form>
</div>
<div class="in-right">
<form>
<input type="submit" value="确定" id="jielongsubmit" >
</form>
</div>
<div class="clearfix"> </div>
</div>
<div class="border">
<p>a</p>
</div>
<div class="content-info">
<h2 id="jielongtitle">接龙结果</h2>
<p id="jielongp"> </p>
</div>
<link rel="stylesheet" href="css/swipebox.css">
<script src="js/jquery.swipebox.min.js"></script>
<script type="text/javascript">
jQuery(function($) {
$(".swipebox").swipebox();
});
</script>
<!-- Portfolio Ends Here -->
<script type="text/javascript" src="js/jquery.mixitup.min.js"></script>
<script type="text/javascript">
$(function () {
var filterList = {
init: function () {
// MixItUp plugin
// http://mixitup.io
$('#portfoliolist').mixitup({
targetSelector: '.portfolio',
filterSelector: '.filter',
effects: ['fade'],
easing: 'snap',
// call the hover effect
onMixEnd: filterList.hoverEffect()
});
},
hoverEffect: function () {
// Simple parallax effect
$('#portfoliolist .portfolio').hover(
function () {
$(this).find('.label').stop().animate({bottom: 0}, 200, 'easeOutQuad');
$(this).find('img').stop().animate({top: -30}, 500, 'easeOutQuad');
},
function () {
$(this).find('.label').stop().animate({bottom: -40}, 200, 'easeInQuad');
$(this).find('img').stop().animate({top: 0}, 300, 'easeOutQuad');
}
);
}
};
// Run the show!
filterList.init();
});
</script>
</div>
<div class="clearfix"> </div>
</div>
</div>
</div>
<!-- //articles -->
<!-- here stars scrolling icon -->
<script type="text/javascript">
$(document).ready(function() {
/*
var defaults = {
containerID: 'toTop', // fading element id
containerHoverID: 'toTopHover', // fading element hover id
scrollSpeed: 1200,
easingType: 'linear'
};
*/
$().UItoTop({ easingType: 'easeOutQuart' });
});
</script>
<!-- //here ends scrolling icon -->
</body>
</html>