source: extensions/cuise/js/theme.js @ 19990

Last change on this file since 19990 was 19990, checked in by cljosse, 11 years ago
  • [style] cuise save
File size: 1.5 KB
Line 
1/* -----------------------------------------------------------------------------
2  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  ------------------------------------------------------------------------------
11  Specific JS for the theme
12----------------------------------------------------------------------------- */
13
14jQuery(document).ready(
15  function () {
16          jQuery('.size28x28#icon_gmaps').css({
17      height: '23px'
18    });
19   
20    jQuery('a.pwg-state-default').each(function (i) {
21      obj = this;
22      jQuery(obj).addClass("button").removeClass('pwg-state-default').removeClass('pwg-button');
23      html = jQuery(obj).html();
24      if (html.indexOf("url(") > 0) {
25
26        id = this.id;
27        jQuery(this).css({
28          backgroundPosition: "-588px +28px"
29
30        });
31        htmls = html.split("url(");
32        htmls = htmls[1].split(")");
33        html = "<img src=" + htmls[0] + " class='pwg-button img_button'   />";
34
35      } else if (html.indexOf("map") > 0) {
36        html = "";
37        jQuery(this).css({
38          backgroundPosition: "-588px -28px",
39          position: 'relative'
40          // bottom:'-10px',left:'-5px'
41        });
42      }
43
44      jQuery(obj).html(html);
45    });
46  }
47);
48
49
50   
Note: See TracBrowser for help on using the repository browser.