Commit 981d50fc by 张强

1111

parent d4bc18d4
var createError = require('http-errors');
var express = require('express');
var path = require('path');
var cookieParser = require('cookie-parser');
var logger = require('morgan');
var indexRouter = require('./routes/index');
var usersRouter = require('./routes/users');
var app = express();
// view engine setup
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'jade');
app.use(logger('dev'));
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
app.use(cookieParser());
app.use(express.static(path.join(__dirname, 'public')));
app.use('/', indexRouter);
app.use('/users', usersRouter);
// catch 404 and forward to error handler
app.use(function(req, res, next) {
next(createError(404));
});
// error handler
app.use(function(err, req, res, next) {
// set locals, only providing error in development
res.locals.message = err.message;
res.locals.error = req.app.get('env') === 'development' ? err : {};
// render the error page
res.status(err.status || 500);
res.render('error');
});
module.exports = app;
#!/usr/bin/env node
/**
* Module dependencies.
*/
var app = require('../app');
var debug = require('debug')('init:server');
var http = require('http');
/**
* Get port from environment and store in Express.
*/
var port = normalizePort(process.env.PORT || '3000');
app.set('port', port);
/**
* Create HTTP server.
*/
var server = http.createServer(app);
/**
* Listen on provided port, on all network interfaces.
*/
server.listen(port);
server.on('error', onError);
server.on('listening', onListening);
/**
* Normalize a port into a number, string, or false.
*/
function normalizePort(val) {
var port = parseInt(val, 10);
if (isNaN(port)) {
// named pipe
return val;
}
if (port >= 0) {
// port number
return port;
}
return false;
}
/**
* Event listener for HTTP server "error" event.
*/
function onError(error) {
if (error.syscall !== 'listen') {
throw error;
}
var bind = typeof port === 'string'
? 'Pipe ' + port
: 'Port ' + port;
// handle specific listen errors with friendly messages
switch (error.code) {
case 'EACCES':
console.error(bind + ' requires elevated privileges');
process.exit(1);
break;
case 'EADDRINUSE':
console.error(bind + ' is already in use');
process.exit(1);
break;
default:
throw error;
}
}
/**
* Event listener for HTTP server "listening" event.
*/
function onListening() {
var addr = server.address();
var bind = typeof addr === 'string'
? 'pipe ' + addr
: 'port ' + addr.port;
debug('Listening on ' + bind);
}
{
"name": "init",
"version": "0.0.0",
"private": true,
"scripts": {
"start": "node ./bin/www"
},
"dependencies": {
"cookie-parser": "~1.4.3",
"debug": "~2.6.9",
"express": "~4.16.0",
"http-errors": "~1.6.2",
"jade": "~1.11.0",
"morgan": "~1.9.0"
}
}
feqwefqwe
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
/***暗锚 - 开始***/
.rightContent .one{
position: relative;
}
.target-fix{
position: absolute;
top: -120px;
display: block;
height: 0;
overflow: hidden;
}
/***暗锚 - 结束***/
/***左侧菜单 - 开始***/
.leftMenu{
width: 100%;
z-index: 999;
}
.leftMenu a{
display: block;
width: 100%;
height: 88px;
line-height: 88px;
text-align: center;
background-color: #F6F6F6;
border-bottom: 1px solid #FFF;
font-size: 20px;
font-weight: 600;
color: #333;
border-left: 10px solid #F6F6F6;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.leftMenu a:hover{
color: #1da193;
text-decoration: none;
}
.leftMenu a.active{
border-left: 10px solid #1da193;
}
.content .dis p{
margin-bottom: 30px;
text-indent: 0;
text-align: justify;
}
.content .dis p.smallT{
margin-bottom: 0px;
text-indent: 0;
font-size: 20px;
font-weight: 600;
}
.content .openMore{
display: none;
}
@media (min-width: 768px) and (max-width: 1200px) {
.leftMenu{
display: none;
}
}
@media (max-width: 767px){
.leftMenu{
display: none;
}
.content .dis p{
margin-bottom: 16px;
}
.content .dis{
max-height: 346px;
overflow: hidden;
}
.content .one{
padding-bottom: 80px;
position: relative;
}
.content .openMore{
display: block;
position: absolute;
bottom: 40px;
right: 0;
color: #1DA193;
}
.content .openMore span{
margin-left: 5px;
font-size: 12px;
}
}
/***leftMenu - 结束***/
/*内容页面 - 开始*/
.joinUsContent .row {
padding-top: 48px;
padding-bottom: 112px;
}
.joinUsContent .title{
font-size: 36px;
color: #333333;
line-height: 50px;
}
.joinUsContent .time{
padding-top: 16px;
font-size: 14px;
color: #989898;
line-height: 20px;
}
.joinUsContent .time font{
margin-right: 16px;
}
.joinUsContent .dis{
padding-top: 16px;
font-size: 16px;
color: #333333;
line-height: 30px;
}
.joinUsContent .dis p {
margin-bottom: 0px;
text-indent: 0;
text-align: justify;
}
@media (min-width: 768px) and (max-width: 1200px) {
.joinUsContent .row{
padding-top: 24px;
padding-bottom: 24px;
}
}
@media (max-width: 767px){
.joinUsContent .row{
padding-top: 10px;
padding-bottom: 40px;
}
.joinUsContent .title{
margin-top: 12px;
}
.joinUsContent .dis p {
margin-bottom: 16px;
}
.joinUsContent .share {
display: none;
}
}
/*内容页面 - 结束*/
/***加入我们 - 开始***/
.yxtdImg{
padding-top: 32px !important;
padding-bottom: 64px !important;
}
.joinUsTable{
margin-top: 32px;
padding-top: 0px !important;
padding-bottom: 0px !important;
}
.joinUsTable .title{
line-height: 88px;
background-color: #F6F6F6;
overflow: hidden;
font-size: 18px;
font-weight: 600;
}
.joinUsTable .con .one{
border: 1px solid #F6F6F6;
border-top: 0;
}
.joinUsTable .con .one .oneT{
line-height: 88px;
overflow: hidden;
font-size: 18px;
}
.joinUsTable .con .one .oneC{
background-color: #F6F6F6;
padding: 32px;
font-size: 14px;
color: #333;
position: relative;
display: none;
}
.joinUsTable .con .one .oneC .jt{
width: 36px !important;
height: 16px !important;
position: absolute;
top: -16px;
left: 40px;
}
.keyBut{
color: #1DA193;
}
.keyBut:hover{
text-decoration: none;
}
.keyBut span{
margin-left: 8px;
font-size: 14px;
}
.weight{
font-weight: 600;
}
@media (min-width: 992px) and (max-width: 1199px) {
.joinUsTable .title {
font-size: 16px;
}
.joinUsTable .con .one .oneT {
font-size: 14px;
}
}
@media (max-width: 991px) {
.joinUsContent .row {
padding-top: 24px;
padding-bottom: 40px;
}
.joinHide{
display: none;
}
.joinUsTable .title {
font-size: 16px;
}
.joinUsTable .con .one .oneT {
font-size: 16px;
}
.pic2{
margin-top: 12px;
}
}
@media (max-width: 767px){
.joinUsContent .row {
padding-top: 10px;
padding-bottom: 40px;
}
.joinHideXS{
display: none;
}
.yxtdImg {
padding-top: 19px !important;
padding-bottom: 20px !important;
}
.pic2{
margin-top: 12px;
}
.joinUsTable {
margin-top: 10px;
}
.joinUsTable .title {
font-size: 14px;
line-height: 56px;
}
.joinUsTable .con .one .oneT {
font-size: 14px;
line-height: 56px;
}
.joinUsTable .con .one .oneC {
padding: 12px;
}
.keyBut span {
margin-left: 4px;
}
}
@media (max-width: 374px){
.joinUs320{
padding: 0 5px;
}
}
/***加入我们 - 结束***/
.videoModal{
padding: 0px;
}
.videoModal video{
display: block;
}
.videoModal .close{
width: 40px;
height: 40px;
background-color: #606060;
position: absolute;
top: 0;
right: -40px;
opacity: 1;
text-shadow: none;
}
.videoModal .close span{
color: #979797;
}
@media (min-width: 768px) and (max-width: 1200px) {
.news{
padding-top: 44px;
padding-bottom: 68px;
}
}
@media (max-width: 767px){
.videoModal .close{
display: none;
}
}
/*模态框样式改造*/
@media (min-width: 1200px){
.modal-dialog {
width: 1024px;
position: absolute;
top: -100%;
left: 50%;
margin-left: -512px;
}
}
@media (min-width: 992px) and (max-width: 1199px) {
.modal-dialog {
width: 800px;
position: absolute;
top: -100%;
left: 50%;
margin-left: -400px;
}
}
@media (min-width: 768px) and (max-width: 991px) {
.modal-dialog {
width: 600px;
position: absolute;
top: -100%;
left: 50%;
margin-left: -300px;
}
}
@media (max-width: 767px){
.modal-dialog {
width: 95%;
position: absolute;
top: -100%;
left: 50%;
margin-left: -47.5%;
}
}
\ No newline at end of file
<div class="bannerBox" style="background-color: rgba(0,0,0,0.75);">
<div class="container">
<div class="row">
<div class="col-xs-6 col-sm-3">
<img class="logo" src="images/logo.png" onclick="location.href='index.html'"/>
</div>
<div class="menuBtn">
<span></span>
<span></span>
<span></span>
</div>
<div class="clear"></div>
<div class="navBox hidden-xs hidden-sm">
<ul class="navList list-unstyled">
<li class="navLi">
<h3><a href="javascript:void(0)"><span>关于我们</span></a></h3>
<div class="navSub">
<ul class="navSubList list-unstyled">
<li class="navSubLi">
<h4><a href="onepage.html">公司简介</a></h4>
</li>
<li class="navSubLi">
<h4><a href="contact.html">董事长致辞</a></h4>
</li>
<li class="navSubLi">
<h4><a href="culture.html">管理团队</a></h4>
</li>
<li class="navSubLi">
<h4><a href="course.html">组织架构</a></h4>
</li>
<li class="navSubLi">
<h4><a href="news.html">发展历程</a></h4>
</li>
<li class="navSubLi">
<h4><a href="Recruitment.html">荣誉墙</a></h4>
</li>
</ul>
</div>
</li>
<li class="navLi">
<h3><a href="#"><span>新闻中心</span></a></h3>
</li>
<li class="navLi">
<h3><a href="#"><span>党的建设</span></a></h3>
</li>
<li class="navLi">
<h3><a href="#"><span>为军惠军</span></a></h3>
</li>
<li class="navLi">
<h3><a href="javascript:void(0)"><span>企业文化</span></a></h3>
<div class="navSub">
<ul class="navSubList list-unstyled">
<li class="navSubLi">
<h4><a href="onepage.html">公司介绍</a></h4>
</li>
<li class="navSubLi">
<h4><a href="contact.html">联系方式</a></h4>
</li>
<li class="navSubLi">
<h4><a href="culture.html">企业文化</a></h4>
</li>
<li class="navSubLi">
<h4><a href="course.html">企业历程</a></h4>
</li>
<li class="navSubLi">
<h4><a href="news.html">新闻动态</a></h4>
</li>
<li class="navSubLi">
<h4><a href="Recruitment.html">人才招聘</a></h4>
</li>
</ul>
</div>
</li>
<li class="navLi">
<h3><a href="Cooperation.html"><span>社会责任</span></a></h3>
</li>
<li class="navLi">
<h3><a href="javascript:void(0)"><span>人力资源</span></a></h3>
<div class="navSub">
<ul class="navSubList list-unstyled">
<li class="navSubLi">
<h4><a href="onepage.html">公司介绍</a></h4>
</li>
<li class="navSubLi">
<h4><a href="contact.html">联系方式</a></h4>
</li>
<li class="navSubLi">
<h4><a href="culture.html">企业文化</a></h4>
</li>
<li class="navSubLi">
<h4><a href="course.html">企业历程</a></h4>
</li>
<li class="navSubLi">
<h4><a href="news.html">新闻动态</a></h4>
</li>
<li class="navSubLi">
<h4><a href="Recruitment.html">人才招聘</a></h4>
</li>
</ul>
</div>
</li>
<li class="navLi">
<h3><a href="javascript:void(0)"><span>业务领域</span></a></h3>
<div class="navSub">
<ul class="navSubList list-unstyled">
<li class="navSubLi">
<h4><a href="onepage.html">公司介绍</a></h4>
</li>
<li class="navSubLi">
<h4><a href="contact.html">联系方式</a></h4>
</li>
<li class="navSubLi">
<h4><a href="culture.html">企业文化</a></h4>
</li>
<li class="navSubLi">
<h4><a href="course.html">企业历程</a></h4>
</li>
<li class="navSubLi">
<h4><a href="news.html">新闻动态</a></h4>
</li>
<li class="navSubLi">
<h4><a href="Recruitment.html">人才招聘</a></h4>
</li>
</ul>
</div>
</li>
<li class="navLi">
<h3><a href="#"><span>资产招商</span></a></h3>
</li>
<li class="navLi">
<h3><a href="javascript:void(0)"><span>客户服务</span></a></h3>
<div class="navSub">
<ul class="navSubList list-unstyled">
<li class="navSubLi">
<h4><a href="onepage.html">公司介绍</a></h4>
</li>
<li class="navSubLi">
<h4><a href="contact.html">联系方式</a></h4>
</li>
<li class="navSubLi">
<h4><a href="culture.html">企业文化</a></h4>
</li>
<li class="navSubLi">
<h4><a href="course.html">企业历程</a></h4>
</li>
<li class="navSubLi">
<h4><a href="news.html">新闻动态</a></h4>
</li>
<li class="navSubLi">
<h4><a href="Recruitment.html">人才招聘</a></h4>
</li>
</ul>
</div>
</li>
</ul>
</div>
<div class="navBoxm"></div>
</div>
</div>
</div>
\ No newline at end of file
<!--公司简介-->
\ No newline at end of file
<!--发展历程-->
\ No newline at end of file
<!--董事长致辞-->
\ No newline at end of file
<!--团队管理-->
\ No newline at end of file
<!--组织架构-->
\ No newline at end of file
<!--资产招商-->
\ No newline at end of file
<!--资产招商-->
\ No newline at end of file
<!--教育综合体-->
\ No newline at end of file
<!--长租公寓-->
\ No newline at end of file
<!--医疗康养-->
\ No newline at end of file
<!--物业服务-->
\ No newline at end of file
<!--仓储物流-->
\ No newline at end of file
<!--企业使命-->
\ No newline at end of file
<!--企业精神-->
\ No newline at end of file
<!--企业愿景-->
\ No newline at end of file
<!--核心价值观-->
\ No newline at end of file
<!--风采融通-->
\ No newline at end of file
<!--合作企业-->
\ No newline at end of file
<!--留言建议-->
\ No newline at end of file
<!--价值创造-->
\ No newline at end of file
<!--校园招聘-->
\ No newline at end of file
<!--职业发展-->
\ No newline at end of file
<!--教育培训-->
\ No newline at end of file
<!--人才招聘-->
\ No newline at end of file
<!--人才战略-->
\ No newline at end of file
<!--区域动态-->
\ No newline at end of file
<!--公司动态-->
\ No newline at end of file
<!--集团要闻-->
\ No newline at end of file
<!--融媒体-->
\ No newline at end of file
<!--媒体报道-->
\ No newline at end of file
<!--专题专栏-->
\ No newline at end of file
<!--党建动态-->
\ No newline at end of file
<!--党建概况-->
\ No newline at end of file
<!--理念介绍-->
\ No newline at end of file
<!--责任行动-->
\ No newline at end of file
<!--惠军政策-->
\ No newline at end of file
<!--惠军成果-->
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1">
<!-- Google Chrome Frame也可以让IE用上Chrome的引擎: -->
<meta name="renderer" content="webkit">
<!--国产浏览器高速模式-->
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta name="description" content="网站简介" />
<!-- 网站简介 -->
<meta name="keywords" content="搜索关键字,以半角英文逗号隔开" />
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<title>穷在闹市</title>
<!-- 公共样式 -->
<link rel="shortcut icon" href="images/favicon.ico"/>
<link rel="bookmark" href="images/favicon.ico"/>
<link rel="stylesheet" type="text/css" href="css/base.css">
<link rel="stylesheet" type="text/css" href="bootstrap3/css/bootstrap.css">
<!--[if lt IE 9]>
<script src="js/html5shiv.min.js"></script>
<script src="js/respond.min.js"></script>
<![endif]-->
<script src="js/jquery-1.11.3.min.js"></script>
<script src="bootstrap3/js/bootstrap.js"></script>
<!-- 公共样式 -->
<link rel="stylesheet" type="text/css" href="css/aboutUs.css">
<script src="js/aboutUs.js"></script>
</head>
<body>
<!-- 头部区域 - 开始 -->
<div class="top">
<!-- banner - 开始 -->
<div class="bannerBox">
<div class="container">
<div class="row">
<div class="col-xs-6 col-sm-3">
<img class="logo" src="images/logo.png" onclick="location.href='index.html'"/>
</div>
<div class="col-xs-6 col-sm-9">
<ul class="banner">
<li><a href="index.html">首页</a></li>
<li><a href="productService.html">产品服务</a></li>
<li><a href="news.html">新闻动态</a></li>
<li><a href="aboutUs.html">关于我们</a></li>
<li><a class="active" href="investment.html">投资伙伴</a></li>
<li class="no_mr"><a href="joinUs.html">加入我们</a></li>
</ul>
<div class="dropdown bannerSmall">
<button type="button" class="btn dropdown-toggle" id="dropdownMenu1" data-toggle="dropdown">
<span class="glyphicon glyphicon-menu-hamburger"></span>
</button>
<ul class="dropdown-menu dropdown-menu-right" role="menu" aria-labelledby="dropdownMenu1">
<li role="presentation" class="text-right">
<a role="menuitem" tabindex="-1" href="index.html">首页</a>
</li>
<li role="presentation" class="text-right">
<a role="menuitem" tabindex="-1" href="productService.html">产品服务</a>
</li>
<li role="presentation" class="text-right">
<a role="menuitem" tabindex="-1" href="news.html">新闻动态</a>
</li>
<li role="presentation" class="text-right">
<a role="menuitem" tabindex="-1" href="aboutUs.html">关于我们</a>
</li>
<li role="presentation" class="text-right">
<a role="menuitem" tabindex="-1" href="investment.html">投资伙伴</a>
</li>
<li role="presentation" class="text-right">
<a role="menuitem" tabindex="-1" href="joinUs.html">加入我们</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- index头部区域 - 结束 -->
<div class="h_110"></div>
<!-- 当前位置 开始 -->
<div class="currentLocation">
<div class="container">
<div class="row">
<div class="col-sm-12">
<a href="index.html">首页</a>
<span class="glyphicon glyphicon-menu-right" aria-hidden="true"></span>
<a href="investment.html">投资伙伴</a>
</div>
</div>
</div>
</div>
<!-- 当前位置 结束 -->
<!-- 新闻 开始 -->
<div class="content">
<div class="container">
<div class="row">
<div class="col-lg-3">
<div class="leftMenu">
<a class="active" href="#jtShareGroup">17素材</a>
<a href="#ycBusiness">穷在闹市</a>
</div>
</div>
<div class="col-lg-9 rightContent">
<div class="one">
<a class="target-fix" id="jtShareGroup"></a>
<div class="title">17素材</div>
<div class="dis">
<p>温州易站网络科技有限公司是网页前端开发用户的一个下载资源交流平台的17素材网站。在这里您可以找到时下最流行、最新进的网页前端脚本代码和网页设计图片素材。且融入了目前最流行微博客社交功能,您可以在这找到与您一起的同行工作者。您可以在这里发布您自己的代码和图片等素材,与别人分享。同时您也可以查阅别人收藏、发布的内容,或看看热门推荐素材等。</p>
</div>
<a class="openMore" href="javascript:void(0)" onclick="openMore(this)">展开所有内容<span class="glyphicon glyphicon-menu-down"></span></a>
</div>
<div class="one">
<a class="target-fix" id="ycBusiness"></a>
<div class="title">穷在闹市</div>
<div class="dis">
<p>一个人在成长的道路上,不是光靠自己的经验就可以一帆风顺的。老人们走得路多,经历的人和事也多,历经岁月考验,自然对人生处世也有更深刻的认识。</p>
<p>俗话说:不听老人言,吃亏在眼前,我们要学会从前人的经历中总结经验,多听多看多学,你会发现老祖宗的这些经典名言蕴含着无穷的人生智慧,值得我们受用一生。</p>
<p>人穷的时候亲戚朋友在身边也很少来往,富有的时候就算远在在深山老林亲戚都会来找你。</p>
<p>俗话说:马瘦别走兵,人穷别走亲,在你贫穷的时候尽量不要去亲戚朋友家走动,在这个时候多的是落井下石,冷嘲热讽,看你笑话的人。</p>
<p>自己说话的时候腰杆也挺不直,只有靠自己改善生活状况,让自己变强大,才能让别人刮目相看!</p>
</div>
<a class="openMore" href="javascript:void(0)" onclick="openMore(this)">展开所有内容<span class="glyphicon glyphicon-menu-down"></span></a>
</div>
</div>
</div>
</div>
</div>
<!-- 新闻 结束 -->
<!-- copyright 开始 -->
<div class="copyright">
<div class="container">
<div class="row">
<div class="col-xs-12">
<font class="friendLinkTitle">友情链接:</font>
<a class="friendLinkCon" href="#">阿里巴巴集团</a>
<a class="friendLinkCon" href="#">淘宝网</a>
<a class="friendLinkCon" href="#">天猫</a>
<a class="friendLinkCon" href="#">聚划算</a>
<a class="friendLinkCon" href="#">全球速卖通</a>
<a class="friendLinkCon" href="#">阿里巴巴国际交易市场</a>
<a class="friendLinkCon" href="#">1688</a>
<a class="friendLinkCon" href="#">阿里妈妈</a>
<a class="friendLinkCon" href="#">阿里云计算</a>
<a class="friendLinkCon" href="#">YunOS支付宝</a>
<a class="friendLinkCon" href="#">支付宝商家平台</a>
</div>
</div>
<div class="h_16"></div>
<div class="row">
<div class="col-xs-12 copy">Copyright &copy; 2018 www.taobao.com 保留所有权利. 川ICP备8900056001号</div>
</div>
</div>
</div>
<!-- copyright 结束 -->
</body>
</html>
\ No newline at end of file
var boxW = 0;
var aboutUsT = 0;
var developmentHistoryT = 0;
var callMeT = 0;
var CLICK_A_TAG = false;
$(function(){
boxW = $(".leftMenu").width();
var one2 = $(".rightContent").children().eq(0).height()+126+30;
var one3 = $(".rightContent").children().eq(1).height()+one2+30;
var one4 = $(".rightContent").children().eq(2).height()+one3+30;
var one5 = $(".rightContent").children().eq(3).height()+one4+30;
$(window).scroll(function(){
var win_w = $(window).width();
var topH = $(document).scrollTop(); //卷入的高度
// console.log(topH);
//定位左侧的菜单的位置处理
if(topH >= 120){
$(".leftMenu").css("position","fixed").css("top","120px").css("left",(win_w-1140)/2+"px").width(boxW);
}else{
$(".leftMenu").css("position","static");
}
//判断是否点击了左侧菜单,如果点击了左侧菜单进行一个判断
if(CLICK_A_TAG && topH < one2){
CLICK_A_TAG = false;
return;
}
if(topH >= 0){
$(".leftMenu").children().removeClass("active");
$(".leftMenu").children().eq(0).addClass("active");
}
if(topH >= one2){
$(".leftMenu").children().removeClass("active");
$(".leftMenu").children().eq(1).addClass("active");
}
if(topH >= one3){
$(".leftMenu").children().removeClass("active");
$(".leftMenu").children().eq(2).addClass("active");
}
if(topH >= one4){
$(".leftMenu").children().removeClass("active");
$(".leftMenu").children().eq(3).addClass("active");
}
if(topH >= one5){
$(".leftMenu").children().removeClass("active");
$(".leftMenu").children().eq(4).addClass("active");
}
});
$(".leftMenu a").click(function(){
CLICK_A_TAG = true;
$(this).siblings().removeClass("active");
$(this).addClass("active");
});
//如果内容小于330则不显示展开按钮
var nums = $(".content").find(".one").length;
for(var i = 0; i < nums; i++){
if($(".content").find(".one").eq(i).find(".dis").height() < 330){
$(".content").find(".one").eq(i).find(".dis").siblings(".openMore").hide();
if(i != (nums-1)){
$(".content").find(".one").eq(i).css("padding-bottom","32px");
}else{
$(".content").find(".one").eq(i).css("padding-bottom","0px");
}
}
}
})
//内容展开功能
function openMore(_this){
if($(_this).text() == "展开所有内容"){
$(_this).siblings(".dis").css("max-height","none");
$(_this).html('收起<span class="glyphicon glyphicon-menu-up"></span>');
}else{
$(_this).siblings(".dis").css("max-height","346px");
$(_this).html('展开所有内容<span class="glyphicon glyphicon-menu-down"></span>');
}
}
/**
* @preserve HTML5 Shiv 3.7.3 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
*/
!function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=t.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=t.elements;"string"!=typeof c&&(c=c.join(" ")),"string"!=typeof a&&(a=a.join(" ")),t.elements=c+" "+a,j(b)}function f(a){var b=s[a[q]];return b||(b={},r++,a[q]=r,s[r]=b),b}function g(a,c,d){if(c||(c=b),l)return c.createElement(a);d||(d=f(c));var e;return e=d.cache[a]?d.cache[a].cloneNode():p.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!e.canHaveChildren||o.test(a)||e.tagUrn?e:d.frag.appendChild(e)}function h(a,c){if(a||(a=b),l)return a.createDocumentFragment();c=c||f(a);for(var e=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)e.createElement(h[g]);return e}function i(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return t.shivMethods?g(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-:]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(t,b.frag)}function j(a){a||(a=b);var d=f(a);return!t.shivCSS||k||d.hasCSS||(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),l||i(a,d),a}var k,l,m="3.7.3",n=a.html5||{},o=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,p=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,q="_html5shiv",r=0,s={};!function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",k="hidden"in a,l=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){k=!0,l=!0}}();var t={elements:n.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:m,shivCSS:n.shivCSS!==!1,supportsUnknownElements:l,shivMethods:n.shivMethods!==!1,type:"default",shivDocument:j,createElement:g,createDocumentFragment:h,addElements:e};a.html5=t,j(b),"object"==typeof module&&module.exports&&(module.exports=t)}("undefined"!=typeof window?window:this,document);
\ No newline at end of file
$(function(){
function menu(){
if($(window).width()>992){$(".navBoxm").hide();$(".menuBtn").removeClass("active");}
}
menu();
$(".navList .navSubLi h4").on("click",function(){
if($(this).parent().hasClass("active")){
$(this).parent().removeClass("active");
$(this).next(".navThrList").slideUp();
$(this).parent().find(".navFouList").slideUp();
}else{
$(this).parent().addClass("active");
$(this).next(".navThrList").slideDown();
}
})
$(".navList .navThrLi h5").on("click",function(){
if($(this).parent().hasClass("active")){
$(this).parent().removeClass("active");
$(this).next(".navFouList").slideUp();
}else{
$(this).parent().addClass("active");
$(this).next(".navFouList").slideDown();
}
})
$(".navList .navLi").hover(function(){
$(this).addClass("active");
$(this).find(".navSub").stop().slideDown();
},function(){
$(this).removeClass("active");
$(this).find(".navSub").stop().slideUp();
$(".navThrList").slideUp();
$(".navFouList").slideUp();
})
$(".navBoxm").append("<ul class='navListm navListm2'></ul>");
$(".navListm").html($(".navList").html());
$(".navSubLi").each(function(index, element) {
if($(this).find(".navThrList").length>0){
$(this).addClass("has");
$(this).find("h4 a").attr("href","javascript:;");
}
});
$(".navListm .navLi").each(function(index, element) {
if($(this).find(".navSub").length>0){
$(this).addClass("has");
$(this).find("h3 a").attr("href","javascript:;");
}
});
$(".navListm .navLi h3").on("click",function(){
if($(this).parent().hasClass("active")){
$(this).parent().removeClass("active");
$(this).next(".navSub").slideUp();
$(this).parent().find(".navFouList").slideUp();
}else{
$(".navListm .navLi").removeClass("active");
$(".navSub").slideUp();
$(".navThrList").slideUp();
$(".navFouList").slideUp();
$(this).parent().addClass("active");
$(this).next(".navSub").slideDown();
}
})
$(window).on("click",function(){
$(".menuBtn").removeClass("active");
$(".navBoxm").slideUp();
})
$(".menuBtn").on("click",function(event){
$(this).toggleClass("active");
$(".navBoxm").slideToggle();
event.stopPropagation();
})
$(".navBoxm").on("click",function(event){
event.stopPropagation();
})
var lbtH = $(".lbt").height();
var transparentNum = 1;
var topH = 0;
$(window).scroll(function(){
topH = $(document).scrollTop(); //卷入的高度
if(lbtH >= topH){
transparentNum = (1-(lbtH - topH)/lbtH).toFixed(2);
}else{
topH = lbtH;
}
// $(".bannerBox").css("background-color","rgba(51,51,51,"+transparentNum+")");
});
$(window).resize(function(){
menu();
})
})
\ No newline at end of file
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment