Line | |
---|
1 | /* ----------------------------------------------------------------------------- |
---|
2 | GALLY-CUISE |
---|
3 | Template for Piwigo |
---|
4 | ------------------------------------------------------------------------------ |
---|
5 | file: js/theme.js |
---|
6 | file release: 1.0.0 |
---|
7 | theme release: 1.5.0 |
---|
8 | ------------------------------------------------------------------------------ |
---|
9 | author: cljosse at piwigo.org |
---|
10 | << May the Little SpaceFrog be with you >> |
---|
11 | ------------------------------------------------------------------------------ |
---|
12 | Specific JS for the theme |
---|
13 | |
---|
14 | see the release_notes.txt file for more informations |
---|
15 | ----------------------------------------------------------------------------- */ |
---|
16 | |
---|
17 | jQuery(document).ready( |
---|
18 | function () { |
---|
19 | jQuery('.size28x28#icon_gmaps').css({ |
---|
20 | height: '23px' |
---|
21 | }); |
---|
22 | |
---|
23 | jQuery('a.pwg-state-default').each(function (i) { |
---|
24 | obj = this; |
---|
25 | jQuery(obj).addClass("button").removeClass('pwg-state-default').removeClass('pwg-button'); |
---|
26 | html = jQuery(obj).html(); |
---|
27 | if (html.indexOf("url(") > 0) { |
---|
28 | |
---|
29 | id = this.id; |
---|
30 | jQuery(this).css({ |
---|
31 | backgroundPosition: "-588px +28px" |
---|
32 | |
---|
33 | }); |
---|
34 | htmls = html.split("url("); |
---|
35 | htmls = htmls[1].split(")"); |
---|
36 | html = "<img src=" + htmls[0] + " class='pwg-button img_button' />"; |
---|
37 | |
---|
38 | } else if (html.indexOf("map") > 0) { |
---|
39 | html = ""; |
---|
40 | jQuery(this).css({ |
---|
41 | backgroundPosition: "-588px -28px", |
---|
42 | position: 'relative' |
---|
43 | // bottom:'-10px',left:'-5px' |
---|
44 | }); |
---|
45 | } |
---|
46 | |
---|
47 | jQuery(obj).html(html); |
---|
48 | }); |
---|
49 | } |
---|
50 | ); |
---|
51 | |
---|
52 | |
---|
53 | |
---|
Note: See
TracBrowser
for help on using the repository browser.