-
Notifications
You must be signed in to change notification settings - Fork 15
/
wing.js
116 lines (100 loc) · 5.38 KB
/
wing.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
$(function () {
$(document).scroll(function () {
var $logo = $(".nav-logo");
$logo.toggleClass('scroll-img', $(this).scrollTop() > 10);
var $nav_links = $(".navbar-nav li a")
var $bars = $(".fa-bars");
if(localStorage.getItem("theme")=="0") //light mode
{
$logo.toggleClass('mode-change-color', $(this).scrollTop() > $logo.height());
$bars.toggleClass('mode-change-color', $(this).scrollTop() > $logo.height());
$nav_links.toggleClass('link-change-color', $(this).scrollTop() > $logo.height());
if (window.matchMedia('(max-width: 768px)').matches)
{
$nav_links.toggleClass('link2-change-color', $(this).scrollTop() > $logo.height());
}
}
var $nav = $(".navbar-fixed-top");
$nav.toggleClass('scrolled', $(this).scrollTop() > 10);
});
});
if(localStorage.getItem("theme")=="0"){
$(document.body).attr('style', 'background-color: white !important');
$(".margin-div-bottom").children('p').css('color','black');
$(".navbar-nav li a").css('color','#000000')
$('.slider').css('background-color','black');
$('.sub-heading').attr('style','color: #0D9C85')
$('.intro-heading').css('color','black')
$('.main-heading').css('color','black')
$('.nav-logo').attr('src','./images/gh.svg')
$('.texta').attr('style', 'color: #0D9C85')
$('.coordi-post').attr('style', 'color: #0D9C85')
$('.arrow-down').attr('style','color: #0D9C85')
$(".more").css('color','#0D9C75')
$('.whiteToBlack').attr('style', 'color: black')
$('.blacktowhite').attr('style', 'color: white')
$('.arrow').attr('src','./images/arrow-light.png')
$('.fa-bars').css('color','#000000')
$('.event-date').attr('style','background-color: #0D9C85; border-color: #0D9C85')
$('.card-title').attr('style','background:linear-gradient(90deg, #F2A3A3 50%, #FFFFFF 50%);box-shadow: 0 0 10px #ccc')
$('.card-2').attr('style','background:linear-gradient(90deg, #FFFFFF 50%, #BBB6F3 50%);box-shadow: 0 0 10px #ccc')
$('.card-3').attr('style','background:linear-gradient(90deg, #EDBDF4 50%, #FFFFFF 50%);box-shadow: 0 0 10px #ccc')
if (window.matchMedia('(max-width: 480px)').matches)
{
$('.card-title').attr('style','background:linear-gradient(to bottom, #F2A3A3 50%, #FFFFFF 50%) !important;box-shadow: 0 0 10px #ccc')
$('.card-2').attr('style','background:linear-gradient(to bottom, #BBB6F3 50%, #FFFFFF 50%) !important;box-shadow: 0 0 10px #ccc')
$('.card-3').attr('style','background:linear-gradient(to bottom, #EDBDF4 50%, #FFFFFF 50%) !important;box-shadow: 0 0 10px #ccc')
}
$('.card-btn').attr('style','background-color: #0D9C85 !important; border-color: #0D9C85 !important')
$('.blogs h2').attr('style','color: #000000')
$('.blogs button').attr('style','background-color: #15C4A8; border-color: #15C4A8')
$('.blogs span').attr('style','color: #FFFFFF')
$('.contacts h2').attr('style','color: #000000')
$('.contacts a').attr('style','color: #15C4A8; border-color:#15C4A8')
$('.footer').attr('style','background-color: #E7E7E7')
$('.whiteToblackBg').attr('style', 'background-color: white')
}else{
$(document.body).attr('style', 'background-color: #252628 !important');
$(".margin-div-bottom").children('p').css('color','white');
$(".navbar-nav li a").css('color','#13F7D2')
$('.sub-heading').attr('style','color: #13F7D2')
$('.intro-heading').css('color','white')
$('.main-heading').css('color','white')
$('.nav-logo').attr('src','./images/gh.png')
$('.texta').attr('style', 'color: #13F7D2')
$('.coordi-post').attr('style', 'color: #13F7D2')
$('.arrow-down').attr('style','color: #13F7D2')
$(".more").css('color','#13F7D2')
$('.arrow').attr('src','./images/arrow.png')
$('.fa-bars').css('color','#FFFFFF')
$('.slider').css('background-color','white');
$('.whiteToBlack').attr('style', 'color: white')
$('.blacktowhite').attr('style', 'color: black')
$('.event-date').attr('style','background-color: #13F7D2; border-color: #13F7D2')
$('.card-title').attr('style','background:linear-gradient(90deg, #d52b2b 50%, #27282b 50%);box-shadow: 0')
$('.card-2').attr('style','background:linear-gradient(90deg, #27282B 50%, #4C40D2 50%);box-shadow: 0')
$('.card-3').attr('style','background:linear-gradient(90deg, #A823BD 50%, #27282B 50%);box-shadow: 0')
if (window.matchMedia('(max-width: 480px)').matches)
{
$('.card-title').attr('style','background:linear-gradient(to bottom, #d52b2b 50%, #27282b 50%) !important;box-shadow: 0 0 10px #ccc')
$('.card-2').attr('style','background:linear-gradient(to bottom, #4c40d2 50%, #27282b 50%) !important;box-shadow: 0 0 10px #ccc')
$('.card-3').attr('style','background:linear-gradient(to bottom, #a823bd 50%, #27282b 50%) !important;box-shadow: 0 0 10px #ccc')
}
$('.card-btn').attr('style','background-color: #13F7D2 !important; border-color: #13F7D2 !important')
$('.blogs h2').attr('style','color: #FFFFFF')
$('.blogs button').attr('style','background-color: #13F7D2; border-color: #13F7D2')
$('.blogs span').attr('style','color: #000000')
$('.contacts h2').attr('style','color: #FFFFFF')
$('.contacts a').attr('style','color: #13F7D2; border-color:#13F7D2')
$('.footer').attr('style','background-color: #1D1D1F')
$('.whiteToblackBg').attr('style', 'background-color: #252628 ')
}
$(document).ready(function() {
//Preloader
preloaderFadeOutTime = 500;
function hidePreloader() {
var preloader = $('.b1');
preloader.fadeOut(preloaderFadeOutTime);
}
hidePreloader();
});