help-index.page.js
1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/**
* [帮助中心首页]
* @author: wsl(shuiling.wang@yoho.cn)
* @date: 2016/12/01
*/
var helpSearch = require('./help-search');
var problemBox = require('./problem-box');
var Scroller = require('./scroller');
require('../common/header');
require('../common/return-top');
$(function() {
helpSearch.init();
problemBox();
$('.help-nav li').each(function(key, item) {
if (key % 3 === 0) {
$(item).css({
marginLeft: 0,
clear: 'both'
});
}
});
$('.new-guide li').each(function(key, item) {
if (key % 4 === 0) {
$(item).css({
marginLeft: 0,
clear: 'both'
});
}
});
$('.self-service li').each(function(key, item) {
if (key % 5 === 0) {
$(item).css({
marginLeft: 0,
clear: 'both'
});
}
});
setTimeout(function() {
new Scroller('notice', 30, 5);
}, 5000);
});