-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
51 lines (38 loc) · 1.07 KB
/
script.js
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
50
51
$(function(){
$('.faq-list-item').click(function(){
var $answer = $(this).find('.answer');
if($answer.hasClass('open')){
$answer.removeClass('open');
$answer.slideUp();
$(this).find('span').text('+');
}else{
$answer.addClass('open');
$answer.slideDown();
$(this).find('span').text('-');
}
});
$('.logo').click(function(){
$('html,body').animate({'scrollTop':0},500);
});
$('header a').click(function(){
var id = $(this).attr('href');
var position = $(id).offset().top;
$('html,body').animate({
'scrollTop':position
},500);
});
$('#slider1').sliderPro({
width:600,//横幅
buttons: false,//ナビゲーションボタン
shuffle: true,//スライドのシャッフル
thumbnailWidth: 200,//サムネイルの横幅
thumbnailHeight: 60,//サムネイルの縦幅
slideDistance:0,//スライド同士の距離
breakpoints: {
480: {//表示方法を変えるサイズ
thumbnailWidth: 110,
thumbnailHeight: 40
}
}
});
});