Last change
on this file since 2121 was
2121,
checked in by nanardon, 7 years ago
|
add tools to search employments
|
File size:
929 bytes
|
Line | |
---|
1 | |
---|
2 | (function($, undefined){ |
---|
3 | |
---|
4 | function createDemos(){ |
---|
5 | var simple = $("<div id='slider' />").appendTo("body"), |
---|
6 | date = $("<div id='date' />").appendTo("body"), |
---|
7 | modifiable = $("<div id='modifiable' />").appendTo("body"); |
---|
8 | |
---|
9 | simple.sliderDemo(); |
---|
10 | date.dateSliderDemo(); |
---|
11 | modifiable.editSliderDemo(); |
---|
12 | } |
---|
13 | |
---|
14 | function changeTheme(e){ |
---|
15 | var target = $(e.currentTarget), |
---|
16 | path = "../css/", |
---|
17 | theme; |
---|
18 | |
---|
19 | if (target.hasClass("selected")){ |
---|
20 | return |
---|
21 | } |
---|
22 | |
---|
23 | $("#themeSelector .selected").removeClass("selected"); |
---|
24 | |
---|
25 | theme = target.attr("class"); |
---|
26 | |
---|
27 | $("#themeSelector ."+theme).addClass("selected"); |
---|
28 | |
---|
29 | $("#themeCSS").attr("href", path + theme + ".css"); |
---|
30 | |
---|
31 | setTimeout(function(){ |
---|
32 | $(window).resize(); |
---|
33 | }, 500); |
---|
34 | } |
---|
35 | |
---|
36 | function initTheme(){ |
---|
37 | $("#themeSelector dd, #themeSelector dt").click(changeTheme); |
---|
38 | } |
---|
39 | |
---|
40 | $(document).ready(function(){ |
---|
41 | createDemos(); |
---|
42 | initTheme(); |
---|
43 | }); |
---|
44 | |
---|
45 | })(jQuery); |
---|
Note: See
TracBrowser
for help on using the repository browser.