zhongshujie
2024-11-20 cd372b367df87784ac5672601a95d6235782c918
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
var header = document.getElementById("header");
var light_btn = document.getElementById("lightSkin");
var dark_btn = document.getElementById("darkSkin")
 
$("#lightSkin").click(function () {
 
    header.style.background = "#e0e0d1";
 
    //Lighter colour for buttons and hover   
    light_btn.style.background = "#8a8a5c";
    dark_btn.style.background = "#8a8a5c";
  
    $("#lightSkin").hover(function () {
        $(this).css("background", "#333"); //Light blue colour on hover
    }, function () {
        $(this).css("background", "#333"); //back to light theme colour when not hovering
    });
    $("#darkSkin").hover(function () {
        $(this).css("background", "#333"); //Light blue colour on hover
    }, function () {
        $(this).css("background", "#333"); //back to light theme colour when not hovering
    });
 
    /*SET SIDE AND BOTTOM MENU BACKGROUND COLOURS*/
    $(".side_menu").each(function () {
        $(this).css("background", "#fff"); //b8b894
    });
 
    $("#bottom_menu").each(function () {
        $(this).css("background", "#b8b894");
    });
    /*SET SIDE AND BOTTOM MENU BACKGROUND COLOURS*/
 
    //Menu item list items background i.e. the box that contains the options e.g. light sliders
    $(".menu_item > li").each(function () {
        $(this).css("background", "#666");
    });
 
    //Each subsequent list item set to same background colour
    $(".menu_item > li > ul > li").each(function () {
        $(this).css("background", "#666");
    });
 
    //List item links background colour + darker text colour e.g. wireframe mode, phong shading
    $(".menu_item > li > a").each(function () {
        $(this).css("background", "#fff");
        $(this).css("color", "#000000");
    });
 
    //Hovering over list item links e.g. wireframe mode, phong shading
    $(".menu_item li a").hover(function () {
        $(this).css("background", "#cce6ff"); //Light blue colour on hover
    }, function () {
        $(this).css("background", "#fff"); //back to light theme colour when not hovering
    });
 
    /***BOTTOM MENU***/
    //list items background i.e. the box that contains the options e.g. light sliders
    $(".bottom_menu_item > li").each(function () {
        $(this).css("background", "#8a8a5c");
    });
 
    //Each subsequent list item set to same background colour
    $(".bottom_menu_item > li > ul > li").each(function () {
        $(this).css("background", "#8a8a5c");
    });
 
    //List item links background colour + darker text colour e.g. wireframe mode, phong shading
    $(".bottom_menu_item > li > a").each(function () {
        $(this).css("background", "#e0e0d1");
        $(this).css("color", "#000000");
    });
 
    //Hovering over list item links e.g. wireframe mode, phong shading
    $(".bottom_menu_item li a").hover(function () {
        $(this).css("background", "#cce6ff"); //Light blue colour on hover
    }, function () {
        $(this).css("background", "#e0e0d1"); //back to light theme colour when not hovering
    });
 
});
 
$("#darkSkin").click(function ()
{
    header.style.background = "#3d5c5c";
 
    //Lighter colour for buttons and hover
    light_btn.style.background = "#3d5c5c";
    dark_btn.style.background = "#3d5c5c";
 
    $("#lightSkin").hover(function () {
        $(this).css("background", "#494a4c"); //Light blue colour on hover
    }, function () {
        $(this).css("background", "#3d5c5c"); //back to light theme colour when not hovering
    });
    $("#darkSkin").hover(function () {
        $(this).css("background", "#494a4c"); //Light blue colour on hover
    }, function () {
        $(this).css("background", "#3d5c5c"); //back to light theme colour when not hovering
    });
 
    /*SET SIDE AND BOTTOM MENU BACKGROUND COLOURS*/
    $(".side_menu").each(function () {
        $(this).css("background", "#494a4c");
    });
 
    $("#bottom_menu").each(function () {
        $(this).css("background", "#494a4c");
    });
    /*SET SIDE AND BOTTOM MENU BACKGROUND COLOURS*/
 
    //Menu item list items background except the first (so that header remains different colour)
    $(".menu_item > li").not(":first").each(function () {
        $(this).css("background", "#1d1e1e");
    });
 
    //Each subsequent list item set to same background colour
    $(".menu_item > li > ul > li").each(function () {
        $(this).css("background", "#1d1e1e");
    });
 
    //List item links background colour + darker text colour e.g. wireframe mode, phong shading
    $(".menu_item > li > a").each(function () {
        $(this).css("background", "#1d1e1e");
        $(this).css("color", "#fff");
    });
 
    //Hovering over list item links e.g. wireframe mode, phong shading
    $(".menu_item li a").hover(function () {
        $(this).css("background", "#494a4c"); 
    }, function () {
        $(this).css("background", "#1d1e1e");
    });
 
    /*********BOTTOM MENU********/
 
    //list items background i.e. the box that contains the options e.g. light sliders
    $(".bottom_menu_item > li").each(function () {
        $(this).css("background", "#1d1e1e");
    });
 
    //Each subsequent list item set to same background colour
    $(".bottom_menu_item > li > ul > li").each(function () {
        $(this).css("background", "#1d1e1e");
    });
 
    //List item links background colour + darker text colour e.g. wireframe mode, phong shading
    $(".bottom_menu_item > li > a").each(function () {
        $(this).css("background", "#1d1e1e");
        $(this).css("color", "#fff");
    });
 
    //Hovering over list item links e.g. wireframe mode, phong shading
    $(".bottom_menu_item li a").hover(function () {
        $(this).css("background", "#494a4c");
    }, function () {
        $(this).css("background", "#1d1e1e");
    });
 
 
 
});