项目资源文件
This commit is contained in:
parent
a2081cd4f9
commit
408629ae4a
Binary file not shown.
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,513 @@
|
||||||
|
/*
|
||||||
|
原著: D.Young Github:https://github.com/5iux/5iux.github.io
|
||||||
|
二开: LyLme Github:https://github.com/lylme/lylme_spage
|
||||||
|
*/
|
||||||
|
.navbar .navbar-expand-lg .navbar-light .fixed-top{position: absolute; z-index: 10000;}
|
||||||
|
.bottom-cover{ background-image: linear-gradient(rgba(255, 255, 255, 0) 0%, rgb(244 248 251 / 0.6) 50%, rgb(244 248 251) 100%);}
|
||||||
|
.icp {
|
||||||
|
font-size: 12px;
|
||||||
|
color: #bbb;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
#show_date {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 16px;
|
||||||
|
color: #fff;
|
||||||
|
font-weight: bold;
|
||||||
|
margin: 10px;
|
||||||
|
}
|
||||||
|
.wztj{
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
.navbar-light .navbar-toggler {
|
||||||
|
color: #fff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face { font-family: "Micro"; src: url('MicroExtendFLF.ttf'); }
|
||||||
|
|
||||||
|
|
||||||
|
#show_time {
|
||||||
|
font-family: "Micro";
|
||||||
|
text-align: center;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 30px;
|
||||||
|
color: #fff;
|
||||||
|
text-shadow: 1px 1px 2px #000;}
|
||||||
|
p.content {
|
||||||
|
|
||||||
|
text-align: center;
|
||||||
|
padding: 5px 30px;
|
||||||
|
border-radius: 10px;
|
||||||
|
font-size: 12px;
|
||||||
|
color: #fff;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
::-webkit-scrollbar {display:none}
|
||||||
|
.back-to {
|
||||||
|
bottom: 55px;
|
||||||
|
overflow: hidden;
|
||||||
|
position: fixed;
|
||||||
|
right: 10px;
|
||||||
|
width: 110px;
|
||||||
|
z-index: 999;
|
||||||
|
}
|
||||||
|
.back-to .back-top {
|
||||||
|
background: url("./images/top.png") no-repeat scroll 0 0 transparent;
|
||||||
|
display: block;
|
||||||
|
float: right;
|
||||||
|
height: 50px;
|
||||||
|
margin-left: 10px;
|
||||||
|
outline: 0 none;
|
||||||
|
text-indent: -9999em;
|
||||||
|
width: 50px;
|
||||||
|
}
|
||||||
|
.back-to .back-top:hover {
|
||||||
|
background-position: -50px 0
|
||||||
|
}
|
||||||
|
.mylist li.col-3 img {
|
||||||
|
display: block;
|
||||||
|
width: 45px;
|
||||||
|
height: 45px;
|
||||||
|
padding: 8px;
|
||||||
|
background: #fff;
|
||||||
|
border: 1px solid #eee;
|
||||||
|
border-radius: 10px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
h2.title {
|
||||||
|
text-align:center;
|
||||||
|
color:#fff;
|
||||||
|
font-size:36px;
|
||||||
|
font-weight:600;
|
||||||
|
text-shadow: 1px 1px 8px #504b4b;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
font-size:14px;
|
||||||
|
background:#f4f8fb;
|
||||||
|
overflow-x:hidden;
|
||||||
|
}
|
||||||
|
a {
|
||||||
|
text-decoration:none;
|
||||||
|
}
|
||||||
|
a:hover {
|
||||||
|
text-decoration:none;
|
||||||
|
}
|
||||||
|
svg.icon {
|
||||||
|
width:14px;
|
||||||
|
height:14px;
|
||||||
|
margin:0 5px 0 8px;
|
||||||
|
vertical-align:-0.15em;
|
||||||
|
fill:currentColor;
|
||||||
|
overflow:hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*menu*/
|
||||||
|
.navbar-light .navbar-nav .nav-link {
|
||||||
|
color:#fff !important;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
text-shadow:0px 1px 0px #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- search --- */
|
||||||
|
#search {
|
||||||
|
width:100%;
|
||||||
|
margin:0;
|
||||||
|
padding:0 0 10px;
|
||||||
|
position:relative;
|
||||||
|
z-index:2000;
|
||||||
|
border-radius:5px;
|
||||||
|
}
|
||||||
|
#search form {
|
||||||
|
position:relative;
|
||||||
|
margin-top:15px
|
||||||
|
}
|
||||||
|
#search-text {
|
||||||
|
width:100%;
|
||||||
|
height:50px;
|
||||||
|
line-height:50px;
|
||||||
|
text-indent:10px;
|
||||||
|
font-size:16px;
|
||||||
|
border-radius:10px;
|
||||||
|
background-color:#fff;
|
||||||
|
border: 1px solid #c4c7ce;
|
||||||
|
box-shadow:0 0.5rem 0.625rem #d4d4d44d;
|
||||||
|
transition:0.3s all linear;
|
||||||
|
padding-left:20px;
|
||||||
|
}
|
||||||
|
#search-text:focus {
|
||||||
|
border: 1px solid #4e6ef2;
|
||||||
|
}
|
||||||
|
#search-text:hover {
|
||||||
|
border: 1px solid #a7aab5;
|
||||||
|
}
|
||||||
|
#search button {
|
||||||
|
position:absolute;
|
||||||
|
top:0;
|
||||||
|
right:0;
|
||||||
|
background:none;
|
||||||
|
border:0;
|
||||||
|
border-radius:20px;
|
||||||
|
width:auto;
|
||||||
|
height:50px;
|
||||||
|
border-radius:0 10px 10px 0;
|
||||||
|
outline:none;
|
||||||
|
background-color:#4e6ef2;
|
||||||
|
}
|
||||||
|
#search button:hover {
|
||||||
|
cursor:pointer;
|
||||||
|
background-color:#4662d9;
|
||||||
|
}
|
||||||
|
#search button i {
|
||||||
|
color:#ddd;
|
||||||
|
font-size:18px
|
||||||
|
}
|
||||||
|
.search-group {
|
||||||
|
display:none;
|
||||||
|
padding-left:75px
|
||||||
|
}
|
||||||
|
.s-current .search-type {
|
||||||
|
padding-left:0;
|
||||||
|
display:block
|
||||||
|
}
|
||||||
|
.s-current {
|
||||||
|
display:block
|
||||||
|
}
|
||||||
|
#search-list {
|
||||||
|
position:relative;
|
||||||
|
overflow-x:auto;
|
||||||
|
}
|
||||||
|
#search-list::-webkit-scrollbar {
|
||||||
|
display:none;
|
||||||
|
}
|
||||||
|
.s-type {
|
||||||
|
position:absolute;
|
||||||
|
top:0;
|
||||||
|
left:0;
|
||||||
|
z-index:13;
|
||||||
|
width:75px
|
||||||
|
}
|
||||||
|
.s-type:hover {
|
||||||
|
height:auto
|
||||||
|
}
|
||||||
|
.s-type>span {
|
||||||
|
display:block;
|
||||||
|
height:31px;
|
||||||
|
width:75px
|
||||||
|
}
|
||||||
|
.s-type-list {
|
||||||
|
display:none;
|
||||||
|
position:absolute;
|
||||||
|
top:31px;
|
||||||
|
padding:9pt 0;
|
||||||
|
width:70px;
|
||||||
|
background:#fff;
|
||||||
|
border-radius:5px;
|
||||||
|
box-shadow:0 9px 20px rgba(0,0,0,.16)
|
||||||
|
}
|
||||||
|
.s-type-list:before {
|
||||||
|
position:absolute;
|
||||||
|
top:-1pc;
|
||||||
|
left:20px;
|
||||||
|
content:'';
|
||||||
|
display:block;
|
||||||
|
width:0;
|
||||||
|
height:0;
|
||||||
|
border:10px solid transparent;
|
||||||
|
border-bottom-color:#fff
|
||||||
|
}
|
||||||
|
.s-type-list label {
|
||||||
|
display:block;
|
||||||
|
font-size:15px;
|
||||||
|
text-align:center;
|
||||||
|
font-weight:normal;
|
||||||
|
margin-bottom:0;
|
||||||
|
padding:2px 0;
|
||||||
|
cursor:pointer;
|
||||||
|
transition:.3s
|
||||||
|
}
|
||||||
|
.s-type-list label:hover {
|
||||||
|
background:rgba(136,136,136,.1)
|
||||||
|
}
|
||||||
|
.s-type-list .tile-lg {
|
||||||
|
color:#fff;
|
||||||
|
width:3pc;
|
||||||
|
height:3pc;
|
||||||
|
font-size:1.25rem;
|
||||||
|
line-height:3rem;
|
||||||
|
border-radius:.3rem;
|
||||||
|
display:block;
|
||||||
|
margin:auto
|
||||||
|
}
|
||||||
|
.s-type:hover .s-type-list {
|
||||||
|
display:block
|
||||||
|
}
|
||||||
|
.type-text {
|
||||||
|
position:absolute;
|
||||||
|
left:0;
|
||||||
|
width:75px;
|
||||||
|
padding-left:9pt;
|
||||||
|
font-size:1pc;
|
||||||
|
line-height:31px
|
||||||
|
}
|
||||||
|
/*.type-text:after {
|
||||||
|
content:"\f105";
|
||||||
|
font-family:FontAwesome;
|
||||||
|
margin:0 0 0 15px
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
.search-type {
|
||||||
|
white-space:nowrap;
|
||||||
|
margin:0
|
||||||
|
}
|
||||||
|
.search-type label {
|
||||||
|
margin:0
|
||||||
|
}
|
||||||
|
.search-type li {
|
||||||
|
margin-bottom:10px;
|
||||||
|
display:inline-block;
|
||||||
|
background:#ffffffAD !important;
|
||||||
|
background:rgba(255,255,255,70%);
|
||||||
|
border-radius:10px;
|
||||||
|
}
|
||||||
|
.search-type li label {
|
||||||
|
display:inline-block;
|
||||||
|
padding:0 11px;
|
||||||
|
font-size:14px;
|
||||||
|
border-radius:3px 3px 0 0;
|
||||||
|
cursor:pointer
|
||||||
|
}
|
||||||
|
.search-type input:checked+label,.search-type input:hover+label {
|
||||||
|
background-color:#fff;
|
||||||
|
height:50px;
|
||||||
|
border-radius:10px;
|
||||||
|
}
|
||||||
|
#search-text::-webkit-input-placeholder {
|
||||||
|
color:#bbb;
|
||||||
|
}
|
||||||
|
#word {
|
||||||
|
position:absolute;
|
||||||
|
list-style:none;
|
||||||
|
top:55px;
|
||||||
|
left:0px;
|
||||||
|
width:100%;
|
||||||
|
background:rgba(259,259,259,0.9);
|
||||||
|
border-radius:5px;
|
||||||
|
z-index:20000;
|
||||||
|
padding:15px 10px;
|
||||||
|
box-shadow:0 0 10px #aaa;
|
||||||
|
}
|
||||||
|
#word li {
|
||||||
|
height:35px;
|
||||||
|
padding:0 5px;
|
||||||
|
text-indent:30px;
|
||||||
|
background:url(sou.svg) no-repeat 5px;
|
||||||
|
background-size:20px;
|
||||||
|
line-height:35px;
|
||||||
|
cursor:pointer;
|
||||||
|
font-size:16px;
|
||||||
|
border-radius:5px;
|
||||||
|
}
|
||||||
|
#word li:hover {
|
||||||
|
background-color:#ddd;
|
||||||
|
}
|
||||||
|
.set-check {
|
||||||
|
margin-top:3px;
|
||||||
|
font-size:9pt
|
||||||
|
}
|
||||||
|
.set-check label {
|
||||||
|
margin-left:3px
|
||||||
|
}
|
||||||
|
.set-check input,.set-check label {
|
||||||
|
opacity:0;
|
||||||
|
transition:all .3s ease
|
||||||
|
}
|
||||||
|
.search-type li {
|
||||||
|
height:50px;
|
||||||
|
line-height:50px;
|
||||||
|
list-style:none;
|
||||||
|
display:inline-block;
|
||||||
|
border-radius:10px;
|
||||||
|
}
|
||||||
|
.mylist {
|
||||||
|
list-style:none;
|
||||||
|
padding:10px 20px;
|
||||||
|
position:relative;
|
||||||
|
z-index:1000;
|
||||||
|
margin:20px 0;
|
||||||
|
border-radius:15px;
|
||||||
|
background:#fff;
|
||||||
|
box-shadow:0 0.5rem 0.625rem #d4d4d44d
|
||||||
|
}
|
||||||
|
.mylist li.col-3 {
|
||||||
|
width:100px;
|
||||||
|
transition:0.3s all linear;
|
||||||
|
font-size:14px;
|
||||||
|
overflow:hidden;
|
||||||
|
padding:10px 0;
|
||||||
|
border-radius:10px;
|
||||||
|
}
|
||||||
|
.mylist li.col-3 svg {
|
||||||
|
display:block;
|
||||||
|
width:45px;
|
||||||
|
height:45px;
|
||||||
|
padding:8px;
|
||||||
|
background:#fff;
|
||||||
|
border:1px solid #eee;
|
||||||
|
border-radius:10px;
|
||||||
|
margin:0 auto;
|
||||||
|
}
|
||||||
|
.mylist li.col-3:hover {
|
||||||
|
background:#eee;
|
||||||
|
}
|
||||||
|
.mylist li.col-3 span {
|
||||||
|
width:100%;
|
||||||
|
display:block;
|
||||||
|
height:26px;
|
||||||
|
line-height:26px;
|
||||||
|
text-align:center;
|
||||||
|
font-size:13px;
|
||||||
|
}
|
||||||
|
.mylist li a {
|
||||||
|
color:#555;
|
||||||
|
display:block;
|
||||||
|
}
|
||||||
|
.mylist li.title {
|
||||||
|
width:100%;
|
||||||
|
min-width:auto;
|
||||||
|
margin:0;
|
||||||
|
height:35px;
|
||||||
|
font-size:16px;
|
||||||
|
line-height:33px;
|
||||||
|
padding:0 20px 0 10px;
|
||||||
|
border-bottom:1px solid #eee;
|
||||||
|
margin-bottom:10px;
|
||||||
|
}
|
||||||
|
.banner-video {
|
||||||
|
position:absolute;
|
||||||
|
width:100%;
|
||||||
|
overflow:hidden;
|
||||||
|
left:0;
|
||||||
|
top:0;
|
||||||
|
height: 100vh;
|
||||||
|
}
|
||||||
|
.banner-video video {
|
||||||
|
width:2048px;
|
||||||
|
float:left;
|
||||||
|
}
|
||||||
|
.banner-video img {
|
||||||
|
object-fit: cover;
|
||||||
|
width: 100%;
|
||||||
|
height: 100vh;
|
||||||
|
}
|
||||||
|
.bottom-cover {
|
||||||
|
width:100%;
|
||||||
|
height:50%;
|
||||||
|
position:absolute;
|
||||||
|
bottom:-1px;
|
||||||
|
z-index:10;
|
||||||
|
}
|
||||||
|
@media screen and (min-width:1200px) {
|
||||||
|
.mylist li.col-3 {
|
||||||
|
min-width:132px;
|
||||||
|
}
|
||||||
|
}@media screen and (min-width:992px) and (max-width:1200px) {
|
||||||
|
.mylist li.col-3 {
|
||||||
|
min-width:110px;
|
||||||
|
}
|
||||||
|
}@media screen and (max-width:992px) {
|
||||||
|
#he-plugin-simple {
|
||||||
|
display:none !important;
|
||||||
|
}
|
||||||
|
.banner-video video {
|
||||||
|
width:1200px;
|
||||||
|
}
|
||||||
|
.banner-video img {
|
||||||
|
object-fit: cover;
|
||||||
|
width: 100%;
|
||||||
|
height: 100vh;
|
||||||
|
|
||||||
|
}
|
||||||
|
.search-group {
|
||||||
|
padding-left:0px;
|
||||||
|
}
|
||||||
|
div#navbarsExample05 {
|
||||||
|
background:rgba(0,0,0,0.8);
|
||||||
|
padding:10px 30px;
|
||||||
|
border-radius:20px;
|
||||||
|
}
|
||||||
|
}@media screen and (max-width:767px) {
|
||||||
|
.banner-video video {
|
||||||
|
width:960px;
|
||||||
|
}
|
||||||
|
.banner-video img {
|
||||||
|
object-fit: cover;
|
||||||
|
width: 100%;
|
||||||
|
height: 100vh;
|
||||||
|
}
|
||||||
|
.s-type-list label {
|
||||||
|
padding:5px 0
|
||||||
|
}
|
||||||
|
.search-list {
|
||||||
|
height:30px;
|
||||||
|
overflow-y:hidden;
|
||||||
|
white-space:nowrap
|
||||||
|
}
|
||||||
|
.search-group {
|
||||||
|
padding-left:0px;
|
||||||
|
}
|
||||||
|
.mylist {
|
||||||
|
border-radius:8px;
|
||||||
|
}
|
||||||
|
.mylist li.col-3 {
|
||||||
|
margin:5px 0 5px;
|
||||||
|
}
|
||||||
|
.mylist li.col-3 svg {
|
||||||
|
width:30px;
|
||||||
|
height:30px;
|
||||||
|
padding:5px;
|
||||||
|
border-radius:5px;
|
||||||
|
}
|
||||||
|
.mylist li.col-3 span {
|
||||||
|
font-size:12px;
|
||||||
|
}
|
||||||
|
}@media screen and (max-width:560px) {
|
||||||
|
}.navbar-toggler svg {
|
||||||
|
width:24px;
|
||||||
|
height:24px;
|
||||||
|
}
|
||||||
|
.navbar-toggler .bi-list-nested {
|
||||||
|
display:none;
|
||||||
|
}
|
||||||
|
.navbar-toggler.collapsed .bi-list-nested {
|
||||||
|
display:block;
|
||||||
|
}
|
||||||
|
.navbar-toggler.collapsed .bi-x {
|
||||||
|
display:none;
|
||||||
|
}
|
||||||
|
.navbar-toggler .bi-x {
|
||||||
|
display:block;
|
||||||
|
}
|
||||||
|
#he-plugin-simple {
|
||||||
|
z-index:1000;
|
||||||
|
}
|
||||||
|
::-webkit-scrollbar {
|
||||||
|
width:8px;
|
||||||
|
height:8px;
|
||||||
|
border-radius:4px;
|
||||||
|
}
|
||||||
|
::-webkit-scrollbar-track {
|
||||||
|
background:#eee;
|
||||||
|
border-radius:0px;
|
||||||
|
}
|
||||||
|
::-webkit-scrollbar-thumb {
|
||||||
|
background:#ddd;
|
||||||
|
border-radius:0px;
|
||||||
|
}
|
||||||
|
::-webkit-scrollbar-thumb:hover {
|
||||||
|
background:#ccc;
|
||||||
|
}
|
||||||
|
::-webkit-scrollbar-corner {
|
||||||
|
background:#ddd;
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,21 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* 作者:LyLme
|
||||||
|
* 说明:用于获取Bing每日壁纸,以PHP文件返回图片
|
||||||
|
* 时间:2022-01-20
|
||||||
|
*/
|
||||||
|
|
||||||
|
$str=file_get_contents('http://cn.bing.com/HPImageArchive.aspx?idx=0&n=1');
|
||||||
|
if(preg_match("/<url>(.+?)<\/url>/ies",$str,$matches)){
|
||||||
|
$imgurl='http://cn.bing.com'.$matches[1];
|
||||||
|
}
|
||||||
|
if($imgurl){
|
||||||
|
header('Content-Type: image/JPEG');
|
||||||
|
@ob_end_clean();
|
||||||
|
@readfile($imgurl);
|
||||||
|
@flush(); @ob_flush();
|
||||||
|
exit();
|
||||||
|
}else{
|
||||||
|
exit('error');
|
||||||
|
}
|
||||||
|
?>
|
|
@ -0,0 +1,93 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* 描述:PHP获取bing每日壁纸CRON
|
||||||
|
* 请求方式:GET
|
||||||
|
* 示例:http://xxx.com/assets/img/cron.php?idx=2
|
||||||
|
* 参数:idx 值:0-7 0为今天,1为昨天,以此类推可以获取过去7天的壁纸
|
||||||
|
* 说明:将bing壁纸保存到当前目录/background.jpg文件
|
||||||
|
*/
|
||||||
|
if($_GET['idx']==null){
|
||||||
|
$str=file_get_contents('http://cn.bing.com/HPImageArchive.aspx?idx=0&n=1');
|
||||||
|
//
|
||||||
|
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$str=file_get_contents('http://cn.bing.com/HPImageArchive.aspx?idx='.$_GET['idx'].'&n=1');
|
||||||
|
}
|
||||||
|
|
||||||
|
if(preg_match("/<url>(.+?)<\/url>/ies",$str,$matches)){
|
||||||
|
|
||||||
|
if(preg_match("/<fullstartdate>(.+?)<\/fullstartdate>/ies",$str,$cdata)){
|
||||||
|
|
||||||
|
}
|
||||||
|
$crdate = date('Y年m月d日 H:i', strtotime($cdata[1]));
|
||||||
|
$imgurl = 'http://cn.bing.com'.$matches[1];
|
||||||
|
|
||||||
|
echo "壁纸地址:" . $imgurl."<br>";
|
||||||
|
echo "发布时间:" . $crdate."<br>";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 将bing每日壁纸保存到 当前目录/background.jpg
|
||||||
|
*/
|
||||||
|
function GrabImage($imgurl, $dir, $filename='/background.jpg'){
|
||||||
|
if(empty($imgurl)){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
$ext = strrchr($imgurl, '.');
|
||||||
|
if($ext == '.js' && $ext == ".html" && $ext == ".php"){
|
||||||
|
echo "Format not supported!";
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
$dir = realpath($dir);
|
||||||
|
|
||||||
|
|
||||||
|
$filename = $dir . $filename;
|
||||||
|
|
||||||
|
ob_start();
|
||||||
|
readfile($imgurl);
|
||||||
|
$img = ob_get_contents();
|
||||||
|
ob_end_clean();
|
||||||
|
$size = strlen($img);
|
||||||
|
|
||||||
|
$fp2 = fopen($filename , "w");
|
||||||
|
if(fwrite($fp2, $img)==true){
|
||||||
|
echo "壁纸大小:" . round($size / 1024) .'KB<br>';
|
||||||
|
|
||||||
|
echo "<p><font color='green'>成功:当前壁纸已与Bing同步!</font></p>";
|
||||||
|
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
echo "<p><font color='red'>错误: 保存文件 <b>". $filename."</b> 失败,请检查目录权限</font></p>";
|
||||||
|
|
||||||
|
}
|
||||||
|
fclose($fp2);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// echo "保存路径:" . $filename."<br>";
|
||||||
|
|
||||||
|
return $filename;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
GrabImage($imgurl,dirname(__FILE__))
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 返回bing每日壁纸
|
||||||
|
*/
|
||||||
|
// if($imgurl){
|
||||||
|
// header('Content-Type: image/JPEG');
|
||||||
|
// @ob_end_clean();
|
||||||
|
// @readfile($imgurl);
|
||||||
|
// @flush(); @ob_flush();
|
||||||
|
// exit();
|
||||||
|
// }else{
|
||||||
|
// exit('error');
|
||||||
|
// }
|
||||||
|
?>
|
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,83 @@
|
||||||
|
//天气插件
|
||||||
|
WIDGET={"CONFIG":{"modules":"12043","background":"5","tmpColor":"FFFFFF","tmpSize":"16","cityColor":"FFFFFF","citySize":"18","aqiColor":"FFFFFF","aqiSize":"16","weatherIconSize":"24","alertIconSize":"18","padding":"10px 10px 10px 10px","shadow":"0","language":"auto","fixed":"true","vertical":"center","horizontal":"center","right":"0","top":"50","key":"9d714f8dd6b94c7696f9cea8dc3ed1c5"}}
|
||||||
|
|
||||||
|
|
||||||
|
//输入框获取焦点
|
||||||
|
function FocusOnInput() {
|
||||||
|
document.getElementById("search-text").focus();
|
||||||
|
}
|
||||||
|
|
||||||
|
//关键词sug
|
||||||
|
$(function() {
|
||||||
|
//当键盘键被松开时发送Ajax获取数据
|
||||||
|
$('#search-text').keyup(function() {
|
||||||
|
var keywords = $(this).val();
|
||||||
|
if (keywords == '') { $('#word').hide(); return };
|
||||||
|
$.ajax({
|
||||||
|
url: 'https://suggestion.baidu.com/su?wd=' + keywords,
|
||||||
|
dataType: 'jsonp',
|
||||||
|
jsonp: 'cb', //回调函数的参数名(键值)key
|
||||||
|
// jsonpCallback: 'fun', //回调函数名(值) value
|
||||||
|
beforeSend: function() {
|
||||||
|
// $('#word').append('<li>正在加载。。。</li>');
|
||||||
|
},
|
||||||
|
success: function(data) {
|
||||||
|
$('#word').empty().show();
|
||||||
|
if (data.s == '') {
|
||||||
|
// $('#word').append('<div class="error">暂无 ' + keywords + ' 相关索引</div>');
|
||||||
|
$('#word').empty();
|
||||||
|
$('#word').hide();
|
||||||
|
}
|
||||||
|
$.each(data.s, function() {
|
||||||
|
$('#word').append('<li>' + this + '</li>');
|
||||||
|
})
|
||||||
|
},
|
||||||
|
error: function() {
|
||||||
|
$('#word').empty().show();
|
||||||
|
//$('#word').append('<div class="click_work">Fail "' + keywords + '"</div>');
|
||||||
|
$('#word').hide();
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
//点击搜索数据复制给搜索框
|
||||||
|
$(document).on('click', '#word li', function() {
|
||||||
|
var word = $(this).text();
|
||||||
|
$('#search-text').val(word);
|
||||||
|
$('#word').empty();
|
||||||
|
$('#word').hide();
|
||||||
|
//$("form").submit();
|
||||||
|
$('.submit').trigger('click');//触发搜索事件
|
||||||
|
})
|
||||||
|
$(document).on('click', '.container,.banner-video,nav', function() {
|
||||||
|
$('#word').empty();
|
||||||
|
$('#word').hide();
|
||||||
|
})
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
//显示时间
|
||||||
|
setInterval(function() {
|
||||||
|
var date = new Date();
|
||||||
|
var format = [
|
||||||
|
("0" + date.getHours()).substr(-2), ("0" + date.getMinutes()).substr(-2), ("0" + date
|
||||||
|
.getSeconds()).substr(-2)
|
||||||
|
].join(":");
|
||||||
|
|
||||||
|
document.getElementById("show_time").innerHTML = format;
|
||||||
|
}, 500);
|
||||||
|
|
||||||
|
//显示日期和星期
|
||||||
|
/*
|
||||||
|
setInterval("fun(show_date)",1);
|
||||||
|
function fun(timeID){
|
||||||
|
var date = new Date(); //创建对象
|
||||||
|
var y = date.getFullYear(); //获取年份
|
||||||
|
var m =date.getMonth()+1; //获取月份 返回0-11
|
||||||
|
var d = date.getDate(); // 获取日
|
||||||
|
var w = date.getDay(); //获取星期几 返回0-6 (0=星期天)
|
||||||
|
var ww = ' 星期'+'日一二三四五六'.charAt(new Date().getDay()) ;//星期几
|
||||||
|
|
||||||
|
document.getElementById(timeID.id).innerHTML = y+"年"+m+"月"+d+"日 "+ww;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue