forked from xieweiseo/bootstrap-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
skin-config.html
249 lines (230 loc) · 8.83 KB
/
skin-config.html
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
<!-- saved from url=(0050)http://www.zi-han.net/theme/hplus/skin-config.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body><div class="theme-config">
<div class="theme-config-box">
<div class="spin-icon">
<i class="fa fa-cog fa-spin"></i>
</div>
<div class="skin-setttings">
<div class="title">主题设置</div>
<div class="setings-item">
<span>
收起左侧菜单
</span>
<div class="switch">
<div class="onoffswitch">
<input type="checkbox" name="collapsemenu" class="onoffswitch-checkbox" id="collapsemenu">
<label class="onoffswitch-label" for="collapsemenu">
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
</div>
</div>
</div>
<div class="setings-item">
<span>
固定侧边栏
</span>
<div class="switch">
<div class="onoffswitch">
<input type="checkbox" name="fixedsidebar" class="onoffswitch-checkbox" id="fixedsidebar">
<label class="onoffswitch-label" for="fixedsidebar">
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
</div>
</div>
</div>
<div class="setings-item">
<span>
固定顶部
</span>
<div class="switch">
<div class="onoffswitch">
<input type="checkbox" name="fixednavbar" class="onoffswitch-checkbox" id="fixednavbar">
<label class="onoffswitch-label" for="fixednavbar">
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
</div>
</div>
</div>
<div class="setings-item">
<span>
固定宽度
</span>
<div class="switch">
<div class="onoffswitch">
<input type="checkbox" name="boxedlayout" class="onoffswitch-checkbox" id="boxedlayout">
<label class="onoffswitch-label" for="boxedlayout">
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
</div>
</div>
</div>
<div class="setings-item">
<span>
固定底部
</span>
<div class="switch">
<div class="onoffswitch">
<input type="checkbox" name="fixedfooter" class="onoffswitch-checkbox" id="fixedfooter">
<label class="onoffswitch-label" for="fixedfooter">
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
</div>
</div>
</div>
<div class="setings-item">
<span>
RTL模式
</span>
<div class="switch">
<div class="onoffswitch">
<input type="checkbox" name="RTLmode" class="onoffswitch-checkbox" id="RTLmode">
<label class="onoffswitch-label" for="RTLmode">
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
</div>
</div>
</div>
<div class="title">皮肤选择</div>
<div class="setings-item default-skin">
<span class="skin-name ">
<a href="#" class="s-skin-0">
默认皮肤
</a>
</span>
</div>
<div class="setings-item blue-skin">
<span class="skin-name ">
<a href="#" class="s-skin-1">
蓝色主题
</a>
</span>
</div>
<div class="setings-item yellow-skin">
<span class="skin-name ">
<a href="#" class="s-skin-3">
黄色/紫色主题
</a>
</span>
</div>
<div class="setings-item ultra-skin">
<span class="skin-name ">
<a href="#" class="s-skin-2">
灰色主题
</a>
</span>
</div>
</div>
</div>
</div>
<script>
// 顶部菜单固定
$('#fixednavbar').click(function () {
if ($('#fixednavbar').is(':checked')) {
$(".navbar-static-top").removeClass('navbar-static-top').addClass('navbar-fixed-top');
$("body").removeClass('boxed-layout');
$("body").addClass('fixed-nav');
$('#boxedlayout').prop('checked', false);
} else {
$(".navbar-fixed-top").removeClass('navbar-fixed-top').addClass('navbar-static-top');
$("body").removeClass('fixed-nav');
}
});
// 左侧菜单固定
$('#fixedsidebar').click(function () {
if ($('#fixedsidebar').is(':checked')) {
$("body").addClass('fixed-sidebar');
$('.sidebar-collapse').slimScroll({
height: '100%',
railOpacity: 0.9
});
} else {
$('.sidebar-collapse').slimscroll({
destroy: true
});
$('.sidebar-collapse').attr('style', '');
$("body").removeClass('fixed-sidebar');
}
});
// 收起左侧菜单
$('#collapsemenu').click(function () {
if ($('#collapsemenu').is(':checked')) {
$("body").addClass('mini-navbar');
SmoothlyMenu();
} else {
$("body").removeClass('mini-navbar');
SmoothlyMenu();
}
});
// 自适应宽度
$('#boxedlayout').click(function () {
if ($('#boxedlayout').is(':checked')) {
$("body").addClass('boxed-layout');
$('#fixednavbar').prop('checked', false);
$(".navbar-fixed-top").removeClass('navbar-fixed-top').addClass('navbar-static-top');
$("body").removeClass('fixed-nav');
$(".footer").removeClass('fixed');
$('#fixedfooter').prop('checked', false);
} else {
$("body").removeClass('boxed-layout');
}
});
// 底部版权固定
$('#fixedfooter').click(function () {
if ($('#fixedfooter').is(':checked')) {
$('#boxedlayout').prop('checked', false);
$("body").removeClass('boxed-layout');
$(".footer").addClass('fixed');
} else {
$(".footer").removeClass('fixed');
}
});
// RTL模式
$('#RTLmode').click(function () {
if ($('#RTLmode').is(':checked')) {
$('head').append('<link href="css/bootstrap-rtl.css" id="rtl-mode" rel="stylesheet">');
$('body').addClass('rtls');
} else {
$('#rtl-mode').remove();
$('body').removeClass('rtls');
}
});
// 皮肤选择
$('.spin-icon').click(function () {
$(".theme-config-box").toggleClass("show");
});
// 默认主题
$('.s-skin-0').click(function () {
$("body").removeClass("skin-1");
$("body").removeClass("skin-2");
$("body").removeClass("skin-3");
});
// 蓝色主题
$('.s-skin-1').click(function () {
$("body").removeClass("skin-2");
$("body").removeClass("skin-3");
$("body").addClass("skin-1");
});
// 灰色主题
$('.s-skin-2').click(function () {
$("body").removeClass("skin-1");
$("body").removeClass("skin-3");
$("body").addClass("skin-2");
});
// 黄色主题
$('.s-skin-3').click(function () {
$("body").removeClass("skin-1");
$("body").removeClass("skin-2");
$("body").addClass("skin-3");
});
</script>
<style>
.fixed-nav .slimScrollDiv #side-menu {
padding-bottom: 60px;
}
</style></body></html>