-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
79 lines (72 loc) · 1.97 KB
/
app.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
//Toggle Profile Section
$(document).ready(function(){
$('#openCloseProfile').click(function(){
if($(this).text() == "open"){
$(this).text("close");
$('.profile-toggle').fadeIn();
} else {
$(this).text("open");
$('.profile-toggle').fadeOut();
}
});
});
//Toggle Additional Content
$(document).ready(function(){
$('#toggleButton').click(function(){
if($(this).text() == "Read More"){
$(this).text("Read Less");
$('.additional-content-section').fadeIn();
} else {
$(this).text("Read More");
$('.additional-content-section').fadeOut();
}
});
});
//News Section
$(document).ready(function(){
$('#openCloseNews').click(function(){
if($(this).text() == "open"){
$(this).text("close");
$('.news-toggle').fadeIn();
} else {
$(this).text("open");
$('.news-toggle').fadeOut();
}
});
});
//Entertainment Section
$(document).ready(function(){
$('#openCloseEntertainment').click(function(){
if($(this).text() == "open"){
$(this).text("close");
$('.entertainment-toggle').fadeIn();
} else {
$(this).text("open");
$('.entertainment-toggle').fadeOut();
}
});
});
//Sports Section
$(document).ready(function(){
$('#openCloseSports').click(function(){
if($(this).text() == "open"){
$(this).text("close");
$('.sports-toggle').fadeIn();
} else {
$(this).text("open");
$('.sports-toggle').fadeOut();
}
});
});
//Finance Section
$(document).ready(function(){
$('#openCloseFinance').click(function(){
if($(this).text() == "open"){
$(this).text("close");
$('.finance-toggle').fadeIn();
} else {
$(this).text("open");
$('.finance-toggle').fadeOut();
}
});
});