no message
This commit is contained in:
@@ -0,0 +1,415 @@
|
||||
/*大屏*/
|
||||
*{
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box}
|
||||
*,body{padding:0px; margin:0px;color: #222;font-family: "微软雅黑";}
|
||||
html,body{
|
||||
background: url("../images/bg01.png") no-repeat;
|
||||
background-size: cover;
|
||||
font-size: .16rem;
|
||||
color: #ffffff;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.fl{
|
||||
float: left;
|
||||
}
|
||||
.fr{
|
||||
float: right;
|
||||
}
|
||||
ul,ol{
|
||||
list-style: none;
|
||||
}
|
||||
.allnav{
|
||||
height: 100%;
|
||||
}
|
||||
/*谷哥滚动条样式*/
|
||||
|
||||
::-webkit-scrollbar {width:5px;height:5px;position:absolute}
|
||||
::-webkit-scrollbar-thumb {background-color:#5bc0de}
|
||||
::-webkit-scrollbar-track {background-color:#ddd}
|
||||
|
||||
/***/
|
||||
.allnav{
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/*
|
||||
头部*/
|
||||
.header{
|
||||
width: 100%;
|
||||
height: 1.5rem;
|
||||
/*background: red;*/
|
||||
|
||||
}
|
||||
.header .header-left{
|
||||
width: 25%;
|
||||
height: 1.05rem;
|
||||
color: white;
|
||||
/* border: 1px solid green;*/
|
||||
text-align: center;
|
||||
line-height: 1.05rem;
|
||||
}
|
||||
.header .header-center{
|
||||
width: 50%;
|
||||
height: 1.05rem;
|
||||
/*border: 1px solid red;*/
|
||||
/* background: url("../images/head.gif") no-repeat;
|
||||
background-size: 100% 100%;*/
|
||||
position: relative;
|
||||
}
|
||||
.header .header-center .header-title{
|
||||
text-align: center;
|
||||
color: #ffffff;
|
||||
font-size: .4rem;
|
||||
text-shadow: 0 0 .3rem #00d8ff;
|
||||
line-height: 1.05rem;
|
||||
}
|
||||
.header .header-img{
|
||||
background: url("../images/head.gif") no-repeat center center;
|
||||
background-size: 100%;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
top: .4rem;
|
||||
}
|
||||
|
||||
.header .header-right{
|
||||
width: 25%;
|
||||
height: 1.05rem;
|
||||
/*border: 1px solid gold;*/
|
||||
}
|
||||
.header .header-bottom{
|
||||
width: calc(100% - .4rem);
|
||||
height: .16rem;
|
||||
background: url("../images/header.png") no-repeat;
|
||||
background-size: calc(100% - .2rem) 100%;
|
||||
padding: 0 .2rem;
|
||||
margin-left: .3rem;
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
内容*/
|
||||
.center{
|
||||
padding: .1rem .2rem .1rem .2rem;
|
||||
}
|
||||
.center .center-left{
|
||||
width: 25%;
|
||||
padding: .1rem;
|
||||
/* border: 1px solid red;*/
|
||||
|
||||
}
|
||||
.center .center-left .left-top{
|
||||
width: 100%;
|
||||
height: 3.2rem;
|
||||
margin-bottom: .4rem;
|
||||
/*background: url("../images/panel.png") no-repeat;
|
||||
background-size: 100% 100%;*/
|
||||
/*transform-style: preserve-3d;*/
|
||||
border: 0.01rem solid #217093;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.center .center-left .left-top h1{
|
||||
color: white;
|
||||
font-size: .4rem;
|
||||
transform: rotateX(0deg);
|
||||
/*display: flex;*/
|
||||
align-items: center;
|
||||
margin-bottom: 8px;
|
||||
position: relative;
|
||||
-webkit-transform-style: preserve-3d;
|
||||
-moz-transform-style: preserve-3d;
|
||||
-ms-transform-style: preserve-3d;
|
||||
transform-style: preserve-3d;
|
||||
transform-origin: 50% 50%;
|
||||
/*transform: rotateX(0deg);*/
|
||||
/*width: 100%;*/
|
||||
transition: transform 500ms cubic-bezier(0.15, 0.52, 0.5, 0.9) 0s;
|
||||
/*height: 24px;*/
|
||||
/*过渡效果*/
|
||||
transition: all 1s;
|
||||
}
|
||||
/*.center .center-left .left-top h1:hover{
|
||||
transform: rotateX(360deg);
|
||||
transition: all 2s;
|
||||
}*/
|
||||
|
||||
.title{
|
||||
width: 90%;
|
||||
height: 0.3rem;
|
||||
/* border: 1px solid gold;*/
|
||||
position: relative;
|
||||
top:.1rem;
|
||||
left: .25rem;
|
||||
color: white;
|
||||
padding-left: 0.12rem;
|
||||
line-height: 0.3rem;
|
||||
|
||||
}
|
||||
.title:before{
|
||||
width: 0.05rem;
|
||||
height: 0.25rem;
|
||||
top: 0.02rem;
|
||||
position: absolute;
|
||||
content: "";
|
||||
background: #59ebe8;
|
||||
border-radius: 0.02rem;
|
||||
left: 0;
|
||||
}
|
||||
.top-list p{
|
||||
font-size: .18rem;
|
||||
color: #029698;
|
||||
padding: .3rem;
|
||||
}
|
||||
.top-list li{
|
||||
float: left;
|
||||
font-size: .2rem;
|
||||
color: #ffffff;
|
||||
width: 50%;
|
||||
height: .4rem;
|
||||
line-height: .4rem;
|
||||
padding: .2rem;
|
||||
}
|
||||
|
||||
|
||||
.center .center-left .left-cen{
|
||||
width: 100%;
|
||||
height: 3.2rem;
|
||||
margin-bottom: .4rem;
|
||||
/*background: url("../images/panel.png") no-repeat;
|
||||
background-size: 100% 100%;*/
|
||||
border: 0.01rem solid #217093;
|
||||
}
|
||||
.center .center-left .left-cen .company{
|
||||
width: calc(100% - .2rem);
|
||||
height: calc(100% - .6rem);
|
||||
margin-left: .1rem;
|
||||
margin-top: .1rem;
|
||||
/*border: 1px solid red;*/
|
||||
padding: .2rem;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.center .center-left .left-cen .company li{
|
||||
color: white;
|
||||
height: .3rem;
|
||||
line-height: .3rem;
|
||||
}
|
||||
|
||||
|
||||
.center .center-left .left-bottom{
|
||||
width: 100%;
|
||||
height: 3.2rem;
|
||||
/*background: url("../images/panel.png") no-repeat;
|
||||
background-size: 100% 100%;*/
|
||||
border: 0.01rem solid #217093;
|
||||
}
|
||||
.center .center-left .bottom-b{
|
||||
width: calc(100% - 0.2rem);
|
||||
height: 2.6rem;
|
||||
margin-left: 0.1rem;
|
||||
margin-top: 0.1rem;
|
||||
}
|
||||
.center .center-cen{
|
||||
width: 50%;
|
||||
padding: .1rem;
|
||||
}
|
||||
.center .center-cen .cen-top{
|
||||
width: 100%;
|
||||
height: 6.8rem;
|
||||
/*background: url("../images/a.png") no-repeat;
|
||||
background-size: 100% 100%;*/
|
||||
border: 0.01rem solid #217093;
|
||||
margin-bottom: .4rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
|
||||
.center .center-cen .cen-top .top-title{
|
||||
position: absolute;
|
||||
width: 35%;
|
||||
height: 1.5rem;
|
||||
/*border: 1px solid red;*/
|
||||
left: .5rem;
|
||||
top:.5rem;
|
||||
}
|
||||
.center .center-cen .cen-top .top-title li{
|
||||
float: left;
|
||||
width: 50%;
|
||||
height: 1rem;
|
||||
/*border: 1px solid green;*/
|
||||
}
|
||||
.center .center-cen .cen-top .top-title li p,
|
||||
.center .center-cen .cen-top .top-title li span,
|
||||
.center .center-cen .cen-top .top-title li b{
|
||||
color: #ffffff;
|
||||
}
|
||||
.center .center-cen .cen-top .top-title li p{
|
||||
padding: .1rem;
|
||||
}
|
||||
.center .center-cen .cen-top .top-title li span{
|
||||
text-align: center;
|
||||
display: inline-block;
|
||||
width: .35rem;
|
||||
height: .45rem;
|
||||
background: #37a9ea;
|
||||
margin-left: .1rem;
|
||||
line-height: .4rem;
|
||||
font-size: .3rem;
|
||||
margin-top: .1rem;
|
||||
}
|
||||
.center .center-cen .cen-top .top-bottom{
|
||||
width: 100%;
|
||||
height: 4.8rem;
|
||||
/*border: 1px solid red;*/
|
||||
position: absolute;
|
||||
top:1.6rem;
|
||||
padding: .2rem;
|
||||
/*overflow: hidden;*/
|
||||
}
|
||||
|
||||
|
||||
.center .center-cen .cen-bottom{
|
||||
width: 100%;
|
||||
height: 3.2rem;
|
||||
|
||||
border: 0.01rem solid #217093;
|
||||
}
|
||||
.center .center-cen .bottom-b{
|
||||
width: calc(100% - 0.2rem);
|
||||
height: 2.6rem;
|
||||
margin-left: 0.1rem;
|
||||
margin-top: 0.1rem;
|
||||
}
|
||||
|
||||
.center .center-right{
|
||||
width: 25%;
|
||||
padding: .1rem;
|
||||
}
|
||||
|
||||
.center .center-right .right-top{
|
||||
width: 100%;
|
||||
height: 3.2rem;
|
||||
margin-bottom: .4rem;
|
||||
border: 0.01rem solid #217093;
|
||||
}
|
||||
.center .center-right .right-cen{
|
||||
width: 100%;
|
||||
height: 3.2rem;
|
||||
margin-bottom: .4rem;
|
||||
border: 0.01rem solid #217093;
|
||||
}
|
||||
.center .center-right .right-bottom{
|
||||
width: 100%;
|
||||
height: 3.2rem;
|
||||
border: 0.01rem solid #217093;
|
||||
}
|
||||
.chat{
|
||||
width: calc(100% - .2rem);
|
||||
height: calc(100% - .6rem);
|
||||
margin-top: .1rem;
|
||||
margin-left: .1rem;
|
||||
padding: .1rem;
|
||||
/*overflow: hidden;*/
|
||||
}
|
||||
|
||||
|
||||
|
||||
.gun{
|
||||
/* width: 100%;*/
|
||||
margin-top: .2rem;
|
||||
}
|
||||
.gun span{
|
||||
display: block;
|
||||
float: left;
|
||||
height: .2rem;
|
||||
width: 33%;
|
||||
/*background: red;*/
|
||||
/*margin: 15px 10px 10px 10px;*/
|
||||
/*padding: 20px;*/
|
||||
text-align: center;
|
||||
font-size: 0.14rem;
|
||||
font-weight: 600;
|
||||
color: #61d2f7;
|
||||
text-align: center;
|
||||
margin-bottom: .1rem;
|
||||
}
|
||||
#FontScroll{
|
||||
width: 100%;
|
||||
height: 2.3rem;
|
||||
overflow: hidden;
|
||||
/*float: left;*/
|
||||
margin-top: .1rem;
|
||||
/*margin: 0 5%;*/
|
||||
/*margin-left: 50px;*/
|
||||
|
||||
/*background: gold;*/
|
||||
|
||||
}
|
||||
#FontScroll ul li{
|
||||
height: .32rem;
|
||||
width: 100%;
|
||||
color: #ffffff;
|
||||
text-align: center;
|
||||
line-height: .32rem;
|
||||
/*border-bottom: 1px dashed #404040;*/
|
||||
/*width:33.3%;*/
|
||||
overflow: hidden;
|
||||
font-size: 0.14rem;
|
||||
/*border-bottom: 1px dashed #404040;*/
|
||||
/*width:33.3%;*/
|
||||
|
||||
|
||||
/*background: red;
|
||||
margin: 0 2%;*/
|
||||
|
||||
}
|
||||
#FontScroll ul li:nth-child(1){
|
||||
/*background-color: #072951;*/
|
||||
box-shadow: -10px 0px 15px #034c6a inset, /*左边阴影*/
|
||||
10px 0px 15px #034c6a inset;
|
||||
|
||||
}
|
||||
#FontScroll ul li:hover{
|
||||
box-shadow: -10px 0px 15px #034c6a inset, /*左边阴影*/
|
||||
10px 0px 15px #034c6a inset;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.fontInner span{
|
||||
display:inline-block;
|
||||
/*float: left;*/
|
||||
/*height: 20px;*/
|
||||
width:31%;
|
||||
color: #ffffff;
|
||||
|
||||
/*background: red;*/
|
||||
|
||||
}
|
||||
.fontInner span b{
|
||||
display: inline-block;
|
||||
width: .2rem;
|
||||
height: .2rem;
|
||||
border-radius: 0.03rem;
|
||||
color: #ffffff;
|
||||
line-height: .2rem;
|
||||
}
|
||||
/*#FontScroll ul li:nth-child(1) .fontInner span b{
|
||||
background: #EB6841
|
||||
|
||||
}*/
|
||||
/*大屏*/
|
||||
#FontScroll ul li:nth-child(8n-4) .fontInner span b{ background: #20a8fe }
|
||||
#FontScroll ul li:nth-child(8n-3) .fontInner span b{ background: #EB6841 }
|
||||
#FontScroll ul li:nth-child(8n-2) .fontInner span b{ background: #3FB8AF }
|
||||
#FontScroll ul li:nth-child(8n-1) .fontInner span b{ background: #FE4365 }
|
||||
#FontScroll ul li:nth-child(8n-5) .fontInner span b{ background: #FC9D9A }
|
||||
#FontScroll ul li:nth-child(8n-6) .fontInner span b{ background: #EDC951 }
|
||||
#FontScroll ul li:nth-child(8n-7) .fontInner span b{ background: #C8C8A9 }
|
||||
#FontScroll ul li:nth-child(8n) .fontInner span b{ background: #83AF9B }
|
||||
#FontScroll ul li:first-child .fontInner span b{ background: #036564 }
|
||||
#FontScroll ul li:last-child .fontInner span b{ background: #3299BB }
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 460 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 368 KiB |
@@ -0,0 +1,323 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>WebTools-Web开发者素材</title>
|
||||
|
||||
<link rel="stylesheet" href="css/index.css">
|
||||
<script src="js/jquery.js"></script>
|
||||
<script>
|
||||
$(function () {
|
||||
$('.myscroll').myScroll({
|
||||
speed: 60, //数值越大,速度越慢
|
||||
rowHeight: 38 //li的高度
|
||||
});
|
||||
});
|
||||
|
||||
$(document).ready(function () {
|
||||
var whei = $(window).width()
|
||||
$("html").css({ fontSize: whei / 22 });
|
||||
$(window).resize(function () {
|
||||
var whei = $(window).width();
|
||||
$("html").css({ fontSize: whei / 22 })
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="main">
|
||||
<div class="header">
|
||||
<div class="header-left fl" id="time"></div>
|
||||
<div class="header-center fl">
|
||||
<div class="header-title">
|
||||
工程数据可视化大屏中心
|
||||
</div>
|
||||
<div class="header-img"></div>
|
||||
</div>
|
||||
<div class="header-right fl"></div>
|
||||
<div class="header-bottom fl"></div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="center">
|
||||
<div class="center-left fl">
|
||||
<div class="left-top">
|
||||
<!--<h1 id="ceshi">数据可视化</h1>-->
|
||||
<div class="title">基本信息</div>
|
||||
<div class="top-list">
|
||||
<p>当你征服一座山峰时,它已经在你脚下了,你必须再找一座山峰去征服,否则,你只有下山,走下坡路了</p>
|
||||
<ul>
|
||||
<li>建筑面积:4250</li>
|
||||
<li>农户总数:3545户</li>
|
||||
<li>人口总数:1254万</li>
|
||||
<li>年总产值:53万</li>
|
||||
<li>年总产值:468万</li>
|
||||
<li>年总产值:7854万</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="left-cen">
|
||||
<div class="title">工程数据可视化测试</div>
|
||||
<ul class="company">
|
||||
<li>数据可视化测试:数据可视化测试</li>
|
||||
<li>数据可视化测试:业户编号业户编号</li>
|
||||
<li>数据可视化测试:数据可视化测试</li>
|
||||
<li>数据测试:数据测试</li>
|
||||
<li>数据测试:数据测试</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
<div class="left-bottom">
|
||||
<div class="title">数据可视化测试</div>
|
||||
<div class="bottom-b">
|
||||
<div id="chart3" class="allnav"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="center-cen fl">
|
||||
<div class="cen-top">
|
||||
<div class="top-title">
|
||||
<ul>
|
||||
<li>
|
||||
<p>数量统计</p>
|
||||
<span>3</span>
|
||||
<span>6</span>
|
||||
<span>5</span>
|
||||
<b>个</b>
|
||||
</li>
|
||||
<li>
|
||||
<p>同比上升</p>
|
||||
<span>1</span>
|
||||
<span>3</span>
|
||||
<b>%</b>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="top-bottom">
|
||||
<div id="chart1" class="allnav"></div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="cen-bottom">
|
||||
<div class="title">数据可视化测试</div>
|
||||
<div class="bottom-b">
|
||||
<div id="chart4" class="allnav"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="center-right fr">
|
||||
<div class="right-top">
|
||||
<div class="title">数据可视化测试</div>
|
||||
|
||||
<div class="echart wenzi">
|
||||
<div class="gun">
|
||||
<span>排名</span>
|
||||
<span>同比</span>
|
||||
<span>销量</span>
|
||||
</div>
|
||||
<div id="FontScroll" class="myscroll">
|
||||
<ul>
|
||||
<li>
|
||||
<div class="fontInner clearfix">
|
||||
<span>
|
||||
<b>1</b>
|
||||
</span>
|
||||
<span>2小时15分</span>
|
||||
<span>2小时15分</span>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="fontInner clearfix">
|
||||
<span>
|
||||
<b>2</b>
|
||||
</span>
|
||||
<span>2小时15分</span>
|
||||
<span>2小时15分</span>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="fontInner clearfix">
|
||||
<span>
|
||||
<b>3</b>
|
||||
</span>
|
||||
<span>2小时15分</span>
|
||||
<span>2小时15分</span>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="fontInner clearfix">
|
||||
<span>
|
||||
<b>4</b>
|
||||
</span>
|
||||
<span>2小时15分</span>
|
||||
<span>2小时15分</span>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="fontInner clearfix">
|
||||
<span>
|
||||
<b>5</b>
|
||||
</span>
|
||||
<span>2小时15分</span>
|
||||
<span>2小时15分</span>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="fontInner clearfix">
|
||||
<span>
|
||||
<b>6</b>
|
||||
</span>
|
||||
<span>2小时15分</span>
|
||||
<span>2小时15分</span>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="fontInner clearfix">
|
||||
<span>
|
||||
<b>7</b>
|
||||
</span>
|
||||
<span>2小时15分</span>
|
||||
<span>2小时15分</span>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="fontInner clearfix">
|
||||
<span>
|
||||
<b>8</b>
|
||||
</span>
|
||||
<span>2小时15分</span>
|
||||
<span>2小时15分</span>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="fontInner clearfix">
|
||||
<span>
|
||||
<b>9</b>
|
||||
</span>
|
||||
<span>2小时15分</span>
|
||||
<span>2小时15分</span>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="fontInner clearfix">
|
||||
<span>
|
||||
<b>10</b>
|
||||
</span>
|
||||
<span>2小时15分</span>
|
||||
<span>2小时15分</span>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="fontInner clearfix">
|
||||
<span>
|
||||
<b>11</b>
|
||||
</span>
|
||||
<span>2小时15分</span>
|
||||
<span>2小时15分</span>
|
||||
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="fontInner clearfix">
|
||||
<span>
|
||||
<b>12</b>
|
||||
</span>
|
||||
<span>2小时15分</span>
|
||||
<span>2小时15分</span>
|
||||
|
||||
</div>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="right-cen">
|
||||
<div class="title">数据可视化测试</div>
|
||||
<div id="chart2" class="allnav"></div>
|
||||
</div>
|
||||
<div class="right-bottom">
|
||||
<div class="title">数据可视化测试</div>
|
||||
<div class="chat">
|
||||
<div id="chart5" class="allnav"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<script src="js/jquery.min.js"></script>
|
||||
<script src="js/echarts.min.js"></script>
|
||||
<script src="js/wodry.min.js"></script>
|
||||
<script src="js/fontscroll.js"></script>
|
||||
<script src="js/echarts.js"></script>
|
||||
|
||||
<script>
|
||||
/*$('#ceshi').wodry({
|
||||
|
||||
animation: 'rotateX',
|
||||
|
||||
delay: 1000,
|
||||
|
||||
animationDuration: 800
|
||||
|
||||
});*/
|
||||
/*window.onload = function () {
|
||||
setInterval(function () {
|
||||
var hs=document.getElementById("ceshi");
|
||||
var hstyle=hs.style.transform;
|
||||
if(hstyle=='rotateX(-360deg)'){
|
||||
//console.log(1)
|
||||
hs.style.transform='rotateX(0deg)';
|
||||
hs.style.transform='transform 500ms cubic-bezier(0.55, 0.18, 0.92, 0.46) 0s;'
|
||||
}else {
|
||||
hs.style.transform='rotateX(-360deg)';
|
||||
hs.style.transition="all 2s";
|
||||
}
|
||||
}, 5000);
|
||||
};*/
|
||||
|
||||
//顶部时间
|
||||
function getTime(){
|
||||
var myDate = new Date();
|
||||
var myYear = myDate.getFullYear(); //获取完整的年份(4位,1970-????)
|
||||
var myMonth = myDate.getMonth()+1; //获取当前月份(0-11,0代表1月)
|
||||
var myToday = myDate.getDate(); //获取当前日(1-31)
|
||||
var myDay = myDate.getDay(); //获取当前星期X(0-6,0代表星期天)
|
||||
var myHour = myDate.getHours(); //获取当前小时数(0-23)
|
||||
var myMinute = myDate.getMinutes(); //获取当前分钟数(0-59)
|
||||
var mySecond = myDate.getSeconds(); //获取当前秒数(0-59)
|
||||
var week = ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'];
|
||||
var nowTime;
|
||||
|
||||
nowTime = myYear+'-'+fillZero(myMonth)+'-'+fillZero(myToday)+' '+fillZero(myHour)+':'+fillZero(myMinute)+':'+fillZero(mySecond)+' '+week[myDay]+' ';
|
||||
//console.log(nowTime);
|
||||
$('#time').html(nowTime);
|
||||
};
|
||||
function fillZero(str){
|
||||
var realNum;
|
||||
if(str<10){
|
||||
realNum = '0'+str;
|
||||
}else{
|
||||
realNum = str;
|
||||
}
|
||||
return realNum;
|
||||
}
|
||||
setInterval(getTime,1000);
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -0,0 +1,119 @@
|
||||
/**
|
||||
*大屏
|
||||
+-------------------------------------------------------------------
|
||||
* jQuery FontScroll - ���������Ϲ������ - http://java2.sinaapp.com
|
||||
+-------------------------------------------------------------------
|
||||
* @version 1.0.0 beta
|
||||
* @since 2014.06.12
|
||||
* @author kongzhim <kongzhim@163.com> <http://java2.sinaapp.com>
|
||||
* @github http://git.oschina.net/kzm/FontScroll
|
||||
+-------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/*(function($){
|
||||
|
||||
$.fn.FontScroll = function(options){
|
||||
var d = {time: 2000,s: 'fontColor',num: 1};
|
||||
var o = $.extend(d,options);
|
||||
|
||||
|
||||
this.children('ul').addClass('line');
|
||||
var _con = $('.line').eq(0);
|
||||
var _conH = _con.height(); //�����ܸ߶�
|
||||
var _conChildH = _con.children().eq(0).height();//һ�ι����߶�
|
||||
var _temp = _conChildH; //��ʱ����
|
||||
var _time = d.time; //�������
|
||||
var _s = d.s; //�������
|
||||
|
||||
|
||||
_con.clone().insertAfter(_con);//��ʼ����¡
|
||||
|
||||
//��ʽ����
|
||||
var num = d.num;
|
||||
var _p = this.find('li');
|
||||
var allNum = _p.length;
|
||||
|
||||
_p.eq(num).addClass(_s);
|
||||
|
||||
|
||||
var timeID = setInterval(Up,_time);
|
||||
console.log(timeID);
|
||||
this.hover(function(){clearInterval(timeID)},function(){timeID = setInterval(Up,_time);});
|
||||
|
||||
function Up(){
|
||||
_con.animate({marginTop: '-'+_conChildH});
|
||||
//��ʽ����
|
||||
_p.removeClass(_s);
|
||||
num += 1;
|
||||
_p.eq(num).addClass(_s);
|
||||
|
||||
if(_conH == _conChildH){
|
||||
_con.animate({marginTop: '-'+_conChildH},"normal",over);
|
||||
} else {
|
||||
_conChildH += _temp;
|
||||
}
|
||||
}
|
||||
function over(){
|
||||
_con.attr("style",'margin-top:0');
|
||||
_conChildH = _temp;
|
||||
num = 1;
|
||||
_p.removeClass(_s);
|
||||
_p.eq(num).addClass(_s);
|
||||
}
|
||||
}
|
||||
})(jQuery);*/
|
||||
|
||||
|
||||
|
||||
// JavaScript Document
|
||||
(function($){
|
||||
$.fn.myScroll = function(options){
|
||||
//默认配置
|
||||
var defaults = {
|
||||
speed:60, //滚动速度,值越大速度越慢
|
||||
rowHeight:24 //每行的高度
|
||||
};
|
||||
|
||||
var opts = $.extend({}, defaults, options),intId = [];
|
||||
|
||||
function marquee(obj, step){
|
||||
|
||||
obj.find("ul").animate({
|
||||
marginTop: '-=1'
|
||||
},0,function(){
|
||||
var s = Math.abs(parseInt($(this).css("margin-top")));
|
||||
if(s >= step){
|
||||
$(this).find("li").slice(0, 1).appendTo($(this));
|
||||
$(this).css("margin-top", 0);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
this.each(function(i){
|
||||
var sh = opts["rowHeight"],speed = opts["speed"],_this = $(this);
|
||||
intId[i] = setInterval(function(){
|
||||
if(_this.find("ul").height()<=_this.height()){
|
||||
|
||||
clearInterval(intId[i]);
|
||||
}else{
|
||||
marquee(_this, sh);
|
||||
}
|
||||
}, speed);
|
||||
|
||||
_this.hover(function(){
|
||||
clearInterval(intId[i]);
|
||||
},function(){
|
||||
intId[i] = setInterval(function(){
|
||||
if(_this.find("ul").height()<=_this.height()){
|
||||
clearInterval(intId[i]);
|
||||
}else{
|
||||
marquee(_this, sh);
|
||||
}
|
||||
}, speed);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
})(jQuery);
|
||||
+5
File diff suppressed because one or more lines are too long
+4
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user