home *** CD-ROM | disk | FTP | other *** search
/ grafika-wolowiec.cba.pl / grafika-wolowiec.cba.pl.tar / grafika-wolowiec.cba.pl / res / x5settings.js < prev    next >
Text File  |  2014-01-24  |  2KB  |  94 lines

  1. (function ( $, x5engine ) {
  2.     var x = x5engine,
  3.         s = x.settings,
  4.         p = s.currentPath,
  5.         b = x.boot;
  6.  
  7.     b.push(function () {
  8.         x.setupDateTime();
  9.         x.imAccess.showLogout();
  10.         x.utils.autoHeight();
  11.         x.cart.ui.updateWidget();
  12.         x.imGrid.init();
  13.     });
  14.     b.push(function () {
  15.         x.menu({
  16.             target: '#imMnMn',
  17.             showCurrent: false,
  18.             verticalScroll: false,
  19.             orientation: 'horizontal',
  20.             menuHeight: 26,
  21.             menuWidth: 120,
  22.             submenuHeight: 22,
  23.             submenuWidth: 160,
  24.             opacity: 0.800,
  25.             type: 'singleColumn',
  26.             alignment: 'left',
  27.             effect: 'fade'
  28.         });
  29.     });
  30.     b.push(function () { x.utils.imPreloadImages([p + 'menu/main.png',p + 'menu/main_h.png', p + 'res/imLoad.gif', p + 'res/imClose.png']); });
  31.  
  32.     // ShowBox
  33.     $.extend(s.imShowBox, {
  34.         'effect' : 'fade',
  35.         'shadow' : '',
  36.         'background' : '#000000',
  37.         'borderWidth' : {
  38.             'top': 1,
  39.             'right': 1,
  40.             'bottom': 1,
  41.             'left': 1
  42.         },
  43.         buttonRight: {
  44.             url: p + 'res/b01_r.png',
  45.             position: {
  46.                 x: -12,
  47.                 y: 0
  48.             }
  49.         },
  50.         buttonLeft: {
  51.             url: p + 'res/b01_l.png',
  52.             position: {
  53.                 x: -12,
  54.                 y: 0
  55.             }
  56.         },
  57.         'borderRadius' : '5px 5px 5px 5px',
  58.         'borderColor' : '#000000 #000000 #000000 #000000',
  59.         'textColor' : '#000000',
  60.         'fontFamily' : 'Tahoma',
  61.         'fontStyle' : 'normal',
  62.         'fontWeight' : 'normal',
  63.         'fontSize' : '9pt',
  64.         'textAlignment' : 'left',
  65.         'boxColor' : '#FFFFFF',
  66.         'opacity' : 0.700,
  67.         'radialBg' : true // Works only in Mozilla Firefox and Google Chrome
  68.     });
  69.  
  70.     // PopUp
  71.     $.extend(s.imPopUp, {
  72.         'effect' : 'fade',
  73.         'width' : 500,
  74.         'shadow' : '',
  75.         'background' : '#000000',
  76.         'borderRadius' : 10,
  77.         'textColor' : '#000000',
  78.         'boxColor' : '#FFFFFF',
  79.         'opacity' : 0.700
  80.     });
  81.  
  82.     // Tip
  83.     $.extend(s.imTip, {
  84.         'borderRadius' : 0,
  85.         'arrow' : true,
  86.         'position' : 'bottom',
  87.         'effect' : 'none',
  88.         'showTail' : true
  89.     });
  90.  
  91.     // Captcha
  92.     var codes = s.imCaptcha.offlineCodes;
  93.     s.loaded = true;
  94. })( _jq, x5engine );