...
|
...
|
@@ -27,6 +27,9 @@ lazyLoad($('img.lazy')); |
|
|
//$('img:in-viewport').trigger('appear');
|
|
|
|
|
|
|
|
|
$('.download-btn').on('click', function (event) {
|
|
|
alert('点击了');
|
|
|
}
|
|
|
//点击首页汉堡menu图标,滑出侧栏导航
|
|
|
$('.nav-btn').on('click', function (event) {
|
|
|
if (!$(this).hasClass('menu-open')) {
|
...
|
...
|
@@ -153,17 +156,18 @@ $('.header-download').on('click', '.close-btn', function () { |
|
|
//logo动画
|
|
|
requestFrame = (function () {
|
|
|
prefixList = ['webkit', 'moz', 'ms'];
|
|
|
|
|
|
var tempFunc = null;
|
|
|
for (i = 0; i < prefixList.length; i++) {
|
|
|
thisFunc = prefixList[i] + 'RequestAnimationFrame';
|
|
|
if (window[thisFunc]) {
|
|
|
supportCss3 = true;
|
|
|
tempFunc = thisFunc;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (supportCss3) {
|
|
|
return function (callback) {
|
|
|
window[thisFunc](callback);
|
|
|
window[tempFunc](callback);
|
|
|
};
|
|
|
}
|
|
|
return function (callback) {
|
...
|
...
|
|