-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
123 lines (112 loc) · 3.87 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
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
121
122
$(document).ready(function() {
// executes when HTML-Document is loaded and DOM is ready
console.log("document is ready");
$(".masthead-card").hover(
function() {
$(this).addClass('blue-card').css('cursor', 'pointer');
$(".masthead-text", this).addClass('white');
$(".icon-blue", this).addClass('inactive');
$(".icon-blue", this).removeClass('active');
$(".icon-white", this).addClass('active');
$(".icon-white", this).removeClass('inactive');
}, function() {
$(this).removeClass('blue-card');
$(".icon-blue", this).addClass('active');
$(".icon-blue", this).removeClass('inactive');
$(".icon-white", this).removeClass('active');
$(".icon-white", this).addClass('inactive');
$(".masthead-text", this).removeClass('white');
}
);
$(".tc-1").hover(
function() {
$(this).addClass('white-card').css('cursor', 'pointer');
$(".technique-text", this).addClass('dark');
$(".technique-text", this).removeClass('white');
}, function() {
}
);
$(".tc-2").hover(
function() {
$(this).addClass('white-card').css('cursor', 'pointer');
$(".technique-text", this).addClass('dark');
$(".technique-text", this).removeClass('white');
$(".global,.group,.feature").css("display", "none");
$(".local").css("display", "block");
globalFunctionOff();
}, function() {
$(this).removeClass('white-card');
$(".technique-text", this).removeClass('dark');
$(".technique-text", this).addClass('white');
$(".global").css("display", "block");
$(".local").css("display", "none");
globalFunctionOn();
}
);
$(".tc-3").hover(
function() {
$(this).addClass('white-card').css('cursor', 'pointer');
$(".technique-text", this).addClass('dark');
$(".technique-text", this).removeClass('white');
$(".global,.local,.feature").css("display", "none");
$(".group").css("display", "block");
globalFunctionOff();
}, function() {
$(this).removeClass('white-card');
$(".technique-text", this).removeClass('dark');
$(".technique-text", this).addClass('white');
$(".global").css("display", "block");
$(".group").css("display", "none");
globalFunctionOn();
}
);
$(".tc-4").hover(
function() {
$(this).addClass('white-card').css('cursor', 'pointer');
$(".technique-text", this).addClass('dark');
$(".technique-text", this).removeClass('white');
$(".global,.local,.group").css("display", "none");
$(".feature").css("display", "block");
globalFunctionOff();
}, function() {
$(this).removeClass('white-card');
$(".technique-text", this).removeClass('dark');
$(".technique-text", this).addClass('white');
$(".global").css("display", "block");
$(".feature").css("display", "none");
globalFunctionOn();
}
);
function globalFunctionOff() {
$(".tc-1 .technique-text").removeClass( "dark" )
$(".tc-1 .technique-text").addClass( "white" )
$(".tc-1").removeClass( "white-card" )
};
function globalFunctionOn() {
$(".tc-1 .technique-text").addClass('dark');
$(".tc-1 .technique-text").removeClass('white');
$(".tc-1").addClass( "white-card" )
};
$(".box-card-1").click(
function() {
console.log("box 1 clicked");
$(".glass").removeClass('inactive');
$(".black").removeClass('active');
}
);
$(".box-card-2").click(
function() {
console.log("box 2 clicked");
$(".glass").addClass('inactive');
$(".black").addClass('active');
}
);
$(document).click(function (event) {
var clickover = $(event.target);
var _opened = $(".navbar-collapse").hasClass("show");
if (_opened === true && !clickover.hasClass("navbar-toggler")) {
$(".navbar-toggler").click();
}
});
// document ready
});