Last change
on this file since 16250 was
10190,
checked in by uli, 12 years ago
|
Add original theme as delivered by Fafalter.
|
File size:
1.2 KB
|
Line | |
---|
1 | function renderCurrentYear() { |
---|
2 | var mydate=new Date() |
---|
3 | var year=mydate.getYear() |
---|
4 | if (year < 1000) |
---|
5 | year+=1900 |
---|
6 | var day=mydate.getDay() |
---|
7 | var month=mydate.getMonth() |
---|
8 | var daym=mydate.getDate() |
---|
9 | if (daym<10) |
---|
10 | daym="0"+daym |
---|
11 | document.write(year) |
---|
12 | } |
---|
13 | |
---|
14 | /** Dynamic Layout **/ |
---|
15 | function setLayoutDynamicSettings() { |
---|
16 | adaptSearchBoxMobile(); |
---|
17 | $(window).resize(function() { |
---|
18 | adaptSearchBoxMobile(); |
---|
19 | }); |
---|
20 | } |
---|
21 | |
---|
22 | function adaptSearchBoxMobile() { |
---|
23 | if ($(".btn-navbar").css('display')!='none') { |
---|
24 | $(".navbar-form").addClass('mobile'); |
---|
25 | } else { |
---|
26 | $(".navbar-form").removeClass('mobile'); |
---|
27 | } |
---|
28 | } |
---|
29 | |
---|
30 | /** Slider **/ |
---|
31 | function initSlider() { |
---|
32 | $("#slider1").responsiveSlides({ |
---|
33 | auto: true, |
---|
34 | pager: true, |
---|
35 | nav: true, |
---|
36 | speed: 500, |
---|
37 | maxwidth: 800, |
---|
38 | namespace: "centered-btns" |
---|
39 | }); |
---|
40 | } |
---|
41 | |
---|
42 | /** News ticker **/ |
---|
43 | function initTicker() { |
---|
44 | |
---|
45 | if ($("html").is('.ie7, .ie8')) { |
---|
46 | // sorry, no dynamic ticker for you |
---|
47 | } else { |
---|
48 | $("#streaming-news").vTicker({ |
---|
49 | speed: 500, |
---|
50 | pause: 3500, |
---|
51 | animation: 'fade', |
---|
52 | mousePause: true |
---|
53 | }); |
---|
54 | } |
---|
55 | } |
---|
56 | |
---|
57 | function initHomeFunctions() { |
---|
58 | initSlider(); |
---|
59 | initTicker(); |
---|
60 | setLayoutDynamicSettings(); |
---|
61 | } |
---|
62 | |
---|
63 | function initInnerPageFunctions() { |
---|
64 | initTicker(); |
---|
65 | setLayoutDynamicSettings(); |
---|
66 | } |
---|
Note: See
TracBrowser for help on using the repository browser.