-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjsfile.js
120 lines (76 loc) · 2.3 KB
/
jsfile.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
$(document).ready(function(){
$('.cquest').hide();
$('.question').on('click',function(){ // For the Frequently asked questions
var thisp = $(this).attr("data-id");
$('.cquest').hide();
$('#' + thisp).toggle();
})
$('.gg').on('mouseover',function(){ // For the services card to flip
var thise = $(this).attr("data-gg-id");
$('.' + thise).css({
'opacity':'.93',
'transition':'.75s all',
'backgroundColor':'var(--fc-yellow)',
'box-shadow':'white 0px 10px 20px 5px',
'transform':'rotateY(0deg)'
})
})
$('.gg').on('mouseout',function(){ // For the services card to flip
var thise = $(this).attr("data-gg-id");
$('.' + thise).css({
'opacity':'0',
'transition':'.75s all',
'transform':'rotateY(-180deg)'
})
})
$('#arrow-menu').on('click',function(){ //makes the arrow turn and dropdown avail
var arrow = $(this).toggleClass('active');
var menuDown = $('.nav-ul');
menuDown.toggleClass('menu-active');
})
$('.nav-ul li').on('click',function(){ // To remove the thing after clicking a link
$('#arrow-menu').removeClass('active');
var menuDown = $('.nav-ul');
menuDown.removeClass('menu-active');
})
$('.showall').on('click',function(){
$('.hidden-gg').toggleClass('hidden-gg')
$('.showall-div').css({
'display':'none'
})
})
$('.owl-carousel').owlCarousel({
loop:true,
margin:10,
responsive:{
0:{
items:1
},
600:{
items:2
},
1000:{
items:4
},
1300:{
items:5
}
}
})
})
/*
$('.gg').on('mouseover',function(){
var thise = $(this).attr("data-gg-id");
console.log(thise);
$('.' + thise).css({
'visibility':'visible'
})
})
$('.gg').on('mouseout',function(){
var thise = $(this).attr("data-gg-id");
console.log(thise);
$('.' + thise).css({
'visibility':'hidden'
})
})
*/