作者 杨乐
1 个管道 的构建 通过 耗费 7 秒

完成

... ... @@ -381,7 +381,7 @@
<script src='./personalCenter.js'></script>
<!-- Plugin JavaScript -->
<script src="js/jquery.easing.min.js"></script>
<script src="js/classie.js"></script>
<!-- <script src="js/classie.js"></script> -->
<script src="js/cbpAnimatedHeader.js"></script>
<script src="config.js"></script>
<!-- carousel -->
... ...
... ... @@ -755,7 +755,7 @@
<script src="config.js"></script>
<!-- Plugin JavaScript -->
<script src="js/jquery.easing.min.js"></script>
<script src="js/classie.js"></script>
<!-- <script src="js/classie.js"></script> -->
<script src="js/cbpAnimatedHeader.js"></script>
<script src="browseMore.js"></script>
<script type="text/javascript" src="xlPaging.js"></script>
... ...
... ... @@ -640,7 +640,7 @@
<script src="config.js"></script>
<!-- Plugin JavaScript -->
<script src="js/jquery.easing.min.js"></script>
<script src="js/classie.js"></script>
<!-- <script src="js/classie.js"></script> -->
<script src="js/cbpAnimatedHeader.js"></script>
<script src="completed.js"></script>
<!-- carousel -->
... ...
... ... @@ -1882,7 +1882,7 @@
<!-- Plugin JavaScript -->
<script src="js/jquery.easing.min.js"></script>
<script src="js/classie.js"></script>
<!-- <script src="js/classie.js"></script> -->
<!-- <script src="js/owl.carousel.min.js"></script> -->
<script src="js/cbpAnimatedHeader.js"></script>
... ...
... ... @@ -8,37 +8,37 @@
* Copyright 2013, Codrops
* http://www.codrops.com
*/
var cbpAnimatedHeader = (function() {
// var cbpAnimatedHeader = (function() {
var docElem = document.documentElement,
header = document.querySelector( '.navbar-default' ),
didScroll = false,
changeHeaderOn = 150;
// var docElem = document.documentElement,
// header = document.querySelector( '.navbar-default' ),
// didScroll = false,
// changeHeaderOn = 150;
function init() {
window.addEventListener( 'scroll', function( event ) {
if( !didScroll ) {
didScroll = true;
setTimeout( scrollPage, 250 );
}
}, false );
}
// function init() {
// window.addEventListener( 'scroll', function( event ) {
// if( !didScroll ) {
// didScroll = true;
// setTimeout( scrollPage, 250 );
// }
// }, false );
// }
function scrollPage() {
var sy = scrollY();
if ( sy >= changeHeaderOn ) {
classie.add( header, 'navbar-shrink' );
}
else {
classie.remove( header, 'navbar-shrink' );
}
didScroll = false;
}
// function scrollPage() {
// var sy = scrollY();
// if ( sy >= changeHeaderOn ) {
// classie.add( header, 'navbar-shrink' );
// }
// else {
// classie.remove( header, 'navbar-shrink' );
// }
// didScroll = false;
// }
function scrollY() {
return window.pageYOffset || docElem.scrollTop;
}
// function scrollY() {
// return window.pageYOffset || docElem.scrollTop;
// }
init();
// init();
})();
\ No newline at end of file
// })();
\ No newline at end of file
... ...
... ... @@ -11,70 +11,69 @@
/*jshint browser: true, strict: true, undef: true */
/*global define: false */
( function( window ) {
// ( function( window ) {
'use strict';
// 'use strict';
// class helper functions from bonzo https://github.com/ded/bonzo
function classReg( className ) {
return new RegExp("(^|\\s+)" + className + "(\\s+|$)");
}
// function classReg( className ) {
// return new RegExp("(^|\\s+)" + className + "(\\s+|$)");
// }
// classList support for class management
// altho to be fair, the api sucks because it won't accept multiple classes at once
var hasClass, addClass, removeClass;
// var hasClass, addClass, removeClass;
if ( 'classList' in document.documentElement ) {
hasClass = function( elem, c ) {
return elem.classList.contains( c );
};
addClass = function( elem, c ) {
elem.classList.add( c );
};
removeClass = function( elem, c ) {
elem.classList.remove( c );
};
}
else {
hasClass = function( elem, c ) {
return classReg( c ).test( elem.className );
};
addClass = function( elem, c ) {
if ( !hasClass( elem, c ) ) {
elem.className = elem.className + ' ' + c;
}
};
removeClass = function( elem, c ) {
elem.className = elem.className.replace( classReg( c ), ' ' );
};
}
// if ( 'classList' in document.documentElement ) {
// hasClass = function( elem, c ) {
// return elem.classList.contains( c );
// };
// addClass = function( elem, c ) {
// elem.classList.add( c );
// };
// removeClass = function( elem, c ) {
// elem.classList.remove( c );
// };
// }
// else {
// hasClass = function( elem, c ) {
// return classReg( c ).test( elem.className );
// };
// addClass = function( elem, c ) {
// if ( !hasClass( elem, c ) ) {
// elem.className = elem.className + ' ' + c;
// }
// };
// removeClass = function( elem, c ) {
// elem.className = elem.className.replace( classReg( c ), ' ' );
// };
// }
function toggleClass( elem, c ) {
var fn = hasClass( elem, c ) ? removeClass : addClass;
fn( elem, c );
}
// function toggleClass( elem, c ) {
// var fn = hasClass( elem, c ) ? removeClass : addClass;
// fn( elem, c );
// }
var classie = {
// full names
hasClass: hasClass,
addClass: addClass,
removeClass: removeClass,
toggleClass: toggleClass,
// short names
has: hasClass,
add: addClass,
remove: removeClass,
toggle: toggleClass
};
// var classie = {
// // full names
// hasClass: hasClass,
// addClass: addClass,
// removeClass: removeClass,
// toggleClass: toggleClass,
// // short names
// has: hasClass,
// add: addClass,
// remove: removeClass,
// toggle: toggleClass
// };
// transport
if ( typeof define === 'function' && define.amd ) {
// AMD
define( classie );
} else {
// browser global
window.classie = classie;
}
// // transport
// if ( typeof define === 'function' && define.amd ) {
// // AMD
// define( classie );
// } else {
// // browser global
// window.classie = classie;
// }
})( window );
// })( window );
... ...
... ... @@ -1382,7 +1382,7 @@
<div class="show1-Btn3-img">
<img src='./images/bingo.png' style="width: 100%;">
</div>
<span style="color: #fff;padding-left: 10rem;">恭喜你,完成</span>
<span style="color: #fff;padding-left: 0.10rem;">恭喜你,完成</span>
</div>
</div>
<div class="show1-TwoBtn">
... ... @@ -1618,7 +1618,7 @@
<!-- Plugin JavaScript -->
<script src="layer/layer.js"></script>
<script src="js/jquery.easing.min.js"></script>
<script src="js/classie.js"></script>
<!-- <script src="js/classie.js"></script> -->
<script src="js/cbpAnimatedHeader.js"></script>
<script src='learningContent.js'></script>
<script src="config.js"></script>
... ...
... ... @@ -77,12 +77,16 @@ $(document).ready(function () {
$("#title-content").append(singleItem)
first_id = $('#title-content li').find('div').attr('data-id');
console.log(first_id)
// console.log(first_id)
AJAX()
}
$('#title-content ul li').eq(0).trigger('click');
console.log(11111111,$('#title-content ul li').eq(0).attr('data-index'));
}, function (res) {
// console.log(res);
})
}
})
var cc = 1;
... ... @@ -459,10 +463,23 @@ function next() {
allCheck()
} else {
// 选了一半
// var checkStatus
// var classArr = $('.check').parent('#content-list').prev().find('div')[0].classList
// if(checkStatus != classArr[1]){
// console.log('不等');
// alert('连起来')
// return
// }else{
// console.log('等于');
// halfCheck()
// }
halfCheck()
}
}
},function (res) {
alert("请先完成上一个!")
})
... ... @@ -482,6 +499,8 @@ function allCheck() {
// 选了一半
function halfCheck() {
console.log(222);
// console.log($('.check').parent('#content-list').prev().find('div')[0].classList);
if ($('.checkStatus').eq(-1).parent('#content-list').next().length > 0) {
if ($('.check').parent('#content-list').next().length > 0) {
console.log(221133);
... ... @@ -514,7 +533,6 @@ function halfCheck() {
$('.check').addClass('checkStatus').removeClass('check');
$('.checkStatus').parent('#content-list').next().trigger('click')
}
} else {
console.log(1211111111);
$('.check').parent('#content-list').parent().next().trigger('click')
... ...
... ... @@ -1261,7 +1261,7 @@
<!-- Plugin JavaScript -->
<script src="js/jquery.easing.min.js"></script>
<script src="js/classie.js"></script>
<!-- <script src="js/classie.js"></script> -->
<script src="js/cbpAnimatedHeader.js"></script>
<!-- <script src='learningContent.js'></script> -->
<script src="config.js"></script>
... ...
... ... @@ -584,7 +584,7 @@
<script src="https://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"></script>
<!-- Plugin JavaScript -->
<script src="js/jquery.easing.min.js"></script>
<script src="js/classie.js"></script>
<!-- <script src="js/classie.js"></script> -->
<script src="js/cbpAnimatedHeader.js"></script>
<script src="./login.js"></script>
<script src="config.js"></script>
... ...
... ... @@ -1189,7 +1189,7 @@
<script src="config.js"></script>
<!-- Plugin JavaScript -->
<script src="js/jquery.easing.min.js"></script>
<script src="js/classie.js"></script>
<!-- <script src="js/classie.js"></script> -->
<script src="js/cbpAnimatedHeader.js"></script>
<script src="participated.js"></script>
<script src="./changeREM.js"></script>
... ...
... ... @@ -1029,7 +1029,7 @@
<script src='./personalCenter.js'></script>
<!-- Plugin JavaScript -->
<script src="js/jquery.easing.min.js"></script>
<script src="js/classie.js"></script>
<!-- <script src="js/classie.js"></script> -->
<script src="js/cbpAnimatedHeader.js"></script>
<script src="config.js"></script>
<script src="./changeREM.js"></script>
... ...
... ... @@ -1041,7 +1041,7 @@
<script src='./personalCenter2.js'></script>
<!-- Plugin JavaScript -->
<script src="js/jquery.easing.min.js"></script>
<script src="js/classie.js"></script>
<!-- <script src="js/classie.js"></script> -->
<script src="js/cbpAnimatedHeader.js"></script>
<script src="config.js"></script>
<script src="./changeREM.js"></script>
... ...
... ... @@ -1231,7 +1231,7 @@
<script src="config.js"></script>
<!-- Plugin JavaScript -->
<script src="js/jquery.easing.min.js"></script>
<script src="js/classie.js"></script>
<!-- <script src="js/classie.js"></script> -->
<script src="js/cbpAnimatedHeader.js"></script>
<script src="profile.js"></script>
<script src="./changeREM.js"></script>
... ...
... ... @@ -718,7 +718,7 @@
<script src="recommend.js"></script>
<!-- Plugin JavaScript -->
<script src="js/jquery.easing.min.js"></script>
<script src="js/classie.js"></script>
<!-- <script src="js/classie.js"></script> -->
<script src="js/cbpAnimatedHeader.js"></script>
<script type="text/javascript" src="xlPaging.js"></script>
<script src="./changeREM.js"></script>
... ...
... ... @@ -377,7 +377,7 @@
<script src="./save.js"></script>
<!-- Plugin JavaScript -->
<script src="js/jquery.easing.min.js"></script>
<script src="js/classie.js"></script>
<!-- <script src="js/classie.js"></script> -->
<script src="js/cbpAnimatedHeader.js"></script>
<script src="config.js"></script>
<script src="./changeREM.js"></script>
... ...
... ... @@ -380,7 +380,7 @@
<script src="./save1.js"></script>
<!-- Plugin JavaScript -->
<script src="js/jquery.easing.min.js"></script>
<script src="js/classie.js"></script>
<!-- <script src="js/classie.js"></script> -->
<script src="js/cbpAnimatedHeader.js"></script>
<script src="config.js"></script>
<script src="./changeREM.js"></script>
... ...